Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

The derivative

Lesson 7.1 · 25 min read · Updated

Suppose an object falls freely and after tt seconds has fallen s(t)=5t2s(t)=5t^2 metres (hypothetical figures). From the 1st second to the 2nd, it falls s(2)−s(1)=15s(2)-s(1)=15 metres, so the average velocity is 1515 m/s. But a speedometer does not measure an average; it shows the speed at one instant. What is the velocity at exactly t=1t=1?

We cannot divide by a time interval of 00. What we can do is shrink the interval gradually and see where the average velocity is heading. That idea is the derivative.

Exploration: shrinking the time interval

Consider the interval from t=1t=1 to t=1+ht=1+h. The average velocity is s(1+h)−s(1)h=5(1+h)2−5h=10+5h\dfrac{s(1+h)-s(1)}{h}=\dfrac{5(1+h)^2-5}{h}=10+5h.

hh 11 0.10.1 0.010.01 0.0010.001
Average velocity (m/s) 1515 10.510.5 10.0510.05 10.00510.005

As hh gets closer to 00, the average velocity gets closer to 1010 m/s. We say the instantaneous velocity at t=1t=1 is 1010 m/s, and write lim⁡h→0(10+5h)=10\displaystyle\lim_{h\to0}(10+5h)=10.

Definition of the derivative

Going deeper. The numerator f(x)-f(x_0) is the change in the function and the denominator x-x_0 is the change in the variable. Their quotient is the average rate of change from x_0 to x. The derivative is the rate of change at exactly x_0. If f is differentiable at every point of (a, b), then f'(x) is itself a function, called the derivative function of f.

Two meanings. If s(t) is distance, then s'(t_0) is the instantaneous velocity at t_0. Geometrically, the quotient \dfrac{f(x)-f(x_0)}{x-x_0} is the gradient of the secant joining the points (x_0, f(x_0)) and (x, f(x)). As x\to x_0, the secant approaches the tangent, so f'(x_0) is the gradient of the tangent at that point.

-1.0-0.50.51.01.52.02.53.0-1123456xyOy = x^2secant, gradient 3tangent, gradient 2
A secant approaching the tangent of y=x^2 at the point (1, 1)

Why is this true? For x\neq x_0 write f(x)-f(x_0)=\dfrac{f(x)-f(x_0)}{x-x_0}\cdot(x-x_0). As x\to x_0, the first factor tends to f'(x_0) (finite) and the second tends to 0, so the product tends to 0. Hence \lim_{x\to x_0}f(x)=f(x_0), that is, f is continuous at x_0. The converse is false: a continuous function may fail to be differentiable, as in the example y=|x| below.

Examples

We begin with the definition.

Next we write the equation of a tangent.

Not every continuous function is differentiable.

Now we return to the falling object, at a different instant, using all four steps.

Connections. The derivative uses limits and the continuity from the lesson on continuous functions: continuity is a necessary condition for being differentiable. The lesson on rules of differentiation will give quick formulas so that we need not set up a limit every time, and the lesson on the second derivative studies the rate of change of the derivative itself, such as acceleration. In practice, the derivative measures how fast any quantity changes with time or with another quantity.

Key terms

Summary

  • f'(x_0)=\displaystyle\lim_{x\to x_0}\dfrac{f(x)-f(x_0)}{x-x_0}=\lim_{h\to0}\dfrac{f(x_0+h)-f(x_0)}{h}.
  • f'(x_0) is the gradient of the tangent at (x_0, f(x_0)); the tangent is y=f'(x_0)(x-x_0)+f(x_0).
  • If s(t) is distance, then s'(t_0) is the instantaneous velocity at t_0.
  • Differentiable at x_0 implies continuous at x_0; the converse is false.
  • A function is differentiable at x_0 when the two one-sided limits of the difference quotient exist and are equal.

Practice

Each exercise comes with what you need and hints. Try it yourself first, then open the solution.

Exercise 1

Calculate the derivative from the definition:

a) f(x)=2x^2-x at x_0=1.

b) f(x)=x^3 at x_0=2.

c) f(x)=\dfrac1x at x_0=-1.

d) f(x)=\sqrt x at x_0=4.

What you need and how to start

What you need: f'(x_0)=\displaystyle\lim_{x\to x_0}\dfrac{f(x)-f(x_0)}{x-x_0}.

Steps:

  1. Form the quotient and factorise the numerator to show a factor x-x_0 (part d: multiply by the conjugate).
  2. Cancel, then let x\to x_0.
