IB Maths AA HL Topic 5 — Calculus Paper 1 & 2 HL ~12 min read

Maclaurin Series from Differential Equations

Given a DE dy/dx = g(x, y) with an initial condition y(0), you can build the Maclaurin series for the solution y = f(x) term by term — even when the DE has no closed-form solution. The trick: implicit differentiation gives y″, y‴, … at x = 0, one at a time. Plug into the general Maclaurin formula. Each new derivative gives the next term of the series.

📘 What you need to know

The build-up: deriving each y(n)(0) in turn

Maclaurin series of the solution y(x) = y(0) + x y′(0) + x²2! y″(0) + x³3! y‴(0) + …
Building the series from a DE — example: y′ = y², y(0) = 1 order n expression for y⁽ⁿ⁾ (via implicit diff.) value at x = 0 (y = 1) 0 y (from initial condition) y(0) = 1 1 y² (directly from DE) 1² = 1 2 2yy′ (d/dx of y²) 2(1)(1) = 2 3 2(y′)² + 2yy″ (d/dx of 2yy′) 2(1) + 2(1)(2) = 6 4 6y′y″ + 2yy‴ (d/dx of prev.) 6(1)(2) + 2(1)(6) = 24 y = 1 + 1·x + 2·x²/2! + 6·x³/3! + 24·x⁴/4! + … = 1 + x + x² + x³ + x⁴ + … ⟹ the geometric series, which is the Maclaurin expansion of 1/(1 − x)
Each derivative y(n) is obtained by implicitly differentiating the previous one. Evaluated at x = 0 (using the initial condition y = 1), each value feeds into the next row. The Maclaurin formula then assembles them.

Why this works even without a closed-form solution

DE with closed form
y′ = y²
Solution: y = 1/(1−x) (by separation). Maclaurin series can be derived directly from the solution, OR from the DE — both methods give the geometric series.
DE with no closed form
y′ = y² + x²
No elementary solution exists. But we can still build the Maclaurin series term by term — the DE-implicit method works even when no formula for y(x) is available.
The power of the method: this is one of only two ways to get information about solutions to “unsolvable” DEs. The other is Euler’s method (numerical). Maclaurin gives an algebraic answer; Euler gives a numerical one.

🧭 Recipe — building a Maclaurin series from a DE

  1. Read off y(0) from the initial condition. This becomes the constant term of the Maclaurin series.
  2. Compute y′(0) by substituting x = 0 and the known y(0) into the DE.
  3. Differentiate the DE implicitly to get an expression for y″ in terms of x, y, and y′. Evaluate at x = 0 using known values.
  4. Repeat: differentiate again to get y‴, then y⁽⁴⁾, etc. — as many as needed for the required series length. Substitute previously-computed values each time.
  5. Plug into the Maclaurin formula: y = y(0) + x y′(0) + (x²/2!) y″(0) + (x³/3!) y‴(0) + … and simplify each coefficient.

Worked examples

WE 1

First-order DE — find Maclaurin up to x⁴

For the DE y′ = x + y with y(0) = 1, find the Maclaurin series of y up to and including the term in x⁴.

Step 1 — read off y(0) and find y'(0) y(0) = 1 (from IC) y'(0) = x + y at x=0, y=1 = 0 + 1 = 1 Step 2 — differentiate the DE implicitly y’ = x + y ⟹ y” = 1 + y’ y”(0) = 1 + 1 = 2 Step 3 — differentiate again y”’ = 0 + y” = y” y”'(0) = 2 y⁽⁴⁾ = y”’ = y” (chain continues) y⁽⁴⁾(0) = 2 Step 4 — plug into Maclaurin formula y = 1 + 1·x + 2·x²/2! + 2·x³/3! + 2·x⁴/4! = 1 + x + x² + x³/3 + x⁴/12 y ≈ 1 + x + x² + x³3 + x12 cross-check: this DE has the exact solution y = −x − 1 + 2e^x. Taking its Maclaurin series: −x − 1 + 2(1 + x + x²/2 + x³/6 + x⁴/24 + …) = 1 + x + x² + x³/3 + x⁴/12 + … ✓ matches our DE-based derivation.
WE 2

