←
Mathematics — Grade 12, Part I
CONTINUITY AND DIFFERENTIABILITY · 5 / 6
⌕
Chapter 5 of 6

CONTINUITY AND DIFFERENTIABILITY

22 sections · 7,064 words

Chapter 5: Continuity and Differentiability

42 words · 1 min read

Chapter 5

Continuity and Differentiability

Big idea: a graph that can be drawn without lifting the pen is continuous. A graph that is also smooth, with no sharp corner, can be given a slope at every point. That slope is the derivative.

5.1 Introduction

246 words · 1 min read

Think about the charge level of a phone battery during the day. It never jumps from 80% to 40% in one instant. It slides down through every value in between. We say the battery level is a continuous function of time.

Now think about the price of posting a parcel. A parcel of 499 g may cost one price, and a parcel of 501 g may cost a higher price, with nothing in between. The price jumps. We say the price is not continuous at 500 g.

A quick test for a graph: can you draw it without lifting your pen? If yes, it is continuous. If you must lift the pen, there is a break.

A continuous and smooth curve. The pen never leaves the paper, and the curve has no sharp corner.

Continuity is about no breaks. Differentiability is about no sharp corners. A function that is differentiable at a point has a clear tangent line there, and the slope of that tangent is the derivative.

In this chapter you will learn: how to test continuity at a point; how to find a missing constant so that a function is continuous; the meaning of the derivative; the chain rule; derivatives of implicit, inverse trigonometric, exponential, logarithmic and parametric functions; logarithmic differentiation; and the second derivative.

5.2 Continuity

871 words · 4 min read

The pen test is good for pictures, but we also need a test that works from a formula. A function ff is continuous at a point x=cx = c when three things are true:

  1. f(c)f(c) exists (the function has a value at cc);
  2. the limit lim⁡x→cf(x)\lim_{x \to c} f(x) exists. This means the left-hand limit (coming from smaller xx) and the right-hand limit (coming from larger xx) are equal;
  3. that limit is equal to f(c)f(c).

In one line: left-hand limit = right-hand limit = f(c)f(c). If any one of the three fails, the function is discontinuous at cc.

In simple words: as xx gets close to cc from either side, the graph must head to the same height, and that height must be the point that is actually drawn at cc.

Is f(x)=3x2−2x+1f(x) = 3 x^{2} - 2 x + 1 continuous at x=2x = 2?

Solution. The value is f(2)=3(2)2−2(2)+1=9f(2) = 3(2)^2 - 2(2) + 1 = 9. When xx approaches 2 from the left, f(x)f(x) approaches 9. When xx approaches 2 from the right, f(x)f(x) also approaches 9. So left limit = right limit = f(2)=9f(2) = 9, and ff is continuous at 2. (The same works at every point: a polynomial is continuous everywhere.)

Let g(x)=x2−9x−3g(x) = \frac{x^{2} - 9}{x - 3} for x≠3x \neq 3. At x=3x = 3 the formula gives 00\frac{0}{0}, so g(3)g(3) does not exist. But for every x≠3x \neq 3 we can cancel: x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3), so g(x)=x+3g(x) = x + 3. As xx approaches 3, g(x)g(x) approaches 66.

The graph of g(x) = (x² − 9)/(x − 3). The open circle at (3, 6) is a hole: the function has no value at x = 3.

The limit exists (it is 6), but g(3)g(3) does not exist, so condition 1 fails and gg is discontinuous at 3. This is called a removable discontinuity: if we decide that g(3)=6g(3) = 6, the hole is filled and the function becomes continuous.

