Teachers' Portal  /  A-Level Further Maths 9231  /  Differential equations  /  Second order: complementary functions
Lesson pack · A-Level Further Maths 9231 · 2.6 · AS & A Level

Second order: complementary functions

Guess an exponential, solve a quadratic. A linear differential equation with constant coefficients and zero on the right-hand side is solved by guessing \(y = e^{mx}\).

Student lesson
At a glance

The shape of the lesson

Topic
Differential equations
Syllabus reference
Cambridge International AS and A Level Further Mathematics 9231, 2.6
Level
AS & A Level
Duration
45 minutes, lab-led; stretches to a 60 minute block (see the contingency notes)
Position in topic
Lesson 2 of 4 in Differential equations; follows First order: integrating factors; leads into Particular integrals and particular solutions
Central model
Fig. 1: the solution of 4y'' + 4y' + 17y = 0 with y(0) = 2, y'(0) = 1 is y = e^(-x/2)(2 cos 2x + sin 2x). The auxiliary roots are -1/2 ± 2i: the real part -1/2 makes the amplitude decay inside the envelope ±√5 e^(-x/2), and the imaginary part 2 fixes the period at π
Cooperative structure
Assessment
Stage 1 check and the exam-style plenary from the student lesson, plus the worksheet as the exit task
Learning objectives

By the end of the lesson, learners can

Section by section
  • From calculus to algebra: A linear equation with constant coefficients, such as \(\dfrac{d^{2}y}{dx^{2}} - 5\dfrac{dy}{dx} + 6y = 0\), asks for a function whose derivatives are multiples of itself.
  • Repeated and complex roots: When the auxiliary equation has a repeated root, \(Ae^{mx} + Be^{mx}\) is really \((A + B)e^{mx}\): only one constant.
  • Fixing the constants, reading the behaviour: Two conditions, usually \(y\) and \(\dfrac{dy}{dx}\) at \(x = 0\), fix \(A\) and \(B\) and pick out one curve from the family.
Key points to leave on the board
  • Write \(am^{2} + bm + c = 0\) from \(ay'' + by' + cy = 0\), keeping every sign.
  • Solve it: factorise if you can, otherwise use the formula; the discriminant tells you the case.
  • Match the form: \(Ae^{m_{1}x} + Be^{m_{2}x}\), \((A + Bx)e^{mx}\) or \(e^{px}(A\cos qx + B\sin qx)\).
  • Conditions: substitute \(y(0)\), then differentiate the whole CF (product rule) and substitute \(y'(0)\).
  • Interpret: negative real parts decay, \(p = 0\) oscillates steadily, a positive root or real part grows.
The core visual model

One picture every idea returns to

For \(a\dfrac{d^{2}y}{dx^{2}} + b\dfrac{dy}{dx} + cy = 0\), try \(y = e^{mx}\) to get the auxiliary equation \(am^{2} + bm + c = 0\). Distinct real roots \(m_{1}, m_{2}\): \(y = Ae^{m_{1}x} + Be^{m_{2}x}\). Repeated root \(m\): \(y = (A + Bx)e^{mx}\). Complex roots \(p \pm qi\): \(y = e^{px}(A\cos qx + B\sin qx)\). This is the complementary function (CF); for an equation with a non-zero right-hand side, the general solution is CF + PI, where the particular integral (PI) is any one solution of the full equation.

x y 1 2 3 4 5 6 7 8 2 −2 O y = e−x/2(2 cos 2x + sin 2x) y = ±√5 e−x/2 (envelope) curve touches the envelope roots −½ ± 2i: e−x/2 shrinks the amplitude; 2 sets the period π
Fig. 1: the solution of 4y'' + 4y' + 17y = 0 with y(0) = 2, y'(0) = 1 is y = e^(-x/2)(2 cos 2x + sin 2x). The auxiliary roots are -1/2 ± 2i: the real part -1/2 makes the amplitude decay inside the envelope ±√5 e^(-x/2), and the imaginary part 2 fixes the period at π
Lesson sequence

Forty-five minutes, phase by phase

TimePhaseWhat happens in the roomGrouping
0 to 5 minHook: predictOpen with the question in the title, Guess an exponential, solve a quadratic.. A linear differential equation with constant coefficients and zero on the right-hand side is solved by guessing \(y = e^{mx}\). Put the figure on the board: it is the one picture every idea in the lesson returns to.Whole class, then pairs
5 to 13 minTeach and check: From calculus to algebraA linear equation with constant coefficients, such as \(\dfrac{d^{2}y}{dx^{2}} - 5\dfrac{dy}{dx} + 6y = 0\), asks for a function whose derivatives are multiples of itself. Model the worked example Distinct real roots on the board, one line at a time.Whole class, then pairs
13 to 21 minTeach and check: Repeated and complex rootsWhen the auxiliary equation has a repeated root, \(Ae^{mx} + Be^{mx}\) is really \((A + B)e^{mx}\): only one constant. Model the worked example A repeated root on the board, one line at a time. Your turn: Find the general solution of \(\dfrac{d^{2}y}{dx^{2}} + 16y = 0\).Pairs
21 to 30 minTeach and check: Fixing the constants, reading the behaviourTwo conditions, usually \(y\) and \(\dfrac{dy}{dx}\) at \(x = 0\), fix \(A\) and \(B\) and pick out one curve from the family. Model the worked example Real roots and two conditions on the board, one line at a time.Corners
30 to 36 minCheckThe four Stage 1 questions from the student lesson, answered on mini whiteboards or by show of fingers. Re-teach the one most get wrong.Individual, then whole class
36 to 43 minPlenaryThe exam-style questions from Stage 2, one at a time: thirty seconds alone, then a random call. The feedback lines in the key give the examiner's wording.Individual, random call
43 to 45 minExit and homeworkSet the worksheet below (6 questions, 22 marks). Learners self-assess against the objectives before they leave.Individual
Timing and contingency

Protect the parts that carry the learning

The sequence carries about fifty minutes of material, so the lab is driven by one student while the class predicts rather than explored freely. Times are a guide.

Protected: the check at 30 minutes. It is the only individual read on whether the key idea landed, and it is not cut.

Cut first if the build overruns: the last check in Fixing the constants, reading the behaviour, never the check or the plenary.

In a 60 minute block: run worksheet questions 1 to 3 in class as a Rally Coach set and model both the hardest worked example and its check live.

Running the cooperative task

Corners

Put one answer or viewpoint in each corner of the room. Students move to the corner they agree with, justify the choice to a partner there, then hear one voice from each corner before the reveal.

The full structure, with its PIES check and a worked example for every subject, is on the cooperative-learning page, one of fifteen structures there.

Examiner traps to pre-empt

What to head off, and how

Trap learners fall intoTeaching move that pre-empts it
The roots go straight into the exponents with their own signs. \(m^{2} - 5m + 6 = (m - 2)(m - 3)\) has roots \(2\) and \(3\), so the CF is \(Ae^{2x} + Be^{3x}\), not \(Ae^{-2x} + Be^{-3x}\).Read the roots from the factors, not the numbers inside the brackets.
For roots \(p \pm qi\) the real part goes in the exponential and the imaginary part inside the trig functions: \(-\tfrac{1}{2} \pm 2i\) gives \(e^{-\frac{1}{2}x}(A\cos 2x + B\sin 2x)\), not \(e^{2x}(A\cos\tfrac{1}{2}x + B\sin\tfrac{1}{2}x)\).And \(m^{2} + 16 = 0\) gives \(\pm 4i\), not \(\pm 4\): the CF is trigonometric, not \(Ae^{4x} + Be^{-4x}\).
Differentiate the whole product.With \(y = e^{-\frac{1}{2}x}(A\cos 2x + B\sin 2x)\), writing \(y'(0) = 2B\) forgets the \(-\tfrac{1}{2}A\) from differentiating the exponential and gives \(B = \tfrac{1}{2}\) instead of \(1\). For an equation with a non-zero right-hand side, find CF + PI first and only then use the conditions.
Worksheet

Second order: complementary functions: worksheet

6 questions, 22 marks. Written in the style of the papers; no past paper question is reproduced.

NameClassDate
Q1 · recall[2 marks]

Find the general solution of \(\dfrac{d^{2}y}{dx^{2}} - 7\dfrac{dy}{dx} + 10y = 0\).

Q2 · calculation[3 marks]

Find the general solution of \(9\dfrac{d^{2}y}{dx^{2}} - 12\dfrac{dy}{dx} + 4y = 0\).

Q3 · calculation[3 marks]

Find the general solution of \(\dfrac{d^{2}y}{dx^{2}} + 6\dfrac{dy}{dx} + 34y = 0\).

Q4 · analysis[4 marks]

Find the solution of \(\dfrac{d^{2}y}{dx^{2}} + 2\dfrac{dy}{dx} - 3y = 0\) for which \(y = 4\) and \(\dfrac{dy}{dx} = 0\) when \(x = 0\). Describe the behaviour of \(y\) as \(x \to \infty\).

Q5 · analysis[5 marks]

The displacement \(x\) cm of a particle at time \(t\) s satisfies \(\dfrac{d^{2}x}{dt^{2}} + 4\dfrac{dx}{dt} + 20x = 0\). When \(t = 0\), \(x = 0\) and \(\dfrac{dx}{dt} = 8\).

(a) Find \(x\) in terms of \(t\).

(b) Describe the motion and find the time at which the particle first returns to \(x = 0\).

Q6 · analysis[5 marks]

The constant \(k\) satisfies \(k \ge 0\) and \(\dfrac{d^{2}y}{dx^{2}} + k\dfrac{dy}{dx} + 9y = 0\).

(a) Find the value of \(k\) for which the auxiliary equation has a repeated root, and write down the general solution in that case.

(b) Write down the general solution when \(k = 0\) and when \(k = 10\).

(c) Show that for \(0 < k < 6\) every non-zero solution is a damped oscillation.

Answer key and marking notes
Q1 · 2 marks
  • \(m^{2} - 7m + 10 = (m - 2)(m - 5) = 0\), so \(m = 2\) or \(5\).
  • \(y = Ae^{2x} + Be^{5x}\).
Q2 · 3 marks
  • \(9m^{2} - 12m + 4 = 0\); \(b^{2} - 4ac = 144 - 144 = 0\), so the root is repeated.
  • \((3m - 2)^{2} = 0\), so \(m = \tfrac{2}{3}\).
  • \(y = (A + Bx)e^{\frac{2}{3}x}\).
Q3 · 3 marks
  • \(m^{2} + 6m + 34 = 0\): \[m = \frac{-6 \pm \sqrt{36 - 136}}{2} = \frac{-6 \pm 10i}{2}\]
  • \(m = -3 \pm 5i\), so \(p = -3\), \(q = 5\).
  • \(y = e^{-3x}(A\cos 5x + B\sin 5x)\).
Q4 · 4 marks
  • \(m^{2} + 2m - 3 = (m - 1)(m + 3) = 0\), so \(y = Ae^{x} + Be^{-3x}\).
  • \(x = 0\): \(A + B = 4\). \(\dfrac{dy}{dx} = Ae^{x} - 3Be^{-3x}\), so \(A - 3B = 0\).
  • Subtracting: \(4B = 4\), so \(B = 1\) and \(A = 3\): \(y = 3e^{x} + e^{-3x}\).
  • As \(x \to \infty\), \(e^{-3x} \to 0\) and \(3e^{x} \to \infty\), so \(y\) grows without limit, behaving like \(3e^{x}\).
Q5 · 5 marks
  • (a) \(m^{2} + 4m + 20 = 0\): \(m = \dfrac{-4 \pm \sqrt{16 - 80}}{2} = -2 \pm 4i\), so \(x = e^{-2t}(A\cos 4t + B\sin 4t)\).
  • \(t = 0\), \(x = 0\): \(A = 0\), so \(x = Be^{-2t}\sin 4t\).
  • \(\dfrac{dx}{dt} = Be^{-2t}(4\cos 4t - 2\sin 4t)\); at \(t = 0\): \(4B = 8\), so \(B = 2\) and \(x = 2e^{-2t}\sin 4t\).
  • (b) The real part \(-2\) is negative, so the particle oscillates about \(x = 0\) with amplitude decreasing like \(2e^{-2t}\): a damped oscillation that dies away.
  • \(x = 0\) again when \(\sin 4t = 0\) with \(t > 0\): \(4t = \pi\), so \(t = \dfrac{\pi}{4} \approx 0.785\) s.
Q6 · 5 marks
  • (a) \(m^{2} + km + 9 = 0\) has a repeated root when \(k^{2} - 36 = 0\); with \(k \ge 0\), \(k = 6\).
  • Then \((m + 3)^{2} = 0\) and \(y = (A + Bx)e^{-3x}\).
  • (b) \(k = 0\): \(m = \pm 3i\), so \(y = A\cos 3x + B\sin 3x\). \(k = 10\): \((m + 1)(m + 9) = 0\), so \(y = Ae^{-x} + Be^{-9x}\).
  • (c) For \(0 < k < 6\), \(k^{2} - 36 < 0\), so \[m = -\frac{k}{2} \pm \frac{\sqrt{36 - k^{2}}}{2}\,i\]
  • The roots are complex with real part \(-\tfrac{k}{2} < 0\), so \(y = e^{-\frac{k}{2}x}(A\cos qx + B\sin qx)\) with \(q = \tfrac{1}{2}\sqrt{36 - k^{2}} > 0\): an oscillation whose amplitude decays, that is, damped.
Quiz

8 multiple-choice questions on this lesson

From the topic question bank. Assign them in the app for a marked score in your gradebook, or run the topic as a class game.

Q11 mark

Find the general solution of \(\dfrac{d^{2}y}{dx^{2}} + 5\dfrac{dy}{dx} = 0\).

  • A\(y = A\cos\sqrt{5}x + B\sin\sqrt{5}x\)
  • B\(y = A + Be^{-5x}\)
  • C\(y = (A + Bx)e^{-5x}\)
  • D\(y = A + Be^{5x}\)
Q21 mark

Find the general solution of \(\dfrac{d^{2}y}{dx^{2}} - 2\dfrac{dy}{dx} + 5y = 0\).

  • A\(y = e^{x}(A\cos 4x + B\sin 4x)\)
  • B\(y = e^{2x}(A\cos x + B\sin x)\)
  • C\(y = e^{x}(A\cos 2x + B\sin 2x)\)
  • D\(y = e^{-x}(A\cos 2x + B\sin 2x)\)
Q31 mark

Find the general solution of \(\dfrac{d^{2}y}{dx^{2}} - 10\dfrac{dy}{dx} + 25y = 0\).

  • A\(y = (A + Bx)e^{-5x}\)
  • B\(y = Ae^{5x} + Be^{-5x}\)
  • C\(y = (A + Bx)e^{5x}\)
  • D\(y = Ae^{5x} + Be^{5x}\)
Q41 mark

The auxiliary equation of a second order differential equation has roots \(3\) and \(-1\). Which equation is it?

  • A\(\dfrac{d^{2}y}{dx^{2}} - 2\dfrac{dy}{dx} - 3y = 0\)
  • B\(\dfrac{d^{2}y}{dx^{2}} + 2\dfrac{dy}{dx} - 3y = 0\)
  • C\(\dfrac{d^{2}y}{dx^{2}} + 2\dfrac{dy}{dx} + 3y = 0\)
  • D\(\dfrac{d^{2}y}{dx^{2}} - 2\dfrac{dy}{dx} + 3y = 0\)
Q51 mark

Find the solution of \(\dfrac{d^{2}y}{dx^{2}} + 2\dfrac{dy}{dx} - 8y = 0\) for which \(y = 3\) and \(\dfrac{dy}{dx} = 0\) when \(x = 0\).

  • A\(y = e^{2x} + 2e^{-4x}\)
  • B\(y = 2e^{2x} + e^{-4x}\)
  • C\(y = 2e^{-2x} + e^{4x}\)
  • D\(y = 3e^{2x} + \tfrac{3}{2}e^{-4x}\)
Q61 mark

Find the solution of \(\dfrac{d^{2}y}{dx^{2}} + 2\dfrac{dy}{dx} + 10y = 0\) for which \(y = 0\) and \(\dfrac{dy}{dx} = 6\) when \(x = 0\).

  • A\(y = 2e^{x}\sin 3x\)
  • B\(y = 6e^{-3x}\sin x\)
  • C\(y = 6e^{-x}\sin 3x\)
  • D\(y = 2e^{-x}\sin 3x\)
Q71 mark

In \(\dfrac{d^{2}y}{dx^{2}} + k\dfrac{dy}{dx} + 9y = 0\), \(k\) is a real constant. For which values of \(k\) is every non-zero solution an oscillation whose amplitude decays to zero?

  • A\(-6 \lt k \lt 6\)
  • B\(0 \lt k \lt 6\)
  • C\(0 \lt k \lt 3\)
  • D\(k \gt 6\)
Q81 mark

Find the solution of \(4\dfrac{d^{2}y}{dx^{2}} + 12\dfrac{dy}{dx} + 9y = 0\) for which \(y = 2\) and \(\dfrac{dy}{dx} = 0\) when \(x = 0\).

  • A\(y = (2 - 3x)e^{3x/2}\)
  • B\(y = (2 + 3x)e^{-3x/2}\)
  • C\(y = (2 + 6x)e^{-3x}\)
  • D\(y = 2e^{-3x/2}\)
Quiz key
Q1: B

\(m^{2} + 5m = m(m + 5) = 0\), so \(m = 0\) or \(m = -5\), and \(y = Ae^{0x} + Be^{-5x} = A + Be^{-5x}\). \(A + Be^{5x}\) has the sign of the root wrong. \((A + Bx)e^{-5x}\) treats the roots as repeated. The trigonometric form solves \(y'' + 5y = 0\), reading the \(\dfrac{dy}{dx}\) term as \(y\).

Q2: C

\(m = \dfrac{2 \pm \sqrt{4 - 20}}{2} = 1 \pm 2i\), so \(p = 1\), \(q = 2\) and \(y = e^{x}(A\cos 2x + B\sin 2x)\). \(e^{-x}\) has the sign of the real part wrong. \(e^{2x}(A\cos x + B\sin x)\) swaps the real and imaginary parts. \(\cos 4x\) uses \(\sqrt{-16} = 4i\) without dividing by 2.

Q3: C

\(m^{2} - 10m + 25 = (m - 5)^{2} = 0\), a repeated root \(m = 5\), so \(y = (A + Bx)e^{5x}\). \(Ae^{5x} + Be^{5x}\) is really only one arbitrary constant, \((A + B)e^{5x}\), so it cannot be the general solution. \((A + Bx)e^{-5x}\) has the sign of the root wrong. \(Ae^{5x} + Be^{-5x}\) treats the square as \(m^{2} = 25\).

Q4: A

\((m - 3)(m + 1) = m^{2} - 2m - 3\), which is the auxiliary equation of \(y'' - 2y' - 3y = 0\). \(+2y' - 3y\) comes from \((m + 3)(m - 1)\), the roots with their signs flipped. \(-2y' + 3y\) takes the product of the roots as \(+3\). \(+2y' + 3y\) flips both the sum and the product.

Q5: B

\(m^{2} + 2m - 8 = (m - 2)(m + 4)\), so \(y = Ae^{2x} + Be^{-4x}\). \(y(0) = 3\): \(A + B = 3\). \(y'(0) = 0\): \(2A - 4B = 0\). Hence \(A = 2\), \(B = 1\): \(y = 2e^{2x} + e^{-4x}\). \(2e^{-2x} + e^{4x}\) uses the roots \(-2\) and \(4\) (sign slip in factorising). \(e^{2x} + 2e^{-4x}\) swaps \(A\) and \(B\); its gradient at 0 is \(-6\). \(3e^{2x} + \tfrac{3}{2}e^{-4x}\) sets \(A = 3\) from the first condition alone.

Q6: D

\(m = -1 \pm 3i\), so \(y = e^{-x}(A\cos 3x + B\sin 3x)\). \(y(0) = A = 0\). Then \(y = Be^{-x}\sin 3x\), \(y' = Be^{-x}(3\cos 3x - \sin 3x)\), so \(y'(0) = 3B = 6\) and \(B = 2\). \(6e^{-x}\sin 3x\) forgets the factor 3 from differentiating \(\sin 3x\). \(2e^{x}\sin 3x\) has the wrong sign of the real part. \(6e^{-3x}\sin x\) swaps the real and imaginary parts of the roots.

Q7: B

Complex roots need \(k^{2} - 36 \lt 0\), so \(-6 \lt k \lt 6\). The roots are \(-\tfrac{k}{2} \pm qi\), and the factor \(e^{-kx/2}\) decays only when \(k \gt 0\). So \(0 \lt k \lt 6\). \(k \gt 6\) gives two negative real roots: decay with no oscillation. \(-6 \lt k \lt 6\) includes \(k = 0\) (constant amplitude) and \(k \lt 0\) (growing). \(0 \lt k \lt 3\) uses \(k^{2} \lt 9\), forgetting the 4 in \(b^{2} - 4ac\).

Q8: B

\((2m + 3)^{2} = 0\), so \(m = -\tfrac{3}{2}\) (repeated) and \(y = (A + Bx)e^{-3x/2}\). \(y(0) = A = 2\). \(y' = \big(B - \tfrac{3}{2}(A + Bx)\big)e^{-3x/2}\), so \(y'(0) = B - 3 = 0\) and \(B = 3\). \(2e^{-3x/2}\) differentiates without the product rule, taking \(y'(0) = B\). \((2 - 3x)e^{3x/2}\) uses the root \(+\tfrac{3}{2}\). \((2 + 6x)e^{-3x}\) takes the root as \(-\tfrac{12}{4} = -3\), dividing by \(a\) instead of \(2a\).

Slides

Slides for this lesson

A projectable deck for every pack is on the way. Until then, present the student lesson full screen: its sections, figure and lab tabs follow the same order as the plan above.

Also for this topic

Everything else you can use

Original work by the TheLucidSTEM team. The worksheet items are written in the style of the papers; no past paper question is reproduced.
Previous lessonFirst order: integrating factors