Skip to content

Calculus

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

Differentiation: Tangent Lines

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)=limh0f(x+h)f(x)hF'(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)=limh0(x+h)2x2h=limh0x2+2xh+h2x2h=limh02xh+h2h=limh0(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[cosx]=sinx\frac{d}{dx}[\cos x] = -\sin x.

Using the compound angle formula cos(A+B)=cosAcosBsinAsinB\cos(A+B) = \cos A \cos B - \sin A \sin B:

F(x)=limh0cos(x+h)cosxh=limh0cosxcoshsinxsinhcosxhF'(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} =cosxlimh0cosh1hsinxlimh0sinhh= \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 limh0sinhh=1\lim_{h \to 0}\frac{\sin h}{h} = 1 and limh0cosh1h=0\lim_{h \to 0}\frac{\cos h - 1}{h} = 0:

F(x)=cosx0sinx1=sinxF'(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)=limh0x+hxhF'(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}:

=limh0(x+h)xh(x+h+x)=limh0hh(x+h+x)=limh01x+h+x=12x= \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)=limh0f(x+h)g(x+h)f(x)g(x)hH'(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):

=limh0f(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} =limh0[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), limh0f(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 nRn \in \mathbb{R}:

ddx[xn]=nxn1\frac{d}{dx}[x^n] = nx^{n-1}
Function f(x)f(x)Derivative f(x)f'(x)
cc (constant)00
xnx^nnxn1nx^{n-1}
exe^xexe^x
lnx\ln x1x\frac{1}{x}
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
tanx\tan xsec2x\sec^2 x

Rules of Differentiation (OL/HL)

Sum/Difference Rule:

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

Constant Multiple Rule:

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

Product Rule (HL):

ddx[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.

ddx[x2ex]=2xex+x2ex=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):

ddx[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.

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

Example (HL): Differentiate esinxe^{\sin x}.

ddx[esinx]=esinxcosx\frac{d}{dx}[e^{\sin x}] = e^{\sin x} \cdot \cos x

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

ddx[ln(x2+1)]=1x2+12x=2xx2+1\frac{d}{dx}[\ln(x^2 + 1)] = \frac{1}{x^2 + 1} \cdot 2x = \frac{2x}{x^2 + 1}

Quotient Rule (HL):

ddx[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}.

ddx[xx+1]=1(x+1)x1(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 sinxx\frac{\sin x}{x}.

ddx[sinxx]=xcosxsinxx2\frac{d}{dx}\left[\frac{\sin x}{x}\right] = \frac{x\cos x - \sin x}{x^2}

Derivative of tanx\tan x (HL)

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

ddx[sinxcosx]=cosxcosxsinx(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x\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 > 0Write ax=exlnaa^x = e^{x \ln a}. Then:

ddx[ax]=exlnalna=axlna\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

dydx=xy\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+3y2dydx=6y+6xdydx3x^2 + 3y^2\frac{dy}{dx} = 6y + 6x\frac{dy}{dx} dydx(3y26x)=6y3x2\frac{dy}{dx}(3y^2 - 6x) = 6y - 3x^2 dydx=2yx2y22x\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:

Exy(y+xdydx)+dydx=2xE^{xy}\left(y + x\frac{dy}{dx}\right) + \frac{dy}{dx} = 2x Exyy+exyxdydx+dydx=2xE^{xy} \cdot y + e^{xy} \cdot x \frac{dy}{dx} + \frac{dy}{dx} = 2x dydx(xexy+1)=2xyexy\frac{dy}{dx}(xe^{xy} + 1) = 2x - ye^{xy} dydx=2xyexyxexy+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)=x3lnxf(x) = x^3 \ln x.

First derivative (product rule):

F(x)=3x2lnx+x31x=3x2lnx+x2F'(x) = 3x^2 \ln x + x^3 \cdot \frac{1}{x} = 3x^2 \ln x + x^2

Second derivative:

F(x)=6xlnx+3x21x+2x=6xlnx+3x+2x=6xlnx+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)=x36x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1.

F(x)=3x212x+9=3(x24x+3)=3(x1)(x3)=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)=6x12F''(x) = 6x - 12

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

At x=3x = 3: f(3)=6>0f''(3) = 6 > 0 — local minimum. f(3)=2754+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) > 0So 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)baF'(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)31=912=4\frac{f(3) - f(1)}{3 - 1} = \frac{9 - 1}{2} = 4

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

Rates of Change (OL/HL)

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

A = \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 3\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=13πr2h=13π(h2)2h=πh312V = \frac{1}{3}\pi r^2 h = \frac{1}{3}\pi\left(\frac{h}{2}\right)^2 h = \frac{\pi h^3}{12} dVdt=πh24dhdt\frac{dV}{dt} = \frac{\pi h^2}{4} \cdot \frac{dh}{dt} 3 = \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=x32xy = x^3 - 2x at x=1x = 1.

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

