Calculus3Limits and Continuity7 of 8
Limits and Continuity · 7

Limits of Composite Functions

1

When the outside function is continuous

Let's find the limit of f(g(x))f(\inp{g(x)}) as xx approaches 11. The graph of gg has a hole at (1,2)(1, 2), so g(1)g(1) is undefined and we can't just plug in 11. But for a limit, we only care about what happens as xx gets close to 11.

gg
11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
2\htmlClass{lc-green}{2}
33
44
55
11
22
33
44
55
66
xx

Remember how composition works. The input xx goes into gg, and the output g(x)\inp{g(x)} becomes the input for ff. So ff never sees xx. It only receives the outputs from gg.

f(g(0))\displaystyle f(\inp{g(0)}) =f(1)\displaystyle = f(\inp{1}) =2\displaystyle = 2
Find lim⁡x→1f(g(x))\lim_{x\to 1} f(g(x)) from the graphs of gg and ff, and evaluate lim⁡x→1ln⁡x2−1x−1\lim_{x\to 1} \ln\frac{x^2-1}{x-1}
gg
11
22
11
22
33
44
55
xx
ff
11
22
33
44
55
11
22
33
44
55
66
xx
Text solution
Find where the inputs to ff goFrom either side of 11, the heights on gg approach 2\Lv{2}.
lim⁡x→1g(x)\displaystyle \lim_{x\to 1} \inp{g(x)} =2\displaystyle = \Lv{2}
Use that ff is continuous at 2\Lv{2}There's no hole or jump in ff at 2\Lv{2}, so as its inputs approach 2\Lv{2}, its outputs approach f(2)f(\Lv{2}).
lim⁡x→1f(g(x))\displaystyle \lim_{x\to 1} f(\inp{g(x)}) =f(2)\displaystyle = f(\Lv{2}) =3\displaystyle = 3
The formula: simplify the inside, then plug into ln⁡\lnThe inside fraction gives 00\frac00 at 11, so we factor the top and cancel the x−1x - 1. The inside approaches 2\Lv{2}, and ln⁡\ln is continuous at 2\Lv{2}.
lim⁡x→1x2−1x−1\displaystyle \lim_{x\to 1} \inp{\frac{x^2-1}{x-1}} =lim⁡x→1(x+1)\displaystyle = \lim_{x\to 1}(\inp{x+1}) =2\displaystyle = \Lv{2}
lim⁡x→1ln⁡x2−1x−1\displaystyle \lim_{x\to 1} \ln\inp{\frac{x^2-1}{x-1}} =ln⁡2\displaystyle = \ln \Lv{2}

Both answers came from what continuity means. If the inputs approach L\Lv{L}, and ff is continuous at L\Lv{L}, the outputs approach f(L)f(\Lv{L}). That gives us our rule.

If lim⁡x→ag(x)\displaystyle \text{If } \lim_{x\to a} \inp{g(x)} =L\displaystyle = \Lv{L}
and f is continuous at L,\displaystyle \text{and } f \text{ is continuous at } \Lv{L},
then lim⁡x→af(g(x))\displaystyle \text{then } \lim_{x\to a} f(\inp{g(x)}) =f(L)\displaystyle = f(\Lv{L})
2

When the outside function has a jump

Now keep the same gg, but let ff jump at 2\Lv{2}. As xx approaches 2\Lv{2} from the left, f(x)f(x) approaches 33. From the right, f(x)f(x) approaches 55. At 2\Lv{2}, the solid dot gives f(2)=1f(\Lv{2}) = 1.

gg
11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
2\htmlClass{lc-green}{2}
33
44
55
11
22
33
44
55
xx

We can't just plug in 22 and get f(2)=1f(2) = 1, because the rule only works when ff is continuous at 2\Lv{2}. The inputs g(x)\inp{g(x)} still approach 2\Lv{2}, but now it matters which side of 2\Lv{2} they arrive from, so we look at xx approaching 11 one side at a time. We'll do that for this gg, and then for a parabola, g(x)=(x−1)2+2\inp{g(x) = (x - 1)^2 + 2}, with the same open circle at (1,2)(1, 2).