A surprising result — y’ = y², y(0) = 1

Find the Maclaurin series for the solution of y′ = y² with y(0) = 1, up to and including the term in x⁴.

Step 1 — IC and y'(0) y(0) = 1 y'(0) = y² at y=1 = 1 Step 2 — differentiate y’ = y² implicitly y” = 2y·y’ y”(0) = 2(1)(1) = 2 Step 3 — keep differentiating y”’ = 2(y’)² + 2y·y” (product rule) y”'(0) = 2(1)² + 2(1)(2) = 2 + 4 = 6 y⁽⁴⁾ = 4y’·y” + 2y’·y” + 2y·y”’ = 6y’·y” + 2y·y”’ y⁽⁴⁾(0) = 6(1)(2) + 2(1)(6) = 12 + 12 = 24 Step 4 — assemble the Maclaurin series y = 1 + 1·x + 2x²/2! + 6x³/3! + 24x⁴/4! = 1 + x + x² + x³ + x⁴ y ≈ 1 + x + x² + x³ + x⁴ (the geometric series!) notice the beautiful cancellation: y⁽ⁿ⁾(0) = n! exactly, so dividing by n! gives coefficient 1 for every power. This is the geometric series, the Maclaurin expansion of y = 1/(1−x). The DE y’ = y² with y(0) = 1 is solved by 1/(1−x) (by separation), so the answer is consistent.
WE 3

Derive the tan x Maclaurin series — y’ = 1 + y², y(0) = 0

The function y = tan x satisfies the DE y′ = 1 + y² with y(0) = 0. Use this DE to find the Maclaurin series for tan x up to and including the term in x⁵.

Step 1 — IC and y'(0) y(0) = 0, y'(0) = 1 + 0² = 1 Step 2 — differentiate implicitly y” = 2y·y’ y”(0) = 2(0)(1) = 0 Step 3 — keep going y”’ = 2(y’)² + 2y·y” y”'(0) = 2(1)² + 2(0)(0) = 2 y⁽⁴⁾ = 6y’·y” + 2y·y”’ y⁽⁴⁾(0) = 6(1)(0) + 2(0)(2) = 0 y⁽⁵⁾ = 6(y”)² + 6y’·y”’ + 2y’·y”’ + 2y·y⁽⁴⁾ = 6(y”)² + 8y’·y”’ + 2y·y⁽⁴⁾ y⁽⁵⁾(0) = 6(0)² + 8(1)(2) + 2(0)(0) = 16 Step 4 — assemble y = 0 + 1·x + 0·x²/2 + 2·x³/6 + 0·x⁴/24 + 16·x⁵/120 = x + x³/3 + 2x⁵/15 tan xx + x³3 + 2x15 tan x is not in the formula booklet, so the DE-implicit method is a clean way to derive its series. Matches our first-principles derivation in the “Maclaurin Standard Functions” note. The even-power coefficients vanish because tan is an odd function.
WE 4

Second-order DE — y” = -y, y(0) = 1, y'(0) = 0

Use the second-order DE y″ = −y with initial conditions y(0) = 1 and y′(0) = 0 to derive the Maclaurin series of y up to and including the term in x⁶.

