Tutorial 5 Sol
Tutorial 5 Sol
DEPARTMENT OF MATHEMATICS
f (x) − f (0)
1. We need to compute lim . Firstly, we have
x→0 x−0
f (x) − f (0) sin x4 − 0 1 sin
x
1 1
lim− = lim− = lim− ( ⋅ x 4 ) = ⋅ 1 = .
x→0 x x→0 x x→0 4 4
4 4
Secondly, we have
√
f (x) − f (0) x+4−2−0 1 1
lim+ = lim+ = lim+ √ = .
x→0 x x→0 x x→0 x+4+2 4
f (x) − f (0) 1
Therefore, we have f ′ (0) = lim = , and f is differentiable at 0.
x→0 x−0 4
2. (a) It is clear that f is continuous at every point x ≠ 1 since polynomials and radicals are
continuous. For x = 1, we need lim− f (x) = lim+ f (x) = f (1). This holds if and only if
x→1 x→1
√
lim− (x2 + ax + b) = lim+ x + 8 = 1 + a + b.
x→1 x→1
f (x) − f (1)
(b) Since f is differentiable at 1, the limit lim exists. Firstly, we have
x→1 x−1
f (x) − f (1) (x2 + ax + b) − (1 + a + b) (x − 1)(x + 1 + a)
lim− = lim− = lim−
x→1 x−1 x→1 x−1 x→1 x−1
= lim− (x + 1 + a) = 2 + a.
x→1
Secondly, we have
√ √
f (x) − f (1) x + 8 − (1 + a + b) x+8−3 1 1
lim = lim+ = lim+ = lim+ √ = .
x→1+ x−1 x→1 x−1 x→1 x−1 x→1 x+8+3 6
1 11 23
Therefore, the limit exists if and only if 2 + a = , i.e. a = − and b = 2 − a = .
6 6 6
1 2
3. When we derive the formula f ′ (x) = x− 3 using differentiation rules, we are assuming x ≠ 0.
3
Therefore, in general it does not indicate the existence or the value of f ′ (0).
This limit does not exist (in fact it is ∞). So f is not differentiable at 0.
1
4. (a) Obviously, f is differentiable at every nonzero point. It remains to check whether f ′ (0)
exists. By definition, we have to compute
(b) It suffices to consider k ⩾ 2 since otherwise f ′ does not exist by part (a). For x ≠ 0, we
have
d 1 1 1
f ′ (x) = (xk sin ) = kxk−1 sin − xk−2 cos
dx x x x
by the product rule and the chain rule. Recall that f ′ (0) = 0 by part (a). Therefore, we
compute
f ′ (x) − f ′ (0) 1 1
f ′′ (0) = lim = lim (kxk−2 sin − xk−3 cos ).
x→0 x x→0 x x
1 1 1
When k = 2, the limit is lim (2 sin − cos ), which does not exist as the function
x→0 x x x
1
is unbounded for some x close to 0 (for example, when x = where n is a positive
2nπ
1 1 1
integer, we have 2 sin − cos = −2nπ).
x x x
1 1
When k = 3, the limit is lim (3x sin − cos ). The first term tends to 0 by the
x→0 x x
sandwich theorem as above, while the second term has no limit. Therefore, the limit
does not exist.
1 1
When k ⩾ 4, both xk−2 and xk−3 tend to 0. Since k sin and cos are bounded, we
x x
1 1
can show that both kxk−2 sin and xk−3 cos tend to 0 by the sandwich theorem as
x x
above. Therefore, the limit is 0 and f ′′ (0) = 0.
5. (a) Note that g ′ (x) = f ′ (x) cos f (x) is continuous. Also, we have g ′ (0) = f ′ (0) cos f (0) = 3.
Thus, we can find a small open interval I containing 0 such that g ′ (x) ≠ 0 for all x ∈ I
(because g ′ (x) is close to 3 when x is close to 0). By the inverse function theorem, g has
an inverse on I.
2
1 1
(b) Note that g(0) = 1 + sin f (0) = 1. By the inverse function theorem, (g −1 )′ (1) = = .
g ′ (0) 3
Additional problems:
7. (a) By definition,
f (x) − f (2) x2 − 4
f ′ (2) = lim = lim = lim (x + 2) = 4.
x→2 x−2 x→2 x − 2 x→2
(b) By definition,
3
f (x) − f (1) −3
′ x −3
f (1) = lim = lim = lim = −3.
x→1 x−1 x→1 x − 1 x→1 x
sin y
Remark. Since we want to use the fact lim = 1, we manually change sin x to
y→0 y
− sin (x − π) so that the input x − π of the sine function does approach 0.
8. Note that 3
⎧
⎪ (−x − 3) 2
⎪
⎪
⎪ if x < −3,
⎪
⎪
⎪ 4−x
⎪
⎪
⎪
⎪ (x + 3) 32
⎪
f (x) = ⎨ if −3 ⩽ x < 4,
⎪
⎪
⎪ 4−x
⎪
⎪
⎪ 3
⎪
⎪
⎪ (x + 3) 2
⎪
⎪
⎪ if x > 4.
⎩ x−4
For x < −3, we have
33 1 3 1
d (−x − 3) 2 − 2 (4 − x)(−x − 3) 2 − (−x − 3) 2 (−1) (x − 18)(−x − 3) 2
f ′ (x) = = = .
dx 4 − x (4 − x)2 2(4 − x)2
For −3 < x < 4, we have
3 3 1 3 1
d (x + 3) 2 (4 − x)(x + 3) 2 − (x + 3) 2 (−1) (18 − x)(x + 3) 2
f ′ (x) = = 2
= .
dx 4 − x (4 − x)2 2(4 − x)2
3
For x > 4, we have
3 1
′ d (x + 3) 2 (18 − x)(x + 3) 2
f (x) = =− .
dx x − 4 2(4 − x)2
For x = −3, we first note that
RRR 3 R 1
f (x) − f (−3) R 1 ⎛ ∣x + 3∣ 2 ⎞RRR ∣x + 3∣ 2
lim ∣ ∣ = lim RRRR ⋅ − 0 RRRR = lim = 0.
x→−3 x+3 x→−3 RR x + 3 ⎝ ∣x − 4∣
RR ⎠RRR x→−3 ∣x − 4∣
R
f (x) − f (−3)
By an example in class (classwork 3.1), we have f ′ (−3) = lim = 0. (Alterna-
x+3x→−3
tively, we can study the left-hand limit and the right-hand limit separately.)
Remark. Note that f is not defined at x = 4, so we do not need to consider the case x = 4.
(One may also check that the left-hand limit is 0 to confirm that f is continuous at 0. But
this is not necessary if we only wish to find out all possible candidates of c.) It remains to
check whether f is differentiable at 2 when c = 0. Firstly, we have
Secondly, we have
f (x) − f (2)
This shows lim = 1. Therefore, f is differentiable at 2 when c = 0.
x→2 x−2
Remark. The only elementary way to compute some limits involving trigonometric functions
sin y
is to use the fact lim = 1. That’s why we change tan to sin and cos in order to take out
y→0 y
such a factor from the limit. Of course a simpler method is to use L’Hôpital’s rule introduced
in subsection 4.3.
In the solution, we first use proposition 4.2 to determine the only possible choice of c. Although
this is not necessary (say, we can directly use the first principle to check whether f ′ (2) exists
for each c ∈ R), it is more convenient to solve this question in this way.
10. (a) It is given that f (−x) = −f (x) for all x. Differentiating both sides with respect to x, we
obtain −f ′ (−x) = −f ′ (x), i.e. f ′ (−x) = f ′ (x). This means f ′ is an even function.
(b) It is given that f (−x) = f (x) for all x. Differentiating both sides with respect to x, we
obtain −f ′ (−x) = f ′ (x). This means f ′ is an odd function.
4
11. By the inverse function theorem, we have
d(ln x) 1 1 1
∣ = d(ex )
= a
= .
dx x=ea ∣ e x
dx x=a
12. We use implicit differentiation. Differentiating both sides with respect to x, we obtain