11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
2\htmlClass{lc-green}{2}
33
44
55
11
22
33
44
55
xx
g(x)=(x−1)2+2g(x) = (x-1)^2 + 2
Find lim⁡x→1f(g(x))\lim_{x\to 1} f(g(x)) when ff has a jump at 22
gg
11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
2\htmlClass{lc-green}{2}
33
44
55
11
22
33
44
55
xx
Text solution
First gg: check which side of the line y=2y = \Lv{2}Left of 11, the points on gg stay below the dashed line, so ff gets inputs from the left of 2\Lv{2} and we use its left piece. Right of 11, they stay above, so we use its right piece.
x→1−:\lft{x \to 1^-}:g(x)→2−\inp{g(x)} \to \Lv{2^-}⇒  f(g(x))→3\Rightarrow\; f(\inp{g(x)}) \to \lft{3} x→1+:\rgt{x \to 1^+}:g(x)→2+\inp{g(x)} \to \Lv{2^+}⇒  f(g(x))→5\Rightarrow\; f(\inp{g(x)}) \to \rgt{5}
Different sides, no limitThe two sides approach different numbers. And f(2)=1f(\Lv{2}) = 1 is never used, because near x=1x = 1 the input g(x)\inp{g(x)} is never actually 2\Lv{2}.
3≠5  ⇒  lim⁡x→1f(g(x)) does not exist\displaystyle \lft{3} \ne \rgt{5} \;\Rightarrow\; \lim_{x\to 1} f(\inp{g(x)}) \text{ does not exist}
The parabola: above 2\Lv{2} on both sidesNear 11, the parabola stays above the line y=2y = \Lv{2} on both sides, so both sides use ff's right piece.
x→1−:\lft{x \to 1^-}:g(x)→2+\inp{g(x)} \to \Lv{2^+}⇒  f(g(x))→5\Rightarrow\; f(\inp{g(x)}) \to \lft{5} x→1+:\rgt{x \to 1^+}:g(x)→2+\inp{g(x)} \to \Lv{2^+}⇒  f(g(x))→5\Rightarrow\; f(\inp{g(x)}) \to \rgt{5}
lim⁡x→1f(g(x))\displaystyle \lim_{x\to 1} f(\inp{g(x)}) =5,\displaystyle = 5,
although lim⁡x→2f(x) does not exist\displaystyle \text{although } \lim_{x\to \Lv{2}} f(x) \text{ does not exist}

Look at the parabola's left side. There, xx approaches 11 from the left, but g(x)\inp{g(x)} approaches 2\Lv{2} from the right. Which piece of ff we use depends on whether g(x)\inp{g(x)} is above or below 2\Lv{2}, not on which side xx approaches from. And we don't even need the graph to see that the parabola stays above 2\Lv{2}. For any x≠1x \ne 1, the square (x−1)2(x - 1)^2 is positive, so adding 22 always gives a number greater than 2\Lv{2}.

(x−1)2>0    (x≠1)\displaystyle (x-1)^2 > 0 \;\; (x \ne 1)
⇒  g(x)=(x−1)2+2>2\displaystyle \Rightarrow\; \inp{g(x) = (x-1)^2 + 2} > \Lv{2}

If the parabola opened downward instead, with its vertex at (1,2)(1, 2), g(x)\inp{g(x)} would stay below 2\Lv{2} on both sides of 11, and both sides would use ff's left piece and give 33.

3

When the inside function stays constant

Same jumping ff, new inside function. This time, g(x)=2\inp{g(x)} = \Lv{2} for every xx between 0.50.5 and 1.51.5.

gg
11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
2\htmlClass{lc-green}{2}
33
44
55
11
22
33
44
55
xx
Find lim⁡x→1f(g(x))\lim_{x\to 1} f(g(x)) when g(x)=2g(x) = 2 for xx near 11
gg
11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
2\htmlClass{lc-green}{2}
33
44
55
11
22
33
44
55
xx
0.50.5
1.51.5
Text solution
The input is exactly 2\Lv{2}Near 11, g(x)\inp{g(x)} doesn't approach 2\Lv{2} from the left or the right. It is 2\Lv{2}, so ff only ever receives 2\Lv{2}.
f(g(x))\displaystyle f(\inp{g(x)}) =f(2)\displaystyle = f(\Lv{2}) =1for x near 1\displaystyle = 1 \quad \text{for } x \text{ near } 1
The limit of a constantWe never plug in x=1x = 1, but every nearby xx already gives 11.
lim⁡x→1f(g(x))\displaystyle \lim_{x\to 1} f(\inp{g(x)}) =1\displaystyle = 1

Here the value f(2)f(\Lv{2}) is what counts, unlike in section 2. There, g(x)\inp{g(x)} only got close to 2\Lv{2} and was never equal to it. Here it equals 2\Lv{2} for every xx near 11.

How does the value of g(x)g(x) determine which part of ff we use?

Limits of a composite function
4

When gg has no limit

Keep the same ff, but now let gg jump at 11. As xx approaches 11 from the left, g(x)\inp{g(x)} approaches 2\Lv{2}, and from the right, it approaches 44. So lim⁡x→1g(x)\lim_{x\to 1} \inp{g(x)} doesn't exist, and our rule, which needs g(x)\inp{g(x)} to approach a single number, can't be used. But we can still check each side of 11 on its own.

gg
11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
2\htmlClass{lc-green}{2}
33
44
55
11
22
33
44
55
xx
Find lim⁡x→1f(g(x))\lim_{x\to 1} f(g(x)) when lim⁡x→1−g(x)=2\lim_{x\to 1^-} g(x) = 2 and lim⁡x→1+g(x)=4\lim_{x\to 1^+} g(x) = 4
gg
11
22
11
2\htmlClass{lc-green}{2}
33
44
55
xx
ff
11
22
33
44
55
11
22
33
44
55
xx
Text solution
Follow each side through ffFrom the left, g(x)\inp{g(x)} approaches 2\Lv{2} from below, and ff jumps at 2\Lv{2}, so the side matters and we use ff's left piece. From the right, g(x)\inp{g(x)} approaches 44, where ff is continuous, so the side doesn't matter and f(g(x))f(\inp{g(x)}) just approaches f(4)f(4).
x→1−:\lft{x \to 1^-}:g(x)→2−\inp{g(x)} \to \Lv{2^-}⇒  f(g(x))→3\Rightarrow\; f(\inp{g(x)}) \to \lft{3} x→1+:\rgt{x \to 1^+}:g(x)→4\inp{g(x)} \to 4⇒  f(g(x))→f(4)=3\Rightarrow\; f(\inp{g(x)}) \to f(4) = \rgt{3}(f continuous at 4)(f \text{ continuous at } 4)
Both sides give 33
lim⁡x→1f(g(x))\displaystyle \lim_{x\to 1} f(\inp{g(x)}) =3,\displaystyle = 3,
although lim⁡x→1g(x) does not exist\displaystyle \text{although } \lim_{x\to 1} \inp{g(x)} \text{ does not exist}
5

When the inside and outside swap

Now let's find the limit of g(f(x))g(f(x)) as xx approaches 66, using the same two graphs. This time ff is on the inside, so we start with the graph of ff, and whatever comes out of ff goes into gg.

gg
1\htmlClass{lc-green}{1}
22
11
22
33
44
55
xx
ff
11
22
33
44
55
66
77
1\htmlClass{lc-green}{1}
22
33
44
55
xx
Find lim⁡x→6g(f(x))\lim_{x\to 6} g(f(x)) from the graphs of gg and ff
gg
11
22
11
22
33
44
55
xx
ff
11
22
33
44
55
66
77
11
22
33
44
55
xx
Text solution
The inside firstff is continuous at 66 and f(6)=1f(6) = \Lv{1}. But gg jumps at 1\Lv{1}, from 22 on the left to 44 on the right, so we need to know whether f(x)\inp{f(x)} approaches 1\Lv{1} from above or from below.
lim⁡x→6f(x)\displaystyle \lim_{x\to 6} \inp{f(x)} =1\displaystyle = \Lv{1}
ff is decreasing near 66Just left of 66, f(x)\inp{f(x)} is just above 1\Lv{1}, so gg's inputs come from the right of 1\Lv{1}. Just right of 66, they come from the left.
x→6−:\lft{x \to 6^-}:f(x)→1+\inp{f(x)} \to \Lv{1^+}⇒  g(f(x))→4\Rightarrow\; g(\inp{f(x)}) \to \lft{4} x→6+:\rgt{x \to 6^+}:f(x)→1−\inp{f(x)} \to \Lv{1^-}⇒  g(f(x))→2\Rightarrow\; g(\inp{f(x)}) \to \rgt{2}
4≠2  ⇒  lim⁡x→6g(f(x)) does not exist\displaystyle \lft{4} \ne \rgt{2} \;\Rightarrow\; \lim_{x\to 6} g(\inp{f(x)}) \text{ does not exist}

Summary

When the outside function is continuous
lim⁡x→ag(x)\displaystyle \lim_{x\to a} \inp{g(x)} =L, f continuous at L\displaystyle = \Lv{L},\ f \text{ continuous at } \Lv{L}
⇒  lim⁡x→af(g(x))\displaystyle \Rightarrow\; \lim_{x\to a} f(\inp{g(x)}) =f(L)\displaystyle = f(\Lv{L})
lim⁡x→1ln⁡x2−1x−1\displaystyle \lim_{x\to 1} \ln\inp{\frac{x^2-1}{x-1}} =ln⁡(lim⁡x→1(x+1))\displaystyle = \ln\Big(\lim_{x\to 1}(\inp{x+1})\Big) =ln⁡2\displaystyle = \ln \Lv{2}

Find the limit of the inside function first. If that limit is L\Lv{L} and the outside function is continuous at L\Lv{L}, plug L\Lv{L} into the outside function. For ln⁡x2−1x−1\ln\inp{\frac{x^2-1}{x-1}} as x→1x \to 1, the inside approaches 2\Lv{2}, and since ln⁡\ln is continuous at 2\Lv{2}, the limit is ln⁡2\ln \Lv{2}.

When the outside function has a jump
gg
L\htmlClass{lc-green}{L}
L\htmlClass{lc-green}{L}
g(x)\htmlClass{lc-orange}{g(x)}
g(x)→L+\displaystyle \inp{g(x)} \to \Lv{L^+}
⇒  f(g(x))→lim⁡x→L+f(x)\displaystyle \Rightarrow\; f(\inp{g(x)}) \to \lim_{x\to \Lv{L^+}} f(x)
g(x)→L−\displaystyle \inp{g(x)} \to \Lv{L^-}
⇒  f(g(x))→lim⁡x→L−f(x)\displaystyle \Rightarrow\; f(\inp{g(x)}) \to \lim_{x\to \Lv{L^-}} f(x)

When ff has a jump at L\Lv{L}, heights above L\Lv{L} on gg's vertical axis become inputs to the right of L\Lv{L} on ff's horizontal axis, so g(x)→L+\inp{g(x)} \to \Lv{L^+} uses the right-hand limit of ff. Heights below L\Lv{L} become inputs to the left, so g(x)→L−\inp{g(x)} \to \Lv{L^-} uses the left-hand limit. The side of L\Lv{L} depends on whether g(x)\inp{g(x)} is above or below L\Lv{L}, not on whether xx approaches aa from the left or the right.

If gg approaches different numbers from the two sides of aa, check each side on its own. If ff is continuous at one of those numbers, it doesn't matter which side g(x)\inp{g(x)} approaches it from.

When the inside function stays constant
g(x)\displaystyle \inp{g(x)} =L for x near a\displaystyle = \Lv{L} \text{ for } x \text{ near } a
⇒  lim⁡x→af(g(x))\displaystyle \Rightarrow\; \lim_{x\to a} f(\inp{g(x)}) =f(L)\displaystyle = f(\Lv{L})

If g(x)=L\inp{g(x)} = \Lv{L} for every xx near aa, then ff receives only L\Lv{L}, not numbers approaching L\Lv{L}. The limit is f(L)f(\Lv{L}), even if ff has a jump at L\Lv{L}.

Swapping the inside and outside functions

In g(f(x))g(\inp{f(x)}), ff is on the inside, so look at the graph of ff first. Find the limit of f(x)\inp{f(x)}. If gg has a jump at that limit, check each side of aa separately. When f(x)\inp{f(x)} approaches that value from above, use the right-hand limit of gg, and when f(x)\inp{f(x)} approaches from below, use the left-hand limit.

6

Practice

Enter exact values, or write DNE if a limit does not exist.

1
Evaluate lim⁡x→0esin⁡3xx\displaystyle\lim_{x\to 0} e^{\frac{\sin 3x}{x}}.

exe^x is continuous everywhere, so we can move the limit into the exponent. What is the limit of the exponent as xx approaches 00?

sin⁡3x3x\frac{\sin 3x}{3x} approaches 11 as xx approaches 00. How can you write sin⁡3xx\frac{\sin 3x}{x} with a 3x3x in the denominator?

exe^x is continuous everywhere, so we can move the limit into the exponent.
lim⁡x→0esin⁡3xx\displaystyle \lim_{x\to 0} e^{\inp{\frac{\sin 3x}{x}}} =elim⁡x→0sin⁡3xx(ex continuous everywhere)\displaystyle = e^{\lim_{x\to 0}\inp{\frac{\sin 3x}{x}}} \qquad (e^x \text{ continuous everywhere})
Multiply the top and bottom by 33 so the bottom matches the 3x3x inside the sine. As xx approaches 00, 3x3x approaches 00, so sin⁡3x3x\frac{\sin 3x}{3x} approaches 11.
sin⁡3xx\displaystyle \inp{\frac{\sin 3x}{x}} =3⋅sin⁡3x3x→3⋅1\displaystyle = \inp{3\cdot\frac{\sin 3x}{3x}} \to 3\cdot 1 =3\displaystyle = \Lv{3}
The exponent approaches 3\Lv{3}, so the limit is e3e^{\Lv{3}}.
lim⁡x→0esin⁡3xx\displaystyle \lim_{x\to 0} e^{\inp{\frac{\sin 3x}{x}}} =e3\displaystyle = e^{\Lv{3}}
y=f(x)y = f(x)
−1-1
11
22
33
44
−1-1
11
22
33
44
y=g(x)y = g(x)
−1-1
11
22
−1-1
11
22
33
44
y=h(x)y = h(x)
−1-1
11
22
−1-1
11
22
33
44
y=k(x)y = k(x)
−1-1
11
22
33
−1-1
11
22
33
44
2
The graphs of ff and gg are shown above. Find (a) lim⁡x→−1f(g(x))\displaystyle\lim_{x\to -1} f(g(x)), (b) lim⁡x→2+f(g(x))\displaystyle\lim_{x\to 2^+} f(g(x)), (c) lim⁡x→2f(g(x))\displaystyle\lim_{x\to 2} f(g(x)).

As xx approaches −1-1, does g(x)g(x) approach 11 from above or from below?

