Rules of differentiation
🖨 Print a self-study sheet Why print?
Suppose an object moves along a straight line and after seconds is metres from the origin (hypothetical figures). We have , , , . The object moves forward, then back, then forward again. Finding the velocity at each moment from the definition means setting up a long limit every time. Is there a quick way to find the velocity at every instant, and to tell when the object is momentarily at rest?
Exploration: finding the pattern
Using the definition, we find for a few values of : simplify the quotient , then let .
| Function | |||
|---|---|---|---|
| Quotient | |||
| Derivative at |
The pattern is clear: the derivative of is . We now gather this pattern and other rules into a set of formulas.
Derivatives of common functions
Rules of differentiation
Why is this true? For the product rule, write \frac{u(x+h)v(x+h)-u(x)v(x)}{h}=u(x+h)\cdot\frac{v(x+h)-v(x)}{h}+v(x)\cdot\frac{u(x+h)-u(x)}{h}. As h\to0, u(x+h)\to u(x) (since u is continuous, being differentiable), and the two quotients tend to v'(x) and u'(x). So the right side tends to uv'+vu'. For (x^n)', use \dfrac{x^n-x_0^n}{x-x_0}=x^{n-1}+x^{n-2}x_0+\dots+x_0^{n-1}, which has n terms, each tending to x_0^{n-1}, so the sum tends to nx_0^{n-1}. The chain rule says "the rate of change of y with respect to x equals the rate of y with respect to u times the rate of u with respect to x".
Examples
We begin with the table of derivatives and the sum rule.
Next we use the product and quotient rules.
Composite, exponential and logarithmic functions need the chain rule.
The derivative gives the gradient, and from it we can write a tangent.
Now we return to the motion problem from the start, using all four steps.
Connections. These rules rest on the definition of the derivative and apply at once to exponential and logarithmic functions. The lesson on the second derivative will differentiate the derivative itself, as acceleration is the derivative of velocity. In practice, these rules give the rate of change of distance, of a bacteria count or of profit without setting up a limit each time.
Key terms
Summary
- (c)'=0; (x^n)'=nx^{n-1}; (\sqrt x)'=\dfrac1{2\sqrt x}; \left(\dfrac1x\right)'=-\dfrac1{x^2}.
- (e^x)'=e^x; (a^x)'=a^x\ln a; (\ln x)'=\dfrac1x; (\log_ax)'=\dfrac1{x\ln a}.
- (u\pm v)'=u'\pm v'; (uv)'=u'v+uv'; \left(\dfrac uv\right)'=\dfrac{u'v-uv'}{v^2}.
- Chain rule: y'_x=f'(u)\,g'(x); \left(u^n\right)'=nu^{n-1}u', \left(e^u\right)'=u'e^u, (\ln u)'=\dfrac{u'}{u}.
- Tangent: y=f'(x_0)(x-x_0)+f(x_0); the tangent is horizontal when f'(x_0)=0.
Practice
Each exercise comes with what you need and hints. Try it yourself first, then open the solution.
Differentiate:
a) y=x^5-4x^3+2x-9.
b) y=3\sqrt x-\dfrac2x.
c) y=\sqrt x-\dfrac{x^2}2+7.
d) y=\pi.
What you need: the table of derivatives, (u\pm v)'=u'\pm v', (ku)'=ku'.
Steps:
- Differentiate term by term.
- Add the results, remembering that a constant has derivative 0.
Show solution
We use the formulas \left(x^n\right)'=nx^{n-1}, \left(\sqrt x\right)'=\dfrac{1}{2\sqrt x} (x>0), \left(\dfrac1x\right)'=-\dfrac{1}{x^2} (x\neq0), (c)'=0, together with the rules for sums, differences and constant multiples.
a) y'=5x^4-4\cdot3x^2+2-0=5x^4-12x^2+2.
b) Condition: x>0. We have y'=3\cdot\frac{1}{2\sqrt x}-2\cdot\left(-\frac{1}{x^2}\right)=\frac{3}{2\sqrt x}+\frac{2}{x^2}.
c) Condition: x\ge0 (the derivative is considered for x>0). We have y'=\frac{1}{2\sqrt x}-\frac{2x}{2}+0=\frac{1}{2\sqrt x}-x.
d) Since \pi is a constant, y'=0.
So the derivatives are 5x^4-12x^2+2; \dfrac{3}{2\sqrt x}+\dfrac{2}{x^2}; \dfrac{1}{2\sqrt x}-x; 0 respectively.
Answer. a) 5x^4-12x^2+2; b) \dfrac3{2\sqrt x}+\dfrac2{x^2}; c) \dfrac1{2\sqrt x}-x; d) 0.
Differentiate:
a) y=(2x-1)(x^2+3).
b) y=x^2e^x.
c) y=\dfrac{2x+3}{x-1}.
d) y=\dfrac{\ln x}{x}.
What you need: (uv)'=u'v+uv' and \left(\dfrac uv\right)'=\dfrac{u'v-uv'}{v^2}.
Steps:
- Identify u and v, and find u' and v'.
- Substitute into the formula and simplify.
Show solution
a) Apply the product rule (uv)'=u'v+uv' with u=2x-1, v=x^2+3: \begin{aligned}y'&=2\left(x^2+3\right)+(2x-1)\cdot2x\\&=2x^2+6+4x^2-2x\\&=6x^2-2x+6.\end{aligned}
b) Apply the product rule with u=x^2, v=e^x: y'=2xe^x+x^2e^x=x(x+2)e^x.
c) Condition: x\neq1. Apply the quotient rule \left(\dfrac uv\right)'=\dfrac{u'v-uv'}{v^2} with u=2x+3, v=x-1: y'=\frac{2(x-1)-(2x+3)\cdot1}{(x-1)^2}=\frac{2x-2-2x-3}{(x-1)^2}=\frac{-5}{(x-1)^2}.
d) Condition: x>0. Apply the quotient rule with u=\ln x, v=x: y'=\frac{\frac1x\cdot x-\ln x\cdot1}{x^2}=\frac{1-\ln x}{x^2}.
So the derivatives are 6x^2-2x+6; x(x+2)e^x; -\dfrac{5}{(x-1)^2}; \dfrac{1-\ln x}{x^2} respectively.
Answer. a) 6x^2-2x+6; b) x(x+2)e^x; c) -\dfrac5{(x-1)^2}; d) \dfrac{1-\ln x}{x^2}.
Differentiate:
a) y=(2x+1)^6.
b) y=\sqrt{x^2+1}.
c) y=e^{x^2}.
d) y=\ln(3x-2).
What you need: the chain rule; \left(\sqrt u\right)'=\dfrac{u'}{2\sqrt u}.
Steps:
- Identify the inner function u and find u'.
- Multiply the derivative of the outer function (with respect to u) by u'.
Show solution
We use the chain rule: if y=f(u(x)) then y'=f'(u)\cdot u'(x).
a) With u=2x+1 and y=u^6: y'=6(2x+1)^5\cdot(2x+1)'=6(2x+1)^5\cdot2=12(2x+1)^5.
b) Since x^2+1>0 for all x, the function is defined on \mathbb{R}. With u=x^2+1 and y=\sqrt u: y'=\frac{u'}{2\sqrt u}=\frac{2x}{2\sqrt{x^2+1}}=\frac{x}{\sqrt{x^2+1}}.
c) With u=x^2 and y=e^u: y'=e^{x^2}\cdot\left(x^2\right)'=2xe^{x^2}.
d) Condition: 3x-2>0, that is x>\dfrac23. With u=3x-2 and y=\ln u: y'=\frac{(3x-2)'}{3x-2}=\frac{3}{3x-2}.
So the derivatives are 12(2x+1)^5; \dfrac{x}{\sqrt{x^2+1}}; 2xe^{x^2}; \dfrac{3}{3x-2} respectively.
Answer. a) 12(2x+1)^5; b) \dfrac{x}{\sqrt{x^2+1}}; c) 2xe^{x^2}; d) \dfrac3{3x-2}.
Write the equation of the tangent to the graph:
a) y=x^3-3x+1 at the point with x-coordinate 0.
b) y=\ln x at the point with x-coordinate 1.
c) y=e^{2x} at the point with x-coordinate 0.
What you need: y=f'(x_0)(x-x_0)+f(x_0).
Steps:
- Find f(x_0) and f'(x_0) using the rules.
- Substitute into the formula.
Show solution
The tangent at the point with x-coordinate x_0 is y=f'(x_0)(x-x_0)+f(x_0).
a) For f(x)=x^3-3x+1 we have f'(x)=3x^2-3. At x_0=0: f'(0)=-3 and f(0)=1. The tangent is y=-3(x-0)+1=-3x+1.
b) For f(x)=\ln x (condition x>0) we have f'(x)=\dfrac1x. At x_0=1: f'(1)=1 and f(1)=\ln1=0. The tangent is y=1\cdot(x-1)+0=x-1.
c) For f(x)=e^{2x} we have f'(x)=2e^{2x}. At x_0=0: f'(0)=2 and f(0)=1. The tangent is y=2(x-0)+1=2x+1.
So the tangents are y=-3x+1, y=x-1 and y=2x+1 respectively.
Answer. a) y=-3x+1; b) y=x-1; c) y=2x+1.
Decide whether each statement is true or false:
a) \left(\sqrt x\right)'=\dfrac1{\sqrt x}.
b) (uv)'=u'v+uv'.
c) \left(e^{2x}\right)'=2e^{2x}.
d) \left(2^x\right)'=2^x.
What you need: the table of derivatives and the chain rule.
Steps:
- Compare each statement with the formulas.
- Watch the coefficients and the factor \ln a.
Show solution
a) False. The correct formula is \left(\sqrt x\right)'=\dfrac1{2\sqrt x} (x>0), not \dfrac1{\sqrt x}.
b) True. This is the product rule: (uv)'=u'v+uv'.
c) True. By the chain rule with u=2x: \left(e^{2x}\right)'=e^{2x}\cdot(2x)'=2e^{2x}.
d) False. The correct formula is \left(a^x\right)'=a^x\ln a, so \left(2^x\right)'=2^x\ln2, which differs from 2^x because \ln2\neq1.
So statements b), c) are true; statements a), d) are false.
Answer. a) False; b) True; c) True; d) False.
Suppose the number of bacteria in a culture after t hours is N(t)=1000e^{0.3t} (hypothetical figures).
a) Find N'(t).
b) Find the rate of growth at t=2 (to the nearest whole number, in bacteria per hour).
c) Calculate \dfrac{N'(t)}{N(t)} and state its meaning.
What you need: \left(e^{kt}\right)'=ke^{kt}.
Steps:
- a) Use the chain rule.
- c) Divide N' by N and simplify.
Show solution
The number of bacteria is N(t)=1000e^{0.3t}, where t is the number of hours (t\ge0). The rate of growth is the derivative N'(t).
a) Using the chain rule \left(e^{kt}\right)'=ke^{kt}: N'(t)=1000\cdot0.3e^{0.3t}=300e^{0.3t}.
b) Substituting t=2, we get N'(2)=300e^{0.6}\approx300\cdot1.8221\approx547\ \text{(bacteria per hour)}.
c) For every t: \frac{N'(t)}{N(t)}=\frac{300e^{0.3t}}{1000e^{0.3t}}=0.3. This ratio is constant, equal to 0.3=30\%. Meaning: at every moment the bacteria count grows by 30\% per hour of the current count.
So N'(t)=300e^{0.3t}; at t=2 the rate of growth is about 547 bacteria per hour; and \dfrac{N'(t)}{N(t)}=0.3.
Answer. a) 300e^{0.3t}; b) 547 bacteria per hour; c) 0.3.
Suppose the profit from selling q items is P(q)=-0.5q^2+40q-100 (million dong) (hypothetical figures).
a) Find P'(q).
b) Find q such that P'(q)=0 and calculate the profit there.
c) Explain why this is the greatest profit.
What you need: P(q) is a quadratic whose q^2 coefficient is negative; P'(q)=0 means a horizontal tangent.
Steps:
- Differentiate term by term.
- Solve P'(q)=0 and substitute into P.
Show solution
a) P'(q)=-q+40.
b) P'(q)=0 when q=40, and P(40)=-0.5\cdot1600+1600-100=700 (million dong).
c) The parabola P(q) has coefficient -0.5<0, so it opens downwards, and its vertex (horizontal tangent) is the highest point. So the greatest profit is 700 million dong when q=40.
Answer. a) -q+40; b) q=40, P=700 million dong; c) the vertex of a downward-opening parabola.
Suppose the temperature of a cup of water after t minutes is T(t)=20+60e^{-0.1t} (^\circC) (hypothetical figures). Find T'(10) (to one decimal place) and state its meaning.
What you need: \left(e^{kt}\right)'=ke^{kt}, e^{-1}=\dfrac1e\approx0.3679.
Steps:
- Find T'(t) using the chain rule.
- Substitute t=10.
Show solution
The temperature is T(t)=20+60e^{-0.1t} (^\circC), where t is the number of minutes (t\ge0). The rate of change of temperature is T'(t).
By the chain rule: T'(t)=0+60\cdot(-0.1)e^{-0.1t}=-6e^{-0.1t}.
Substituting t=10, we get T'(10)=-6e^{-1}=-\frac6e\approx-2.2.
The negative sign shows that the temperature is falling.
So at the 10th minute the temperature of the water is falling by about 2.2\,^\circC per minute.
Answer. T'(10)\approx-2.2 (^\circC per minute), meaning the temperature is falling.
Revisit logarithms. Using a^x=e^{x\ln a} and the change of base formula \log_ax=\dfrac{\ln x}{\ln a}, differentiate:
a) y=3^x.
b) y=\log_2x.
What you need: (e^u)'=u'e^u and (\ln x)'=\dfrac1x.
Steps:
- Rewrite the function using e or \ln.
- Differentiate, remembering that \ln a is a constant.
Show solution
a) We have 3^x=e^{x\ln3}. Apply the chain rule with u=x\ln3 (where \ln3 is a constant): y'=e^{x\ln3}\cdot(x\ln3)'=\ln3\cdot e^{x\ln3}=3^x\ln3.
b) Condition: x>0. By the change of base formula, y=\log_2x=\dfrac{\ln x}{\ln2}, where \dfrac1{\ln2} is a constant. Therefore y'=\frac{1}{\ln2}\cdot(\ln x)'=\frac{1}{x\ln2}.
So \left(3^x\right)'=3^x\ln3 and \left(\log_2x\right)'=\dfrac{1}{x\ln2}.
Answer. a) 3^x\ln3; b) \dfrac1{x\ln2}.
Let f(x)=(x-1)(x-2)(x-3). Find f'(1)+f'(2)+f'(3).
What you need: the product rule for three factors: (uvw)'=u'vw+uv'w+uvw'.
Steps:
- Find f'(x) using the product rule.
- Substitute x=1,2,3: two of the three terms vanish each time.
Show solution
Apply the product rule for three factors (uvw)'=u'vw+uv'w+uvw' with u=x-1, v=x-2, w=x-3: f'(x)=(x-2)(x-3)+(x-1)(x-3)+(x-1)(x-2).
At x=1: the last two terms contain the factor x-1=0, so they vanish and only the first term remains: f'(1)=(1-2)(1-3)=(-1)(-2)=2.
At x=2: the first and last terms contain the factor x-2=0, so only the middle term remains: f'(2)=(2-1)(2-3)=1\cdot(-1)=-1.
At x=3: the first two terms contain the factor x-3=0, so only the last term remains: f'(3)=(3-1)(3-2)=2\cdot1=2.
Therefore f'(1)+f'(2)+f'(3)=2-1+2=3.
So f'(1)+f'(2)+f'(3)=3.
Answer. 3.
Mini test
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
f'(x)=3x^2-6x+2, so f'(2)=12-12+2=2. Option A drops the term 2, and B and D come from calculation slips.
y'=1\cdot e^x+x\cdot e^x=(x+1)e^x. Option B forgets the term xe^x, C forgets the term e^x, and A mistakes 1 for e.
y'=\dfrac{2(x+3)-(2x+1)}{(x+3)^2}=\dfrac5{(x+3)^2}. Option B divides the derivatives, C reverses the sign of the numerator, and D adds instead of subtracting.
y'=\dfrac{2x}{x^2+1}, so y'(1)=\dfrac22=1. Option D forgets the denominator, C divides by 4, and A confuses it with \ln1.
Part II. True or false
| a) f'(x)=3x^2-3. | ||
| b) The gradient of the tangent at x=0 is 3. | ||
| c) The tangent at x=1 is parallel to the x-axis. | ||
| d) The equation f'(x)=0 has two solutions, x=\pm1. |
a) True. b) False: f'(0)=-3. c) True: f'(1)=0. d) True: 3x^2-3=0\Leftrightarrow x=\pm1.
Part III. Short answer
N'(t)=300e^{0.3t}, so N'(2)=300e^{0.6}\approx300\cdot1.8221\approx547.
y'=\dfrac{2x\cdot x-(x^2+1)}{x^2}=\dfrac{x^2-1}{x^2}, so y'(2)=\dfrac34=0.75.
Show answers and explanations
- Part I, question 1: C. f'(x)=3x^2-6x+2, so f'(2)=12-12+2=2. Option A drops the term 2, and B and D come from calculation slips.
- Part I, question 2: D. y'=1\cdot e^x+x\cdot e^x=(x+1)e^x. Option B forgets the term xe^x, C forgets the term e^x, and A mistakes 1 for e.
- Part I, question 3: A. y'=\dfrac{2(x+3)-(2x+1)}{(x+3)^2}=\dfrac5{(x+3)^2}. Option B divides the derivatives, C reverses the sign of the numerator, and D adds instead of subtracting.
- Part I, question 4: B. y'=\dfrac{2x}{x^2+1}, so y'(1)=\dfrac22=1. Option D forgets the denominator, C divides by 4, and A confuses it with \ln1.
- Part II, question 1: a) True; b) False; c) True; d) True. a) True. b) False: f'(0)=-3. c) True: f'(1)=0. d) True: 3x^2-3=0\Leftrightarrow x=\pm1.
- Part III, question 1: 547. N'(t)=300e^{0.3t}, so N'(2)=300e^{0.6}\approx300\cdot1.8221\approx547.
- Part III, question 2: 0.75. y'=\dfrac{2x\cdot x-(x^2+1)}{x^2}=\dfrac{x^2-1}{x^2}, so y'(2)=\dfrac34=0.75.