BAC MathsOffline
Progress saved to your account.Saving to your account…Offline. Progress stays on this device and uploads later.Sync did not work. It will try again.Progress on this device is not in your account.This device’s progress belongs to another account, so it is not synced.
Settings

Working draft: this text has not been reviewed yet.

2.1Derivatives and the study of functions

Differentiation Rules, Differentiability & Tangents

Reading time
30 min
In the programme of
SEMTM
Contents
  1. 1Differentiability at a Point
  2. 1.1Formal Definition
  3. 1.2Differentiability Implies Continuity
  4. 2Tangents and Singular Points
  5. 2.1The Tangent Line
  6. 2.2Angular Point
  7. 2.3Vertical Half-Tangent
  8. 3Differentiation Formulas
  9. 3.1Elementary Functions
  10. 3.2Operational Rules
  11. 4Tangent Problems of the BAC
  12. 4.1Parallel to a Given Line
  13. 4.2Perpendicular to a Given Line
  14. 4.3Through an External Point
  15. 5Recap

Differentiability at a Point

How steep is a curve at one single point? Take a second point, draw the secant, and bring the two together.

x₀ = 1f′(x₀) ≈ 0.707(T): y ≈ 0.707(x − 1) + 1.414

Here f(x)=x2+1f(x) = \sqrt{x^2 + 1} and f′(x)=xx2+1f'(x) = \frac{x}{\sqrt{x^2 + 1}}. First the step hh shrinks: the dashed secant turns into the solid tangent while τ(h)\tau(h) approaches f′(x0)f'(x_0). Then the point rolls: the height of the point on the second graph is the slope of the tangent on the first. Bring x0x_0 to 00: the tangent is horizontal, y=1y = 1.

Formal Definition

Definition · Difference quotient and derivative

Let ff be a real function defined on an open interval II containing x0x_0. The rate of change (difference quotient) of ff between x0x_0 and x0+hx_0 + h, with h≠0h \neq 0 such that x0+h∈Ix_0 + h \in I, is:

τ(h)=f(x0+h)−f(x0)h=f(x)−f(x0)x−x0(where x=x0+h)\tau(h) = \frac{f(x_0 + h) - f(x_0)}{h} = \frac{f(x) - f(x_0)}{x - x_0} \quad (\text{where } x = x_0 + h)

We say that ff is differentiable at x0x_0 if the rate of change admits a finite real limit as h→0h \to 0 (or x→x0x \to x_0):