If you got DNE in (a) Even though lim⁡x→1f(x)\lim_{x\to 1} f(x) does not exist, g(x)g(x) stays greater than 11 on both sides of −1-1, so we only use ff's right-hand limit at 11.

For xx just to the right of 22, is g(x)g(x) less than 11 or greater than 11?

In part (b) we found the limit from the right. What does g(x)g(x) approach as xx approaches 22 from the left?

Limit at −1-1The graph of gg has a local minimum at (−1,1)(-1, 1), so from both sides of −1-1, g(x)\inp{g(x)} approaches 1\Lv{1} from above, where ff approaches 22.
x→−1−:g(x)→1+  ⇒  f(g(x))→2\displaystyle \lft{x \to -1^-}: \quad \inp{g(x)} \to \Lv{1^+} \;\Rightarrow\; f(\inp{g(x)}) \to \lft{2}
x→−1+:g(x)→1+  ⇒  f(g(x))→2\displaystyle \rgt{x \to -1^+}: \quad \inp{g(x)} \to \Lv{1^+} \;\Rightarrow\; f(\inp{g(x)}) \to \rgt{2}
lim⁡x→−1f(g(x))\displaystyle \lim_{x\to -1} f(\inp{g(x)}) =2\displaystyle = 2
Right-hand limit at 22For xx just to the right of 22, g(x)\inp{g(x)} is less than 1\Lv{1} because the graph of gg is decreasing through (2,1)(2, 1). As the input approaches 1\Lv{1} from the left, ff approaches 4\rgt{4}.
x→2+:g(x)→1−  ⇒  f(g(x))→4\displaystyle \rgt{x \to 2^+}: \quad \inp{g(x)} \to \Lv{1^-} \;\Rightarrow\; f(\inp{g(x)}) \to \rgt{4}
Two-sided limit at 22As xx approaches 22 from the left, g(x)\inp{g(x)} is greater than 1\Lv{1}, so the input approaches 1\Lv{1} from the right and ff approaches 2\lft{2}. The one-sided limits differ, so the two-sided limit does not exist.
x→2−:g(x)→1+  ⇒  f(g(x))→2\displaystyle \lft{x \to 2^-}: \quad \inp{g(x)} \to \Lv{1^+} \;\Rightarrow\; f(\inp{g(x)}) \to \lft{2}
2≠4  ⇒  lim⁡x→2f(g(x)) does not exist\displaystyle \lft{2} \ne \rgt{4} \;\Rightarrow\; \lim_{x\to 2} f(\inp{g(x)}) \text{ does not exist}
3
The graphs of ff and hh are shown above. Find lim⁡x→0f(h(x))\displaystyle\lim_{x\to 0} f(h(x)).

For xx near 00, does h(x)h(x) only approach 11, or does it equal 11?

If you got 22 or 44 Check the graph of hh near 00. Because h(x)h(x) is always 11 near 00, we use the value f(1)f(1), not a one-sided limit of ff.

If you got DNE Check whether ff needs a limit at 11. Near x=0x = 0, h(x)h(x) is always 11, so f(h(x))f(h(x)) is always f(1)f(1).

For all xx between −1-1 and 11, h(x)\inp{h(x)} is exactly 1\Lv{1}, so f(h(x))f(\inp{h(x)}) is the constant f(1)=3f(\Lv{1}) = 3.
h(x)\displaystyle \inp{h(x)} =1 for −1\displaystyle = \Lv{1} \text{ for } -1 ≤x\displaystyle \le x ≤1  ⇒  f(h(x))\displaystyle \le 1 \;\Rightarrow\; f(\inp{h(x)}) =f(1)\displaystyle = f(\Lv{1}) =3 for x near 0\displaystyle = 3 \text{ for } x \text{ near } 0
lim⁡x→0f(h(x))\displaystyle \lim_{x\to 0} f(\inp{h(x)}) =3\displaystyle = 3
4
The graphs of ff and kk are shown above. Find lim⁡x→0f(k(x))\displaystyle\lim_{x\to 0} f(k(x)).