Show solution

Apply the definition: f'(x_0)=\lim_{x\to x_0}\dfrac{f(x)-f(x_0)}{x-x_0}.

a) We have f(1)=2\cdot1^2-1=1. For x\neq1: \frac{f(x)-f(1)}{x-1}=\frac{2x^2-x-1}{x-1}=\frac{(2x+1)(x-1)}{x-1}=2x+1. As x\to1, 2x+1\to3. So f'(1)=3.

b) We have f(2)=2^3=8. For x\neq2: \frac{f(x)-f(2)}{x-2}=\frac{x^3-8}{x-2}=\frac{(x-2)\left(x^2+2x+4\right)}{x-2}=x^2+2x+4. As x\to2, x^2+2x+4\to4+4+4=12. So f'(2)=12.

c) We have f(-1)=\dfrac1{-1}=-1. For x\neq0, x\neq-1: \frac{f(x)-f(-1)}{x-(-1)}=\frac{\frac1x+1}{x+1}=\frac{\frac{1+x}{x}}{x+1}=\frac1x. As x\to-1, \dfrac1x\to-1. So f'(-1)=-1.

d) We have f(4)=\sqrt4=2. For x>0, x\neq4: \frac{f(x)-f(4)}{x-4}=\frac{\sqrt x-2}{x-4}=\frac{\sqrt x-2}{(\sqrt x-2)(\sqrt x+2)}=\frac{1}{\sqrt x+2}. As x\to4, \dfrac{1}{\sqrt x+2}\to\dfrac14. So f'(4)=\dfrac14.

So f'(1)=3, f'(2)=12, f'(-1)=-1, f'(4)=\dfrac14.

Answer. a) 3; b) 12; c) -1; d) \dfrac14.

Exercise 2

Find the derivative function f'(x) from the definition:

a) f(x)=x^2-3x.

b) f(x)=\dfrac1x (x\neq0).

c) f(x)=c (a constant function).

What you need and how to start

What you need: f'(x)=\displaystyle\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}.

Steps:

  1. Write f(x+h)-f(x) and simplify.
  2. Divide by h, then let h\to0.
Show solution

Apply the definition: f'(x)=\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}.

a) We have \begin{aligned}f(x+h)-f(x)&=(x+h)^2-3(x+h)-x^2+3x\\&=2xh+h^2-3h.\end{aligned} Dividing by h\neq0: \dfrac{f(x+h)-f(x)}{h}=2x+h-3. As h\to0, 2x+h-3\to2x-3. So f'(x)=2x-3.

b) For x\neq0 and h small enough that x+h\neq0: f(x+h)-f(x)=\frac{1}{x+h}-\frac1x=\frac{x-(x+h)}{x(x+h)}=\frac{-h}{x(x+h)}. Dividing by h\neq0: \dfrac{f(x+h)-f(x)}{h}=-\dfrac{1}{x(x+h)}. As h\to0 this tends to -\dfrac{1}{x^2}. So f'(x)=-\dfrac{1}{x^2}.

c) For f(x)=c we have f(x+h)-f(x)=c-c=0, so \dfrac{f(x+h)-f(x)}{h}=0 for every h\neq0. Hence f'(x)=0.

So f'(x)=2x-3 in part a), f'(x)=-\dfrac{1}{x^2} in part b) and f'(x)=0 in part c).

Answer. a) 2x-3; b) -\dfrac1{x^2}; c) 0.

Exercise 3

Write the equation of the tangent to the graph:

a) y=x^2 at the point with x-coordinate -1.

b) y=x^3 at the point with x-coordinate 2.

c) y=\dfrac1x at the point with x-coordinate \dfrac12.

What you need and how to start

What you need: y=f'(x_0)(x-x_0)+f(x_0); (x^2)'=2x, (x^3)'=3x^2, \left(\dfrac1x\right)'=-\dfrac1{x^2}.

Steps:

  1. Calculate f(x_0) and f'(x_0).
  2. Substitute into the formula and simplify.
Show solution

The equation of the tangent to the graph of y=f(x) at the point with x-coordinate x_0 is y=f'(x_0)(x-x_0)+f(x_0).

a) For f(x)=x^2 we have f'(x)=2x. At x_0=-1: f(-1)=1 and f'(-1)=-2. The tangent is y=-2(x+1)+1=-2x-1.

b) For f(x)=x^3 we have f'(x)=3x^2. At x_0=2: f(2)=8 and f'(2)=12. The tangent is y=12(x-2)+8=12x-16.

