Skip to content

Calculus

Calculus is divided into two main branches: differentiation (finding rates of change) and integration (finding areas and reversing differentiation). This topic is central to Paper 1 at both levels.

Differentiation

{/prettier-ignore/}

Adjust the parameters in the graph above to explore the relationships between variables.

The Derivative

The derivative of a function f(x)f(x) measures the instantaneous rate of change of ff with respect to xx. It is denoted f′(x)f'(x), dfdx\frac{df}{dx} Or x˙\dot{x} in the context of time.

Geometrically, f′(a)f'(a) is the gradient of the tangent to the curve y=f(x)y = f(x) at the point x=ax = a.

Differentiation from First Principles (HL)

The derivative is defined as:

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

This limit, when it exists, gives the slope of the secant line through (x,f(x))(x, f(x)) and (x+h,f(x+h))(x+h, f(x+h)) as the two points converge.

Example (HL): Prove from first principles that ddx[x2]=2x\frac{d}{dx}[x^2] = 2x.

F′(x)=lim⁡{h→0}{(x+h)2−x2}{h}=lim⁡{h→0}{x2+2xh+h2−x2}{h}=lim⁡{h→0}{2xh+h2}{h}=lim⁡{h→0}(2x+h)=2xF'(x) = \lim_\{h \to 0\} \frac\{(x+h)^2 - x^2\}\{h\} = \lim_\{h \to 0\} \frac\{x^2 + 2xh + h^2 - x^2\}\{h\} = \lim_\{h \to 0\} \frac\{2xh + h^2\}\{h\} = \lim_\{h \to 0\}(2x + h) = 2x

Example (HL): Prove from first principles that ddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x.

Using the compound angle formula cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A+B) = \cos A \cos B - \sin A \sin B:

F′(x)=lim⁡{h→0}{cos⁡(x+h)−cos⁡x}{h}=lim⁡{h→0}{cos⁡xcos⁡h−sin⁡xsin⁡h−cos⁡x}{h}F'(x) = \lim_\{h \to 0\} \frac\{\cos(x+h) - \cos x\}\{h\} = \lim_\{h \to 0\} \frac\{\cos x \cos h - \sin x \sin h - \cos x\}\{h\} =cos⁡x⋅lim⁡{h→0}{cos⁡h−1}{h}−sin⁡x⋅lim⁡{h→0}{sin⁡h}{h}= \cos x \cdot \lim_\{h \to 0\}\frac\{\cos h - 1\}\{h\} - \sin x \cdot \lim_\{h \to 0\}\frac\{\sin h\}\{h\}

Using the standard limits lim⁡h→0sin⁡hh=1\lim_{h \to 0}\frac{\sin h}{h} = 1 and lim⁡h→0cos⁡h−1h=0\lim_{h \to 0}\frac{\cos h - 1}{h} = 0:

F′(x)=cos⁡x⋅0−sin⁡x⋅1=−sin⁡xF'(x) = \cos x \cdot 0 - \sin x \cdot 1 = -\sin x

Example (HL): Prove from first principles that ddx[x]=12x\frac{d}{dx}[\sqrt{x}] = \frac{1}{2\sqrt{x}} For x>0x > 0.

F'(x) = \lim_\{h \to 0\} \frac\{\sqrt\{x+h\} - \sqrt\{x\}\}\{h\}

Rationalise the numerator by multiplying top and bottom by x+h+x\sqrt{x+h} + \sqrt{x}:

=lim⁡{h→0}{(x+h)−x}{h({x+h}+{x})}=lim⁡{h→0}{h}{h({x+h}+{x})}=lim⁡{h→0}{1}{{x+h}+{x}}={1}{2{x}}= \lim_\{h \to 0\} \frac\{(x+h) - x\}\{h(\sqrt\{x+h\} + \sqrt\{x\})\} = \lim_\{h \to 0\} \frac\{h\}\{h(\sqrt\{x+h\} + \sqrt\{x\})\} = \lim_\{h \to 0\} \frac\{1\}\{\sqrt\{x+h\} + \sqrt\{x\}\} = \frac\{1\}\{2\sqrt\{x\}\}

Proof of the Product Rule (HL)

We wish to prove ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x)\frac{d}{dx}[f(x)g(x)] = f'(x)g(x) + f(x)g'(x).

Let h(x)=f(x)g(x)h(x) = f(x)g(x). Then:

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

The trick is to add and subtract f(x+h)g(x)f(x+h)g(x):

=lim⁡{h→0}{f(x+h)g(x+h)−f(x+h)g(x)+f(x+h)g(x)−f(x)g(x)}{h}= \lim_\{h \to 0\} \frac\{f(x+h)g(x+h) - f(x+h)g(x) + f(x+h)g(x) - f(x)g(x)\}\{h\} =lim⁡{h→0}[f(x+h)⋅{g(x+h)−g(x)}{h}+g(x)⋅{f(x+h)−f(x)}{h}]= \lim_\{h \to 0\} \left[ f(x+h) \cdot \frac\{g(x+h) - g(x)\}\{h\} + g(x) \cdot \frac\{f(x+h) - f(x)\}\{h\} \right]

Since ff is differentiable (and hence continuous), lim⁡h→0f(x+h)=f(x)\lim_{h \to 0} f(x+h) = f(x) Giving:

=f(x)g′(x)+g(x)f′(x)= f(x)g'(x) + g(x)f'(x)

Standard Derivatives (OL/HL)

For n∈Rn \in \mathbb{R}:

{d}{dx}[xn]=nx{n−1}\frac\{d\}\{dx\}[x^n] = nx^\{n-1\}
Function f(x)f(x)Derivative f′(x)f'(x)
cc (constant)00
xnx^nnxn−1nx^{n-1}
exe^xexe^x
ln⁡x\ln x1x\frac{1}{x}
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 x

Rules of Differentiation (OL/HL)

Sum/Difference Rule:

{d}{dx}[f(x)±g(x)]=f′(x)±g′(x)\frac\{d\}\{dx\}[f(x) \pm g(x)] = f'(x) \pm g'(x)

Constant Multiple Rule:

{d}{dx}[cf(x)]=cf′(x)\frac\{d\}\{dx\}[cf(x)] = cf'(x)

Product Rule (HL):

{d}{dx}[f(x)⋅g(x)]=f′(x)g(x)+f(x)g′(x)\frac\{d\}\{dx\}[f(x) \cdot g(x)] = f'(x)g(x) + f(x)g'(x)

Example (HL): Differentiate x2exx^2 e^x.

{d}{dx}[x2ex]=2x⋅ex+x2⋅ex=ex(x2+2x)\frac\{d\}\{dx\}[x^2 e^x] = 2x \cdot e^x + x^2 \cdot e^x = e^x(x^2 + 2x)

Chain Rule (HL):

{d}{dx}[f(g(x))]=f′(g(x))⋅g′(x)\frac\{d\}\{dx\}[f(g(x))] = f'(g(x)) \cdot g'(x)

Example (HL): Differentiate (3x+1)5(3x + 1)^5.

{d}{dx}[(3x+1)5]=5(3x+1)4⋅3=15(3x+1)4\frac\{d\}\{dx\}[(3x+1)^5] = 5(3x+1)^4 \cdot 3 = 15(3x+1)^4

Example (HL): Differentiate esin⁡xe^{\sin x}.

{d}{dx}[e{sin⁡x}]=e{sin⁡x}⋅cos⁡x\frac\{d\}\{dx\}[e^\{\sin x\}] = e^\{\sin x\} \cdot \cos x

Example (HL): Differentiate ln⁡(x2+1)\ln(x^2 + 1).

{d}{dx}[ln⁡(x2+1)]={1}{x2+1}⋅2x={2x}{x2+1}\frac\{d\}\{dx\}[\ln(x^2 + 1)] = \frac\{1\}\{x^2 + 1\} \cdot 2x = \frac\{2x\}\{x^2 + 1\}

Quotient Rule (HL):

{d}{dx}[{f(x)}{g(x)}]={f′(x)g(x)−f(x)g′(x)}{[g(x)]2}\frac\{d\}\{dx\}\left[\frac\{f(x)\}\{g(x)\}\right] = \frac\{f'(x)g(x) - f(x)g'(x)\}\{[g(x)]^2\}

Example (HL): Differentiate xx+1\frac{x}{x + 1}.

{d}{dx}[{x}{x+1}]={1⋅(x+1)−x⋅1}{(x+1)2}={1}{(x+1)2}\frac\{d\}\{dx\}\left[\frac\{x\}\{x+1\}\right] = \frac\{1 \cdot (x+1) - x \cdot 1\}\{(x+1)^2\} = \frac\{1\}\{(x+1)^2\}

Example (HL): Differentiate sin⁡xx\frac{\sin x}{x}.

{d}{dx}[{sin⁡x}{x}]={xcos⁡x−sin⁡x}{x2}\frac\{d\}\{dx\}\left[\frac\{\sin x\}\{x\}\right] = \frac\{x\cos x - \sin x\}\{x^2\}

Derivative of tan⁡x\tan x (HL)

We can derive ddx[tan⁡x]=sec⁡2x\frac{d}{dx}[\tan x] = \sec^2 x from the quotient rule:

{d}{dx}[{sin⁡x}{cos⁡x}]={cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)}{cos⁡2x}={cos⁡2x+sin⁡2x}{cos⁡2x}={1}{cos⁡2x}=sec⁡2x\frac\{d\}\{dx\}\left[\frac\{\sin x\}\{\cos x\}\right] = \frac\{\cos x \cdot \cos x - \sin x \cdot (-\sin x)\}\{\cos^2 x\} = \frac\{\cos^2 x + \sin^2 x\}\{\cos^2 x\} = \frac\{1\}\{\cos^2 x\} = \sec^2 x

Derivative of axa^x (HL)

For a>0a > 0 Write ax=exln⁡aa^x = e^{x \ln a}. Then:

{d}{dx}[ax]=e{xln⁡a}⋅ln⁡a=axln⁡a\frac\{d\}\{dx\}[a^x] = e^\{x \ln a\} \cdot \ln a = a^x \ln a

Implicit Differentiation (HL)

When a function is not given explicitly as y=f(x)y = f(x) Differentiate both sides with respect to xx Treating yy as a function of xx.