The graph of kk has a jump at 00, so check each side of 00 separately. As x→0−x \to 0^-, does k(x)k(x) approach 11 from above or below?

As x→0+x \to 0^+, what does k(x)k(x) approach? Is ff continuous at that value?

If you got DNE Even though lim⁡x→0k(x)\lim_{x\to 0} k(x) does not exist, check the one-sided limits of f(k(x))f(k(x)) on each side of 00.

As xx approaches 00 from the left, k(x)\inp{k(x)} decreases toward 1\Lv{1}, so the inputs to ff approach 1\Lv{1} from above.
x→0−:k(x)→1+  ⇒  f(k(x))→2\displaystyle \lft{x \to 0^-}: \quad \inp{k(x)} \to \Lv{1^+} \;\Rightarrow\; f(\inp{k(x)}) \to \lft{2}
As xx approaches 00 from the right, k(x)\inp{k(x)} approaches −1-1, where ff is continuous.
x→0+:k(x)→−1  ⇒  f(k(x))→f(−1)\displaystyle \rgt{x \to 0^+}: \quad \inp{k(x)} \to -1 \;\Rightarrow\; f(\inp{k(x)}) \to f(-1) =2(f continuous at −1)\displaystyle = \rgt{2} \qquad (f \text{ continuous at } -1)
Both one-sided limits equal 22, so the two-sided limit is 22.
lim⁡x→0f(k(x))\displaystyle \lim_{x\to 0} f(\inp{k(x)}) =2\displaystyle = 2
5
The graphs of ff and kk are shown above. Find lim⁡x→3−k(f(x))\displaystyle\lim_{x\to 3^-} k(f(x)).

In k(f(x))k(f(x)), which function is on the inside?

For xx just to the left of 33, is f(x)f(x) positive or negative?

The function ff is on the inside, and because it decreases through (3,0)(3, 0), its values are positive for xx just to the left of 33.
x→3−:f(x)→0+\displaystyle \lft{x \to 3^-}: \quad \inp{f(x)} \to \Lv{0^+}
Now find the limit of kk as its input approaches 0\Lv{0} from the right.
k(f(x))→lim⁡x→0+k(x)\displaystyle k(\inp{f(x)}) \to \lim_{x\to \Lv{0^+}} k(x) =−1\displaystyle = -1
6
Let f(x)=x2−4x−2f(x) = \dfrac{x^2-4}{x-2} for x≠2x \ne 2, and f(2)=0f(2) = 0. Find lim⁡x→1f(x+1)\displaystyle\lim_{x\to 1} f(x+1).

As xx approaches 11, what does x+1x + 1 approach? Can x+1x + 1 equal 22 when x≠1x \ne 1?

Factor x2−4x^2 - 4 to simplify the formula for f(x)f(x) when x≠2x \ne 2.

As xx approaches 11, x+1\inp{x + 1} approaches 2\Lv{2}, but for x≠1x \ne 1 it never equals 2\Lv{2}.
x→1:x+1→2,x+1≠2    (x≠1)\displaystyle x \to 1: \quad \inp{x + 1} \to \Lv{2}, \qquad \inp{x + 1} \ne \Lv{2} \;\; (x \ne 1)
Because the input is never 2\Lv{2}, we use the rule for x≠2x \ne 2. The x−2x - 2 cancels, so ff just adds 22 to its input.
f(x)\displaystyle f(x) =(x−2)(x+2)x−2\displaystyle = \frac{(x-2)(x+2)}{x-2} =x+2    (x≠2)  ⇒  f(x+1)\displaystyle = x + 2 \;\; (x \ne 2) \;\Rightarrow\; f(\inp{x+1}) =x+3    (x≠1)\displaystyle = x + 3 \;\; (x \ne 1)
lim⁡x→1f(x+1)\displaystyle \lim_{x\to 1} f(\inp{x+1}) =lim⁡x→1(x+3)\displaystyle = \lim_{x\to 1}(x+3) =4\displaystyle = 4
7
Let f(x)=x+1f(x) = x + 1 for x≤0x \le 0, and f(x)=4−xf(x) = 4 - x for x>0x > 0. Find lim⁡x→0f(x2)\displaystyle\lim_{x\to 0} f(x^2).