Equation: y(1)=1(x1)    y=x2y - (-1) = 1(x - 1) \implies y = x - 2.

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

Equation of normal: y+1=(x1)    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 = eSo x=1x = 1. The gradient is dydx=ex=e\frac{dy}{dx} = e^x = e at x=1x = 1.

Equation: ye=e(x1)    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 150\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 = 150So h=150x24xh = \frac{150 - x^2}{4x}.

Volume: V=x2h=x2150x24x=x(150x2)4=150xx34V = x^2 h = x^2 \cdot \frac{150 - x^2}{4x} = \frac{x(150 - x^2)}{4} = \frac{150x - x^3}{4}.

dVdx=1503x24=0    x2=50    x=50=52\frac{dV}{dx} = \frac{150 - 3x^2}{4} = 0 \implies x^2 = 50 \implies x = \sqrt{50} = 5\sqrt{2} d2Vdx2=6x4=3x2\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} < 0Confirming a maximum.

H=15050452=100202=52=522H = \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)

xndx=xn+1n+1+C,n1\int x^n \, dx = \frac{x^{n+1}}{n+1} + C, \quad n \neq -1

Standard Integrals (OL/HL)

| Function | Integral | | ------------- | ------------------------- | --- | ---- | | xnx^n | xn+1n+1+C\frac{x^{n+1}}{n+1} + C | | exe^x | ex+Ce^x + C | | 1x\frac{1}{x} | lnx+C\ln | x | + C | | cosx\cos x | sinx+C\sin x + C | | sinx\sin x | cosx+C-\cos x + C | | sec2x\sec^2 x | tanx+C\tan x + C |

:::note The absolute value in 1xdx=lnx+C\int \frac{1}{x}\,dx = \ln|x| + C is essential. It accounts for the Fact that ddx[lnx]=1x\frac{d}{dx}[\ln x] = \frac{1}{x} for x>0x > 0 and ddx[ln(x)]=1x=1x\frac{d}{dx}[\ln(-x)] = \frac{-1}{-x} = \frac{1}{x} for x<0x < 0. :::

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)=122=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=abf(x)dxA = \int_a^b |f(x)| \, dx

:::caution If the curve crosses the xx-axis between aa and bbSplit the integral and take the Absolute value of each part. The integral itself gives the signed area. :::

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

A = \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=x24y = x^2 - 4 and the xx-axis.

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

A=22x24dx=22(4x2)dx=[4xx33]22=(883)(8+83)=323A = \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(2xx2)dx=[x2x33]02=483=43A = \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=sinxy = \sin x and y=cosxy = \cos x from x=0x = 0 to x=π/2x = \pi/2.

Intersection: sinx=cosx    x=π/4\sin x = \cos x \implies x = \pi/4.

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

A=0π/4(cosxsinx)dx+π/4π/2(sinxcosx)dxA = \int_0^{\pi/4} (\cos x - \sin x)\,dx + \int_{\pi/4}^{\pi/2} (\sin x - \cos x)\,dx =[sinx+cosx]0π/4+[cosxsinx]π/4π/2= \left[\sin x + \cos x\right]_0^{\pi/4} + \left[-\cos x - \sin x\right]_{\pi/4}^{\pi/2} =(22+2201)+(01+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) =(21)+(21)=222= (\sqrt{2} - 1) + (\sqrt{2} - 1) = 2\sqrt{2} - 2

Integration by Substitution (HL)

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

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

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

udu=23u3/2+C=23(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+1dx\int_0^1 \frac{x}{x^2 + 1} \, dx.

Let u=x2+1u = x^2 + 1Then du=2xdxdu = 2x\,dxSo xdx=du2x\,dx = \frac{du}{2}.

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

01xx2+1dx=1212udu=12[lnu]12=12ln2\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)

udv=uvvdu\int u \, dv = uv - \int v \, du

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

Example: Evaluate xexdx\int x e^x \, dx.

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

xexdx=xexexdx=xexex+C=ex(x1)+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 x2cosxdx\int x^2 \cos x \, dx.

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

x2cosxdx=x2sinx2xsinxdx\int x^2 \cos x \, dx = x^2 \sin x - \int 2x \sin x \, dx

Apply integration by parts again for xsinxdx\int x \sin x \, dx:

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

xsinxdx=xcosx+cosxdx=xcosx+sinx+C\int x \sin x \, dx = -x\cos x + \int \cos x \, dx = -x\cos x + \sin x + C

Therefore:

x2cosxdx=x2sinx2(xcosx+sinx)+C=x2sinx+2xcosx2sinx+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 exsinxdx\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=exsinxdx=exsinxexcosxdxI = \int e^x \sin x\,dx = e^x \sin x - \int e^x \cos x\,dx

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