Define hh by h(x)={x+2x<12x+3x≥1h(x) = \begin{cases} x + 2 & x < 1 \\ 2 x + 3 & x \ge 1 \end{cases} At x=1x = 1: the value is h(1)=5h(1) = 5. From the left, h(x)=x+2h(x) = x + 2 approaches 3. From the right, h(x)=2x+3h(x) = 2x + 3 approaches 5. The two limits are different (3 ≠ 5), so no single limit exists and hh is discontinuous at 1.

A jump discontinuity: the left piece ends near height 3, but the function starts again at height 5.
Common mistake: "the limit exists, so the function is continuous." Not so. The limit must also be equal to the value f(c)f(c). In Example 2 the limit exists but there is no value.

For which value of aa is f(x)={ax+2x≤23x2−4x>2f(x) = \begin{cases} a x + 2 & x \le 2 \\ 3 x^{2} - 4 & x > 2 \end{cases} continuous at x=2x = 2?

Solution. From the right, 3x2−43x^2 - 4 approaches 3(2)2−4=83(2)^2 - 4 = 8. From the left (and at x=2x = 2), ax+2ax + 2 equals 2a+22a + 2. For continuity these must be equal: 2a+2=82a + 2 = 8, so 2a=62a = 6 and a=3a = 3. Check: with a=3a = 3 the left limit is 3(2)+2=83(2) + 2 = 8, the right limit is 8 and f(2)=8f(2) = 8.

A function is continuous on an interval if it is continuous at every point of the interval. We usually do not check each point. We use these known facts:

  • Polynomials are continuous everywhere.
  • Rational functions (a polynomial divided by a polynomial) are continuous everywhere except where the denominator is 0.
  • ∣x∣|x|, sin⁡x\sin x, cos⁡x\cos x and exe^x are continuous everywhere. ln⁡x\ln x is continuous for x>0x > 0.
  • tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} is continuous except where cos⁡x=0\cos x = 0.

Example 5. Is ∣x∣|x| continuous at 0? The value is ∣0∣=0|0| = 0. From either side the limit is 00: lim⁡x→0−∣x∣=0\lim_{x \to 0^-} |x| = 0 and lim⁡x→0+∣x∣=0\lim_{x \to 0^+} |x| = 0. All three agree, so ∣x∣|x| is continuous at 0. It has a corner there, but no break.

Example 6. Let f(x)=sin⁡xxf(x) = \frac{\sin x}{x} for x≠0x \neq 0. We can show that lim⁡x→0f(x)=1\lim_{x \to 0} f(x) = 1 (a famous limit). So to make ff continuous at 0 we must define f(0)=1f(0) = 1.

  1. Find the left and right limits of x2+1x^{2} + 1 at x=3x = 3. Is it continuous at 3?
  2. What value should be given to x2−25x−5\frac{x^2 - 25}{x - 5} at x=5x = 5 to make it continuous there?

Answers

  1. Both limits are 10 and f(3)=10f(3) = 10. Yes, it is continuous.
  2. The limit is 10, so define the value at 5 as 10.

5.2.1 Algebra of continuous functions

412 words · 2 min read

Big functions are built from small ones. The next rules tell us that if the small parts are continuous, so is the big function.

If ff and gg are continuous at cc, then these are also continuous at cc:

  • f+gf + g and f−gf - g;
  • k⋅fk \cdot f for any number kk;
  • f⋅gf \cdot g;
  • fg\frac{f}{g}, provided g(c)≠0g(c) \neq 0;
  • the composite f(g(x))f(g(x)), provided gg is continuous at cc and ff is continuous at g(c)g(c) ("a continuous function of a continuous function").

These rules are true because limits behave well: the limit of a sum is the sum of the limits, the limit of a product is the product of the limits, and so on.

Is f(x)=(x2+1)(2x−3)f(x) = \left(x^{2} + 1\right) \left(2 x - 3\right) continuous at x=2x = 2? Both x2+1x^2 + 1 and 2x−32x - 3 are polynomials, so both are continuous. Their product is continuous. Check by value: f(2)=(4+1)(4−3)=5f(2) = (4 + 1)(4 - 3) = 5, and the limit as x→2x \to 2 is also 5.

Is g(x)=x+4x−1g(x) = \frac{x + 4}{x - 1} continuous at x=3x = 3? The denominator is 3−1=23 - 1 = 2, which is not 0, so yes. Its value there is 72=3.5\frac{7}{2} = 3.5. At x=1x = 1 the denominator is 0, so gg is not defined and not continuous at 1.

Let f(x)=x+1x2−5x+6f(x) = \frac{x + 1}{x^2 - 5x + 6}. The top is a polynomial, so the only trouble is where the bottom is 0. Since x2−5x+6=(x−2)(x−3)x^2 - 5x + 6 = (x - 2)(x - 3), this happens at x=2x = 2 and x=3x = 3 (check: the bottom equals 0 and 0 there). So ff is continuous everywhere except at x=2x = 2 and x=3x = 3.

Is sin⁡(x2+1)\sin(x^2 + 1) continuous for all xx? The inside, x2+1x^2 + 1, is a polynomial, so it is continuous. The outside, sin⁡\sin, is continuous. A continuous function of a continuous function is continuous, so yes, for every real xx.

Common mistake: for a quotient, checking only the top. You must always check where the bottom is 0.

  1. Where is 3x2−16\frac{3}{x^2 - 16} discontinuous?
  2. Is x2sin⁡xx^2 \sin x continuous for all real xx?

Answers

  1. At x=4x = 4 and x=−4x = -4 (the bottom is 0 there).
  2. Yes. It is a product of two continuous functions, x2x^2 and sin⁡x\sin x.

EXERCISE 5.1

379 words · 2 min read
  1. Show that f(x)=2x2−3x+7f(x) = 2 x^{2} - 3 x + 7 is continuous at x=−1x = -1.
  2. The function f(x)=x2−16x−4f(x) = \frac{x^{2} - 16}{x - 4} is defined for x≠4x \neq 4. What value should be given to f(4)f(4) so that ff is continuous at 4?
  3. Is f(x)={3x−1x<25x=2x2+1x>2f(x) = \begin{cases} 3 x - 1 & x < 2 \\ 5 & x = 2 \\ x^{2} + 1 & x > 2 \end{cases} continuous at x=2x = 2?
  4. Is f(x)={x+3x≤15x−3x>1f(x) = \begin{cases} x + 3 & x \le 1 \\ 5 x - 3 & x > 1 \end{cases} continuous at x=1x = 1?
  5. Find the value of kk for which f(x)={kx2x≤23x>2f(x) = \begin{cases} k x^{2} & x \le 2 \\ 3 & x > 2 \end{cases} is continuous at x=2x = 2.
  6. Find aa and bb so that f(x)={4x≤1ax+b1<x<310x≥3f(x) = \begin{cases} 4 & x \le 1 \\ a x + b & 1 < x < 3 \\ 10 & x \ge 3 \end{cases} is continuous everywhere.
  7. Find all points where f(x)=1x2−9f(x) = \frac{1}{x^2 - 9} is discontinuous.
  8. Is f(x)=∣x−2∣f(x) = |x - 2| continuous at x=2x = 2?
  9. Let f(x)=x∣x∣f(x) = \frac{x}{|x|} for x≠0x \neq 0. Find the left and right limits at 0. Can f(0)f(0) be defined so that ff is continuous at 0?
  10. Where is f(x)=x+2x2−5x+6f(x) = \frac{x + 2}{x^2 - 5x + 6} discontinuous?

Answers

  1. f(−1)=12f(-1) = 12, and the limit from both sides is 12. They agree, so ff is continuous at −1-1.
  2. f(4)=8f(4) = 8 (cancel x−4x - 4 to get x+4x + 4, which tends to 8).
  3. Left limit 5, right limit 5, f(2)=5f(2) = 5. All equal, so yes, it is continuous at 2.
  4. Left limit 4, right limit 2. They are different, so ff is not continuous at 1 (a jump of 2).
  5. 4k=34k = 3, so k=34k = \frac{3}{4}.
  6. Continuity at 1 gives a+b=4a + b = 4. Continuity at 3 gives 3a+b=103a + b = 10. Subtracting, 2a=62a = 6, so a=3a = 3 and b=1b = 1.
  7. At x=3x = 3 and x=−3x = -3, where the bottom is 0.
  8. Yes. Both one-sided limits are 0 and 0, and f(2)=0f(2) = 0.
  9. The left limit is -1 and the right limit is 1. They differ, so no value of f(0)f(0) can make ff continuous.
  10. At x=2x = 2 and x=3x = 3, where x2−5x+6=(x−2)(x−3)x^2 - 5x + 6 = (x - 2)(x - 3) is 0.

5.3. Differentiability

635 words · 3 min read

Take the curve y=x2y = x^2 and the point (1,1)(1, 1) on it. Choose a second point a small step hh to the right: (1+h,(1+h)2)(1 + h, (1 + h)^2). The straight line through the two points is a secant. Its slope is (1+h)2−1h\frac{(1 + h)^2 - 1}{h}. For h=1,0.5,0.25h = 1, 0.5, 0.25 the slopes are 3, 2.5, 2.25. As hh shrinks, the second point slides toward the first, and the slopes settle down to 2. The line through (1,1)(1, 1) with slope 2 is the tangent line.

Secant lines (slopes 3, 2.5, 2.25) turn into the tangent line (slope 2) as the second point moves toward (1, 1).

The number that the secant slopes settle down to is the derivative of ff at cc. In symbols:

f′(c)=lim⁡h→0f(c+h)−f(c)hf'(c) = \lim_{h \to 0} \frac{f(c + h) - f(c)}{h}

If this limit exists, we say ff is differentiable at cc. The limit from the right (h>0h > 0) is the right-hand derivative; the limit from the left (h<0h < 0) is the left-hand derivative. The derivative exists exactly when both are equal.

Example 1. For f(x)=x2f(x) = x^2 at c=3c = 3: (3+h)2−9h=6h+h2h=6+h\frac{(3 + h)^2 - 9}{h} = \frac{6h + h^2}{h} = 6 + h, which approaches 6 as h→0h \to 0. So f′(3)=6f'(3) = 6.

Example 2. For f(x)=1xf(x) = \frac{1}{x} at c=2c = 2: 12+h−12h\frac{\frac{1}{2 + h} - \frac{1}{2}}{h} approaches −0.25-0.25, which is −14-\frac{1}{4}. So f′(2)=−14f'(2) = -\frac{1}{4}.

Look at f(x)=∣x∣f(x) = |x| at 0. The step quotient is ∣h∣−0h=∣h∣h\frac{|h| - 0}{h} = \frac{|h|}{h}. For h>0h > 0 it equals 1, so the right-hand derivative is 1. For h<0h < 0 it equals −1-1, so the left-hand derivative is −1-1. They differ, so ∣x∣|x| is not differentiable at 0.

The graph of |x| has a sharp corner at the origin. The slopes on the two sides are −1 and 1, so there is no single tangent line.

Theorem. If ff is differentiable at cc, then ff is continuous at cc.

Reason in plain words: a tangent line can only exist if the curve has no break there. The reverse is false: ∣x∣|x| is continuous at 0 but not differentiable at 0.

Example 3 (smooth join). Let f(x)=x2f(x) = x^2 for x≤1x \le 1 and f(x)=2x−1f(x) = 2x - 1 for x>1x > 1. Both pieces give 1 at x=1x = 1, so ff is continuous. Left-hand derivative: 2. Right-hand derivative: 2. They agree, so ff is differentiable at 1 and f′(1)=2f'(1) = 2.

Example 4 (corner). Let g(x)=x2g(x) = x^2 for x≤1x \le 1 and g(x)=3x−2g(x) = 3x - 2 for x>1x > 1. Both pieces give 1 at x=1x = 1, so gg is continuous. But the left-hand derivative is 2 and the right-hand derivative is 3. They differ, so gg is not differentiable at 1.

Common mistake: thinking "continuous" is enough for a derivative. A graph can be unbroken and still have a sharp corner.

  1. Use the definition to find f′(1)f'(1) for f(x)=x2+3xf(x) = x^2 + 3x.
  2. Can a function be differentiable at a point where it is not continuous?

Answers

  1. (1+h)2+3(1+h)−4h=5+h\frac{(1+h)^2 + 3(1+h) - 4}{h} = 5 + h, which approaches 5. So f′(1)=5f'(1) = 5.
  2. No. Differentiable at a point always means continuous there.

5.3.1 Derivatives of composite functions

354 words · 2 min read

Here are the basic derivatives and rules you will use all through this chapter.

FunctionDerivative
x5x^55x45x^4
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 x (which is 1cos⁡2x\frac{1}{\cos^2 x})

Rules for combining functions. If uu and vv are differentiable functions of xx:

  • Sum: (u+v)′=u′+v′(u + v)' = u' + v'
  • Product: (uv)′=u′v+uv′(uv)' = u'v + uv'
  • Quotient: (uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}, where v≠0v \neq 0
  • Chain rule: if y=f(u)y = f(u) and u=g(x)u = g(x), then dydx=dydu⋅dudx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}
In simple words (chain rule): differentiate the outside function, leave the inside alone, then multiply by the derivative of the inside.

y=(3x2+1)4y = \left(3 x^{2} + 1\right)^{4}. Outside: something to the power 4, derivative 4(⋅)34(\cdot)^3. Inside: 3x2+13x^2 + 1, derivative 6x6x. So dydx=4(3x2+1)3⋅6x=24x(3x2+1)3\frac{dy}{dx} = 4(3x^2 + 1)^3 \cdot 6x = 24 x \left(3 x^{2} + 1\right)^{3}

y=sin⁡(5x2)y = \sin\left(5 x^{2}\right). Outside: sin⁡\sin, derivative cos⁡\cos. Inside: 5x25x^2, derivative 10x10x. So dydx=10xcos⁡(5x2)\frac{dy}{dx} = 10 x \cos\left(5 x^{2}\right)

y=x2+4y = \sqrt{x^{2} + 4}. Outside: square root, derivative 12⋅\frac{1}{2\sqrt{\cdot}}. Inside: x2+4x^2 + 4, derivative 2x2x. So dydx=2x2x2+4=xx2+4\frac{dy}{dx} = \frac{2x}{2\sqrt{x^2 + 4}} = \frac{x}{\sqrt{x^{2} + 4}}

y=cos⁡3(2x)y = \cos^{3}\left(2 x\right) means (cos⁡2x)3(\cos 2x)^3. Outside: cube, derivative 3(⋅)23(\cdot)^2. Middle: cos⁡\cos, derivative −sin⁡-\sin. Inside: 2x2x, derivative 2. Multiply all three: dydx=3cos⁡22x⋅(−sin⁡2x)⋅2=−6cos⁡2(2x)sin⁡(2x)\frac{dy}{dx} = 3\cos^2 2x \cdot (-\sin 2x) \cdot 2 = -6 \cos^{2}\left(2 x\right) \sin\left(2 x\right)

Product: y=x2sin⁡xy = x^{2} \sin x. Then y′=(2x)sin⁡x+x2cos⁡x=2xsin⁡x+x2cos⁡xy' = (2x)\sin x + x^2 \cos x = 2 x \sin x + x^{2} \cos x.

Quotient: y=xx2+1y = \frac{x}{x^{2} + 1}. Then y′=1⋅(x2+1)−x⋅2x(x2+1)2=1−x2(x2+1)2y' = \frac{1 \cdot (x^2 + 1) - x \cdot 2x}{(x^2 + 1)^2} = \frac{1 - x^{2}}{\left(x^{2} + 1\right)^{2}}.

Common mistake: forgetting the inside derivative. The derivative of sin⁡(5x2)\sin(5x^2) is not cos⁡(5x2)\cos(5x^2); you must multiply by 10x10x.

EXERCISE 5.2

137 words · 1 min read
  1. Differentiate (4x−5)3\left(4 x - 5\right)^{3} with respect to xx.
  2. Differentiate cos⁡(3x+1)\cos\left(3 x + 1\right) with respect to xx.
  3. Differentiate 1+x2\sqrt{1 + x^{2}} with respect to xx.
  4. Differentiate sin⁡3x\sin^{3} x with respect to xx.
  5. Differentiate 2x+1x2+3\frac{2 x + 1}{x^{2} + 3} with respect to xx.
  6. Differentiate x3cos⁡xx^{3} \cos x with respect to xx.
  7. Differentiate sin⁡(cos⁡x)\sin\left(\cos x\right) with respect to xx.
  8. Differentiate tan⁡(4x)\tan\left(4 x\right) with respect to xx.

Answers

  1. 12(4x−5)212 \left(4 x - 5\right)^{2}
  2. −3sin⁡(3x+1)-3 \sin\left(3 x + 1\right)
  3. x1+x2\frac{x}{\sqrt{1 + x^{2}}}
  4. 3sin⁡2xcos⁡x3 \sin^{2} x \cos x
  5. 2(x2+3)−(2x+1)⋅2x(x2+3)2\frac{2 \left(x^{2} + 3\right) - \left(2 x + 1\right) \cdot 2 x}{\left(x^{2} + 3\right)^{2}}
  6. 3x2cos⁡x−x3sin⁡x3 x^{2} \cos x - x^{3} \sin x
  7. −sin⁡xcos⁡(cos⁡x)-\sin x \cos\left(\cos x\right)
  8. 4cos⁡2(4x)\frac{4}{\cos^{2}\left(4 x\right)}

5.3.2 Derivatives of implicit functions

404 words · 2 min read

Often xx and yy are tied together by an equation, such as x2+y2=25x^2 + y^2 = 25, and yy is not written alone on one side. We say yy is an implicit function of xx. We can still find dydx\frac{dy}{dx} without solving for yy.

Method.

  1. Differentiate both sides with respect to xx. Treat yy as a function of xx, so the derivative of y2y^2 is 2ydydx2y \frac{dy}{dx} (chain rule), and the derivative of xyxy is y+xdydxy + x\frac{dy}{dx} (product rule).
  2. Collect all terms that contain dydx\frac{dy}{dx} on one side.
  3. Solve for dydx\frac{dy}{dx}.

Find dydx\frac{dy}{dx} for x2+y2=25x^2 + y^2 = 25. Differentiate: 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0. So dydx=−xy\frac{dy}{dx} = \frac{-x}{y}. At the point (3,4)(3, 4), which lies on the circle because 9+16=259 + 16 = 25, the slope is −34-\frac{3}{4} (that is -0.75).

At the point (3, 4) on the circle, the tangent has slope -0.75. The tangent is at right angles to the radius.

Find dydx\frac{dy}{dx} if x2+xy+y2=7x^2 + xy + y^2 = 7. Differentiate each term: 2x+(y+xdydx)+2ydydx=02x + \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx} = 0. Collect: (x+2y)dydx=−(2x+y)(x + 2y)\frac{dy}{dx} = -(2x + y). So dydx=−(2x+y)x+2y\frac{dy}{dx} = \frac{-\left(2 x + y\right)}{x + 2 y} The point (1,2)(1, 2) is on the curve (1+2+4=71 + 2 + 4 = 7) and the slope there is -0.8, which is −45-\frac{4}{5}.

For x3+y3=3xyx^3 + y^3 = 3xy: 3x2+3y2dydx=3y+3xdydx3x^2 + 3y^2 \frac{dy}{dx} = 3y + 3x\frac{dy}{dx}. Collect: (y2−x)dydx=y−x2(y^2 - x)\frac{dy}{dx} = y - x^2. So dydx=y−x2y2−x\frac{dy}{dx} = \frac{y - x^{2}}{y^{2} - x} The point (1.5,1.5)(1.5, 1.5) is on the curve (both sides equal 6.75) and the slope there is -1.

Common mistake: differentiating y2y^2 as 2y2y. Because yy depends on xx, the answer is 2ydydx2y\frac{dy}{dx}.

  1. Find dydx\frac{dy}{dx} for x2+y2=100x^2 + y^2 = 100 at the point (6,8)(6, 8).

Answers

  1. dydx=−xy\frac{dy}{dx} = -\frac{x}{y}, which at (6,8)(6, 8) equals −0.75-0.75, that is −34-\frac{3}{4}. (Check: 36+64=10036 + 64 = 100.)

5.3.3 Derivatives of inverse trigonometric functions

359 words · 2 min read

The function sin⁡−1x\sin^{-1} x answers the question "which angle has sine equal to xx?". It is defined for −1≤x≤1-1 \le x \le 1. Its derivative follows from implicit differentiation.

Why the formula is true. Let y=sin⁡−1xy = \sin^{-1} x. Then x=sin⁡yx = \sin y. Differentiate both sides with respect to xx: 1=cos⁡y⋅dydx1 = \cos y \cdot \frac{dy}{dx}. So dydx=1cos⁡y\frac{dy}{dx} = \frac{1}{\cos y}. For the principal value, cos⁡y≥0\cos y \ge 0, so cos⁡y=1−sin⁡2y=1−x2\cos y = \sqrt{1 - \sin^2 y} = \sqrt{1 - x^2}. The other two formulas follow in the same way.

FunctionDerivativeValid for
sin⁡−1x\sin^{-1} x11−x2\frac{1}{\sqrt{1 - x^{2}}}−1<x<1-1 < x < 1
cos⁡−1x\cos^{-1} x−11−x2\frac{-1}{\sqrt{1 - x^{2}}}−1<x<1-1 < x < 1
tan⁡−1x\tan^{-1} x11+x2\frac{1}{1 + x^{2}}all real xx
Memory aid: the derivative of cos⁡−1x\cos^{-1} x is exactly the negative of the derivative of sin⁡−1x\sin^{-1} x. (The two angles always add up to a right angle, so their rates of change cancel.)

y=tan⁡−1(2x)y = \tan^{-1}(2x). Outside: tan⁡−1\tan^{-1}, derivative 11+(⋅)2\frac{1}{1 + (\cdot)^2}. Inside: 2x2x, derivative 2. So dydx=21+4x2\frac{dy}{dx} = \frac{2}{1 + 4x^2}, that is 21+4x2\frac{2}{1 + 4 x^{2}}.

y=sin⁡−1(x2)y = \sin^{-1}(x^2). The derivative is 11−(x2)2⋅2x=2x1−x4\frac{1}{\sqrt{1 - (x^2)^2}} \cdot 2x = \frac{2 x}{\sqrt{1 - x^{4}}}, valid for −1<x<1-1 < x < 1.

Let y=tan⁡−1(1+x1−x)y = \tan^{-1}\left(\frac{1 + x}{1 - x}\right) for x≠1x \neq 1. The chain rule gives dydx=11+(1+x1−x)2⋅2(1−x)2\frac{dy}{dx} = \frac{1}{1 + \left(\frac{1 + x}{1 - x}\right)^2} \cdot \frac{2}{(1 - x)^2}. Simplify: the bottom of the first fraction is (1−x)2+(1+x)2(1−x)2=2+2x2(1−x)2\frac{(1 - x)^2 + (1 + x)^2}{(1 - x)^2} = \frac{2 + 2x^2}{(1 - x)^2}. So the whole product is 22+2x2=11+x2\frac{2}{2 + 2x^2} = \frac{1}{1 + x^{2}}. This is the same as the derivative of tan⁡−1x\tan^{-1} x. (That is because the two functions differ only by a constant, π4\frac{\pi}{4}, on each side of x=1x = 1.)

Common mistake: mixing up sin⁡−1x\sin^{-1} x with 1sin⁡x\frac{1}{\sin x}. The small −1-1 means "inverse function", not "one over".

EXERCISE 5.3

164 words · 1 min read
  1. Find dydx\frac{dy}{dx} if x2+3y2=7x^2 + 3y^2 = 7, and evaluate it at (2,1)(2, 1).
  2. Find dydx\frac{dy}{dx} if xy=6xy = 6.
  3. Find dydx\frac{dy}{dx} if x2y+y2=x+9x^2 y + y^2 = x + 9, and evaluate it at (0,3)(0, 3).
  4. Differentiate sin⁡−1(3x)\sin^{-1}\left(3 x\right) with respect to xx.
  5. Differentiate tan⁡−1(x2)\tan^{-1}\left(x^{2}\right) with respect to xx.
  6. Differentiate cos⁡−1(x2)\cos^{-1}\left(\frac{x}{2}\right) with respect to xx.
  7. Differentiate xtan⁡−1xx \tan^{-1} x with respect to xx.
  8. Differentiate tan⁡−1(1−x1+x)\tan^{-1}\left(\frac{1 - x}{1 + x}\right) with respect to xx.

Answers

  1. dydx=−x3y\frac{dy}{dx} = \frac{-x}{3 y}. At (2,1)(2, 1) it equals −23-\frac{2}{3} (-0.6667).
  2. dydx=−yx\frac{dy}{dx} = \frac{-y}{x}.
  3. dydx=−(2xy−1)x2+2y\frac{dy}{dx} = \frac{-\left(2 x y - 1\right)}{x^{2} + 2 y}. At (0,3)(0, 3) it equals 16\frac{1}{6} (0.1667).
  4. 31−9x2\frac{3}{\sqrt{1 - 9 x^{2}}}
  5. 2x1+x4\frac{2 x}{1 + x^{4}}
  6. −14−x2\frac{-1}{\sqrt{4 - x^{2}}}
  7. tan⁡−1x+x1+x2\tan^{-1} x + \frac{x}{1 + x^{2}}
  8. −11+x2\frac{-1}{1 + x^{2}}

5.4 Exponential and Logarithmic Functions

449 words · 2 min read

The number ee is about 2.71828. The function exe^x is special because its slope at every point equals its height at that point. The table below uses computed values:

xxexe^x (height)slope of exe^x
−1-10.36790.36790.36790.3679
001111
112.71832.71832.71832.7183
227.38917.38917.38917.3891

In symbols: ddxex=ex\frac{d}{dx} e^x = e^x. The natural logarithm ln⁡x\ln x is the inverse function of exe^x: it answers "what power of ee gives xx?". It is defined only for x>0x > 0.

e^x and ln x are inverse functions, so their graphs are mirror images in the dashed line y = x. Swapping the point (0, 1) gives (1, 0).
FunctionDerivative
exe^xexe^x
ln⁡x\ln x (for x>0x > 0)1x\frac{1}{x}
axa^x (for a>0a > 0)axln⁡aa^x \ln a
log⁡ax\log_a x1xln⁡a\frac{1}{x \ln a}
ln⁡∣x∣\ln|x| (for x≠0x \neq 0)1x\frac{1}{x}

Why ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x}: let y=ln⁡xy = \ln x. Then x=eyx = e^y. Differentiate both sides with respect to xx: 1=eydydx1 = e^y \frac{dy}{dx}, so dydx=1ey=1x\frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}.

Check with a number: the formula for axa^x with a=2a = 2 gives the slope 2xln⁡22^x \ln 2. At x=0x = 0 this is ln⁡2\ln 2, about 0.6931. That is the slope of the curve y=2xy = 2^x where it crosses the yy-axis.

y=e3x2y = e^{3 x^{2}}. Outside: e(⋅)e^{(\cdot)}. Inside: 3x23x^2, derivative 6x6x. So dydx=6xe3x2\frac{dy}{dx} = 6 x e^{3 x^{2}}.

y=ln⁡(x2+1)y = \ln\left(x^{2} + 1\right). Outside: ln⁡(⋅)\ln(\cdot), derivative 1⋅\frac{1}{\cdot}. Inside: x2+1x^2 + 1, derivative 2x2x. So dydx=2xx2+1\frac{dy}{dx} = \frac{2 x}{x^{2} + 1}.

y=xexy = xe^x. Product rule: y′=1⋅ex+x⋅ex=(x+1)exy' = 1 \cdot e^x + x \cdot e^x = \left(x + 1\right) e^{x}.

y=ln⁡(sin⁡x)y = \ln(\sin x), for xx where sin⁡x>0\sin x > 0. Then dydx=cos⁡xsin⁡x=cos⁡xsin⁡x\frac{dy}{dx} = \frac{\cos x}{\sin x} = \frac{\cos x}{\sin x} (this is cot⁡x\cot x).

y=5x2y = 5^{x^2}. Use ddxau=auln⁡a⋅u′\frac{d}{dx}a^u = a^u \ln a \cdot u' with a=5a = 5 and u=x2u = x^2. So dydx=2xln⁡5⋅5x2\frac{dy}{dx} = 2 x \ln 5 \cdot 5^{x^{2}}.

Common mistake: differentiating exe^x like a power, giving xex−1x e^{x-1}. The exponent is the variable here, so the power rule does not apply. The answer is exe^x.

EXERCISE 5.4

107 words · 1 min read
  1. Differentiate e−xe^{-x} with respect to xx.
  2. Differentiate ex2+1e^{x^{2} + 1} with respect to xx.
  3. Differentiate ln⁡(3x+2)\ln\left(3 x + 2\right) with respect to xx.
  4. Differentiate x2ln⁡xx^{2} \ln x with respect to xx.
  5. Differentiate exx\frac{e^{x}}{x} with respect to xx.
  6. Differentiate 32x3^{2 x} with respect to xx.
  7. Differentiate ln⁡(cos⁡x)\ln\left(\cos x\right) with respect to xx.
  8. Differentiate esin⁡xe^{\sin x} with respect to xx.

Answers

  1. −e−x-e^{-x}
  2. 2xex2+12 x e^{x^{2} + 1}
  3. 33x+2\frac{3}{3 x + 2}
  4. 2xln⁡x+x2 x \ln x + x
  5. (x−1)exx2\frac{\left(x - 1\right) e^{x}}{x^{2}}
  6. 2ln⁡3⋅32x2 \ln 3 \cdot 3^{2 x}
  7. −sin⁡xcos⁡x\frac{-\sin x}{\cos x}
  8. cos⁡xesin⁡x\cos x e^{\sin x}

5.5. Logarithmic Differentiation

393 words · 2 min read

Some functions are hard to differentiate directly: a variable raised to a variable power, or a long product and quotient. The logarithm turns powers into multiplication and products into sums. This gives a method called logarithmic differentiation.

Method.

  1. Take the natural logarithm of both sides, and use log laws to simplify: ln⁡(ab)=ln⁡a+ln⁡b\ln(ab) = \ln a + \ln b, ln⁡ab=ln⁡a−ln⁡b\ln\frac{a}{b} = \ln a - \ln b and ln⁡(ab)=bln⁡a\ln(a^b) = b\ln a.
  2. Differentiate both sides with respect to xx. The left side ln⁡y\ln y gives 1ydydx\frac{1}{y}\frac{dy}{dx}.
  3. Multiply by yy and replace yy by its original expression.
When to use it: (a) y=uvy = u^v where both uu and vv contain xx; (b) a long product or quotient of many factors.

Let y=xxy = x^x for x>0x > 0. Then ln⁡y=xln⁡x\ln y = x \ln x. Differentiate: 1ydydx=ln⁡x+x⋅1x=ln⁡x+1\frac{1}{y}\frac{dy}{dx} = \ln x + x \cdot \frac{1}{x} = \ln x + 1. So dydx=xx(ln⁡x+1)\frac{dy}{dx} = x^{x} \left(\ln x + 1\right)

Let y=(sin⁡x)xy = (\sin x)^x where sin⁡x>0\sin x > 0. Then ln⁡y=xln⁡(sin⁡x)\ln y = x \ln(\sin x). Differentiate: 1ydydx=ln⁡(sin⁡x)+x⋅cos⁡xsin⁡x\frac{1}{y}\frac{dy}{dx} = \ln(\sin x) + x \cdot \frac{\cos x}{\sin x}. So dydx=(sin⁡x)x[ln⁡(sin⁡x)+xcot⁡x]\frac{dy}{dx} = (\sin x)^x \left[\ln(\sin x) + x\cot x\right]

Let y=(x+1)2(x−2)3(x+3)4y = \frac{\left(x + 1\right)^{2} \left(x - 2\right)^{3}}{\left(x + 3\right)^{4}}. Take logarithms: ln⁡y=2ln⁡(x+1)+3ln⁡(x−2)−4ln⁡(x+3)\ln y = 2\ln(x + 1) + 3\ln(x - 2) - 4\ln(x + 3). Differentiate: 1ydydx=2x+1+3x−2−4x+3\frac{1}{y}\frac{dy}{dx} = \frac{2}{x + 1} + \frac{3}{x - 2} - \frac{4}{x + 3}. So dydx=y[2x+1+3x−2−4x+3]\frac{dy}{dx} = y\left[\frac{2}{x + 1} + \frac{3}{x - 2} - \frac{4}{x + 3}\right] with yy replaced by the original product.

Let y=xsin⁡xy = x^{\sin x} for x>0x > 0. Then ln⁡y=sin⁡x⋅ln⁡x\ln y = \sin x \cdot \ln x, so 1ydydx=cos⁡xln⁡x+sin⁡xx\frac{1}{y}\frac{dy}{dx} = \cos x \ln x + \frac{\sin x}{x}. Hence dydx=xsin⁡x(cos⁡xln⁡x+sin⁡xx)\frac{dy}{dx} = x^{\sin x} \left(\cos x \ln x + \frac{\sin x}{x}\right)

Common mistake: using the power rule on xxx^x to get x⋅xx−1x \cdot x^{x-1}. That is only the part of the answer for the base. The exponent also changes, which gives the extra ln⁡x\ln x term.

  1. Use logarithmic differentiation to find dydx\frac{dy}{dx} for y=x2xy = x^{2x}.

Answers

  1. ln⁡y=2xln⁡x\ln y = 2x\ln x, so 1yy′=2ln⁡x+2\frac{1}{y}y' = 2\ln x + 2 and y′=x2x(2ln⁡x+2)y' = x^{2 x} \left(2 \ln x + 2\right).

EXERCISE 5.5

205 words · 1 min read
  1. Differentiate x2xx^{2 x} with respect to xx.
  2. Differentiate (ln⁡x)x\left(\ln x\right)^{x} with respect to xx.
  3. Differentiate xx+2xx^{x} + 2^{x} with respect to xx.
  4. Differentiate (x+2)3(2x−1)2(x+5)2\frac{\left(x + 2\right)^{3} \left(2 x - 1\right)^{2}}{\left(x + 5\right)^{2}} with respect to xx.
  5. Differentiate xx2x^{x^{2}} with respect to xx.
  6. Differentiate (cos⁡x)x\left(\cos x\right)^{x} with respect to xx.
  7. Differentiate x1xx^{\frac{1}{x}} with respect to xx.
  8. Differentiate x3e2xx+1\frac{x^{3} e^{2 x}}{\sqrt{x + 1}} with respect to xx.

Answers

  1. x2x(2ln⁡x+2)x^{2 x} \left(2 \ln x + 2\right)
  2. (ln⁡x)x(ln⁡(ln⁡x)+1ln⁡x)\left(\ln x\right)^{x} \left(\ln\left(\ln x\right) + \frac{1}{\ln x}\right)
  3. xx(ln⁡x+1)+2xln⁡2x^{x} \left(\ln x + 1\right) + 2^{x} \ln 2
  4. (x+2)3(2x−1)2(x+5)2(3x+2+42x−1−2x+5)\frac{\left(x + 2\right)^{3} \left(2 x - 1\right)^{2}}{\left(x + 5\right)^{2}} \left(\frac{3}{x + 2} + \frac{4}{2 x - 1} - \frac{2}{x + 5}\right)
  5. xx2(2xln⁡x+x)x^{x^{2}} \left(2 x \ln x + x\right)
  6. (cos⁡x)x(ln⁡(cos⁡x)−xsin⁡xcos⁡x)\left(\cos x\right)^{x} \left(\ln\left(\cos x\right) - \frac{x \sin x}{\cos x}\right)
  7. x1x(1−ln⁡x)x2\frac{x^{\frac{1}{x}} \left(1 - \ln x\right)}{x^{2}}
  8. x3e2xx+1(3x+2−12(x+1))\frac{x^{3} e^{2 x}}{\sqrt{x + 1}} \left(\frac{3}{x} + 2 - \frac{1}{2 \left(x + 1\right)}\right)

5.6 Derivatives of Functions in Parametric Forms

456 words · 2 min read

Sometimes xx and yy are both given by a third variable, called a parameter. A common example is time tt: at time tt a point is at the position (x(t),y(t))(x(t), y(t)). As tt changes, the point traces a curve. This way of describing a curve is called parametric form.

To find the slope dydx\frac{dy}{dx} we use the chain rule in this form:

dydx=dy/dtdx/dtprovided dxdt≠0\frac{dy}{dx} = \frac{dy/dt}{dx/dt} \quad \text{provided } \frac{dx}{dt} \neq 0

In simple words: if yy changes 6 units for every 1 unit of tt, and xx changes 2 units for every 1 unit of tt, then yy changes 3 units for every 1 unit of xx. The slope is "rate of yy divided by rate of xx".

x=5cos⁡tx = 5\cos t, y=5sin⁡ty = 5\sin t. Then dxdt=−5sin⁡t\frac{dx}{dt} = -5\sin t and dydt=5cos⁡t\frac{dy}{dt} = 5\cos t. So dydx=5cos⁡t−5sin⁡t=−cos⁡tsin⁡t\frac{dy}{dx} = \frac{5\cos t}{-5\sin t} = \frac{-\cos t}{\sin t} At t=π4t = \frac{\pi}{4} the slope is −1-1. (This agrees with the answer −xy-\frac{x}{y} from the implicit method: at this tt, x=yx = y.)

x=t2x = t^2, y=t3y = t^3. Then dxdt=2t\frac{dx}{dt} = 2t and dydt=3t2\frac{dy}{dt} = 3t^2. For t≠0t \neq 0: dydx=3t22t=3t2\frac{dy}{dx} = \frac{3t^2}{2t} = \frac{3 t}{2} At t=1t = 1, the point is (1,1)(1, 1) and the slope is 1.5.

The curve x = t², y = t³. At t = 1 the tangent has slope 1.5. At t = 0 both dx/dt and dy/dt are 0, and the curve has a sharp point.

A point on the rim of a wheel of radius 1 rolling along the ground moves as x=t−sin⁡tx = t - \sin t, y=1−cos⁡ty = 1 - \cos t, where tt is the angle turned. Then dxdt=1−cos⁡t\frac{dx}{dt} = 1 - \cos t and dydt=sin⁡t\frac{dy}{dt} = \sin t. So dydx=sin⁡t1−cos⁡t\frac{dy}{dx} = \frac{\sin t}{1 - \cos t} This holds when cos⁡t≠1\cos t \neq 1. At t=π2t = \frac{\pi}{2} the slope is 1.

The path of a point on a rolling wheel. At t = π/2 the tangent has slope 1.
Common mistake: dividing the wrong way round. It is dydt\frac{dy}{dt} over dxdt\frac{dx}{dt}, not dxdt\frac{dx}{dt} over dydt\frac{dy}{dt}.

EXERCISE 5.6

118 words · 1 min read
  1. If x=3tx = 3t and y=t2y = t^2, find dydx\frac{dy}{dx}.
  2. If x=2cos⁡tx = 2\cos t and y=3sin⁡ty = 3\sin t, find dydx\frac{dy}{dx}.
  3. If x=t+1tx = t + \frac{1}{t} and y=t−1ty = t - \frac{1}{t}, find dydx\frac{dy}{dx}, and its value at t=2t = 2.
  4. If x=etx = e^t and y=e−ty = e^{-t}, find dydx\frac{dy}{dx}.
  5. If x=t3−3tx = t^3 - 3t and y=3t2y = 3t^2, find dydx\frac{dy}{dx} (for t≠±1t \neq \pm 1).
  6. If x=sin⁡tx = \sin t and y=sin⁡2ty = \sin 2t, find dydx\frac{dy}{dx}.

Answers

  1. 2t3\frac{2 t}{3}
  2. −3cos⁡t2sin⁡t\frac{-3 \cos t}{2 \sin t}
  3. t2+1t2−1\frac{t^{2} + 1}{t^{2} - 1}. At t=2t = 2 it equals 53\frac{5}{3} (1.6667).
  4. −e−2t-e^{-2 t}
  5. 2tt2−1\frac{2 t}{t^{2} - 1}
  6. 2cos⁡(2t)cos⁡t\frac{2 \cos\left(2 t\right)}{\cos t}.

5.7 Second Order Derivative

422 words · 2 min read

The derivative f′(x)f'(x) is itself a function, so we can differentiate it again. The result is the second derivative, written f′′(x)f''(x) or d2ydx2\frac{d^2y}{dx^2}. In words: it is the rate of change of the slope.

Careful with notation: d2ydx2\frac{d^2y}{dx^2} means "differentiate twice". It is not the same as (dydx)2\left(\frac{dy}{dx}\right)^2, which means "square the first derivative".

y=x4−3x2+2xy = x^{4} - 3 x^{2} + 2 x. Then y′=4x3−6x+2y' = 4x^3 - 6x + 2 and y′′=12x2−6y'' = 12 x^{2} - 6

y=sin⁡3xy = \sin 3x. Then y′=3cos⁡3xy' = 3\cos 3x and y′′=−9sin⁡(3x)y'' = -9 \sin\left(3 x\right). Notice y′′=−9yy'' = -9y: differentiating twice returns the original function times a constant.

y=xexy = xe^x. Then y′=(x+1)exy' = (x + 1)e^x and y′′=ex+(x+1)ex=(x+2)exy'' = e^x + (x + 1)e^x = \left(x + 2\right) e^{x}.

y=ln⁡(x2+1)y = \ln(x^2 + 1). Then y′=2xx2+1y' = \frac{2x}{x^2 + 1}. By the quotient rule, y′′=2(x2+1)−2x⋅2x(x2+1)2=2(1−x2)(x2+1)2y'' = \frac{2(x^2 + 1) - 2x \cdot 2x}{(x^2 + 1)^2} = \frac{2 \left(1 - x^{2}\right)}{\left(x^{2} + 1\right)^{2}}

For the upper half of the circle x2+y2=25x^2 + y^2 = 25 we found y′=−xyy' = -\frac{x}{y}. Differentiate again with the quotient rule: y′′=−y−xy′y2=−y+x2yy2=−y2+x2y3y'' = -\frac{y - x y'}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2} = -\frac{y^2 + x^2}{y^3}. Since x2+y2=25x^2 + y^2 = 25, this simplifies to y′′=−25y3y'' = -\frac{25}{y^3} which is the same as −25(25−x2)32\frac{-25}{\left(25 - x^{2}\right)^{\frac{3}{2}}} when y=25−x2y = \sqrt{25 - x^2}. Because y>0y > 0 on the upper half, y′′<0y'' < 0: the arch bends downward.

A cart moves along a straight track. Its distance from the start after tt seconds is s=t3−6t2+9ts = t^{3} - 6 t^{2} + 9 t metres. The first derivative is the velocity v=3t2−12t+9v = 3 t^{2} - 12 t + 9. The second derivative is the acceleration a=6t−12a = 6 t - 12. At t=2t = 2 the acceleration is 0: at that moment the velocity stops decreasing and starts increasing. The velocities at t=0,1,2,3,4t = 0, 1, 2, 3, 4 are 9, 0, -3, 0, 9 metres per second.

A second-derivative fact for parametric curves. If x=t2x = t^2 and y=t3y = t^3 with t>0t > 0, then y=x3/2y = x^{3/2}, so d2ydx2=34x=34t\frac{d^2y}{dx^2} = \frac{3}{4\sqrt{x}} = \frac{3}{4t}.

EXERCISE 5.7

123 words · 1 min read
  1. Find the second derivative of x3ln⁡xx^{3} \ln x with respect to xx.
  2. Find the second derivative of e2xsin⁡xe^{2 x} \sin x with respect to xx.
  3. Find the second derivative of tan⁡−1x\tan^{-1} x with respect to xx.
  4. Find the second derivative of x5x^{5} with respect to xx.
  5. Find the second derivative of tan⁡x\tan x with respect to xx.
  6. If y=3sin⁡x+2cos⁡xy = 3\sin x + 2\cos x, show that y′′+y=0y'' + y = 0.