c) For f(x)=\dfrac1x we have f'(x)=-\dfrac{1}{x^2}. At x_0=\dfrac12: f\left(\dfrac12\right)=2 and f'\left(\dfrac12\right)=-\dfrac{1}{1/4}=-4. The tangent is y=-4\left(x-\frac12\right)+2=-4x+4.

So the tangents are y=-2x-1, y=12x-16 and y=-4x+4 respectively.

Answer. a) y=-2x-1; b) y=12x-16; c) y=-4x+4.

Exercise 4

Decide whether each function is differentiable at the given point, and find the derivative if it is:

a) f(x)=|x-1| at x_0=1.

b) f(x)=\begin{cases}x^2&\text{if }x\le2\\4x-4&\text{if }x>2\end{cases} at x_0=2.

c) g(x)=\begin{cases}x^2&\text{if }x\le1\\3x-2&\text{if }x>1\end{cases} at x_0=1.

What you need and how to start

What you need: a function is differentiable when the two one-sided limits of \dfrac{f(x)-f(x_0)}{x-x_0} are equal.

Steps:

  1. Calculate the value of the function at x_0.
  2. Calculate the limits as x\to x_0^- and x\to x_0^+ and compare.
Show solution

A function is differentiable at x_0 if and only if the one-sided limits of the quotient \dfrac{f(x)-f(x_0)}{x-x_0} at x_0 exist and are equal.

a) We have f(1)=|1-1|=0, so the quotient is \dfrac{|x-1|-0}{x-1}=\dfrac{|x-1|}{x-1}. For x>1 it equals \dfrac{x-1}{x-1}=1; for x<1 it equals \dfrac{-(x-1)}{x-1}=-1. The two one-sided limits are 1 and -1, which differ. So f is not differentiable at x_0=1.

b) We have f(2)=2^2=4.

From the left (x<2): \dfrac{f(x)-f(2)}{x-2}=\dfrac{x^2-4}{x-2}=x+2\to4 as x\to2^-.

From the right (x>2): \dfrac{f(x)-f(2)}{x-2}=\dfrac{4x-4-4}{x-2}=\dfrac{4(x-2)}{x-2}=4\to4 as x\to2^+.

Both one-sided limits equal 4. So f is differentiable at x_0=2 and f'(2)=4.

c) We have g(1)=1^2=1.

From the left (x<1): \dfrac{g(x)-g(1)}{x-1}=\dfrac{x^2-1}{x-1}=x+1\to2 as x\to1^-.

From the right (x>1): \dfrac{g(x)-g(1)}{x-1}=\dfrac{3x-2-1}{x-1}=\dfrac{3(x-1)}{x-1}=3\to3 as x\to1^+.

The two one-sided limits differ (2\neq3). So g is not differentiable at x_0=1.

So f(x)=|x-1| is not differentiable at 1; f in part b) is differentiable at 2 with f'(2)=4; g is not differentiable at 1.

Answer. a) No; b) Yes, 4; c) No.

Exercise 5

Decide whether each statement is true or false:

a) The function y=|x| is differentiable at x=0.

b) If f is differentiable at x_0, then f is continuous at x_0.

c) The derivative f'(x_0) is the gradient of the tangent to the graph at the point with x-coordinate x_0.

d) For f(x)=x^3, f'(2)=6.

What you need and how to start

What you need: the definition of the derivative; the link between differentiable and continuous; the geometric meaning.

Steps:

  1. Recall the two one-sided limits of |x| at 0.
  2. Part d: use the result f'(2)=12 already found.
Show solution

a) False. For y=|x| we have y(0)=0 and the quotient \dfrac{|x|-0}{x-0}=\dfrac{|x|}{x}. The right-hand limit is 1 and the left-hand limit is -1; the two limits differ, so y=|x| is not differentiable at x=0.

b) True. If f is differentiable at x_0, then f is continuous at x_0. Indeed, for x\neq x_0: f(x)-f(x_0)=\frac{f(x)-f(x_0)}{x-x_0}\cdot(x-x_0)\to f'(x_0)\cdot0=0\quad(x\to x_0), that is, \lim_{x\to x_0}f(x)=f(x_0).

c) True. By the geometric meaning of the derivative, f'(x_0) is the gradient of the tangent to the graph of y=f(x) at the point with x-coordinate x_0.

d) False. For f(x)=x^3 we have f'(x)=3x^2, so f'(2)=3\cdot4=12, not 6.

