Class 12 MathsAll 13 chaptersQuick lessonWorked solutionsPast papersPast papersGet updates

Continuity and
Differentiability.

A continuous graph can be drawn without lifting the pencil. A differentiable graph is also smooth: at every point it has one clear direction, its tangent. This chapter makes both ideas precise, then builds a toolkit that can find the slope of almost any function.

Left: a jump, not continuous. Middle: a corner, continuous but not differentiable. Right: smooth, differentiable, with a tangent that slides along the curve.
Part 1 · Sections 5.1–5.2

Continuous at c: left, right and value all agree.

Walk along the graph towards x = c from each side. If both walks head for the same height and the dot at c sits there, the graph is unbroken.

The test
limx→c f(x) = f(c)

f is continuous at c when the limit exists and equals the actual value f(c).

Two sides
LHL = RHL

The height you head for from the left (x → c⁻) is the left-hand limit, LHL; from the right (x → c⁺), the right-hand limit, RHL. Both must exist and be equal.

A whole domain
limx→a⁺ f(x) = f(a)
limx→b⁻ f(x) = f(b)

f is continuous when it is continuous at every point of its domain. At an endpoint of [a, b], only the one-sided limit from inside counts.

Approach labPick a function, then shrink the distance h. The blue bead sits at c − h, the orange bead at c + h. Watch where their heights settle, and compare with the black dot f(c).
f(c − h), from the left
f(c + h), from the right
f(c)
No break

Continuous

LHL = RHL = f(c). Example: 2x + 3 at x = 1.

Jump

Sides disagree

LHL ≠ RHL, so there is no limit. Example: [x] at every integer.

Hole

Value off the path

LHL = RHL ≠ f(c). Example: x³ + 3 with f(0) = 1.

Watch out

A point that is not in the domain is not a discontinuity. 1/x is continuous: it is simply not defined at 0, so there is nothing to test there (Examples 9 and 12).

Example 1

f(x) = 2x + 3 at x = 1.

  1. Both sides head for 5; f(1) = 5.
Continuous at 1.
Example 2

f(x) = x² at x = 0.

  1. lim x² = 0 = f(0).
Continuous at 0.
Example 3

f(x) = |x| at x = 0.

  1. −x → 0 from the left, x → 0 from the right.
Continuous (a corner, not a break).
Example 4

x³ + 3 (x ≠ 0), 1 (x = 0).

  1. The limit is 3, but f(0) = 1.
Not continuous at 0.
Example 5

Constant f(x) = k.

  1. lim k = k at every c.
Continuous everywhere.
Example 6

Identity f(x) = x.

  1. lim x = c = f(c).
Continuous everywhere.
Example 7

|x| everywhere.

  1. Cases c < 0, c > 0, c = 0.
Continuous everywhere.
Example 8

x³ + x² − 1.

  1. Limits of sums and products.
Continuous everywhere.
Example 9

f(x) = 1/x, x ≠ 0.

  1. lim 1/x = 1/c for every c ≠ 0.
Continuous on its domain.
Example 10

x + 2 (x ≤ 1), x − 2 (x > 1).

  1. LHL 3, RHL −1 at x = 1.
Breaks only at x = 1.
Example 11

x + 2 (x < 1), 0 (x = 1), x − 2 (x > 1).

  1. The sides disagree at 1.
Breaks only at x = 1.
Example 12

x + 2 (x < 0), −x + 2 (x > 0).

  1. 0 is not in the domain.
Continuous on its domain.
Example 13

x (x ≥ 0), x² (x < 0).

  1. Both pieces meet at the origin.
Continuous everywhere.
Example 14

Every polynomial.

  1. lim p(x) = p(c).
Continuous everywhere.
Example 15

The greatest integer function [x].

  1. At an integer c: LHL c − 1, RHL c.
Breaks at every integer.
Part 2 · Section 5.2.1

Build continuous functions from continuous pieces.

Join continuous functions together and the result is still continuous. Two theorems say exactly when.

Theorem 1
f + g,  f − g,  f · g
fg  when g(c) ≠ 0

If f and g are continuous at c, so are their sum, difference and product, and their quotient as long as the bottom is not 0 at c.

Theorem 2
(f ∘ g)(x) = f(g(x))

If g is continuous at c and f is continuous at g(c), then the composite f ∘ g is continuous at c.

So these are continuous
p(x)q(x)  where q(x) ≠ 0

Polynomials, rational functions (away from zeros of the bottom), sin, cos, tan (where defined), and every combination of them.

Combine labChoose two continuous functions and an operation. The result is continuous everywhere except where it is not defined (a zero of the bottom, red dashes).
Example 16

Every rational function p/q.

  1. Quotient of continuous functions.
Continuous where q ≠ 0.
Example 17

sin x.

  1. sin(c + h) = sin c cos h + cos c sin h → sin c.