Answers

  1. 6xln⁡x+5x6 x \ln x + 5 x
  2. e2x(3sin⁡x+4cos⁡x)e^{2 x} \left(3 \sin x + 4 \cos x\right)
  3. −2x(1+x2)2\frac{-2 x}{\left(1 + x^{2}\right)^{2}}
  4. 20x320 x^{3}
  5. 2sin⁡xcos⁡3x\frac{2 \sin x}{\cos^{3} x}
  6. Here y′=3cos⁡x−2sin⁡xy' = 3\cos x - 2\sin x and y′′=−3sin⁡x−2cos⁡x=−yy'' = -3\sin x - 2\cos x = -y. So y′′+y=0y'' + y = 0.

Miscellaneous Examples

315 words · 1 min read

Differentiate y=x2e−xy = x^{2} e^{-x}. Product rule: y′=2x⋅e−x+x2⋅(−e−x)=(2x−x2)e−xy' = 2x \cdot e^{-x} + x^2 \cdot (-e^{-x}) = \left(2 x - x^{2}\right) e^{-x}.

Let f(x)=x2sin⁡1xf(x) = x^2 \sin\frac{1}{x} for x≠0x \neq 0 and f(0)=0f(0) = 0. At 0, the difference quotient is f(h)−f(0)h=hsin⁡1h\frac{f(h) - f(0)}{h} = h \sin\frac{1}{h}. Because sin⁡1h\sin\frac{1}{h} is always between −1-1 and 1, this is squeezed between −∣h∣-|h| and ∣h∣|h|, so it tends to 0. Hence f′(0)=0f'(0) = 0.