So statements b), c) are true; statements a), d) are false.

Answer. a) False; b) True; c) True; d) False.

Exercise 6

Suppose an object falls freely and after t seconds has fallen s(t)=5t^2 metres (hypothetical figures).

a) Find the instantaneous velocity at t=3 from the definition.

b) Using s'(t)=10t (found in the example), after how many seconds does the object reach a velocity of 40 m/s?

What you need and how to start

What you need: v(t_0)=s'(t_0).

Steps:

  1. a) Simplify \dfrac{5t^2-45}{t-3}.
  2. b) Solve 10t=40.
Show solution

The instantaneous velocity at time t_0 is v(t_0)=s'(t_0)=\lim_{t\to t_0}\dfrac{s(t)-s(t_0)}{t-t_0}.

a) We have s(3)=5\cdot3^2=45. For t\neq3: \frac{s(t)-s(3)}{t-3}=\frac{5t^2-45}{t-3}=\frac{5(t-3)(t+3)}{t-3}=5(t+3). As t\to3, 5(t+3)\to30. So v(3)=30 m/s.

b) The velocity at time t is v(t)=s'(t)=10t. Setting v(t)=40 gives 10t=40, so t=4 (seconds), which satisfies t>0.

So the instantaneous velocity at t=3 seconds is 30 m/s, and the object reaches a velocity of 40 m/s after 4 seconds.

Answer. a) 30 m/s; b) 4 seconds.

Exercise 7

Suppose the cost of producing q items is C(q)=0.02q^2+3q+50 (million dong) (hypothetical figures).

a) Find C'(100) from the definition.

b) Find the actual cost of producing the 101st item, that is C(101)-C(100). Compare it with C'(100).

What you need and how to start

What you need: C'(q_0) approximates the cost of making one more item after q_0 have been made.

Steps:

  1. a) Simplify \dfrac{C(q)-C(100)}{q-100}.
  2. b) Find the difference of the two values.
Show solution

Let q be the number of items; C(q) is in million dong. We have C(100)=0.02\cdot100^2+3\cdot100+50=200+300+50=550.

a) For q\neq100: \frac{C(q)-C(100)}{q-100}=\frac{0.02\left(q^2-100^2\right)+3(q-100)}{q-100}=0.02(q+100)+3. As q\to100, 0.02(q+100)+3\to0.02\cdot200+3=7. So C'(100)=7 million dong per item.

b) We have C(101)=0.02\cdot101^2+3\cdot101+50=204.02+303+50=557.02. Hence C(101)-C(100)=557.02-550=7.02\ \text{(million dong)}. This is very close to C'(100)=7 (a difference of 0.02 million dong).

So C'(100)=7 million dong per item; the actual cost of producing the 101st item is 7.02 million dong, approximately C'(100).

Answer. a) 7 million dong per item; b) 7.02 million dong, approximately C'(100).

Exercise 8

Suppose a train travels a distance of s(t)=2t^2+3t metres after t seconds (hypothetical figures).

a) Find the average velocity from t=4 to t=5.

b) Find the instantaneous velocity at t=4 and compare it with part a.

What you need and how to start

What you need: average velocity =\dfrac{s(t_2)-s(t_1)}{t_2-t_1}; instantaneous velocity =s'(t_0).

Steps:

  1. a) Calculate s(4) and s(5).
  2. b) Factorise 2t^2+3t-44=(t-4)(2t+11).
Show solution

a) s(4)=44, s(5)=65; the average velocity is \dfrac{65-44}{1}=21 m/s.

b) \dfrac{s(t)-s(4)}{t-4}=\dfrac{2t^2+3t-44}{t-4}=2t+11\to19. So v(4)=19 m/s, which is less than 21 m/s because the train is speeding up, so its velocity at the end of the interval is greater than at the start.

Answer. a) 21 m/s; b) 19 m/s.

Exercise 9

Revisit powers with rational exponents. Let f(x)=x^{3/2} (x>0). Find f'(4) from the definition.

What you need and how to start

What you need: x^{3/2}=\left(\sqrt x\right)^3; put u=\sqrt x.

Steps:

  1. Write the quotient in terms of u and factorise u^3-8 and u^2-4.
  2. Cancel, then let u\to2.
Show solution

The function f(x)=x^{3/2}=\left(\sqrt x\right)^3 is defined for x>0 and f(4)=4^{3/2}=8.

By the definition, f'(4)=\lim_{x\to4}\dfrac{f(x)-f(4)}{x-4}.