Continuous everywhere.
Example 18

tan x = sin x / cos x.

  1. cos x ≠ 0.
Continuous on its domain.
Example 19

sin(x²).

  1. sin ∘ (x²), Theorem 2.
Continuous.
Example 20

|1 − x + |x||.

  1. |·| ∘ (1 − x + |x|).
Continuous.
Part 3 · Section 5.3

A derivative is the slope that chords settle on.

Draw a chord from a point on the graph to a nearby point, then slide the nearby point closer. The slope the chord settles on is the derivative.

The derivative
f′(c) = limh→0 f(c + h) − f(c)h

The slope of the chord from (c, f(c)) to the nearby point (c + h, f(c + h)), as the nearby point closes in.

Differentiable at c
LHD = RHD

f is differentiable at c when the left-hand derivative, LHD (h → 0⁻), and the right-hand derivative, RHD (h → 0⁺), are finite and equal.

Theorem 3
differentiable ⇒ continuous

If f is differentiable at a point, it is also continuous there.

Not the other way
|x| at 0: LHD −1, RHD +1

The converse is false: |x| is continuous at 0, but its chords have slope −1 on the left and +1 on the right.

Rules

(u ± v)′ = u′ ± v′
(uv)′ = u′v + uv′product rule
(uv)′ = u′v − uv′v²v ≠ 0

Standard derivatives (Table 5.3)

(xⁿ)′ = nxⁿ⁻¹
(sin x)′ = cos x
(cos x)′ = − sin x
(tan x)′ = sec² x

Every one of these comes from the chord-slope limit above; the basics show how.

Chord labQ is at x = 0 + h. Slide h towards 0 from either side. On a smooth graph the chord turns into one tangent; at a corner the two sides disagree.
slope of the chord PQ
In plain words

Zoom in on a differentiable graph and it looks more and more like a straight line: its tangent. Zoom in on |x| at 0 and the corner never goes away.

Part 4 · Section 5.3.1

Chain rule: multiply the rates along the chain.

When one function sits inside another, each layer magnifies a small change by its own rate. So the rates multiply.

The chain rule
dydx = dydu · dudx

For y = f(u) with u = g(x). Read it as: outer rate × inner rate.

Three layers
dydx = dydv · dvdu · dudx

One more layer, one more rate to multiply.

Check it
[(2x + 1)³]′ = 6(2x + 1)²

Put t = 2x + 1, so the function is t³. Its derivative is 3t² · 2 = 6(2x + 1)², the same as expanding the cube first.

How to use it

  1. Find the inside function and call it u (for sin(x²), u = x²).
  2. Differentiate the outside function as if u were the variable: dy/du.
  3. Differentiate the inside: du/dx.
  4. Multiply the two, then write u back in terms of x.
Magnifier labA tiny interval around x (width 0.1) is sent through the inner machine and then the outer one. Its width is multiplied by each machine's rate.
du/dx (inner rate)
dy/du (outer rate)
product vs measured dy/dx
Example 21

f(x) = sin(x²).

  1. u = x², y = sin u: cos u · 2x.
2x cos(x²).
Part 5 · Section 5.3.2

Implicit: differentiate the relation as it stands.

Sometimes y is tied to x by an equation that is hard to solve for y. You do not need to: differentiate both sides as they stand.

The one new step
ddx (y²) = 2y · dydx

Treat y as a function of x. By the chain rule, every term containing y picks up a factor dy/dx.

A circle
x² + y² = 25
2x + 2y · dydx = 0
dydx = − xy

No need to solve for y. The same works for relations such as y + sin y = cos x.

How to use it

  1. Differentiate both sides with respect to x.
  2. Every time you differentiate a y-term, attach a factor dy/dx.
  3. Collect the dy/dx terms on one side, everything else on the other.
  4. Take dy/dx out as a common factor and divide.
Tangent-to-a-circle labMove the point round x² + y² = 25. Implicit differentiation gives 2x + 2y · dy/dx = 0, so dy/dx = −x/y. Compare with the tangent you see.
−x / y
Example 22

x − y = π.

  1. 1 − dy/dx = 0.
dy/dx = 1.
Example 23

y + sin y = cos x.

  1. (1 + cos y) dy/dx = −sin x.
dy/dx = −sin x/(1 + cos y).
Part 6 · Section 5.3.3

Inverse trig: undo, then differentiate.

The graph of an inverse is the mirror image of the original in the line y = x. So its slopes are the reciprocals of the original slopes.

Undo first
y = sin⁻¹ x  means  x = sin y

with y in [−π/2, π/2], the principal range from Chapter 2.

Then differentiate
1 = cos y · dydx

In that range cos y = √(1 − x²) > 0, so you may divide by it. This gives the first row of the table below.

f(x)f′(x)where
sin⁻¹ x1√(1 − x²)−1 < x < 1
cos⁻¹ x− 1√(1 − x²)−1 < x < 1
tan⁻¹ x11 + x²every real x
The derivatives of the three main inverse trigonometric functions (Section 5.3.3).
Basics for thisprincipal ranges
Mirror labThe orange curve is sin x on [−π/2, π/2], the blue one its mirror image sin⁻¹x. Matching points have slopes m and 1/m.
slope of sin at y
slope of sin⁻¹ at x
Example 24

f(x) = sin⁻¹x.

  1. x = sin y, 1 = cos y · y′.
1/√(1 − x²).
Part 7 · Section 5.4

eˣ is its own slope; log x is its mirror.

There is one special base, e ≈ 2.718, for which the slope of eˣ always equals its height. Its mirror image, log x, has slope 1/x.

Slope = height
(eˣ)′ = eˣ
(log x)′ = 1x

Here log means the natural log, to base e. Its graph is the mirror image of eˣ in y = x.

The number e
e = 1 + 11! + 12! + …
e ≈ 2.718

The one base whose curve has slope equal to its height at every point.

Any base b > 1
y = bˣ
domain ℝ,  range (0, ∞)

Passes through (0, 1), always increases, hugs the x-axis far to the left, and grows faster than any power of x. Its inverse is logb x, with domain (0, ∞).

Log laws

log pq = log p + log q
log pq = log p − log q
log pⁿ = n log p
loga p = logb plogb achange of base

Logs turn products into sums and powers into multiples. That is what makes the next section work.

Growth labChange the base b. For every x, slope ÷ height of bˣ is the same number, log b. Find the base that makes it exactly 1.
slope ÷ height
Example 25

Is x = elog x for all real x?

  1. log needs x > 0.
Only for x > 0.
Example 26

e−x, sin(log x), cos⁻¹(eˣ), ecos x.

  1. Chain rule with (eᵘ)′ = eᵘ, (log u)′ = 1/u.
−e−x, cos(log x)/x, −eˣ/√(1 − e²ˣ), −sin x ecos x.
Part 8 · Section 5.5

Logarithmic differentiation: let logs untangle it.

Powers like xˣ, and long products and quotients, are hard to differentiate as they stand. Take logs first and they turn into sums.

Take logs
y = [u(x)]v(x)
log y = v log u

The same first step works for a long product and quotient.

Then differentiate
1y dydx = v u′u + v′ log u

Then multiply back by y to get dy/dx.

How to use it

  1. Write y = the function and take log of both sides.
  2. Use the log laws to turn powers into multiples and products into sums.
  3. Differentiate both sides: log y gives (1/y) dy/dx.
  4. Multiply by y, and write y back as the original function.
Watch out

Both f(x) and u(x) must be positive (f(x) > 0, u(x) > 0) for their logs to exist. For a sum of such powers, take logs of each part separately.

Basics for thislog lawsproduct rule
xˣ lablog y = x log x gives y′ = xˣ(1 + log x). Slide the point: the slope is 0 where log x = −1, at x = 1/e.
xˣ(1 + log x)
Example 27

√[(x − 3)(x² + 4)/(3x² + 4x + 5)].

  1. log y = ½[log(x − 3) + log(x² + 4) − log(3x² + 4x + 5)].
(y/2)[1/(x − 3) + 2x/(x² + 4) − (6x + 4)/(3x² + 4x + 5)].
Example 28

aˣ.

  1. log y = x log a.
aˣ log a.
Example 29

xsin x.

  1. log y = sin x log x.
xsin x[sin x/x + cos x log x].
Example 30

yˣ + xʸ + xˣ = aᵇ.

  1. Name u, v, w and use logs on each.
−[yˣ log y + y xʸ⁻¹ + xˣ(1 + log x)]/[x yˣ⁻¹ + xʸ log x].
Part 9 · Section 5.6

Parametric: vertical speed over horizontal speed.

When x and y both depend on a third variable t, a point moves along a curve as t changes. Its slope is vertical speed ÷ horizontal speed.

The rule
dydx = dy/dtdx/dt

For x = f(t) and y = g(t), whenever dx/dt ≠ 0. The letter t is called the parameter.

Why it works
dydt = dydx · dxdt

This is the chain rule. Divide both sides by dx/dt.

The answer
x = at²,  y = 2at
dydx = 1t

The answer is usually in terms of t only (Example 32).

Rolling wheel labA point on the rim of a rolling wheel traces a cycloid, x = θ − sin θ, y = 1 − cos θ. Its velocity has parts dx/dθ = 1 − cos θ and dy/dθ = sin θ; the tangent's slope is their ratio, cot(θ/2).
dy/dx = sin θ / (1 − cos θ)
Example 31

x = a cos θ, y = a sin θ.

  1. (a cos θ)/(−a sin θ).
−cot θ.
Example 32

x = at², y = 2at.

  1. 2a/(2at).
1/t.
Example 33

x = a(θ + sin θ), y = a(1 − cos θ).

  1. a sin θ / a(1 + cos θ).
tan(θ/2).
Example 34

x2/3 + y2/3 = a2/3.

  1. x = a cos³θ, y = a sin³θ.
−tan θ = −∛(y/x).
Part 10 · Section 5.7

The second derivative measures bending.

Differentiate a second time and you learn how fast the slope itself is changing. That tells you which way the graph bends.

Differentiate again
d²ydx² = ddx (dydx)

This is the second order derivative, also written f″(x), y″, y₂ or D²y.

Which way it bends
y″ > 0: bends up
y″ < 0: bends down

y″ is the rate at which the slope changes. Positive: the slope is increasing and the graph bends up, like a cup. Negative: it bends down, like a cap.

In the exercises
y″ + y = 0

Many exercises then check an equation linking y, y′ and y″, such as this one for y = A sin x + B cos x (Example 36).

Bending labBlue is y, orange y′, purple y″. Slide the point: where y″ is positive the tangent turns anticlockwise as you move right.
y′ (slope)
y″ (bending)
Example 35

y = x³ + tan x.

  1. y′ = 3x² + sec²x.
y″ = 6x + 2 sec²x tan x.
Example 36

y = A sin x + B cos x.

  1. y″ = −y.
y″ + y = 0.
Example 37

y = 3e²ˣ + 2e³ˣ.

  1. Coefficients 12 − 30 + 18 and 18 − 30 + 12.
y″ − 5y′ + 6y = 0.
Example 38

y = sin⁻¹x.

  1. √(1 − x²) y′ = 1, differentiate.
(1 − x²)y″ − xy′ = 0.
Miscellaneous examples

Choose the right tool.

Rewrite first (powers instead of roots, change of base, a trig substitution), then pick the method.

Example 39

√(3x + 2) + 1/√(2x² + 4); log₇(log x).

  1. Powers with the chain rule; change of base.
3/(2√(3x + 2)) − 2x/(2x² + 4)3/2; 1/(x log 7 log x).
Example 40

cos⁻¹(sin x), tan⁻¹(sin x/(1 + cos x)), sin⁻¹(2ˣ⁺¹/(1 + 4ˣ)).

  1. Simplify each to a simple angle first.
−1; 1/2; 2ˣ⁺¹ log 2/(1 + 4ˣ) for x < 0 (sign flips for x > 0).
Example 41

(sin x)sin x.

  1. log y = sin x log sin x.
(1 + log sin x)(sin x)sin x cos x.
Example 42

y = at + 1/t, x = (t + 1/t)ᵃ.

  1. The factor 1 − 1/t² cancels.
at + 1/t log a / [a(t + 1/t)a − 1].
Example 43

sin²x with respect to ecos x.

  1. Treat x as a parameter.
−2 cos x / ecos x.
Self-check

Twelve quick questions.

This chapter's exercises have no multiple-choice questions, so these twelve check the key ideas. Tap an option to check it and see the reasoning.

Score0 / 1212 left to answer
Summary

Remember this.

f is continuous at c when limx→c f(x) = f(c); continuous when this holds at every point of its domain.

Sums, differences, products, quotients (bottom ≠ 0) and composites of continuous functions are continuous.

Every differentiable function is continuous, but not conversely (|x| at 0).

Chain rule: if f = v ∘ u and t = u(x), then df/dx = (dv/dt)(dt/dx).

Logarithmic differentiation handles [u(x)]v(x); u and f must be positive.

Inverse trig

(sin⁻¹ x)′ = 1√(1 − x²)
(cos⁻¹ x)′ = − 1√(1 − x²)
(tan⁻¹ x)′ = 11 + x²

e and log

(eˣ)′ = eˣ
(log x)′ = 1x

Parametric and second order

dydx = dy/dtdx/dt
d²ydx² = ddx (dydx)
A little history

From fluxions to precise limits.

1665–1684Newton and Leibniz

Newton's "fluxions" and Leibniz's calculus found rates of change. Leibniz published first, in 1684, with the dy/dx notation we still use.

1748Euler

Euler's Introductio made eˣ and the natural logarithm central to analysis and used the letter e for the base.

1817–1821Bolzano and Cauchy

They defined continuity through limits instead of intuition about unbroken curves.

1872Weierstrass

He showed a function that is continuous everywhere yet differentiable nowhere, proving that continuity alone does not give smoothness.

Finished Chapter 5? Hear when the next one is ready

Leave your email and we will write when a new chapter or a new set of worked solutions is ready. That is all we use it for, and you can ask to be taken off the list at any time.

You are on the list. We will email you when new chapters are added, and for nothing else.