For x≠0x \neq 0 the rules give f′(x)=2xsin⁡(1x)−cos⁡(1x)f'(x) = 2 x \sin\left(\frac{1}{x}\right) - \cos\left(\frac{1}{x}\right). As x→0x \to 0, the term cos⁡1x\cos\frac{1}{x} keeps swinging between −1-1 and 1, so f′(x)f'(x) has no limit at 0. The derivative exists at 0 but is not continuous there.

Find the slope of xy2−x2y=6xy^2 - x^2 y = 6 at (1,3)(1, 3) (check: 9−3=69 - 3 = 6). Differentiate: y2+2xyy′−2xy−x2y′=0y^2 + 2xy y' - 2xy - x^2 y' = 0. Collect: y′(2xy−x2)=2xy−y2y'(2xy - x^2) = 2xy - y^2. So y′=−(y2−2xy)2xy−x2y' = \frac{-\left(y^{2} - 2 x y\right)}{2 x y - x^{2}}. At (1,3)(1, 3): y′=−9−66−1=−35y' = -\frac{9 - 6}{6 - 1} = -\frac{3}{5} (that is -0.6).

If x=etx = e^t and y=e2ty = e^{2t}, then dydx=2e2tet=2et\frac{dy}{dx} = \frac{2e^{2t}}{e^t} = 2 e^{t}. Check: y=x2y = x^2, so dydx=2x=2et\frac{dy}{dx} = 2x = 2e^t. The two methods agree.

Differentiate y=(x2+1)xy = (x^2 + 1)^x. Then ln⁡y=xln⁡(x2+1)\ln y = x \ln(x^2 + 1), so y′y=ln⁡(x2+1)+2x2x2+1\frac{y'}{y} = \ln(x^2 + 1) + \frac{2x^2}{x^2 + 1}. Therefore y′=(x2+1)x(ln⁡(x2+1)+2x2x2+1)y' = \left(x^{2} + 1\right)^{x} \left(\ln\left(x^{2} + 1\right) + \frac{2 x^{2}}{x^{2} + 1}\right)

Miscellaneous Exercise on Chapter 5

282 words · 1 min read
  1. Differentiate (2x2−3x+4)6\left(2 x^{2} - 3 x + 4\right)^{6} with respect to xx.
  2. Differentiate sin⁡4x+cos⁡4x\sin^{4} x + \cos^{4} x with respect to xx.
  3. Differentiate tan⁡−1(x)\tan^{-1}\left(\sqrt{x}\right) with respect to xx.
  4. Differentiate ln⁡(x+x2+1)\ln\left(x + \sqrt{x^{2} + 1}\right) with respect to xx.
  5. Find dydx\frac{dy}{dx} for x4+y4=17x^4 + y^4 = 17, and evaluate it at (1,2)(1, 2).
  6. If x=ln⁡tx = \ln t and y=t2y = t^2 (with t>0t > 0), find dydx\frac{dy}{dx}.
  7. For which value of kk is f(x)=1−cos⁡4xx2f(x) = \frac{1 - \cos 4x}{x^2} for x≠0x \neq 0, f(0)=kf(0) = k, continuous at 0?
  8. Differentiate (sin⁡x)x+xsin⁡x\left(\sin x\right)^{x} + x^{\sin x} with respect to xx.
  9. Find the second derivative of exsin⁡xe^{x} \sin x with respect to xx.
  10. Find aa and bb so that f(x)={x2x≤1ax+bx>1f(x) = \begin{cases} x^{2} & x \le 1 \\ a x + b & x > 1 \end{cases} is differentiable at x=1x = 1.

Answers

  1. 6(2x2−3x+4)5(4x−3)6 \left(2 x^{2} - 3 x + 4\right)^{5} \left(4 x - 3\right)
  2. 4sin⁡3xcos⁡x−4cos⁡3xsin⁡x4 \sin^{3} x \cos x - 4 \cos^{3} x \sin x
  3. 12x(1+x)\frac{1}{2 \sqrt{x} \left(1 + x\right)}
  4. 1x2+1\frac{1}{\sqrt{x^{2} + 1}}
  5. dydx=−x3y3\frac{dy}{dx} = \frac{-x^{3}}{y^{3}}. At (1,2)(1, 2) it equals −18-\frac{1}{8} (-0.125).
  6. 2t22 t^{2}
  7. k=8k = 8.
  8. (sin⁡x)x(ln⁡(sin⁡x)+xcos⁡xsin⁡x)+xsin⁡x(cos⁡xln⁡x+sin⁡xx)\left(\sin x\right)^{x} \left(\ln\left(\sin x\right) + \frac{x \cos x}{\sin x}\right) + x^{\sin x} \left(\cos x \ln x + \frac{\sin x}{x}\right)
  9. 2excos⁡x2 e^{x} \cos x
  10. Continuity at 1 needs a+b=1a + b = 1. Matching slopes needs a=2a = 2 (the slope of x2x^2 at 1 is 2; the slope of ax+bax + b is aa, and the right-hand derivative with a=2a = 2 is 2). So a=2a = 2 and b=−1b = -1.

Summary

191 words · 1 min read
  • Continuity at cc: left-hand limit = right-hand limit = f(c)f(c). Polynomials are continuous everywhere; rational functions are continuous wherever the denominator is not 0.
  • Algebra of continuity: sums, differences, products, quotients (denominator not 0) and composites of continuous functions are continuous.
  • Derivative: f′(c)=lim⁡h→0f(c+h)−f(c)hf'(c) = \lim_{h \to 0}\frac{f(c + h) - f(c)}{h}. Differentiable implies continuous; the reverse is false (∣x∣|x| at 0).
  • Rules: sum, product (uv)′=u′v+uv′(uv)' = u'v + uv', quotient (uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}, and the chain rule dydx=dydu⋅dudx\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}.
  • Implicit functions: differentiate both sides with respect to xx, treat yy as a function of xx, then solve for dydx\frac{dy}{dx}.
  • Inverse trigonometric: (sin⁡−1x)′=11−x2(\sin^{-1}x)' = \frac{1}{\sqrt{1 - x^2}}, (cos⁡−1x)′=−11−x2(\cos^{-1}x)' = -\frac{1}{\sqrt{1 - x^2}}, (tan⁡−1x)′=11+x2(\tan^{-1}x)' = \frac{1}{1 + x^2}.
  • Exponential and logarithmic: (ex)′=ex(e^x)' = e^x, (ln⁡x)′=1x(\ln x)' = \frac{1}{x}, (ax)′=axln⁡a(a^x)' = a^x\ln a.
  • Logarithmic differentiation: take ln⁡\ln of both sides first; use it for uvu^v and for long products and quotients.
  • Parametric form: dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt} when dxdt≠0\frac{dx}{dt} \neq 0.
  • Second derivative: d2ydx2\frac{d^2y}{dx^2} is the derivative of dydx\frac{dy}{dx}.
Up next
Continue to the next chapter