Put u=\sqrt x; then x=u^2 and f(x)=u^3. Since the square root function is continuous, x\to4 is equivalent to u\to2 (with u\neq2 when x\neq4).

For u\neq2 the quotient equals \frac{u^3-8}{u^2-4}=\frac{(u-2)\left(u^2+2u+4\right)}{(u-2)(u+2)}=\frac{u^2+2u+4}{u+2}.

As u\to2, \dfrac{u^2+2u+4}{u+2}\to\dfrac{4+4+4}{2+2}=\dfrac{12}{4}=3.

So f'(4)=3.

Answer. 3.

Exercise 10 Challenge

Let f be an even function that is differentiable at 0. Prove that f'(0)=0.

What you need and how to start

What you need: an even function satisfies f(-h)=f(h).

Steps:

  1. Write f'(0) from the definition with h\to0 and with -h\to0.
  2. Compare the two expressions.
Show solution

Since f is an even function, f(-h)=f(h) for every h in the domain. Since f is differentiable at 0, f'(0)=\lim_{h\to0}\frac{f(h)-f(0)}{h}.

As h\to0 we also have -h\to0, so we may replace h by -h in the limit above: f'(0)=\lim_{h\to0}\frac{f(-h)-f(0)}{-h}.

Because f(-h)=f(h), f'(0)=\lim_{h\to0}\frac{f(h)-f(0)}{-h}=-\lim_{h\to0}\frac{f(h)-f(0)}{h}=-f'(0).

Hence 2f'(0)=0, that is f'(0)=0.

So if f is an even function that is differentiable at 0, then f'(0)=0.

Answer. f'(0)=0.

Mini test

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

Question 1. Let f(x)=x^2+2x. The value of f'(1) is
Question 2. The tangent to the graph of y=x^3 at the point with x-coordinate 1 has equation
Question 3. Which property does f(x)=|x| have?
Question 4. A particle has distance s(t)=t^2+4t (metres) after t seconds. The instantaneous velocity at t=2 is

Part II. True or false

Question 1. Let h(x)=\begin{cases}x^2&\text{if }x\le0\\x&\text{if }x>0.\end{cases} Decide whether each statement is true or false:
a) h is continuous at x=0.
b) The limit of \dfrac{h(x)-h(0)}{x} as x\to0^+ is 1.
c) The limit of \dfrac{h(x)-h(0)}{x} as x\to0^- is 1.
d) h is differentiable at x=0.

Part III. Short answer

Question 1. An object has distance s(t)=3t^2+t metres after t seconds (hypothetical figures). Find the instantaneous velocity at t=5 (in m/s).

Question 2. Find the gradient of the tangent to the graph of y=\dfrac1x at the point with x-coordinate \dfrac14.

Show answers and explanations
  1. Part I, question 1: A. \dfrac{x^2+2x-3}{x-1}=\dfrac{(x-1)(x+3)}{x-1}=x+3\to4. Option C is f(1), B uses only the coefficient of 2x, and D is an addition slip.
  2. Part I, question 2: B. f(1)=1 and f'(1)=3, so y=3(x-1)+1=3x-2. Option A has the wrong sign on the constant, C uses gradient 1, and D uses gradient -3.
  3. Part I, question 3: C. |x| is continuous at 0, but the two one-sided limits of the difference quotient are 1 and -1, so it is not differentiable. Options B and A get the value wrong, and D gets the continuity wrong.
  4. Part I, question 4: D. \dfrac{t^2+4t-12}{t-2}=\dfrac{(t-2)(t+6)}{t-2}=t+6\to8. Option A takes only the coefficient 4 of 4t, while B and C come from simplifying the quotient wrongly.
  5. Part II, question 1: a) True; b) True; c) False; d) False. a) True: h(0)=0 and both one-sided limits equal 0. b) True: \dfrac{x-0}{x}=1. c) False: \dfrac{x^2}{x}=x\to0. d) False: the two one-sided limits differ (1 and 0).
  6. Part III, question 1: 31. \dfrac{3t^2+t-80}{t-5}=\dfrac{(t-5)(3t+16)}{t-5}=3t+16\to31.
  7. Part III, question 2: -16. \dfrac{\frac1x-4}{x-\frac14}=\dfrac{\frac{1-4x}{x}}{x-\frac14}=\dfrac{-4\left(x-\frac14\right)}{x\left(x-\frac14\right)}=-\dfrac4x\to-16.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email