excosxdx=excosx+exsinxdx=excosx+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=exsinxexcosxII = e^x \sin x - e^x \cos x - I 2I=ex(sinxcosx)2I = e^x(\sin x - \cos x) I=ex(sinxcosx)2+CI = \frac{e^x(\sin x - \cos x)}{2} + C

Integration of Trigonometric Functions (HL)

tanxdx=lncosx+C=lnsecx+C\int \tan x \, dx = -\ln|\cos x| + C = \ln|\sec x| + C cotxdx=lnsinx+C\int \cot x \, dx = \ln|\sin x| + C secxdx=lnsecx+tanx+C\int \sec x \, dx = \ln|\sec x + \tan x| + C

Derivation of tanxdx\int \tan x\,dx. Write tanx=sinxcosx\tan x = \frac{\sin x}{\cos x} and let u=cosxu = \cos x du=sinxdxdu = -\sin x\,dx:

tanxdx=sinxcosxdx=duu=lnu+C=lncosx+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 sin2xdx\int \sin^2 x\,dx.

Using the identity sin2x=1cos2x2\sin^2 x = \frac{1 - \cos 2x}{2}:

sin2xdx=1cos2x2dx=x2sin2x4+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)]2dxV = \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=π04xdx=π[x22]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=sinxy = \sin x about the xx-axis from x=0x = 0 To x=πx = \pi.

V=π0πsin2xdx=π[x2sin2x4]0π=π(π20)=π22V = \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:

1g(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.

Ydy=xdx    y22=x22+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+4Y^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: 1ydy=xdx\frac{1}{y}\,dy = x\,dx.

lny=x22+C\ln|y| = \frac{x^2}{2} + C

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

lny=x22    y=ex2/2\ln|y| = \frac{x^2}{2} \implies y = e^{x^2/2}

Exponential Growth and Decay (HL)

dydt=ky    y=y0ekt\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 = 3So k=ln23k = \frac{\ln 2}{3}.

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

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

t=3ln10ln29.97t = \frac{3 \ln 10}{\ln 2} \approx 9.97 hours.

Half-life proof. For exponential decay y=y0ekty = y_0 e^{-kt}The half-life t1/2t_{1/2} satisfies y0/2=y0ekt1/2y_0/2 = y_0 e^{-kt_{1/2}}So ekt1/2=1/2e^{-kt_{1/2}} = 1/2Giving t1/2=ln2kt_{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.

dVdt=kV\frac{dV}{dt} = -k\sqrt{V}

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

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

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

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

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

At t=9t = 9: V=(100.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 sinx\sin x and cosx\cos x derivatives/integrals. Remember: sinxdx=cosx\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[lnx]=1x\frac{d}{dx}[\ln x] = \frac{1}{x} with 1xdx=lnx\int \frac{1}{x}\,dx = \ln|x| — the absolute value in the integral is essential.
  9. Cyclic integration by parts — when integrating exsinxe^x \sin x or excosxe^x \cos xThe integral reappears. Move it to one side and divide by 2. Do not loop forever.
  10. Stationary point classification — when f(x)=0f''(x) = 0The 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)=3x42x2+7x1f(x) = 3x^4 - 2x^2 + 7x - 1.
  2. Find the gradient of the tangent to y=x23xy = x^2 - 3x at x=2x = 2.
  3. Find the stationary points of f(x)=x33x+2f(x) = x^3 - 3x + 2 and classify them.
  4. Evaluate 02(3x22x+1)dx\int_0^2 (3x^2 - 2x + 1) \, dx.
  5. Find the area under y=4xx2y = 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 3xdx\int \frac{3}{x}\,dx and hence evaluate 143xdx\int_1^4 \frac{3}{x}\,dx.
  8. The radius of a sphere is increasing at 2\mathrm{ cm/s. Find the rate of increase of the volume when r = 5\mathrm{ cm.

Higher Level

  1. Differentiate f(x)=lnxxf(x) = \frac{\ln x}{x} using the quotient rule.
  2. Evaluate 01xe2xdx\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[cosx]=sinx\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=sinxy = \sin x about the xx-axis from x=0x = 0 to x=πx = \pi.
  7. Evaluate 2xx2+1dx\int \frac{2x}{x^2 + 1} \, dx using substitution.
  8. Find the area between the curves y=exy = e^x and y=exy = e^{-x} and the lines x=0x = 0 and x=1x = 1.
  9. Find d2ydx2\frac{d^2y}{dx^2} when y=x3lnxy = x^3 \ln x.
  10. Evaluate 0π/2sin2xdx\int_0^{\pi/2} \sin^2 x \, dx using the identity sin2x=1cos2x2\sin^2 x = \frac{1 - \cos 2x}{2}.
  11. Evaluate excosxdx\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 500\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

Regular practice with a variety of question types is essential to build fluency and confidence in applying these mathematical techniques.