Generally, graphs and tables are used only when algebraic methods are difficult to apply or to double-check the solutions. Many limits can be found analytically (using algebra or calculus) with straightforward techniques such as direct substitution and knowledge of limit laws. On this page, we’ll find the limits of various functions, including piecewise-defined and composite functions, using basic analytical methods.
Direct substitution
The simplest method for finding a limit is direct substitution. If plugging in x=a into f(x) results in a finite number, that’s the limit. Always do this first for any limit problem.
Examples
1. Evaluate x→3limx2
Directly substituting x=3 into x2,
x→3limx2=(3)2=9
Give it a try:
2. Evaluate
x→3πlimxtan(x)−3
Solution
(spoiler)
Directly substituting 3π everywhere that x appears,
=π/3tan(π/3)−3=π/33−3=0
Limit properties
Direct substitution works because of a few limit laws that use basic operations to break complicated functions into simpler parts.
Some AP problems expect you to apply these laws without any explicitly-defined functions. For example,
3. Given:
x→5limf(x)=2
x→5limg(x)=4
Evaluate:
x→5lim[f(x)−3g(x)]2
Using the constant multiple, difference rule, and power rules, the limit becomes:
(x→5limf(x)−3⋅x→5limg(x))2
=(2−3⋅4)2=(2−12)2=(−10)2=100
Piecewise-defined functions
The previous section touched on one-sided limits and how the overall limit exists only if both one-sided limits match. Since piecewise functions are defined by different expressions (pieces, or branches) for different intervals of x, one-sided limits must be used to evaluate any limits involving the breakpoint, or the x-value at which the function is broken into separate branches.
Example
Let f(x) be the piecewise function defined by
f(x)=⎩⎨⎧x22x4if x≤−1if −1<x≤2if x>2
Evaluate:
a) x→−1limf(x)
b) x→2limf(x)
c) x→3limf(x)
Answers
(spoiler)
a) Does not exist (DNE)
b) 4
c) 4
Solutions
a) x→−1limf(x)
(spoiler)
x is approaching −1, which is one breakpoint of the function. Calculating the one-sided limits:
Left-hand limit:(x→−1−)
f(x) is defined as x2 for all x≤−1 so
x→−1−limx2=1
Right-hand limit:(x→−1+)
f(x) is defined as 2x for −1<x≤2 so
x→−1+lim2x=−2
Since
x→−1−limf(x)=x→−1+limf(x)
the overall limit x→−1limf(x)does not exist (as it does not approach just one specific value).
b) x→2limf(x)
(spoiler)
x is approaching 2, which is another breakpoint of the function.
Left-hand limit:(x→2−)
f(x) is defined as 2x for −1<x≤2 so
x→2−lim2x=4
Right-hand limit:(x→2+)
f(x) is defined as 4 for x>2 so
x→2+lim4=4
Both one-sided limits match, so
x→2limf(x)=4
c) x→3limf(x)
(spoiler)
Since x is approaching 3 which is not a breakpoint, one-sided limits aren’t necessary. We just have to figure out which piece to use.
Since x=3 falls into the region x>2, then we use the 3rd branch, f(x)=4, and
x→3lim4=4
Let’s use the function we worked with as an example for what to type
f(x)=⎩⎨⎧x22x4if x≤−1if −1<x≤2if x>2
This would be entered into Desmos as:
f(x)={x≤−1:x2,−1<x≤2:2x,x>2:4}
Composite functions
What happens when we have a function inside a function - a composite function(f∘g)(x), or f(g(x))? In this case, the following property holds:
This means we first find the limit of the inner function g(x) and then evaluate the outer function f at that value.
Examples
Let f(x)=3x+1 and g(x)=2x2.
Evaluate:
a) x→0limf(g(x))
b) x→0limg(f(x))
Solutions
a) x→0limf(g(x))
(spoiler)
First, evaluate x→0limg(x).
x→0lim2x2=0
Then, plug into f:
f(0)=3(0)+1=1
b) x→0limg(f(x))
(spoiler)
First, evaluate x→0limf(x).
x→0lim(3x+1)=1
Then, plug into g:
g(1)=2(1)2=2
Confirm visually in Desmos by typing f(x)=3x+1 and g(x)=2x2 to define the two functions, and then typing f(g(x)) and g(f(x)) to check what y-value each composite function approaches as x→0.
Challenge problems
Note that the limit law for composite functions applies when the outer function f(x) is continuous at the limit value of the inner function g (more on continuity will be covered in later sections).
But what happens if x→alimg(x) doesn’t exist, or if f(x) has breaks in the graph?
In some of these cases, finding x→alimf(g(x)) requires x→Glimf(x) (which may not be the same as f(G)), if x→alimg(x)=G. Below is a multi-part problem that encompasses the challenging cases you might encounter on the AP exam, although rare:
Shown below are the graphs of g(x) and f(x):
Composite function limit
Evaluate:
a) x→4limf(g(x))
b) x→1limg(f(x))
c) x→−2limf(f(x))
d) x→−1limg(g(x))
Answers
(spoiler)
a) DNE
b) ∞ (DNE)
c) 2
d) DNE
Solutions
a) x→4limf(g(x))
(spoiler)
First, evaluate x→4limg(x).
There is a vertical asymptote at x=4 and both one-sided limits approach +∞, which means the limit doesn’t exist in a sense (no finite value).
More than that, however, is the fact that the outer function f(x) only exists in the domain (−5,8] as seen in the graph, so the entire composite function also exists only in this region, with additional restrictions from the inner function g(x).
Therefore there is no value for “f(x) at ∞” and the overall limit does not exist.
b) x→1limg(f(x))
(spoiler)
First, x→1limf(x)=4.
Next, it appears that g(4) does not exist because of the asymptote there. It would be sufficient to answer “DNE” as the overall limit.
But let’s reason through this a little more:
Looking at f(x), as x approaches from the left of 1, f(x) approaches 4 from below
i.e. f(0.99)≈3.99,f(0.999)≈3.999, etc.
With these sample output values of f as the input values of g(x), we see that g(3.99) and g(3.999)≈(increasingly large values) such that
x→4limg(x)=∞
Repeating this as x→1+ of f(x) will show the same result.
So the overall limit x→1limg(f(x))=∞ but this also means the limit “does not exist as a finite value” anyway, so “DNE” suffices.
You can visualize these ideas more clearly in Desmos by plotting 3 sample functions that mimic the behavior of each near the points of interest:
f(x)=x+3, since x→1limf(x)=4
g(x)=(x−4)21, since the graph shoots up to ∞ on either side of the vertical asymptote x=4
g(f(x)), to see the vertical asymptote at x=1 such that
x→1limg(f(x))=∞ (DNE)
c) x→−2limf(f(x))
(spoiler)
First, x→−2limf(x)=3.
Because of the breaks in the graph of f(x), however, the answer isn’t simply f(3)=−3. Notice that as x approaches −2 from either side, f(x) approaches 3 from above
i.e. f(−1.99)≈3.01,f(−2.01)≈3.02, etc.
Then the output values of ≈3.01 or 3.02 are the input values for the outer function f, and we have to use the piece of f(x) to the right of x=3, looking at f(3.02) or f(3.01) and so on, and
x→3+limf(x)=2
d) x→−1limg(g(x))
(spoiler)
First, x→−1limg(x)=−4.
But which piece do we use as x→−4 of g(x)?
As x initially approached −1 from the left side, g(x) approached −4 from below. So a sample value might be g(−1.01)=−4.01. Then g(−4.01) uses the piece to the left of x=−4, with the limit approaching −1.
On the other hand, as x initially approached −1 from the right side, g(x) approached −4 from above. A sample value might be g(−0.99)=−3.99, and g(−3.99) uses the piece on the right of x=−4, with the limit approaching −2.
Because the two one-sided limits of g(x) as x→−4, do not match, the overall limit
x→−1limg(g(x)) does not exist
Sign up for free to take 5 quiz questions on this topic