Can x2x^2 ever be negative?

Because x2x^2 approaches 00 from the right, which piece of ff applies?

If you got DNE Check which side of 00 the inputs x2x^2 approach from. For any nonzero xx, x2x^2 is positive, so ff only receives inputs from the right of 00.

For any x≠0x \ne 0, x2\inp{x^2} is positive, so f(x2)f(\inp{x^2}) uses the piece for positive inputs.
x2>0    (x≠0)  ⇒  f(x2)\displaystyle \inp{x^2} > \Lv{0} \;\; (x \ne 0) \;\Rightarrow\; f(\inp{x^2}) =4−x2\displaystyle = 4 - x^2
As xx approaches 00, 4−x24 - x^2 approaches 44.
lim⁡x→0f(x2)\displaystyle \lim_{x\to 0} f(\inp{x^2}) =lim⁡x→0(4−x2)\displaystyle = \lim_{x\to 0}(4 - x^2) =4\displaystyle = 4
8
Let f(x)=3xf(x) = 3x for x<1x < 1, and f(x)=x+4f(x) = x + 4 for x≥1x \ge 1. Find lim⁡x→0f ⁣(sin⁡xx)\displaystyle\lim_{x\to 0} f\!\left(\frac{\sin x}{x}\right). (Challenge)

From the squeeze theorem, what does sin⁡xx\frac{\sin x}{x} approach as x→0x \to 0?

On the unit circle for 0<x<π20 < x < \frac{\pi}{2}, is the vertical height sin⁡x\sin x shorter or longer than the arc length xx?

From the squeeze theorem, the limit of sin⁡xx\inp{\frac{\sin x}{x}} as xx approaches 00 is 1\Lv{1}.
lim⁡x→0sin⁡xx\displaystyle \lim_{x\to 0}\inp{\frac{\sin x}{x}} =1\displaystyle = \Lv{1}
On the unit circle, the vertical segment sin⁡x\hgt{\sin x} is shorter than the arc xx for 0<x<π2\rgt{0 < x < \frac{\pi}{2}}, so sin⁡xx<1\inp{\frac{\sin x}{x}} < \Lv{1}. Because sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x, the same inequality holds for negative xx.
0<x<π2:0<sin⁡x<x  ⇒  sin⁡xx<1\displaystyle \rgt{0 < x < \frac{\pi}{2}}: \quad 0 < \hgt{\sin x} < x \;\Rightarrow\; \inp{\frac{\sin x}{x}} < \Lv{1}
−π2<x<0:sin⁡xx\displaystyle \lft{-\frac{\pi}{2} < x < 0}: \quad \inp{\frac{\sin x}{x}} =sin⁡(−x)−x<1\displaystyle = \inp{\frac{\sin(-x)}{-x}} < \Lv{1}
The inputs to ff stay strictly less than 1\Lv{1}, so ff uses the piece 3x3x.
f ⁣(sin⁡xx)\displaystyle f\!\left(\inp{\frac{\sin x}{x}}\right) =3sin⁡xx    (x near 0, x≠0)  ⇒  lim⁡x→0f ⁣(sin⁡xx)\displaystyle = \frac{3\sin x}{x} \;\; (x \text{ near } 0,\ x \ne 0) \;\Rightarrow\; \lim_{x\to 0} f\!\left(\inp{\frac{\sin x}{x}}\right) =3\displaystyle = 3