f′(x0)=lim⁡h→0f(x0+h)−f(x0)h=lim⁡x→x0f(x)−f(x0)x−x0∈R\boxed{f'(x_0) = \lim_{h \to 0} \frac{f(x_0 + h) - f(x_0)}{h} = \lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0} \in \mathbb{R}}

The real number f′(x0)f'(x_0) is called the derivative of ff at x0x_0.

Differentiability Implies Continuity

Theorem

If a function ff is differentiable at x0x_0, then ff is continuous at x0x_0.

Proof

For x≠x0x \neq x_0:

f(x)−f(x0)=f(x)−f(x0)x−x0×(x−x0)f(x) - f(x_0) = \frac{f(x) - f(x_0)}{x - x_0} \times (x - x_0)

Taking the limit as x→x0x \to x_0:

lim⁡x→x0[f(x)−f(x0)]=lim⁡x→x0[f(x)−f(x0)x−x0]×lim⁡x→x0(x−x0)=f′(x0)×0=0\lim_{x \to x_0} [f(x) - f(x_0)] = \lim_{x \to x_0} \left[\frac{f(x) - f(x_0)}{x - x_0}\right] \times \lim_{x \to x_0} (x - x_0) = f'(x_0) \times 0 = 0

Hence lim⁡x→x0f(x)=f(x0)\lim_{x \to x_0} f(x) = f(x_0), which proves that ff is continuous at x0x_0.

Pitfall · The converse is false

Continuity does not imply differentiability. The function f(x)=∣x∣f(x) = |x| is continuous at 00 but not differentiable at 00, because:

lim⁡x→0+∣x∣−0x=1whilelim⁡x→0−∣x∣−0x=−1\lim_{x \to 0^+} \frac{|x| - 0}{x} = 1 \quad \text{while} \quad \lim_{x \to 0^-} \frac{|x| - 0}{x} = -1

The curve of f(x)=∣x∣f(x) = |x| is unbroken at 00, but the two sides leave the origin with different slopes.

Quick check

Which statement is true for every function ff defined on an open interval containing x0x_0?

Hint

One direction is a theorem, the other has a counter-example.

Solution

Differentiability implies continuity. The converse is false: f(x)=∣x∣f(x) = |x| is continuous at 00 and not differentiable there.


Tangents and Singular Points

The derivative is a slope, so it gives a line. Where there is no derivative, the picture tells you why.

The Tangent Line

Theorem · Tangent at a point

If ff is differentiable at x0x_0, the curve (Cf)(\mathcal{C}_f) admits a non-vertical tangent line (T)(T) at the point A(x0,f(x0))A(x_0, f(x_0)), with slope f′(x0)f'(x_0):

(T):y=f′(x0)(x−x0)+f(x0)\boxed{(T) : y = f'(x_0)(x - x_0) + f(x_0)}

Method · Equation of a tangent

  1. Compute f(x0)f(x_0): it gives the point A(x0,f(x0))A(x_0, f(x_0)).
  2. Compute f′(x)f'(x), then the slope f′(x0)f'(x_0).
  3. Substitute in y=f′(x0)(x−x0)+f(x0)y = f'(x_0)(x - x_0) + f(x_0) and simplify.

Worked Example:

A textbook exercise: f1(x)=2x−3x+1f_1(x) = \frac{2x - 3}{x + 1} at x0=0x_0 = 0.

  1. Domain: Df=R∖{−1}D_f = \mathbb{R} \setminus \{-1\}. A rational function is differentiable on its domain.

  2. Quotient rule with u(x)=2x−3u(x) = 2x - 3, u′(x)=2u'(x) = 2 and v(x)=x+1v(x) = x + 1, v′(x)=1v'(x) = 1:

    f1′(x)=2(x+1)−(2x−3)(1)(x+1)2=2x+2−2x+3(x+1)2=5(x+1)2f_1'(x) = \frac{2(x + 1) - (2x - 3)(1)}{(x + 1)^2} = \frac{2x + 2 - 2x + 3}{(x + 1)^2} = \htmlClass{hl}{\frac{5}{(x + 1)^2}}
  3. At x0=0x_0 = 0:

    f1(0)=0−30+1=−3,f1′(0)=5(0+1)2=5f_1(0) = \frac{0 - 3}{0 + 1} = -3, \quad f_1'(0) = \frac{5}{(0 + 1)^2} = 5
  4. Tangent:

    y=f1′(0)(x−0)+f1(0)=5x−3y = f_1'(0)(x - 0) + f_1(0) = \htmlClass{hl-3}{5x - 3}

Angular Point

Definition · Angular point

Suppose the right and left limits of the rate of change exist, are finite, but are unequal:

lim⁡x→x0+f(x)−f(x0)x−x0=fr′(x0)≠fl′(x0)=lim⁡x→x0−f(x)−f(x0)x−x0\lim_{x \to x_0^+} \frac{f(x) - f(x_0)}{x - x_0} = f'_r(x_0) \neq f'_l(x_0) = \lim_{x \to x_0^-} \frac{f(x) - f(x_0)}{x - x_0}

Then ff is not differentiable at x0x_0. The point A(x0,f(x0))A(x_0, f(x_0)) is an angular point, and the curve admits two distinct half-tangents at AA:

  • the right half-tangent (Tr)(T_r), with slope fr′(x0)f'_r(x_0), for x≥x0x \ge x_0;
  • the left half-tangent (Tl)(T_l), with slope fl′(x0)f'_l(x_0), for x≤x0x \le x_0.

Vertical Half-Tangent

Definition · Vertical half-tangent

Suppose ff is continuous at x0x_0 and the rate of change tends to infinity as x→x0x \to x_0 (from both sides or from one side):

lim⁡x→x0f(x)−f(x0)x−x0=±∞\lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0} = \pm\infty

Then ff is not differentiable at x0x_0, and (Cf)(\mathcal{C}_f) admits a vertical half-tangent (parallel to the yy-axis).

Its direction follows from the side and the sign of the limit:

SideLimit of the rate of changeHalf-tangent directed
x→x0+x \to x_0^++∞+\inftyupward
x→x0+x \to x_0^+−∞-\inftydownward
x→x0−x \to x_0^-+∞+\inftydownward
x→x0−x \to x_0^-−∞-\inftyupward

Quick check

At x0x_0 the right limit of the rate of change of ff is 11 and the left limit is −1-1. What is the point A(x0,f(x0))A(x_0, f(x_0))?

Hint

Both limits are finite. Are they equal?

Solution

The two limits are finite and unequal: AA is an angular point, with two half-tangents of slopes 11 and −1-1.


Differentiation Formulas

Once the elementary derivatives are known, a few rules build all the others.

Elementary Functions

Function f(x)f(x)Derivative f′(x)f'(x)Domain of ffDomain of f′f'
kk (constant)00R\mathbb{R}R\mathbb{R}
xx11R\mathbb{R}R\mathbb{R}
xnx^n (n∈N∗n \in \mathbb{N}^*)nxn−1n x^{n-1}R\mathbb{R}R\mathbb{R}
xnx^n (n∈Z−n \in \mathbb{Z}^-)nxn−1n x^{n-1}R∗\mathbb{R}^*R∗\mathbb{R}^*
1x\frac{1}{x}−1x2-\frac{1}{x^2}R∗\mathbb{R}^*R∗\mathbb{R}^*
x\sqrt{x}12x\frac{1}{2\sqrt{x}}[0,+∞[[0, +\infty[]0,+∞[]0, +\infty[
sin⁡x\sin xcos⁡x\cos xR\mathbb{R}R\mathbb{R}
cos⁡x\cos x−sin⁡x-\sin xR\mathbb{R}R\mathbb{R}
tan⁡x\tan x1+tan⁡2x=1cos⁡2x1 + \tan^2 x = \frac{1}{\cos^2 x}R∖{π2+kπ,k∈Z}\mathbb{R} \setminus \{\frac{\pi}{2} + k\pi, k \in \mathbb{Z}\}R∖{π2+kπ,k∈Z}\mathbb{R} \setminus \{\frac{\pi}{2} + k\pi, k \in \mathbb{Z}\}

Operational Rules

Let uu and vv be differentiable functions on an interval II, and k∈Rk \in \mathbb{R}:

OperationFunctionDerivative
Constant multiplek⋅uk \cdot uk⋅u′k \cdot u'
Sum or differenceu+vu + vu′+v′u' + v'
Productu⋅vu \cdot vu′v+uv′u' v + u v'
Reciprocal1v\frac{1}{v} (v≠0v \neq 0)−v′v2-\frac{v'}{v^2}
Quotientuv\frac{u}{v} (v≠0v \neq 0)u′v−uv′v2\frac{u' v - u v'}{v^2}
Powerunu^n (n∈N∗n \in \mathbb{N}^*)n⋅u′⋅un−1n \cdot u' \cdot u^{n-1}
Integer powerunu^n (n∈Z∗,u≠0n \in \mathbb{Z}^*, u \neq 0)n⋅u′⋅un−1n \cdot u' \cdot u^{n-1}
Square rootu\sqrt{u} (u>0u > 0)u′2u\frac{u'}{2\sqrt{u}}
Affine compositex↦f(ax+b)x \mapsto f(ax + b)a⋅f′(ax+b)a \cdot f'(ax + b)
General chain ruleg∘u:x↦g(u(x))g \circ u : x \mapsto g(u(x))u′(x)⋅g′(u(x))u'(x) \cdot g'(u(x))

Method · Differentiating an expression

  1. Name the outermost operation: sum, product, quotient, power, square root or composite.
  2. Name the pieces uu and vv and differentiate each one.
  3. Apply the matching rule, then simplify.

Worked Example:

A textbook exercise: f4(x)=xcos⁡(2x)f_4(x) = x \cos(2x) at x0=π4x_0 = \frac{\pi}{4}.

  1. Domain: Df=RD_f = \mathbb{R}, and f4f_4 is differentiable on R\mathbb{R}.

  2. Product rule (uv)′=u′v+uv′(uv)' = u'v + uv':

    f4′(x)=1⋅cos⁡(2x)+x⋅(−2sin⁡(2x))=cos⁡(2x)−2xsin⁡(2x)f_4'(x) = 1 \cdot \cos(2x) + x \cdot (-2\sin(2x)) = \htmlClass{hl}{\cos(2x) - 2x\sin(2x)}
  3. At x0=π4x_0 = \frac{\pi}{4} we have 2x0=π22x_0 = \frac{\pi}{2}, with cos⁡(π2)=0\cos\left(\frac{\pi}{2}\right) = 0 and sin⁡(π2)=1\sin\left(\frac{\pi}{2}\right) = 1:

    f4(π4)=0,f4′(π4)=0−2(π4)(1)=−π2f_4\left(\frac{\pi}{4}\right) = 0, \quad f_4'\left(\frac{\pi}{4}\right) = 0 - 2\left(\frac{\pi}{4}\right)(1) = -\frac{\pi}{2}
  4. Tangent:

    y=−π2(x−π4)+0=−π2x+π28y = -\frac{\pi}{2}\left(x - \frac{\pi}{4}\right) + 0 = \htmlClass{hl-3}{-\frac{\pi}{2} x + \frac{\pi^2}{8}}

Quick check

Let f2(x)=(2x2−3x+1)3f_2(x) = (2x^2 - 3x + 1)^3. Compute f2′(x)f_2'(x) and type it on one line.

Hint

Use (un)′=nu′un−1(u^n)' = n u' u^{n-1} with u(x)=2x2−3x+1u(x) = 2x^2 - 3x + 1.

Solution

With u′(x)=4x−3u'(x) = 4x - 3:

f2′(x)=3(4x−3)(2x2−3x+1)2f_2'(x) = 3(4x - 3)(2x^2 - 3x + 1)^2

What is the slope of the tangent to the curve of f2f_2 at x0=1x_0 = 1?

Hint

Compute u(1)u(1) first.

Solution

u(1)=0u(1) = 0, so f2(1)=0f_2(1) = 0 and f2′(1)=0f_2'(1) = 0: the tangent is the line y=0y = 0, the xx-axis.


Tangent Problems of the BAC

The BAC rarely hands you the point. Three classic questions ask you to find it.

Parallel to a Given Line

Method · Tangent parallel to the line y = mx + p

  1. Two lines are parallel if and only if their slopes are equal.
  2. Solve f′(x)=mf'(x) = m.
  3. Each solution x0x_0 gives a tangent at the point A(x0,f(x0))A(x_0, f(x_0)).
  4. Write it as y=m(x−x0)+f(x0)y = m(x - x_0) + f(x_0).

Worked Example:

A textbook problem: let f(x)=x2+3x−1f(x) = \frac{x^2 + 3}{x - 1} on R∖{1}\mathbb{R} \setminus \{1\}. Find the points of (Cf)(\mathcal{C}_f) where the tangent is parallel to (Δ):y=−3x+7(\Delta) : y = -3x + 7.

  1. The slope of (Δ)(\Delta) is m=−3m = -3, so we solve f′(x)=−3f'(x) = -3.

  2. Quotient rule:

    f′(x)=(2x)(x−1)−(x2+3)(1)(x−1)2=x2−2x−3(x−1)2f'(x) = \frac{(2x)(x - 1) - (x^2 + 3)(1)}{(x - 1)^2} = \htmlClass{hl}{\frac{x^2 - 2x - 3}{(x - 1)^2}}
  3. Solve, for x≠1x \neq 1:

    x2−2x−3=−3(x−1)2  ⟺  4x2−8x=0  ⟺  4x(x−2)=0x^2 - 2x - 3 = -3(x - 1)^2 \iff 4x^2 - 8x = 0 \iff 4x(x - 2) = 0
  4. Points: x=0x = 0 gives f(0)=−3f(0) = -3, and x=2x = 2 gives f(2)=7f(2) = 7. The two points are A(0,−3)\htmlClass{hl-3}{A(0, -3)} and B(2,7)\htmlClass{hl-3}{B(2, 7)}.

Perpendicular to a Given Line

Method · Tangent perpendicular to the line y = mx + p, with m not zero

  1. In an orthonormal frame, two non-vertical lines are perpendicular if and only if the product of their slopes equals −1-1.

  2. Solve:

    f′(x)×m=−1  ⟺  f′(x)=−1m\boxed{f'(x) \times m = -1 \iff f'(x) = -\frac{1}{m}}
  3. Write the tangent at each solution.

Through an External Point

A typical question: determine the tangents to (Cf)(\mathcal{C}_f) passing through a point P(xP,yP)P(x_P, y_P) that is not on the curve.

Method · Tangent through an external point

  1. Let A(x0,f(x0))A(x_0, f(x_0)) be the unknown point of tangency. The tangent at x0x_0 is:

    y=f′(x0)(x−x0)+f(x0)y = f'(x_0)(x - x_0) + f(x_0)
  2. Substitute the coordinates of PP:

    yP=f′(x0)(xP−x0)+f(x0)y_P = f'(x_0)(x_P - x_0) + f(x_0)
  3. Solve this equation for the unknown x0x_0.

  4. Each real solution x0x_0 gives one tangent passing through PP.

Pitfall · The point P is not the point of tangency

When PP is not on the curve, f′(xP)f'(x_P) is not the slope you want. The unknown is x0x_0, the abscissa of the point where the line touches the curve.


Recap

  • f′(x0)f'(x_0) is the finite limit of the rate of change at x0x_0. Differentiability implies continuity, not the reverse.
  • The tangent at x0x_0 is y=f′(x0)(x−x0)+f(x0)y = f'(x_0)(x - x_0) + f(x_0). Two different finite one-sided limits give an angular point; an infinite limit gives a vertical half-tangent.
  • Differentiate by naming the operation and applying its rule. For tangent problems, translate the condition into an equation in xx or x0x_0.

What is next: the sign of f′(x)f'(x) tells where the function rises and falls, and that is the heart of the function study.

Mark it when you have worked through the lesson: it counts in your chapter progress.

A new version of the site is ready.

Progress saved to your account.Saving to your account…Offline. Progress stays on this device and uploads later.Sync did not work. It will try again.Progress on this device is not in your account.This device’s progress belongs to another account, so it is not synced.
Settings