Step 1 — IC values y(0) = 1, y'(0) = 0, y”(0) = -y(0) = -1 Step 2 — differentiate the DE y”’ = -y’ ⟹ y”'(0) = -y'(0) = 0 y⁽⁴⁾ = -y” ⟹ y⁽⁴⁾(0) = -(-1) = 1 y⁽⁵⁾ = -y”’ ⟹ y⁽⁵⁾(0) = -0 = 0 y⁽⁶⁾ = -y⁽⁴⁾ ⟹ y⁽⁶⁾(0) = -1 Step 3 — assemble the series y = 1 + 0·x + (-1)x²/2! + 0·x³/3! + 1·x⁴/4! + 0·x⁵/5! + (-1)x⁶/6! = 1 – x²/2! + x⁴/4! – x⁶/6! y ≈ 1 − x²2! + x4!x6!   (this is cos x!) a second-order DE provides y″ directly and supplies TWO initial conditions (y(0) and y'(0)). The pattern y”=-y has a 4-step derivative cycle: y, y’, -y, -y’, y, y’… so every fourth derivative repeats. The solution is cos x ✓.
WE 5

Numerical application — approximate y(0.1) for WE 1’s DE

The DE y′ = x + y, y(0) = 1 has Maclaurin series y = 1 + x + x² + x³/3 + x⁴/12 + … (from WE 1). Use this to approximate y(0.1) to 5 decimal places.

Step 1 — substitute x = 0.1 into the truncated series y(0.1) ≈ 1 + 0.1 + (0.1)² + (0.1)³/3 + (0.1)⁴/12 = 1 + 0.1 + 0.01 + 0.001/3 + 0.0001/12 Step 2 — compute each term 1 + 0.1 = 1.1 0.01 → running total 1.11 0.001/3 ≈ 0.000333 → running total ≈ 1.110333 0.0001/12 ≈ 0.00000833 → total ≈ 1.110342 y(0.1) ≈ 1.11034 (to 5 d.p.) exact value: y(0.1) = −0.1 − 1 + 2e^0.1 = 1.110342… Our 5-term Maclaurin approximation matches to about 7 decimal places — very accurate near x = 0. The smaller |x| is, the fewer terms you need.
WE 6

A DE with no closed-form solution — y’ = y² + x²

The DE y′ = y² + x² with y(0) = 1 has no elementary closed-form solution. Find the Maclaurin series of its solution up to and including the term in x⁴, then approximate y(0.2).

Step 1 — IC and derivatives at x = 0 y(0) = 1 y'(0) = y² + x² at x=0, y=1 = 1 + 0 = 1 Step 2 — implicit differentiation y’ = y² + x² y” = 2yy’ + 2x y”(0) = 2(1)(1) + 0 = 2 Step 3 — keep differentiating y”’ = 2(y’)² + 2yy” + 2 y”'(0) = 2(1)² + 2(1)(2) + 2 = 2 + 4 + 2 = 8 y⁽⁴⁾ = 6y’y” + 2yy”’ (the +2 differentiates to 0) y⁽⁴⁾(0) = 6(1)(2) + 2(1)(8) = 12 + 16 = 28 Step 4 — assemble Maclaurin series y = 1 + 1·x + 2x²/2 + 8x³/6 + 28x⁴/24 = 1 + x + x² + 4x³/3 + 7x⁴/6 Step 5 — approximate y(0.2) y(0.2) ≈ 1 + 0.2 + 0.04 + (4/3)(0.008) + (7/6)(0.0016) ≈ 1 + 0.2 + 0.04 + 0.01067 + 0.00187 ≈ 1.25253 y(x) ≈ 1 + x + x² + 4x³3 + 7x6;   y(0.2) ≈ 1.25253 no closed-form solution exists for this DE — yet we got a useful approximation. This is one of two ways to attack “unsolvable” DEs (the other being Euler’s method, which gives numerical estimates without an algebraic formula).

💡 Top tips

⚠ Common mistakes

You’ve finished the Maclaurin Series chapter! 🎉 You now know four routes to a Maclaurin series: first-principles (derivatives at 0), substitution/multiplication (composites & products), differentiation/integration of known series, and DE-implicit (when only a DE is given). Up next: l’Hôpital’s Rule & Maclaurin for Limits — using these series to crack indeterminate-form limits that ordinary algebra can’t touch.

Need help with Calculus?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →