Calculus3Introduction to Derivatives3 of 3
Introduction to Derivatives · 3

Differentiability and Continuity

1

What differentiability means

When we found the derivative of x2x^2 or a line, f′(a)\dv{f'(a)} came out to a single number. Does every function have a derivative at every point?

Remember, the derivative is the limit of secant slopes as hh approaches 00. A positive h\rt{h} puts a+h\rt{a + h} to the right of aa, and a negative h\lf{h} puts a+h\lf{a + h} to the left. We can also write x=a+hx = a + h. Then as hh approaches 00, xx approaches aa, and we get the same limit.

f′(a)\displaystyle f'(a) =lim⁡h→0f(a+h)−f(a)h\displaystyle = \lim_{h\to 0}\frac{f(a+h)-f(a)}{h}
Using xx
f′(a)\displaystyle f'(a) =lim⁡x→af(x)−f(a)x−a\displaystyle = \lim_{x\to a}\frac{f(x)-f(a)}{x-a}

When this limit exists as a number, we say ff is differentiable at aa. If ff is differentiable at every point in an interval, we say it's differentiable on that interval.

A two-sided limit exists only when the limit from the left equals the limit from the right. So for f′(a)f'(a) to exist, the secant slopes from the left and the secant slopes from the right must approach the same number.

Let's check this on f(x)=x2f(x) = x^2 at x=1x = 1. With h=−1\lf{h = -1}, the point on the left is (0,0)\lf{(0, 0)}, and the secant slope is 1\lf{1}. With h=1\rt{h = 1}, the point on the right is (2,4)\rt{(2, 4)}, and the secant slope is 3\rt{3}.

11
22
11
22
33
44
xx
yy
y=x2y=x^2
slope 1\htmlClass{lc-blue}{\text{slope } 1}
slope 3\htmlClass{lc-pink}{\text{slope } 3}
slope 2\htmlClass{lc-green}{\text{slope } 2}
f(x)\displaystyle f(x) =x2\displaystyle = x^2
f(1+h)−f(1)h=(1+h)2−1h=2h+h2h=2+h\displaystyle \begin{aligned}\frac{f(1+h)-f(1)}{h} &= \frac{(1+h)^2-1}{h}\\ &= \frac{2h+h^2}{h}\\ &= 2+h\end{aligned}
lim⁡h→0−(2+h)\displaystyle \lf{\lim_{h\to 0^-}}(2+h) =2\displaystyle = \lf{2}
lim⁡h→0+(2+h)\displaystyle \rt{\lim_{h\to 0^+}}(2+h) =2\displaystyle = \rt{2}
f′(1)=2\displaystyle \dv{f'(1) = 2}

As hh approaches 00 from either side, both secant slopes approach 2\dv{2}, which is the slope of the tangent line y=2x−1\dv{y = 2x - 1}.

Because the derivative is a limit, it doesn't have to exist at every point. We've already seen limits fail when the two sides approach different numbers, or when the values go to infinity or negative infinity.

2

Why ∣x∣|x| has no derivative at 00

Now let's see whether f(x)=∣x∣f(x) = |x| has a derivative at x=0x = 0. The formula for ∣h∣|h| changes at 00: it's h\rt{h} when h>0\rt{h > 0} and −h\lf{-h} when h<0\lf{h < 0}. So we check the secant slopes from each side separately.

−1-1
11
11
xx
yy
y=∣x∣y=|x|
slope −1\htmlClass{lc-blue}{\text{slope } {-1}}
slope 1\htmlClass{lc-pink}{\text{slope } 1}
f(0+h)−f(0)h\displaystyle \frac{f(0+h)-f(0)}{h} =∣h∣h\displaystyle = \frac{|h|}{h}
h<0: ∣h∣h\displaystyle \lf{h < 0}:\ \frac{|h|}{h} =−hh\displaystyle = \frac{\lf{-h}}{h} =−1\displaystyle = \lf{-1}
h>0: ∣h∣h\displaystyle \rt{h > 0}:\ \frac{|h|}{h} =hh\displaystyle = \frac{\rt{h}}{h} =1\displaystyle = \rt{1}
lim⁡h→0−∣h∣h\displaystyle \lf{\lim_{h\to 0^-}}\frac{|h|}{h} =−1  ≠  1\displaystyle = \lf{-1} \;\neq\; \rt{1} =lim⁡h→0+∣h∣h\displaystyle = \rt{\lim_{h\to 0^+}}\frac{|h|}{h}
lim⁡h→0−∣h∣h=−1  ≠  1=lim⁡h→0+∣h∣h\displaystyle \begin{aligned}&\lf{\lim_{h\to 0^-}}\frac{|h|}{h} = \lf{-1}\\ &\;\neq\; \rt{1} = \rt{\lim_{h\to 0^+}}\frac{|h|}{h}\end{aligned}
Does ∣x∣|x| have a derivative at x=0x = 0?
xx
yy
f(x)=∣x∣f(x)=|x|
Text solution
The slope doesn't depend on hhOn the right, every secant runs from (0,0)(0, 0) along y=x\rt{y = x}, and on the left along y=−x\lf{y = -x}. So the slopes stay 1\rt{1} and −1\lf{-1} however small hh gets.
(h,h) on y=x\displaystyle \rt{(h, h)} \text{ on } \rt{y = x}
(h,−h) on y=−x\displaystyle \lf{(h, -h)} \text{ on } \lf{y = -x}
The two sides disagreeJust like ∣x−2∣x−2\frac{|x - 2|}{x - 2} as xx approaches 22, the one-sided limits are different, so the limit doesn't exist and neither does f′(0)f'(0). The lowest point might look like it has a horizontal tangent, but the secant slopes never get close to 00.
Still continuousAs xx approaches 00, ∣x∣|x| approaches f(0)f(0), so there's no break in the graph.
lim⁡x→0∣x∣\displaystyle \lim_{x\to 0}|x| =0\displaystyle = 0 =f(0)\displaystyle = f(0)

So ∣x∣|x| is continuous at 00, but it has no derivative there. When the slopes from the left and the right approach different numbers like this, the graph has a sharp turn called a corner.

3

Vertical tangents and cusps

A corner isn't the only way a derivative can fail to exist. The graph of the cube root of xx has no corner at 00, and it's continuous there, since x3\sqrt[3]{x} approaches 0=030 = \sqrt[3]{0}. Does it have a derivative at 00? And what about x23x^{\frac{2}{3}}, which is (x3)2\left(\sqrt[3]{x}\right)^2?

Find the derivative of x3\sqrt[3]{x} and x23x^{\frac{2}{3}} at x=0x = 0
f(x)=x3f(x)=\sqrt[3]{x}
f(x)=x23f(x)=x^{\frac{2}{3}}
Text solution
Cancel one cube rootSubstituting h=0h = 0 gives 00\frac00. Since h=(h3)3h = (\sqrt[3]{h})^3, one factor of h3\sqrt[3]{h} cancels.
f(0+h)−f(0)h\displaystyle \frac{f(0+h)-f(0)}{h} =h3h\displaystyle = \frac{\sqrt[3]{h}}{h} =1(h3)2\displaystyle = \frac{1}{\left(\sqrt[3]{h}\right)^2}
x3\sqrt[3]{x}: a vertical tangentThe square keeps the denominator positive, so the slopes go to ∞\infty from both sides. ∞\infty isn't a number, so f′(0)f'(0) does not exist. The secants approach the vertical line x=0x = 0, which has no slope.
lim⁡h→0−1(h3)2\displaystyle \lf{\lim_{h\to 0^-}}\frac{1}{\left(\sqrt[3]{h}\right)^2} =∞\displaystyle = \lf{\infty}
lim⁡h→0+1(h3)2\displaystyle \rt{\lim_{h\to 0^+}}\frac{1}{\left(\sqrt[3]{h}\right)^2} =∞\displaystyle = \rt{\infty}
x23x^{\frac{2}{3}}: a cuspThis time two factors cancel, and there's no square left to keep the denominator positive. The sign of h3\sqrt[3]{h} sends the slopes to opposite infinities.
(h3)2(h3)3\displaystyle \frac{\left(\sqrt[3]{h}\right)^2}{\left(\sqrt[3]{h}\right)^3} =1h3\displaystyle = \frac{1}{\sqrt[3]{h}}
lim⁡h→0−1h3\displaystyle \lf{\lim_{h\to 0^-}}\frac{1}{\sqrt[3]{h}} =−∞\displaystyle = \lf{-\infty}
lim⁡h→0+1h3\displaystyle \rt{\lim_{h\to 0^+}}\frac{1}{\sqrt[3]{h}} =∞\displaystyle = \rt{\infty}
−1-1
11
slope 9\htmlClass{lc-pink}{\text{slope } 9}
slope 9\htmlClass{lc-blue}{\text{slope } 9}
y=x3y=\sqrt[3]{x}
−1-1
11
slope −3\htmlClass{lc-blue}{\text{slope } {-3}}
slope 3\htmlClass{lc-pink}{\text{slope } 3}
y=x23y=x^{\frac{2}{3}}

Both x3\sqrt[3]{x} and x23x^{\frac{2}{3}} are continuous at 00, but neither one has a derivative there. x3\sqrt[3]{x} has a vertical tangent because the slopes approach ∞\infty from both sides, and x23x^{\frac{2}{3}} has a cusp because the slopes approach −∞\lf{-\infty} from the left and ∞\rt{\infty} from the right.

4

Why there's no derivative at a break

Earlier we saw that x2x^2 has slope 2\lf{2} at x=1x = 1, and the line 2x+12x + 1 has slope 2\rt{2} everywhere. So what if f(x)f(x) is x2x^2 for x≤1x \le 1 and 2x+12x + 1 for x>1x > 1? Does f′(1)f'(1) equal 22? Let's test the difference quotient from each side.

12\tfrac{1}{2}
11
32\tfrac{3}{2}
11
22
33
44
xx
yy
x2x^2
2x+12x+1
2\htmlClass{lc-orange}{2}
slope 32\htmlClass{lc-blue}{\text{slope } \tfrac{3}{2}}
slope 6\htmlClass{lc-pink}{\text{slope } 6}
h<0: (1+h)2−1h\displaystyle \lf{h < 0}:\ \frac{(1+h)^2 - 1}{h} =2+h\displaystyle = \lf{2 + h}
lim⁡h→0−(2+h)\displaystyle \lf{\lim_{h\to 0^-}}(2+h) =2\displaystyle = \lf{2}
h>0: 2(1+h)+1−1h=2+2hh=2h+2\displaystyle \begin{aligned}\rt{h > 0}:\ \frac{2(1+h) + 1 - 1}{h} &= \frac{\gp{2} + 2h}{h}\\ &= \frac{\gp{2}}{h} + \rt{2}\end{aligned}
lim⁡h→0+(2h+2)\displaystyle \rt{\lim_{h\to 0^+}}\Big(\frac{\gp{2}}{h} + \rt{2}\Big) =∞\displaystyle = \rt{\infty}
Does f(x)=x2f(x) = x^2 for x≤1x \le 1 and 2x+12x + 1 for x>1x > 1 have a derivative at 11?
11
xx
yy
x2x^2
2x+12x+1
Text solution
The pieces don't meetSince 1≤11 \le 1, f(1)=1f(1) = 1 comes from x2x^2. But 2x+12x + 1 approaches 3\rt{3} as xx approaches 11 from the right, so there's a gap of 2\gp{2} between the pieces.
3−1=2\displaystyle \gp{3 - 1 = 2}
The gap ends up over hhFrom the right we still subtract f(1)=1f(1) = 1, so the 2\gp{2} in the numerator is that gap. At h=0.1h = 0.1 the quotient is 22\rt{22}, and at h=0.01h = 0.01 it's 202\rt{202}.
2h+2→∞\displaystyle \frac{\gp{2}}{h} + \rt{2} \to \rt{\infty}
No derivativeThe right-hand limit isn't a number, so f′(1)f'(1) does not exist, even though both pieces have slope 22.

The gap is what broke the derivative. In fact, a function with a derivative at aa has to be continuous at aa, and multiplying and dividing f(a+h)−f(a)\gp{f(a + h) - f(a)} by hh shows why.

f(a+h)−f(a)\displaystyle \gp{f(a+h) - f(a)} =f(a+h)−f(a)h⋅h  →  f′(a)⋅0\displaystyle = \frac{f(a+h)-f(a)}{h}\cdot h \;\to\; \dv{f'(a)}\cdot 0 =0\displaystyle = \gp{0}
f(a+h)−f(a)=f(a+h)−f(a)h⋅h→  f′(a)⋅0=0\displaystyle \begin{aligned}&\gp{f(a+h) - f(a)}\\ &\quad= \frac{f(a+h)-f(a)}{h}\cdot h\\ &\quad\to\; \dv{f'(a)}\cdot 0 = \gp{0}\end{aligned}
lim⁡h→0f(a+h)\displaystyle \lim_{h\to 0} f(a+h) =f(a)\displaystyle = f(a)

The fraction approaches the number f′(a)\dv{f'(a)} and hh approaches 00, so f(a+h)−f(a)\gp{f(a + h) - f(a)} approaches 0\gp{0}. That's the definition of continuity at aa. So at a jump, a hole or a point off the curve, there's no derivative. But continuity alone isn't enough: ∣x∣|x| and x3\sqrt[3]{x} are continuous at 00, and neither has a derivative there.

If differentiable
differentiable at a  ⟹  continuous at a\displaystyle \text{differentiable at } a \;\Longrightarrow\; \text{continuous at } a
If not continuous
not continuous at a  ⟹  not differentiable at a\displaystyle \text{not continuous at } a \;\Longrightarrow\; \text{not differentiable at } a
Continuity is not enough
continuous at a  ⟹̸  differentiable at a(∣x∣ at 0)\displaystyle \text{continuous at } a \;\not\Longrightarrow\; \text{differentiable at } a \qquad \big(|x| \text{ at } 0\big)

Knowing a derivative exists also tells us the function's limit. For example, if f(2)=7f(2) = 7 and f′(2)=3\dv{f'(2) = 3}, the limit of f(x)f(x) as xx approaches 22 must be the function value, 77.

f(2)\displaystyle f(2) =7,lim⁡x→2f(x)−7x−2\displaystyle = 7, \quad \lim_{x\to 2}\frac{f(x)-7}{x-2} =3  →  f′(2)=3  →  lim⁡x→2f(x)\displaystyle = 3 \;\to\; \dv{f'(2) = 3} \;\to\; \lim_{x\to 2} f(x) =f(2)\displaystyle = f(2) =7\displaystyle = 7
f(2)=7,lim⁡x→2f(x)−7x−2=3→  f′(2)=3→  lim⁡x→2f(x)=f(2)=7\displaystyle \begin{aligned}&f(2) = 7, \quad \lim_{x\to 2}\frac{f(x)-7}{x-2} = 3\\ &\to\; \dv{f'(2) = 3}\\ &\to\; \lim_{x\to 2} f(x) = f(2) = 7\end{aligned}

Here's the whole picture in the difference quotient. The denominator hh always approaches 00. When there's a gap, the numerator approaches a nonzero number and the quotient has no limit. When ff is continuous, substitution gives 00\frac00, and the limit still has to be worked out.

Nonzero gap
2+2hh:2+2h→2≠0\displaystyle \frac{\gp{2} + 2h}{h}:\quad \gp{2} + 2h \to \gp{2} \neq 0
Continuous cases
2h+h2h→2∣h∣h: −1 and 1h3h→∞\displaystyle \begin{aligned}&\frac{2h + h^2}{h} \to \dv{2}\\[8pt] &\frac{|h|}{h}:\ \lf{-1} \text{ and } \rt{1}\\[8pt] &\frac{\sqrt[3]{h}}{h} \to \infty\end{aligned}

At a local minimum like x=0x = 0 on y=x2y = x^2, the difference quotient approaches 0\dv{0}, so the tangent line is horizontal.

f(x)\displaystyle f(x) =x2\displaystyle = x^2
f(0+h)−f(0)h\displaystyle \frac{f(0+h)-f(0)}{h} =h2h\displaystyle = \frac{h^2}{h} =h\displaystyle = h
f′(0)\displaystyle \dv{f'(0)} =lim⁡h→0h\displaystyle = \lim_{h\to 0} h =0\displaystyle = \dv{0}

Why does the derivative fail to exist in each of these cases?

Four ways the derivative can fail to exist
5

Making a piecewise function differentiable

Earlier, we saw that matching the slope wasn't enough. 2x+12x + 1 has slope 2\rt{2}, but its gap of 2\gp{2} at x=1x = 1 made the difference quotient go to infinity. Now both the slope and the height of the line are unknown, and we want to choose aa and bb so that ff has a derivative at 11.

Find aa and bb so that f(x)=x2f(x) = x^2 for x≤1x \le 1 and ax+bax + b for x>1x > 1 is differentiable at 11
11
xx
yy
x2x^2
ax+bax+b
Text solution
Split the right-hand quotientFrom the left, the x2x^2 piece gives slope 2\lf{2} as before. From the right, we use ax+bax + b and f(1)=1f(1) = 1, and a+b−1\gp{a + b - 1} is the gap between the pieces at 11.
a(1+h)+b−1h\displaystyle \frac{a(1+h) + b - 1}{h} =a+b−1h+a\displaystyle = \frac{\gp{a + b - 1}}{h} + \rt{a}
Close the gapIf a+b−1\gp{a + b - 1} isn't 00, that fraction goes to ∞\infty or −∞-\infty. So the pieces must have the same value at 11.
a+b−1\displaystyle \gp{a + b - 1} =0\displaystyle = 0
Match the slopesNow the right-hand slope is just a\rt{a}, and any a≠2\rt{a} \ne \lf{2} makes a corner, like ∣x∣|x| at 00.
a\displaystyle \rt{a} =2\displaystyle = \lf{2}
b\displaystyle b =1−a\displaystyle = 1 - a =−1\displaystyle = -1
ax+b\displaystyle ax + b =2x−1\displaystyle = \dv{2x - 1}

The line y=2x−1\dv{y = 2x - 1} is 1+2(x−1)\dv{1 + 2(x - 1)}, the tangent line to x2x^2 at 11. So the line has to meet x2x^2 at x=1x = 1 with the same slope.

How should we position the line so the function is differentiable at x=1x = 1?

Making the function differentiable

Summary

What differentiability means
f′(a)\displaystyle f'(a) =lim⁡h→0f(a+h)−f(a)h\displaystyle = \lim_{h\to 0}\frac{f(a+h)-f(a)}{h}

ff is differentiable at aa when this limit exists as a finite number. If the formula changes at aa, as it does for ∣x∣|x| or a piecewise function, check h→0−\lf{h \to 0^-} and h→0+\rt{h \to 0^+} separately. The secant slopes from both sides must approach the same number.

Why a derivative can fail to exist
x2, 2x+1x^2,\ 2x+1
−1\htmlClass{lc-blue}{-1}
1\htmlClass{lc-pink}{1}
∣x∣|x|
x3\sqrt[3]{x}
x23x^{\frac{2}{3}}

A function has no derivative at aa when the secant slopes don't approach one finite number.

  • Where the function isn't continuous, there's no derivative.
  • At a corner, the slopes from the left and right approach different numbers, as with −1\lf{-1} and 1\rt{1} for ∣x∣|x| at 00.
  • At a vertical tangent, the slopes grow without bound with the same sign on both sides. For x3\sqrt[3]{x} at 00, they approach ∞\infty.
  • At a cusp, the slopes approach −∞\lf{-\infty} from one side and ∞\rt{\infty} from the other, as with x23x^{\frac{2}{3}} at 00.
Differentiability and continuity
differentiable at a  ⟹  continuous at a\displaystyle \text{differentiable at } a \;\Longrightarrow\; \text{continuous at } a
not continuous at a  ⟹  not differentiable at a\displaystyle \text{not continuous at } a \;\Longrightarrow\; \text{not differentiable at } a
continuous at a  ⟹̸  differentiable at a(∣x∣ at 0)\displaystyle \text{continuous at } a \;\not\Longrightarrow\; \text{differentiable at } a \qquad \big(|x| \text{ at } 0\big)
differentiable at a  ⟹  continuous at a\displaystyle \begin{aligned}&\text{differentiable at } a\\ &\;\Longrightarrow\; \text{continuous at } a\end{aligned}
not continuous at a  ⟹  not differentiable at a\displaystyle \begin{aligned}&\text{not continuous at } a\\ &\;\Longrightarrow\; \text{not differentiable at } a\end{aligned}
continuous at a  ⟹̸  differentiable at a(∣x∣ at 0)\displaystyle \begin{aligned}&\text{continuous at } a\\ &\;\not\Longrightarrow\; \text{differentiable at } a\\ &\big(|x| \text{ at } 0\big)\end{aligned}

If ff has a derivative at aa, it must be continuous at aa, so lim⁡x→af(x)=f(a)\lim_{x\to a} f(x) = f(a). If ff isn't continuous at aa, it can't have a derivative there. But being continuous at aa doesn't guarantee a derivative exists. ∣x∣|x| is continuous at 00, but has a corner there and no derivative.

Making a piecewise function differentiable
f(x)={x2,x≤1ax+b,x>1\displaystyle f(x) = \begin{cases} x^2, & x \le 1 \\ ax + b, & x > 1 \end{cases}
a+b=1,a\displaystyle \gp{a + b = 1}, \qquad \rt{a} =2\displaystyle = \lf{2}

Where a piecewise function switches formula, take f(a)f(a) from the piece that includes aa. For ff to be differentiable at aa, the two pieces must have the same value at aa, and their slopes at aa must be equal. Making the y-values match at 11 gives a+b=1\gp{a + b = 1}. Matching the slopes gives a=2\rt{a} = \lf{2}, so bb must be −1-1. If the pieces don't have the same value, the nonzero gap makes the difference quotient go to ∞\infty or −∞-\infty, even if the pieces have equal slopes.

6

Practice

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

1
The graph of ff is shown on [−4,5][-4, 5], with x=−3,−1,1,2,3x = -3, -1, 1, 2, 3 marked. At which of the marked xx-values is ff continuous but not differentiable?
−3-3
−1-1
11
22
33
xx
yy

Is ff continuous at x=2x = 2 and x=3x = 3?

What is the slope of the tangent line at x=1x = 1?

If you got C Check whether ff is continuous at x=2x = 2 and x=3x = 3. The question asks only for points where ff is continuous.

If you got D Check the tangent line at x=−1x = -1. A horizontal tangent line has slope 00, so the derivative exists there.

If you got A Check the tangent line at x=1x = 1. The curve is continuous there, but a vertical tangent line has no slope.

Check continuityAt x=2x = 2 there is a hole, and at x=3x = 3 there is a jump, so ff is not continuous at either point and cannot be differentiable there.
x\displaystyle x =2, 3:not continuous  ⟹  not differentiable\displaystyle = 2,\ 3:\quad \text{not continuous} \;\Longrightarrow\; \text{not differentiable}
Look for corners and vertical tangentsAt x=−3x = -3 the graph has a sharp corner, and at x=1x = 1 the tangent line is vertical, so ff is continuous at both points but f′f' does not exist.
x\displaystyle x =−3: corner\displaystyle = -3:\ \text{corner}
x\displaystyle x =1: vertical tangent\displaystyle = 1:\ \text{vertical tangent}
Check the horizontal tangentAt x=−1x = -1 the curve is smooth and has a horizontal tangent line, so f′(−1)=0\dv{f'(-1) = 0}.
x\displaystyle x =−1: horizontal tangent\displaystyle = -1:\ \text{horizontal tangent}
f′(−1)=0\displaystyle \dv{f'(-1) = 0}
That leaves x=−3x = -3 and x=1x = 1, which is option B.
continuous, not differentiable:x\displaystyle \text{continuous, not differentiable:}\quad x =−3, x\displaystyle = -3,\ x =1(B)\displaystyle = 1 \qquad (\text{B})
2
Let g(x)=∣x2−4∣g(x) = |x^2 - 4|. At which values of xx is gg not differentiable?

The formula for an absolute value can change where the expression inside is 00. Where is x2−4=0x^2 - 4 = 0?

For h<0h < 0 near 00, is (2+h)2−4=h(4+h)(2+h)^2 - 4 = h(4+h) positive or negative?

Find where the formula changesThe absolute value can only change formula where the expression inside is 00.
x2−4\displaystyle x^2 - 4 =0  →  x\displaystyle = 0 \;\to\; x =−2, x\displaystyle = -2,\ x =2\displaystyle = 2
Test the difference quotient at 2For hh near 00, 4+h4 + h is positive, so the sign of the quotient depends entirely on hh. The quotient approaches −4\lf{-4} from the left and 4\rt{4} from the right, so g′(2)g'(2) does not exist.
g(2+h)−g(2)h=∣4h+h2∣h=∣h∣ (4+h)h\displaystyle \begin{aligned}\frac{g(2+h)-g(2)}{h} &= \frac{|4h + h^2|}{h}\\ &= \frac{|h|\,(4+h)}{h}\end{aligned}
lim⁡h→0−∣h∣ (4+h)h\displaystyle \lf{\lim_{h\to 0^-}}\frac{|h|\,(4+h)}{h} =−4\displaystyle = \lf{-4}
lim⁡h→0+∣h∣ (4+h)h\displaystyle \rt{\lim_{h\to 0^+}}\frac{|h|\,(4+h)}{h} =4\displaystyle = \rt{4}
Test the difference quotient at -2For hh near 00, 4−h4 - h is positive, so the quotient approaches −4\lf{-4} from the left and 4\rt{4} from the right, and g′(−2)g'(-2) does not exist.
g(−2+h)−g(−2)h=∣h2−4h∣h=∣h∣ (4−h)h\displaystyle \begin{aligned}\frac{g(-2+h)-g(-2)}{h} &= \frac{|h^2 - 4h|}{h}\\ &= \frac{|h|\,(4-h)}{h}\end{aligned}
lim⁡h→0−∣h∣ (4−h)h\displaystyle \lf{\lim_{h\to 0^-}}\frac{|h|\,(4-h)}{h} =−4\displaystyle = \lf{-4}
lim⁡h→0+∣h∣ (4−h)h\displaystyle \rt{\lim_{h\to 0^+}}\frac{|h|\,(4-h)}{h} =4\displaystyle = \rt{4}
Check the horizontal tangent at 0Between −2-2 and 22, x2−4x^2 - 4 is negative, so g(x)=4−x2g(x) = 4 - x^2. The difference quotient at 00 simplifies to −h-h, which approaches 0\dv{0} from both sides, so g′(0)=0\dv{g'(0) = 0}.
−2<x<2: g(x)\displaystyle -2 < x < 2:\ g(x) =4−x2\displaystyle = 4 - x^2
g(0+h)−g(0)h\displaystyle \frac{g(0+h)-g(0)}{h} =−h2h\displaystyle = \frac{-h^2}{h} =−h→0\displaystyle = -h \to \dv{0}
3
Let f(x)=x∣x∣f(x) = x|x|. Find f′(0)f'(0), or enter DNE if it does not exist.

Set up the difference quotient at 00. What does h∣h∣h\frac{h|h|}{h} simplify to?

If you got DNE Work out the difference quotient before deciding. The factor of hh in the denominator cancels with the hh in front of ∣h∣|h|.

We plug f(0)=0f(0) = 0 and f(h)=h∣h∣f(h) = h|h| into the difference quotient, and the factor of hh cancels.
f(0+h)−f(0)h\displaystyle \frac{f(0+h)-f(0)}{h} =h∣h∣h\displaystyle = \frac{h|h|}{h} =∣h∣\displaystyle = |h|
As hh approaches 00 from either side, ∣h∣|h| approaches 00, so the limit exists and f′(0)=0\dv{f'(0) = 0}.
lim⁡h→0−∣h∣\displaystyle \lf{\lim_{h\to 0^-}}|h| =0\displaystyle = \dv{0} =lim⁡h→0+∣h∣,f′(0)=0\displaystyle = \rt{\lim_{h\to 0^+}}|h|, \qquad \dv{f'(0) = 0}
4
Let ff be a function and aa a number. Which of the following must be true?
I. If ff is differentiable at aa, then ff is continuous at aa.
II. If ff is continuous at aa, then ff is differentiable at aa.
III. If ff is not continuous at aa, then ff is not differentiable at aa.

For statement II, test f(x)=∣x∣f(x) = |x| at a=0a = 0. Is it continuous? Is it differentiable?

If statement I is true, can a function be differentiable at a point where it is not continuous?

If you got B Check statement II with f(x)=∣x∣f(x) = |x| at a=0a = 0. It is continuous at 00, but the slopes from the left and right do not match.

If you got A Check statement III. If ff were differentiable at aa, statement I says it would have to be continuous, so a function that is not continuous cannot be differentiable.

If ff is differentiable at aa, multiplying the difference quotient by hh shows that f(a+h)−f(a)\gp{f(a + h) - f(a)} approaches 0\gp{0}, so ff must be continuous at aa.
I:differentiable at a  ⟹  continuous at a\displaystyle \text{I:}\quad \text{differentiable at } a \;\Longrightarrow\; \text{continuous at } a
The function f(x)=∣x∣f(x) = |x| is continuous at 00, but its slopes from the left and right are −1\lf{-1} and 1\rt{1}, so statement II is false.
II:f(x)\displaystyle \text{II:}\quad f(x) =∣x∣, a\displaystyle = |x|,\ a =0\displaystyle = 0
lim⁡x→0∣x∣\displaystyle \lim_{x\to 0}|x| =0\displaystyle = 0 =f(0)\displaystyle = f(0)
lim⁡h→0−∣h∣h\displaystyle \lf{\lim_{h\to 0^-}}\frac{|h|}{h} =−1,lim⁡h→0+∣h∣h\displaystyle = \lf{-1}, \qquad \rt{\lim_{h\to 0^+}}\frac{|h|}{h} =1\displaystyle = \rt{1}
By statement I, a function that isn't continuous can't be differentiable, so statements I and III must be true.
III:not continuous at a  ⟹  not differentiable at a(C)\displaystyle \text{III:}\quad \text{not continuous at } a \;\Longrightarrow\; \text{not differentiable at } a \qquad (\text{C})
5
Let f(x)={x2,x<24x−3,x≥2f(x) = \begin{cases} x^2, & x < 2 \\ 4x - 3, & x \ge 2 \end{cases}. Find f′(2)f'(2), or enter DNE if it does not exist.

What is f(2)f(2)?

Does the limit of x2x^2 as x→2−x \to 2^- equal f(2)f(2)?

Check continuity at 2The right piece gives f(2)=5f(2) = 5, but the left piece approaches 4\lf{4}, so ff is not continuous at 22 and cannot be differentiable there.
f(2)\displaystyle f(2) =4⋅2−3\displaystyle = 4\cdot 2 - 3 =5,lim⁡x→2−x2\displaystyle = 5, \qquad \lf{\lim_{x\to 2^-}} x^2 =4\displaystyle = \lf{4}
Test the difference quotient from each sideFrom the right, the difference quotient simplifies to 4\rt{4}. But from the left, (2+h)2−5\lf{(2+h)^2} - 5 approaches −1\gp{-1} instead of 00, so −1h\frac{\gp{-1}}{h} goes to ∞\lf{\infty}.
h>0: 4(2+h)−3−5h\displaystyle \rt{h > 0}:\ \frac{4(2+h) - 3 - 5}{h} =4hh\displaystyle = \frac{4h}{h} =4\displaystyle = \rt{4}
h<0: (2+h)2−5h=−1+4h+h2h=−1h+4+h\displaystyle \begin{aligned}\lf{h < 0}:\ \frac{(2+h)^2 - 5}{h} &= \frac{\gp{-1} + 4h + h^2}{h}\\ &= \frac{\gp{-1}}{h} + \lf{4 + h}\end{aligned}
lim⁡h→0−(−1h+4+h)\displaystyle \lf{\lim_{h\to 0^-}}\Big(\frac{\gp{-1}}{h} + \lf{4 + h}\Big) =∞\displaystyle = \lf{\infty}
6
Let f(x)={bx+3,x<−1ax2+1,x≥−1f(x) = \begin{cases} bx + 3, & x < -1 \\ ax^2 + 1, & x \ge -1 \end{cases}. Find aa and bb so that ff is differentiable at x=−1x = -1.

What is f(−1)f(-1) in terms of aa?

What does (−1+h)2−1(-1+h)^2 - 1 expand to?

Find the value at -1Because −1≥−1-1 \ge -1, f(−1)f(-1) comes from ax2+1ax^2 + 1.
f(−1)\displaystyle f(-1) =a(−1)2+1\displaystyle = a(-1)^2 + 1 =a+1\displaystyle = a + 1
Find the slope from the rightExpanding (−1+h)2(-1+h)^2 gives 1−2h+h21 - 2h + h^2, so the difference quotient from the right simplifies to a(h−2)\rt{a(h - 2)}, which approaches −2a\rt{-2a}.
h>0: a(−1+h)2+1−(a+1)h=a(h2−2h)h=a(h−2)→−2a\displaystyle \begin{aligned}&\rt{h > 0}:\ \frac{a(-1+h)^2 + 1 - (a + 1)}{h}\\ &\quad= \frac{a(h^2 - 2h)}{h} = \rt{a(h - 2)} \to \rt{-2a}\end{aligned}
Set up the quotient from the leftFor h<0\lf{h < 0}, the difference quotient uses bx+3bx + 3 and subtracts f(−1)=a+1f(-1) = a + 1.
h<0: b(−1+h)+3−(a+1)h\displaystyle \lf{h < 0}:\ \frac{b(-1+h) + 3 - (a + 1)}{h} =2−a−bh+b\displaystyle = \frac{\gp{2 - a - b}}{h} + \lf{b}
Solve for a and bFor the left-hand limit to exist, 2−a−b\gp{2 - a - b} must be 00, and matching the two slopes gives b=−2a\lf{b} = \rt{-2a}.
2−a−b=0,b=−2a→  a=−2, b=4\displaystyle \begin{aligned}&\gp{2 - a - b} = 0, \qquad \lf{b} = \rt{-2a}\\ &\to\; a = -2,\ b = 4\end{aligned}
With a=−2a = -2 and b=4b = 4, both pieces equal −1-1 at x=−1x = -1, and both have slope 4\dv{4}.
x=−1:4x+3=−1−2x2+1=−1\displaystyle \begin{aligned}x = -1:\quad &4x + 3 = -1\\ &-2x^2 + 1 = -1\end{aligned}
7
Let f(x)=x2sin⁡1xf(x) = x^2\sin\dfrac{1}{x} for x≠0x \neq 0, and f(0)=0f(0) = 0. Find f′(0)f'(0), or enter DNE if it does not exist. Challenge

Write out the difference quotient f(0+h)−f(0)h\frac{f(0+h)-f(0)}{h} using f(0)=0f(0) = 0.

Since ∣sin⁡(1/h)∣≤1|\sin(1/h)| \le 1, what can you say about ∣hsin⁡(1/h)∣|h\sin(1/h)|?

If you got DNE Check the difference quotient after canceling hh. It simplifies to hsin⁡(1/h)h\sin(1/h), not sin⁡(1/h)\sin(1/h).

Set up the difference quotientWe plug in f(0)=0f(0) = 0 and cancel one factor of hh.
f(0+h)−f(0)h=h2sin⁡(1/h)h=hsin⁡1h\displaystyle \begin{aligned}\frac{f(0+h)-f(0)}{h} &= \frac{h^2\sin(1/h)}{h}\\ &= h\sin\frac{1}{h}\end{aligned}
Apply the squeeze theoremBecause sine is between −1-1 and 11, we squeeze hsin⁡(1/h)h\sin(1/h) between −∣h∣-|h| and ∣h∣|h|, which both approach 00.
−∣h∣\displaystyle -|h| ≤hsin⁡1h\displaystyle \le h\sin\frac{1}{h} ≤∣h∣\displaystyle \le |h|
lim⁡h→0(−∣h∣)=0=lim⁡h→0∣h∣→  f′(0)=0\displaystyle \begin{aligned}&\lim_{h\to 0}\big(-|h|\big) = 0 = \lim_{h\to 0}|h|\\ &\to\; \dv{f'(0) = 0}\end{aligned}
Without the extra factor of hh, as in xsin⁡(1/x)x\sin(1/x), the difference quotient would be sin⁡(1/h)\sin(1/h), which has no limit at 00.
xsin⁡1x:hsin⁡(1/h)h\displaystyle x\sin\frac{1}{x}:\quad \frac{h\sin(1/h)}{h} =sin⁡1h, no limit as h→0\displaystyle = \sin\frac{1}{h}, \ \text{no limit as } h \to 0