Example: Find dydx\frac{dy}{dx} when x2+y2=25x^2 + y^2 = 25.

Differentiating both sides: 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0

{dy}{dx}=−{x}{y}\frac\{dy\}\{dx\} = -\frac\{x\}\{y\}

Example (HL): Find dydx\frac{dy}{dx} when x3+y3=6xyx^3 + y^3 = 6xy (folium of Descartes).

3x2+3y2{dy}{dx}=6y+6x{dy}{dx}3x^2 + 3y^2\frac\{dy\}\{dx\} = 6y + 6x\frac\{dy\}\{dx\} {dy}{dx}(3y2−6x)=6y−3x2\frac\{dy\}\{dx\}(3y^2 - 6x) = 6y - 3x^2 {dy}{dx}={2y−x2}{y2−2x}\frac\{dy\}\{dx\} = \frac\{2y - x^2\}\{y^2 - 2x\}

Example (HL): Find dydx\frac{dy}{dx} when exy+y=x2e^{xy} + y = x^2.

Differentiate both sides with respect to xx:

E{xy}(y+x{dy}{dx})+{dy}{dx}=2xE^\{xy\}\left(y + x\frac\{dy\}\{dx\}\right) + \frac\{dy\}\{dx\} = 2x E{xy}⋅y+e{xy}⋅x{dy}{dx}+{dy}{dx}=2xE^\{xy\} \cdot y + e^\{xy\} \cdot x \frac\{dy\}\{dx\} + \frac\{dy\}\{dx\} = 2x {dy}{dx}(xe{xy}+1)=2x−ye{xy}\frac\{dy\}\{dx\}(xe^\{xy\} + 1) = 2x - ye^\{xy\} {dy}{dx}={2x−ye{xy}}{xe{xy}+1}\frac\{dy\}\{dx\} = \frac\{2x - ye^\{xy\}\}\{xe^\{xy\} + 1\}

Higher Derivatives (HL)

The second derivative f′′(x)=d2ydx2f''(x) = \frac{d^2y}{dx^2} is the derivative of f′(x)f'(x). Higher derivatives are defined recursively.

Example: Find f′′(x)f''(x) when f(x)=x3ln⁡xf(x) = x^3 \ln x.

First derivative (product rule):

F′(x)=3x2ln⁡x+x3⋅{1}{x}=3x2ln⁡x+x2F'(x) = 3x^2 \ln x + x^3 \cdot \frac\{1\}\{x\} = 3x^2 \ln x + x^2

Second derivative:

F′′(x)=6xln⁡x+3x2⋅{1}{x}+2x=6xln⁡x+3x+2x=6xln⁡x+5xF''(x) = 6x \ln x + 3x^2 \cdot \frac\{1\}\{x\} + 2x = 6x \ln x + 3x + 2x = 6x \ln x + 5x

Applications of Differentiation

Stationary Points (OL/HL)

Stationary points occur where f′(x)=0f'(x) = 0. Use the second derivative to classify:

ConditionType
f′(x)=0f'(x) = 0, f′′(x)>0f''(x) > 0Local minimum
f′(x)=0f'(x) = 0, f′′(x)<0f''(x) < 0Local maximum
f′(x)=0f'(x) = 0, f′′(x)=0f''(x) = 0Test inconclusive

Example (OL): Find and classify the stationary points of f(x)=x3−6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1.

F′(x)=3x2−12x+9=3(x2−4x+3)=3(x−1)(x−3)=0F'(x) = 3x^2 - 12x + 9 = 3(x^2 - 4x + 3) = 3(x - 1)(x - 3) = 0

x=1x = 1 or x=3x = 3.

F′′(x)=6x−12F''(x) = 6x - 12

At x=1x = 1: f′′(1)=−6<0f''(1) = -6 < 0 — local maximum. f(1)=1−6+9+1=5f(1) = 1 - 6 + 9 + 1 = 5.

At x=3x = 3: f′′(3)=6>0f''(3) = 6 > 0 — local minimum. f(3)=27−54+27+1=1f(3) = 27 - 54 + 27 + 1 = 1.

Example (HL) — Inconclusive second derivative: Find and classify the stationary points of f(x)=x4f(x) = x^4.

F′(x)=4x3=0  ⟹  x=0F'(x) = 4x^3 = 0 \implies x = 0 F′′(x)=12x2,f′′(0)=0F''(x) = 12x^2, \quad f''(0) = 0

The second derivative test is inconclusive. Use the first derivative test: for x<0x < 0, f′(x)<0f'(x) < 0 and for x>0x > 0, f′(x)>0f'(x) > 0 So x=0x = 0 is a local minimum.

Example (HL) — Point of inflexion: Consider f(x)=x3f(x) = x^3.

F′(x)=3x2=0  ⟹  x=0F'(x) = 3x^2 = 0 \implies x = 0 F′′(x)=6x,f′′(0)=0F''(x) = 6x, \quad f''(0) = 0

For x<0x < 0: f′′(x)<0f''(x) < 0 (concave down). For x>0x > 0: f′′(x)>0f''(x) > 0 (concave up). So x=0x = 0 is a Point of inflexion with a horizontal tangent (a “saddle point”).

The Mean Value Theorem (HL)

If ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b) Then there exists c∈(a,b)c \in (a, b) Such that:

F′(c)={f(b)−f(a)}{b−a}F'(c) = \frac\{f(b) - f(a)\}\{b - a\}

Intuition: The MVT guarantees that at some point in the interval, the instantaneous rate of Change equals the average rate of change. This is the “mean” in “Mean Value Theorem.”

Corollary: If f′(x)=0f'(x) = 0 for all xx in an interval, then ff is constant on that interval. This justifies the +C+C in indefinite integration.

Example (HL): Verify the MVT for f(x)=x2f(x) = x^2 on [1,3][1, 3].

{f(3)−f(1)}{3−1}={9−1}{2}=4\frac\{f(3) - f(1)\}\{3 - 1\} = \frac\{9 - 1\}\{2\} = 4

We need f′(c)=2c=4f'(c) = 2c = 4 So c=2c = 2. Since 1<2<31 < 2 < 3 The MVT is verified.

Rates of Change (OL/HL)

Example (OL): The radius of a circle is increasing at 3cm/s3\mathrm{ cm/s}. Find the rate of increase Of the area when r=5cmr = 5\mathrm{ cm}.

A=πr2  ⟹  {dA}{dt}=2πr{dr}{dt}=2π(5)(3)=30π{cm2/{sA = \pi r^2 \implies \frac\{dA\}\{dt\} = 2\pi r \frac\{dr\}\{dt\} = 2\pi(5)(3) = 30\pi \mathrm\{ cm^2/\mathrm\{s

Example (HL): A conical tank with height 10 m and base radius 5 m is being filled with water at A rate of 3m3/min3\mathrm{ m^3/\mathrm{min}}. How fast is the water level rising when the water is 4 m deep?

The tank has similar cross-sections, so rh=510=12\frac{r}{h} = \frac{5}{10} = \frac{1}{2} Giving r=h/2r = h/2.

V={1}{3}πr2h={1}{3}π({h}{2})2h={πh3}{12}V = \frac\{1\}\{3\}\pi r^2 h = \frac\{1\}\{3\}\pi\left(\frac\{h\}\{2\}\right)^2 h = \frac\{\pi h^3\}\{12\} {dV}{dt}={πh2}{4}⋅{dh}{dt}\frac\{dV\}\{dt\} = \frac\{\pi h^2\}\{4\} \cdot \frac\{dh\}\{dt\} 3={π(16)}{4}⋅{dh}{dt}  ⟹  {dh}{dt}={3}{4π}≈0.239{m/min3 = \frac\{\pi(16)\}\{4\} \cdot \frac\{dh\}\{dt\} \implies \frac\{dh\}\{dt\} = \frac\{3\}\{4\pi\} \approx 0.239 \mathrm\{ m/min

Tangents and Normals (OL/HL)

The tangent at a point has gradient f′(a)f'(a).

The normal at a point has gradient −1f′(a)-\frac{1}{f'(a)} (the negative reciprocal).

Example (HL): Find the equation of the tangent to y=x3−2xy = x^3 - 2x at x=1x = 1.

y=1−2=−1y = 1 - 2 = -1, dydx=3x2−2=1\frac{dy}{dx} = 3x^2 - 2 = 1 at x=1x = 1.

Equation: y−(−1)=1(x−1)  ⟹  y=x−2y - (-1) = 1(x - 1) \implies y = x - 2.

The normal has gradient −1m=−1-\frac{1}{m} = -1.

Equation of normal: y+1=−(x−1)  ⟹  y=−xy + 1 = -(x - 1) \implies y = -x.

Example (HL): Find the equation of the tangent to y=exy = e^x at the point where y=ey = e.

When y=ey = e: ex=ee^x = e So x=1x = 1. The gradient is dydx=ex=e\frac{dy}{dx} = e^x = e at x=1x = 1.

Equation: y−e=e(x−1)  ⟹  y=exy - e = e(x - 1) \implies y = ex.

Note the tangent passes through the origin. This is a special property: the tangent to exe^x at x=1x = 1 is y=exy = ex.

Optimisation (HL)

Example (HL): A rectangular box with a square base has a surface area of 150cm2150\mathrm{ cm^2}. Find The dimensions that maximise the volume.

Let the base have side xx and the height be hh. Then:

Surface area: x2+4xh=150x^2 + 4xh = 150 So h=150−x24xh = \frac{150 - x^2}{4x}.

Volume: V=x2h=x2⋅150−x24x=x(150−x2)4=150x−x34V = x^2 h = x^2 \cdot \frac{150 - x^2}{4x} = \frac{x(150 - x^2)}{4} = \frac{150x - x^3}{4}.

{dV}{dx}={150−3x2}{4}=0  ⟹  x2=50  ⟹  x={50}=5{2}\frac\{dV\}\{dx\} = \frac\{150 - 3x^2\}\{4\} = 0 \implies x^2 = 50 \implies x = \sqrt\{50\} = 5\sqrt\{2\} {d2V}{dx2}={−6x}{4}={−3x}{2}\frac\{d^2V\}\{dx^2\} = \frac\{-6x\}\{4\} = \frac\{-3x\}\{2\}

At x=52x = 5\sqrt{2}: d2Vdx2=−1522<0\frac{d^2V}{dx^2} = \frac{-15\sqrt{2}}{2} < 0 Confirming a maximum.

H={150−50}{4⋅5{2}}={100}{20{2}}={5}{{2}}={5{2}}{2}H = \frac\{150 - 50\}\{4 \cdot 5\sqrt\{2\}\} = \frac\{100\}\{20\sqrt\{2\}\} = \frac\{5\}\{\sqrt\{2\}\} = \frac\{5\sqrt\{2\}\}\{2\}

The optimal box has base 52×525\sqrt{2} \times 5\sqrt{2} and height 522\frac{5\sqrt{2}}{2}.

Integration

Indefinite Integration (Anti-differentiation)

∫xn dx={x{n+1}}{n+1}+C,n≠−1\int x^n \, dx = \frac\{x^\{n+1\}\}\{n+1\} + C, \quad n \neq -1

Standard Integrals (OL/HL)

FunctionIntegral
xnx^nxn+1n+1+C\frac{x^{n+1}}{n+1} + C
exe^xex+Ce^x + C
1x\frac{1}{x}ln⁡∥x∥+C\ln \| x \| + C
cos⁡x\cos xsin⁡x+C\sin x + C
sin⁡x\sin x−cos⁡x+C-\cos x + C
sec⁡2x\sec^2 xtan⁡x+C\tan x + C

Definite Integration (OL/HL)

∫abf(x) dx=F(b)−F(a)\int_a^b f(x) \, dx = F(b) - F(a)

The Fundamental Theorem of Calculus. If F′(x)=f(x)F'(x) = f(x) Then ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a). This connects differentiation and integration: they are inverse operations.

Example (OL): Evaluate ∫13(2x+1) dx\int_1^3 (2x + 1) \, dx.

[x2+x]13=(9+3)−(1+1)=12−2=10\left[x^2 + x\right]_1^3 = (9 + 3) - (1 + 1) = 12 - 2 = 10

Area Under a Curve (OL/HL)

The area between y=f(x)y = f(x) and the xx-axis from x=ax = a to x=bx = b is:

A=∫ab∣f(x)∣ dxA = \int_a^b |f(x)| \, dx

Example (OL): Find the area enclosed by y=x2y = x^2 The xx-axis, x=0x = 0 And x=3x = 3.

A=∫03x2 dx=[{x3}{3}]03={27}{3}=9{squareunitsA = \int_0^3 x^2 \, dx = \left[\frac\{x^3\}\{3\}\right]_0^3 = \frac\{27\}\{3\} = 9 \mathrm\{ square units

Example (OL): Find the total area between y=x2−4y = x^2 - 4 and the xx-axis.

The curve crosses the xx-axis when x2=4x^2 = 4 I.e. x=−2x = -2 and x=2x = 2.

A=∫{−2}{2}∣x2−4∣ dx=∫{−2}{2}(4−x2) dx=[4x−{x3}{3}]{−2}{2}=(8−{8}{3})−(−8+{8}{3})={32}{3}A = \int_\{-2\}^\{2\} |x^2 - 4| \, dx = \int_\{-2\}^\{2\} (4 - x^2) \, dx = \left[4x - \frac\{x^3\}\{3\}\right]_\{-2\}^\{2\} = \left(8 - \frac\{8\}\{3\}\right) - \left(-8 + \frac\{8\}\{3\}\right) = \frac\{32\}\{3\}

Area Between Two Curves (HL)

If f(x)≥g(x)f(x) \geq g(x) on [a,b][a, b]:

A=∫ab[f(x)−g(x)] dxA = \int_a^b [f(x) - g(x)] \, dx

Example (HL): Find the area between y=x2y = x^2 and y=2xy = 2x.

Intersection: x2=2x  ⟹  x=0,2x^2 = 2x \implies x = 0, 2.

A=∫02(2x−x2) dx=[x2−{x3}{3}]02=4−{8}{3}={4}{3}A = \int_0^2 (2x - x^2) \, dx = \left[x^2 - \frac\{x^3\}\{3\}\right]_0^2 = 4 - \frac\{8\}\{3\} = \frac\{4\}\{3\}

Example (HL): Find the area between y=sin⁡xy = \sin x and y=cos⁡xy = \cos x from x=0x = 0 to x=π/2x = \pi/2.

Intersection: sin⁡x=cos⁡x  ⟹  x=π/4\sin x = \cos x \implies x = \pi/4.

On [0,π/4][0, \pi/4]: cos⁡x≥sin⁡x\cos x \geq \sin x. On [π/4,π/2][\pi/4, \pi/2]: sin⁡x≥cos⁡x\sin x \geq \cos x.

A=∫0{π/4}(cos⁡x−sin⁡x) dx+∫{π/4}{π/2}(sin⁡x−cos⁡x) dxA = \int_0^\{\pi/4\} (\cos x - \sin x)\,dx + \int_\{\pi/4\}^\{\pi/2\} (\sin x - \cos x)\,dx =[sin⁡x+cos⁡x]0{π/4}+[−cos⁡x−sin⁡x]{π/4}{π/2}= \left[\sin x + \cos x\right]_0^\{\pi/4\} + \left[-\cos x - \sin x\right]_\{\pi/4\}^\{\pi/2\} =(22+22−0−1)+(0−1+22+22)= \left(\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2} - 0 - 1\right) + \left(0 - 1 + \frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2}\right) =({2}−1)+({2}−1)=2{2}−2= (\sqrt\{2\} - 1) + (\sqrt\{2\} - 1) = 2\sqrt\{2\} - 2

Integration by Substitution (HL)

∫f(g(x))g′(x) dx=∫f(u) du{whereu=g(x)\int f(g(x))g'(x) \, dx = \int f(u) \, du \quad \mathrm\{where u = g(x)

Example: Evaluate ∫2xx2+1 dx\int 2x\sqrt{x^2 + 1} \, dx.

Let u=x2+1u = x^2 + 1 Then du=2x dxdu = 2x \, dx.

∫{u} du={2}{3}u{3/2}+C={2}{3}(x2+1){3/2}+C\int \sqrt\{u\} \, du = \frac\{2\}\{3\}u^\{3/2\} + C = \frac\{2\}\{3\}(x^2 + 1)^\{3/2\} + C

Example (HL): Evaluate ∫01xx2+1 dx\int_0^1 \frac{x}{x^2 + 1} \, dx.

Let u=x2+1u = x^2 + 1 Then du=2x dxdu = 2x\,dx So x dx=du2x\,dx = \frac{du}{2}.

When x=0x = 0: u=1u = 1. When x=1x = 1: u=2u = 2.

∫01{x}{x2+1} dx=∫12{1}{2u} du={1}{2}[ln⁡u]12={1}{2}ln⁡2\int_0^1 \frac\{x\}\{x^2 + 1\} \, dx = \int_1^2 \frac\{1\}\{2u\} \, du = \frac\{1\}\{2\}\left[\ln u\right]_1^2 = \frac\{1\}\{2\}\ln 2

Key point: When using substitution with definite integrals, either change the limits of Integration (as above) or substitute back to xx before evaluating.

Integration by Parts (HL)

∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du

Use LIATE (Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential) to choose uu.

Example: Evaluate ∫xex dx\int x e^x \, dx.

Let u = x$$dv = e^x \, dx. Then du = dx$$v = e^x.

∫xex dx=xex−∫ex dx=xex−ex+C=ex(x−1)+C\int x e^x \, dx = x e^x - \int e^x \, dx = x e^x - e^x + C = e^x(x - 1) + C

Example: Evaluate ∫x2cos⁡x dx\int x^2 \cos x \, dx.

Let u = x^2$$dv = \cos x \, dx. Then du = 2x \, dx$$v = \sin x.

∫x2cos⁡x dx=x2sin⁡x−∫2xsin⁡x dx\int x^2 \cos x \, dx = x^2 \sin x - \int 2x \sin x \, dx

Apply integration by parts again for ∫xsin⁡x dx\int x \sin x \, dx:

Let u = x$$dv = \sin x \, dx. Then du = dx$$v = -\cos x.

∫xsin⁡x dx=−xcos⁡x+∫cos⁡x dx=−xcos⁡x+sin⁡x+C\int x \sin x \, dx = -x\cos x + \int \cos x \, dx = -x\cos x + \sin x + C

Therefore:

∫x2cos⁡x dx=x2sin⁡x−2(−xcos⁡x+sin⁡x)+C=x2sin⁡x+2xcos⁡x−2sin⁡x+C\int x^2 \cos x \, dx = x^2 \sin x - 2(-x\cos x + \sin x) + C = x^2 \sin x + 2x\cos x - 2\sin x + C

Example (HL): Evaluate ∫exsin⁡x dx\int e^x \sin x \, dx using the “cyclic” integration by parts Technique.

Let u = \sin x$$dv = e^x\,dx. Then du = \cos x\,dx$$v = e^x.

I=∫exsin⁡x dx=exsin⁡x−∫excos⁡x dxI = \int e^x \sin x\,dx = e^x \sin x - \int e^x \cos x\,dx

Apply integration by parts to ∫excos⁡x dx\int e^x \cos x\,dx: let u = \cos x$$dv = e^x\,dx.

∫excos⁡x dx=excos⁡x+∫exsin⁡x dx=excos⁡x+I\int e^x \cos x\,dx = e^x \cos x + \int e^x \sin x\,dx = e^x \cos x + I

Substituting back:

I=exsin⁡x−excos⁡x−II = e^x \sin x - e^x \cos x - I 2I=ex(sin⁡x−cos⁡x)2I = e^x(\sin x - \cos x) I={ex(sin⁡x−cos⁡x)}{2}+CI = \frac\{e^x(\sin x - \cos x)\}\{2\} + C

Integration of Trigonometric Functions (HL)

∫tan⁡x dx=−ln⁡∣cos⁡x∣+C=ln⁡∣sec⁡x∣+C\int \tan x \, dx = -\ln|\cos x| + C = \ln|\sec x| + C ∫cot⁡x dx=ln⁡∣sin⁡x∣+C\int \cot x \, dx = \ln|\sin x| + C ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+C\int \sec x \, dx = \ln|\sec x + \tan x| + C

Derivation of ∫tan⁡x dx\int \tan x\,dx. Write tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} and let u=cos⁡xu = \cos x du=−sin⁡x dxdu = -\sin x\,dx:

∫tan⁡x dx=∫{sin⁡x}{cos⁡x} dx=−∫{du}{u}=−ln⁡∣u∣+C=−ln⁡∣cos⁡x∣+C\int \tan x\,dx = \int \frac\{\sin x\}\{\cos x\}\,dx = -\int \frac\{du\}\{u\} = -\ln|u| + C = -\ln|\cos x| + C

Example (HL): Evaluate ∫sin⁡2x dx\int \sin^2 x\,dx.

Using the identity sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}:

∫sin⁡2x dx=∫{1−cos⁡2x}{2} dx={x}{2}−{sin⁡2x}{4}+C\int \sin^2 x\,dx = \int \frac\{1 - \cos 2x\}\{2\}\,dx = \frac\{x\}\{2\} - \frac\{\sin 2x\}\{4\} + C

Volume of Revolution (HL)

The volume generated by rotating y=f(x)y = f(x) about the xx-axis from x=ax = a to x=bx = b:

V=π∫ab[f(x)]2 dxV = \pi \int_a^b [f(x)]^2 \, dx

Example: Find the volume generated by rotating y=xy = \sqrt{x} about the xx-axis from x=0x = 0 to x=4x = 4.

V=π∫04x dx=π[{x2}{2}]04=8πV = \pi \int_0^4 x \, dx = \pi\left[\frac\{x^2\}\{2\}\right]_0^4 = 8\pi

Example (HL): Find the volume generated by rotating y=sin⁡xy = \sin x about the xx-axis from x=0x = 0 To x=πx = \pi.

V=π∫0πsin⁡2x dx=π[{x}{2}−{sin⁡2x}{4}]0π=π({π}{2}−0)={π2}{2}V = \pi \int_0^\pi \sin^2 x\,dx = \pi\left[\frac\{x\}\{2\} - \frac\{\sin 2x\}\{4\}\right]_0^\pi = \pi\left(\frac\{\pi\}\{2\} - 0\right) = \frac\{\pi^2\}\{2\}

Differential Equations (HL)

First Order Separable Equations

An equation of the form dydx=f(x)g(y)\frac{dy}{dx} = f(x)g(y) can be solved by separating variables:

{1}{g(y)} dy=f(x) dx\frac\{1\}\{g(y)\} \, dy = f(x) \, dx

Example: Solve dydx=xy\frac{dy}{dx} = \frac{x}{y} Given y=2y = 2 when x=0x = 0.

Y dy=x dx  ⟹  {y2}{2}={x2}{2}+CY \, dy = x \, dx \implies \frac\{y^2\}\{2\} = \frac\{x^2\}\{2\} + C

Using y=2,x=0y = 2, x = 0: 2=C2 = C.

Y2=x2+4  ⟹  y={x2+4}Y^2 = x^2 + 4 \implies y = \sqrt\{x^2 + 4\}

(We take the positive root since y=2>0y = 2 > 0 when x=0x = 0.)

Example (HL): Solve dydx=xy\frac{dy}{dx} = xy given y=1y = 1 when x=0x = 0.

Separate: 1y dy=x dx\frac{1}{y}\,dy = x\,dx.

ln⁡∣y∣={x2}{2}+C\ln|y| = \frac\{x^2\}\{2\} + C

Using y=1,x=0y = 1, x = 0: ln⁡1=0=C\ln 1 = 0 = C.

ln⁡∣y∣={x2}{2}  ⟹  y=e{x2/2}\ln|y| = \frac\{x^2\}\{2\} \implies y = e^\{x^2/2\}

Exponential Growth and Decay (HL)

{dy}{dt}=ky  ⟹  y=y0e{kt}\frac\{dy\}\{dt\} = ky \implies y = y_0 e^\{kt\}

Example: A bacteria culture doubles every 3 hours. If initially there are 1000 bacteria, when Will there be 10000?

Doubling time Td=3T_d = 3 So k=ln⁡23k = \frac{\ln 2}{3}.

10000=1000e(ln⁡2/3)t10000 = 1000 e^{(\ln 2/3)t}

10=e(ln⁡2/3)t10 = e^{(\ln 2/3)t}

t=3ln⁡10ln⁡2≈9.97t = \frac{3 \ln 10}{\ln 2} \approx 9.97 hours.

Half-life proof. For exponential decay y=y0e−kty = y_0 e^{-kt} The half-life t1/2t_{1/2} satisfies y0/2=y0e−kt1/2y_0/2 = y_0 e^{-kt_{1/2}} So e−kt1/2=1/2e^{-kt_{1/2}} = 1/2 Giving t1/2=ln⁡2kt_{1/2} = \frac{\ln 2}{k}.

Applications: Connected Rates of Change (HL)

Example: Oil is leaking from a tank at a rate proportional to the square root of the volume Remaining. If V=100V = 100 litres initially and the rate is 22 L/min initially, find VV after 9 Minutes.

{dV}{dt}=−k{V}\frac\{dV\}\{dt\} = -k\sqrt\{V\}

At t=0t = 0: −2=−k100=−10k-2 = -k\sqrt{100} = -10k So k=0.2k = 0.2.

Separate: dVV=−0.2 dt\frac{dV}{\sqrt{V}} = -0.2\, dt

2{V}=−0.2t+C2\sqrt\{V\} = -0.2t + C

At t=0t = 0: 2100=C=202\sqrt{100} = C = 20.

2{V}=−0.2t+202\sqrt\{V\} = -0.2t + 20 {V}=10−0.1t\sqrt\{V\} = 10 - 0.1t V=(10−0.1t)2V = (10 - 0.1t)^2

At t=9t = 9: V=(10−0.9)2=9.12=82.81V = (10 - 0.9)^2 = 9.1^2 = 82.81 litres.

Worked Examples

See the examples integrated throughout the sections above.

Common Pitfalls

  1. Forgetting the +C+C in indefinite integrals. This is equivalent to losing the constant of integration and makes it impossible to apply initial conditions.
  2. Chain rule errors — always multiply by the derivative of the inner function.
  3. Sign errors with sin⁡x\sin x and cos⁡x\cos x derivatives/integrals. Remember: ∫sin⁡x dx=−cos⁡x\int \sin x\,dx = -\cos x (the integral has a negative sign).
  4. Not splitting integrals when a curve crosses the xx-axis. Use the absolute value.
  5. Integration by parts: choosing the wrong uu and dvdv. Apply LIATE.
  6. Limits in definite integrals — substitute the upper limit first, then subtract the lower limit result.
  7. Forgetting to change limits when using substitution in a definite integral.
  8. Confusing ddx[ln⁡x]=1x\frac{d}{dx}[\ln x] = \frac{1}{x} with ∫1x dx=ln⁡∣x∣\int \frac{1}{x}\,dx = \ln|x| — the absolute value in the integral is essential.
  9. Cyclic integration by parts — when integrating exsin⁡xe^x \sin x or excos⁡xe^x \cos x The integral reappears. Move it to one side and divide by 2. Do not loop forever.
  10. Stationary point classification — when f′′(x)=0f''(x) = 0 The second derivative test is inconclusive. Use the first derivative test instead.
  11. Domain issues with implicit differentiation — when finding dydx\frac{dy}{dx} implicitly, always check that the point lies on the curve before substituting.

Practice Questions

Ordinary Level

  1. Differentiate f(x)=3x4−2x2+7x−1f(x) = 3x^4 - 2x^2 + 7x - 1.
  2. Find the gradient of the tangent to y=x2−3xy = x^2 - 3x at x=2x = 2.
  3. Find the stationary points of f(x)=x3−3x+2f(x) = x^3 - 3x + 2 and classify them.
  4. Evaluate ∫02(3x2−2x+1) dx\int_0^2 (3x^2 - 2x + 1) \, dx.
  5. Find the area under y=4x−x2y = 4x - x^2 above the xx-axis.
  6. Find the equation of the normal to y=x2+1y = x^2 + 1 at x=1x = 1.
  7. Evaluate ∫3x dx\int \frac{3}{x}\,dx and hence evaluate ∫143x dx\int_1^4 \frac{3}{x}\,dx.
  8. The radius of a sphere is increasing at 2cm/s2\mathrm{ cm/s}. Find the rate of increase of the volume when r=5cmr = 5\mathrm{ cm}.

Higher Level

  1. Differentiate f(x)=ln⁡xxf(x) = \frac{\ln x}{x} using the quotient rule.
  2. Evaluate ∫01xe2x dx\int_0^1 x e^{2x} \, dx using integration by parts.
  3. Find dydx\frac{dy}{dx} when x3+y3=6xyx^3 + y^3 = 6xy (implicit differentiation).
  4. Prove from first principles that ddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x.
  5. Solve dydx=xy\frac{dy}{dx} = xy given y=1y = 1 when x=0x = 0.
  6. Find the volume of revolution of y=sin⁡xy = \sin x about the xx-axis from x=0x = 0 to x=πx = \pi.
  7. Evaluate ∫2xx2+1 dx\int \frac{2x}{x^2 + 1} \, dx using substitution.
  8. Find the area between the curves y=exy = e^x and y=e−xy = e^{-x} and the lines x=0x = 0 and x=1x = 1.
  9. Find d2ydx2\frac{d^2y}{dx^2} when y=x3ln⁡xy = x^3 \ln x.
  10. Evaluate ∫0π/2sin⁡2x dx\int_0^{\pi/2} \sin^2 x \, dx using the identity sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}.
  11. Evaluate ∫excos⁡x dx\int e^x \cos x\,dx using integration by parts.
  12. Find dydx\frac{dy}{dx} when exy+y=x2e^{xy} + y = x^2 and evaluate it at (1,0)(1, 0).
  13. A cylindrical can is to hold 500cm3500\mathrm{ cm^3}. Find the dimensions that minimise the surface area.
  14. Prove the product rule from first principles.
  15. Find the volume generated by rotating y=1xy = \frac{1}{x} about the xx-axis from x=1x = 1 to x=ex = e.

Summary

This topic covers the mathematical techniques and concepts related to calculus, including key theorems, methods, and problem-solving approaches.

Key concepts include:

  • differentiation from first principles
  • product, quotient, and chain rules
  • integration techniques (by parts, substitution)
  • differential equations
  • applications to kinematics

See Also