IB · International Baccalaureate
✓ Official Syllabus VerifiedStandards & Rigor ↗
5

Calculus

IB Mathematics SL P1 & P2 AA SL AI SL

Topic 5 develops differential and integral calculus: limits, derivatives from first principles, product/quotient/chain rules, tangent and normal lines, optimization, definite integrals, areas between curves, and rectilinear kinematics.

● Level 1 Foundation — The Derivative from First Principles

The derivative represents the instantaneous rate of change of a function, defined as the limit of average rates of change across an infinitesimal interval h:

\[ f'(x) = \frac{dy}{dx} = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}. \]

Geometrically, the difference quotient fraction f(x+h) - f(x) over h is the gradient of the secant line connecting \((x, f(x))\) and \((x+h, f(x+h))\). As \(h \to 0\), the secant line approaches the tangent line at \((x, f(x))\).

Standard Elementary Derivatives:

\[ \frac{d}{dx}(x^n) = n x^{n-1}, \quad \frac{d}{dx}(e^{kx}) = k e^{kx}, \quad \frac{d}{dx}(\ln x) = \frac{1}{x} \quad (x > 0), \]\[ \frac{d}{dx}(\sin x) = \cos x, \quad \frac{d}{dx}(\cos x) = -\sin x, \quad \frac{d}{dx}(\tan x) = \sec^2 x = \frac{1}{\cos^2 x}. \]
● Deep Conceptual Intuition — Calculus

Local Linearization & Differentiability: A function \(f\) is differentiable at \(x = a\) if and only if the difference quotient \(\lim_{h \to 0} \dfrac{f(a+h) - f(a)}{h}\) exists as a finite real number. Differentiability at \(x = a\) strictly implies continuity at \(x = a\), but the converse fails at sharp corners (e.g. \(|x - 2|\)), vertical tangents, or jump discontinuities.

IB Paper \(1 / 2\) calculus region bounded by the parabola \(y = 6x -x^{2}\) and the secant line \(y = x + 4\) between intersections \(A(1, 5)\) and \(B(4, 8)\), area = ∫₁⁴ (\((6x - x^{2}) - (x + 4)\)) \(dx = 9 / 2\).
⊙ Explorer · The tangent line and \(f'(a)\)
interactive
\(f(a)\)\(-2.000\)
\(f'(a)\) (tangent slope)\(0.000\)
secant slope [\(f(a+h) - f(a)\)]/\(h\)\(4.000\)
monotonicity at aat a critical point

The solid curve is \(f(x) = x^{3} -3x\). The orange line is the exact tangent at a, with slope \(f'(a)\); the teal dashed line is the secant through a and \(a + h\), with slope [\(f(a+h) - f(a)\)]/\(h\). Drag the secant step \(h\) toward 0 and watch the dashed secant rotate onto the solid tangent — this is the definition of the derivative from first principles.

● Level 2 Analytical Tools — Differentiation Rules & Optimization

Operational Calculus Rules:

  • Product Rule: \[ (uv)' = u'v + uv'. \]
  • Quotient Rule: \[ \left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}. \]
  • Chain Rule: For composite \(y = f(g(x))\): \[ \frac{dy}{dx} = f'(g(x)) \cdot g'(x) \iff \frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}. \]

Tangents, Normals & Optimization:

  • Tangent Line: At \((a, f(a))\), \(y - f(a) = f'(a)(x - a)\).
  • Normal Line: At \((a, f(a))\), \(y - f(a) = -\frac{1}{f'(a)}(x - a)\) (provided \(f'(a) \neq 0\)).
  • Stationary Points: Critical points satisfy \(f'(x) = 0\).
  • Second Derivative Test: Let \(f'(c) = 0\):
    • If \(f''(c) < 0\): \(f\) is concave down \(\implies\) local maximum at \(x = c\).
    • If \(f''(c) > 0\): \(f\) is concave up \(\implies\) local minimum at \(x = c\).
    • If \(f''(c) = 0\): test inconclusive; evaluate sign change of \(f'(x)\).
  • Point of Inflection: A point where the curve changes concavity, requiring \(f''(x) = 0\) with a sign change in \(f''(x)\).
● Level 3 University Rigor — Integration, Area Between Curves & Kinematics

Indefinite Integrals & Reverse Chain Rule:

\[ \int x^n\,dx = \frac{x^{n+1}}{n+1} + C \;(n \neq -1), \quad \int \frac{1}{x}\,dx = \ln|x| + C, \quad \int e^{kx}\,dx = \frac{1}{k}e^{kx} + C, \]\[ \int \sin(kx)\,dx = -\frac{1}{k}\cos(kx) + C, \quad \int \cos(kx)\,dx = \frac{1}{k}\sin(kx) + C. \]

Integration by substitution / reverse chain rule:

\[ \int f'(g(x))g'(x)\,dx = f(g(x)) + C, \quad \int \frac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C. \]

Fundamental Theorem of Calculus & Area:

\[ \int_a^b f(x)\,dx = F(b) - F(a) \quad \text{where } F'(x) = f(x). \]

The exact geometric area between curves \(y = f(x)\) and \(y = g(x)\) from \(x = a\) to \(x = b\) is:

\[ A = \int_a^b |f(x) - g(x)|\,dx = \int_a^b (y_{\text{top}} - y_{\text{bottom}})\,dx. \]

Rectilinear Kinematics: For a particle moving along a straight line with position \(s(t)\):

  • Velocity: \(v(t) = s'(t) = \frac{ds}{dt}\).
  • Acceleration: \(a(t) = v'(t) = s''(t) = \frac{dv}{dt}\).
  • Displacement across \([t_1, t_2]\): \[ \Delta s = s(t_2) - s(t_1) = \int_{t_1}^{t_2} v(t)\,dt. \]
  • Total Distance Travelled across \([t_1, t_2]\): \[ \text{Total Distance} = \int_{t_1}^{t_2} |v(t)|\,dt. \]
◆ Why It Works — First-Principles Derivation (Calculus)

Why Differentiability Implies Continuity & How Implicit Differentiation Works: Notice that for \(x \ne a\), we can write \(f(x) - f(a) = \dfrac{f(x) - f(a)}{x - a}\cdot (x - a)\). Taking the limit as \(x \to a\) by the Product Law gives:

\[ \lim_{x \to a} \bigl(f(x) - f(a)\bigr) = f'(a)\cdot 0 = 0 \implies \lim_{x \to a} f(x) = f(a) \]

Similarly, when differentiating an implicit relation \(F(x, y) = c\) with respect to \(x\), \(y = y(x)\) is an inner function of \(x\). By the Chain Rule, \(\dfrac{d}{dx}\bigl[y^n\bigr] = ny^{n-1}\dfrac{dy}{dx}\), and for product terms \(\dfrac{d}{dx}[xy] = y + x\dfrac{dy}{dx}\).

Worked Example 5.1 — Derivative from First Principles
Problem. Use the limit definition of the derivative from first principles to find \(f'(x)\) for \(f(x) = 2x^2 - 5x + 3\).
▸ Show step-by-step solution

1. State the first principles limit definition:
\[ f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}. \]

2. Expand \(f(x + h)\):
\[ f(x + h) = 2(x + h)^2 - 5(x + h) + 3 = 2(x^2 + 2xh + h^2) - 5x - 5h + 3 = 2x^2 + 4xh + 2h^2 - 5x - 5h + 3. \]

3. Compute the difference \(f(x + h) - f(x)\):
\[ [2x^2 + 4xh + 2h^2 - 5x - 5h + 3] - [2x^2 - 5x + 3] = 4xh + 2h^2 - 5h = h(4x + 2h - 5). \]

4. Divide by \(h\) (for \(h \neq 0\)) and evaluate the limit:
\[ f'(x) = \lim_{h \to 0} \frac{h(4x + 2h - 5)}{h} = \lim_{h \to 0} (4x + 2h - 5) = 4x + 0 - 5 = 4x - 5. \]

Result: \(f'(x) = 4x - 5\). ∎

Worked Example 5.2 — Optimization & Second Derivative Test
Problem. An open-topped rectangular cardboard box is to be constructed with a square base of side length \(x\text{ cm}\) and height \(h\text{ cm}\). The total surface area of cardboard available is \(300\text{ cm}^2\).
(a) Express \(h\) in terms of \(x\).
(b) Show that the volume is given by \(V(x) = 75x - \frac{1}{4}x^3\).
(c) Find the dimensions \(x\) and \(h\) that maximize the volume, proving that this yields a global maximum.
▸ Show step-by-step solution

(a) Surface area consists of 1 base plus 4 vertical sides:
\[ A = x^2 + 4xh = 300 \implies 4xh = 300 - x^2 \implies h = \frac{300 - x^2}{4x} = \frac{75}{x} - \frac{x}{4}. \]

(b) Volume: \[ V(x) = x^2 h = x^2\left(\frac{300 - x^2}{4x}\right) = \frac{x(300 - x^2)}{4} = 75x - \frac{1}{4}x^3. \]

(c) Differentiate: \[ V'(x) = 75 - \frac{3}{4}x^2. \]
Set \(V'(x) = 0\):
\[ 75 - \frac{3}{4}x^2 = 0 \implies \frac{3}{4}x^2 = 75 \implies x^2 = 100 \implies x = 10\text{ cm} \quad (x > 0). \]
Test for maximum using second derivative:
\[ V''(x) = -\frac{6}{4}x = -1.5x. \]
At \(x = 10\): \(V''(10) = -15 < 0\), which confirms a local maximum.
Since the physical domain is \(0 < x < \sqrt{300}\) and \(V(0) = 0, V(\sqrt{300}) = 0\), this critical point is the unique global maximum.
Height: \[ h = \frac{300 - 10^2}{4(10)} = \frac{200}{40} = 5\text{ cm}. \]
Maximum volume: \(V = 10^2 \times 5 = 500\text{ cm}^3\).

Worked Example 5.3 — Area Between Intersecting Curves
Problem. Find the exact area of the finite region enclosed by the parabola \(y = 4 - x^2\) and the line \(y = 2 - x\).
▸ Show step-by-step solution

1. Find points of intersection:
\[ 4 - x^2 = 2 - x \implies x^2 - x - 2 = 0 \implies (x - 2)(x + 1) = 0 \implies x = -1 \quad \text{and} \quad x = 2. \]

2. Determine top and bottom curves on \([-1, 2]\):
At \(x = 0\): \(y_{\text{parabola}} = 4\) and \(y_{\text{line}} = 2\). Hence, \(y_{\text{top}} = 4 - x^2\) and \(y_{\text{bottom}} = 2 - x\).

3. Set up the definite integral:
\[ A = \int_{-1}^2 [(4 - x^2) - (2 - x)]\,dx = \int_{-1}^2 (2 + x - x^2)\,dx. \]

4. Integrate analytically:
\[ \left[ 2x + \frac{x^2}{2} - \frac{x^3}{3} \right]_{-1}^2 = \left( 4 + 2 - \frac{8}{3} \right) - \left( -2 + \frac{1}{2} + \frac{1}{3} \right) \] \[ = \left( 6 - \frac{8}{3} \right) - \left( -\frac{7}{6} \right) = \frac{10}{3} + \frac{7}{6} = \frac{20}{6} + \frac{7}{6} = \frac{27}{6} = \frac{9}{2} = 4.5. \]

The exact enclosed area is 4.5 units².

First-derivative sign analysis identifying intervals of increase/decrease, local maximum at \(x = -1\), and local minimum at \(x = 3\).
⚠ Topic 5 Exam Traps: Distance vs Displacement & Derivative Rules
Displacement vs Total Distance: Displacement is the net integral \(\int_{t_1}^{t_2} v(t)\,dt\); total distance travelled is \(\int_{t_1}^{t_2} |v(t)|\,dt\). If velocity changes sign, you must split the integral at every root where \(v(t) = 0\).

Quotient Rule Minus Sign Order: The numerator is \(u'v - uv'\), NOT \(uv' - u'v\). Subtracting in the reverse order produces an incorrect negative derivative.

Inflection Point Justification: \(f''(x) = 0\) is a necessary condition for a point of inflection, but NOT sufficient. You must explicitly show that \(f''(x)\) changes sign across that point (e.g. \(f(x) = x^4\) has \(f''(0) = 0\), but \(x=0\) is a minimum, not an inflection point).
Worked Example A — Calculus (Medium Application)
Problem. The graph of the function \( f(x) = x^2 + k \) is shown below. The graph passes through the point \( (3, 11) \). Determine the value of \( k \).
▸ Show step-by-step solution

The function is given by \( f(x) = x^2 + k \). We are given that the graph of the function passes through the point \( (3, 11) \). This means that when \( x=3 \), \( f(x)=11 \). Substitute these values into the function's equation: \( 11 = (3)^2 + k \) \( 11 = 9 + k \) To find \( k \), subtract 9 from both sides of the equation: \( k = 11 - 9 \) \( k = 2 \) Therefore, the value of \( k \) is 2. [M1] [A1]

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Calculus)
Common Student TrapWhy It Fails MathematicallyCorrect Exam-Board Method
Assuming \(f'(c) = 0\) guarantees a local extremumInflection points like \(f(x) = x^3\) at \(x = 0\) have \(f'(0) = 0\) without changing sign.Verify that \(f'(x)\) actually changes sign across \(x = c\) (or check \(f''(c) \ne 0\)).
Computing parametric \(\frac{d^2y}{dx^2}\) as \(\frac{\ddot{y}}{\ddot{x}}\)violates the Chain Rule \(\frac{d}{dx} = \frac{1}{dx/dt}\frac{d}{dt}\).Differentiate \(dy/dx\) with respect to \(t\), then divide by \(dx/dt\).
Forgetting product rule on \(xy\) in implicit differentiationTreats \(y\) as a constant instead of \(y(x)\).Always expand \(\frac{d}{dx}(xy) = y + x\frac{dy}{dx}\).
▲ Exam Pacing & Verification Strategy — Calculus

Exam Justification Rule (IB Diploma Mathematics: Analysis & Approaches / Applications & Interpretation SL): When justifying local extrema or points of inflection on free-response questions, state "because \(f'(x)\) changes sign from positive to negative at \(x = c\)" rather than referring vaguely to "it" or "the graph."

Practice 5.1: A curve has equation \(y = x^3 - 3x^2 - 9x + 5\).
(a) Find the coordinates of the local maximum and local minimum points.
(b) Determine the coordinates of the point of inflection and find the equation of the tangent at the point of inflection.
💡 Hint 1 of 3
(a) \(y' = 3x^2 - 6x - 9 = 3(x^2 - 2x - 3) = 3(x - 3)(x + 1)\).
💡 Hint 2 of 3
Critical points at \(x = -1\) and \(x = 3\). \(y'' = 6x - 6\).
💡 Hint 3 of 3
Tangent line: \(y - (-6) = -12(x - 1) \implies y + 6 = -12x + 12 \implies y = -12x + 6\).
(a) \(y' = 3x^2 - 6x - 9 = 3(x^2 - 2x - 3) = 3(x - 3)(x + 1)\).
Critical points at \(x = -1\) and \(x = 3\).
\(y'' = 6x - 6\).
At \(x = -1\): \(y''(-1) = -12 < 0 \implies\) local maximum.
\(y(-1) = (-1)^3 - 3(-1)^2 - 9(-1) + 5 = -1 - 3 + 9 + 5 = 10\). Local max: \((-1, 10)\).
At \(x = 3\): \(y''(3) = 12 > 0 \implies\) local minimum.
\(y(3) = 27 - 27 - 27 + 5 = -22\). Local min: \((3, -22)\).

(b) Point of inflection: \(y'' = 6x - 6 = 0 \implies x = 1\).
\(y(1) = 1 - 3 - 9 + 5 = -6\). Inflection point: \((1, -6)\).
Slope at \(x = 1\): \(m = y'(1) = 3(1)^2 - 6(1) - 9 = -12\).
Tangent line: \(y - (-6) = -12(x - 1) \implies y + 6 = -12x + 12 \implies y = -12x + 6\).
Practice 5.2: A particle moves in a straight line with velocity \(v(t) = 3t^2 - 12t + 9\text{ m/s}\) for \(0 \le t \le 4\).
(a) Find the times at which the particle is momentarily at rest.
(b) Calculate the net displacement of the particle over \([0, 4]\).
(c) Calculate the total distance travelled by the particle over \([0, 4]\).
💡 Hint 1 of 3
(a) \(v(t) = 0 \implies 3(t^2 - 4t + 3) = 0 \implies 3(t - 1)(t - 3) = 0 \implies t = 1\text{ s}\) and \(t = 3\text{ s}\).
💡 Hint 2 of 3
(c) Total distance requires splitting the integral where velocity changes sign: Over \([0, 1]\): \(v(t) > 0\); \(\int_0^1 (3t^2 - 12t + 9)\,dt = [t^3 - 6t^2 + 9t]_0^1\).
💡 Hint 3 of 3
Over \([3, 4]\): \(v(t) > 0\); \(\int_3^4 (3t^2 - 12t + 9)\,dt = [t^3 - 6t^2 + 9t]_3^4 = 4 - 0\).
(a) \(v(t) = 0 \implies 3(t^2 - 4t + 3) = 0 \implies 3(t - 1)(t - 3) = 0 \implies t = 1\text{ s}\) and \(t = 3\text{ s}\).

(b) Displacement: \[ \Delta s = \int_0^4 (3t^2 - 12t + 9)\,dt = \left[ t^3 - 6t^2 + 9t \right]_0^4 = (64 - 96 + 36) - 0 = 4\text{ m}. \]
(c) Total distance requires splitting the integral where velocity changes sign:
Over \([0, 1]\): \(v(t) > 0\); \(\int_0^1 (3t^2 - 12t + 9)\,dt = [t^3 - 6t^2 + 9t]_0^1 = 4\text{ m}\).
Over \([1, 3]\): \(v(t) < 0\); \(\int_1^3 (3t^2 - 12t + 9)\,dt = [t^3 - 6t^2 + 9t]_1^3 = (27 - 54 + 27) - 4 = 0 - 4 = -4\text{ m}\), so distance is \(|-4| = 4\text{ m}\).
Over \([3, 4]\): \(v(t) > 0\); \(\int_3^4 (3t^2 - 12t + 9)\,dt = [t^3 - 6t^2 + 9t]_3^4 = 4 - 0 = 4\text{ m}\).
Total distance travelled = \(4 + 4 + 4 = 12\text{ m}\).
[Practice 3 · Medium] The graph of the function \( f(x) = x^2 - 6x + k \) is shown below. The graph passes through the point \( (5, -2) \). Find the value of \( k \).
💡 Hint 1 of 3
The function is given by \( f(x) = x^2 - 6x + k \). We are given that the graph of this function passes through the point \( (5, -2) \). This means that when \( x=5 \), \( f(x) = -2 \). Substituting these values into the function, we get: \( -2 = (5)^2 - 6(5) + k \).
💡 Hint 2 of 3
Rewrite and simplify to obtain: \( -2 = 25 - 30 + k \) \( -2 = -5 + k \) To solve for \( k \), we add 5 to both sides of the equation: \( -2 + 5 = k \) \( 3 = k \).
💡 Hint 3 of 3
Therefore, the value of \(k\) is 3.
The function is given by \( f(x) = x^2 - 6x + k \). We are given that the graph of this function passes through the point \( (5, -2) \). This means that when \( x=5 \), \( f(x) = -2 \). Substituting these values into the function, we get: \( -2 = (5)^2 - 6(5) + k \) \( -2 = 25 - 30 + k \) \( -2 = -5 + k \) To solve for \( k \), we add 5 to both sides of the equation: \( -2 + 5 = k \) \( 3 = k \) Therefore, the value of \( k \) is 3.
[Practice 4 · Medium] Given \( \log_{5}(2)=p \), express \( \log_{5}(2^{4}) \) in terms of \( p \).
💡 Hint 1 of 3
By the log law \( \log(x^k)=k\log x \).
💡 Hint 2 of 3
The expression equals \(4p\).
💡 Hint 3 of 3
Evaluate and simplify \(4p\) carefully (checking signs and units) to obtain the final answer.
By the log law \( \log(x^k)=k\log x \), the expression equals \( 4p \).
Consider the function \( f(x) = x^2 - 5x + 6 \). What is the value of \( f(2) \)?
💡 Hint 1 of 3
To find the value of \( f(2) \), substitute \( x=2 \) into the function \( f(x) = x^2 - 5x + 6 \).
💡 Hint 2 of 3
Rewrite and simplify to obtain: \( f(2) = (2)^2 - 5(2) + 6 \).
💡 Hint 3 of 3
Use the resulting form to finish: \(f(2) = 4 - 10 + 6\).
To find the value of \( f(2) \), substitute \( x=2 \) into the function \( f(x) = x^2 - 5x + 6 \). \( f(2) = (2)^2 - 5(2) + 6 \) \( f(2) = 4 - 10 + 6 \) \( f(2) = 0 \) [M1] [A1]

Calculus — 8-Mark Structured Problem

8 pts Calculator Active
For Calculus, consider the linear-rate relationship \(f(x) = 5x + 3\) on \(x \ge 0\) together with the quadratic auxiliary \(g(x) = x^2 - 10x + 3\).
  1. (a)2 pts
    Find the initial value \(f(0)\) and the slope \(f'(x)\).
    Scoring Guideline & Justification
    • [M1] Evaluates f(0) and reads gradient coefficient (1 pt)
    • [A1] Obtains f(0) = 3 and slope = 5 (1 pt)
  2. (b)3 pts
    Determine the vertex \((h, k)\) and minimum value of \(g(x)\).
    Scoring Guideline & Justification
    • [M1] Finds axis of symmetry x = 5 (2 pt)
    • [A1] Evaluates minimum k = -22 (1 pt)
  3. (c)3 pts
    Compute the average rate of change of \(g(x)\) from \(x = 0\) to \(x = 7\).
    Scoring Guideline & Justification
    • [M1] Applies (g(7) - g(0)) / 7 (2 pt)
    • [A1] Simplifies to -3 (1 pt)
Complete Worked Solution
(a) \(f(0)=3\), gradient \(5\). (b) Completing the square gives \(g(x)=(x-5)^2+-22\), minimum \(-22\) at \(x=5\). (c) Average rate \(= (x_1+x_2-10) = -3\).
📝 Chapter Quiz