Second order differential equations

FP2 Topic 5, spec point by spec point (Second order differential equations). Each spec point has the method, worked examples written the way the mark scheme wants them, how the marks go and the mistakes that cost the most marks.

Spec5.1Linear second-order equations with constant coefficients

Solve \(a\dfrac{d^2y}{dx^2} + b\dfrac{dy}{dx} + cy = f(x)\) using the complementary function and a particular integral, where the auxiliary equation may have distinct, equal or complex roots.

The structure

\[\text{general solution} = \text{complementary function (CF)} + \text{particular integral (PI)}\]

The complementary function

Try \(y = e^{mx}\): you get the auxiliary equation \(am^2 + bm + c = 0\).

Roots of \(am^2 + bm + c = 0\) CF
real, distinct \(\alpha\), \(\beta\) \(Ae^{\alpha x} + Be^{\beta x}\)
real, equal \(\alpha\) \((A + Bx)e^{\alpha x}\)
complex \(p \pm qi\) \(e^{px}(A\cos qx + B\sin qx)\)
imaginary \(\pm qi\) \(A\cos qx + B\sin qx\)

The particular integral: try the same type as \(f(x)\)

\(f(x)\) Try
\(ke^{px}\) \(\lambda e^{px}\)
\(A + Bx\) \(\lambda + \mu x\)
\(p + qx + cx^2\) \(\lambda + \mu x + \nu x^2\)
\(m\cos\omega x + n\sin\omega x\) \(\lambda\cos\omega x + \mu\sin\omega x\)

Differentiate your trial twice, substitute, and compare coefficients.

If your trial is already part of the CF, it gives 0 on the left, so multiply the trial by \(x\). E.g. for \(\frac{d^2y}{dx^2} + 4y = \sin 2x\), the CF has \(\sin 2x\), so try \(x(\lambda\cos 2x + \mu\sin 2x)\).

Particular solution

Use the two conditions (e.g. \(y\) and \(\frac{dy}{dx}\) at \(x = 0\)) on the general solution (CF + PI), not on the CF alone.

polynomial right-hand side

(a) Find the general solution of \(\dfrac{d^2y}{dx^2} - 6\dfrac{dy}{dx} + 8y = 2x^2 + x\). (b) Find the solution with \(y = 1\), \(\frac{dy}{dx} = 0\) at \(x = 0\).

(a) \(m^2 - 6m + 8 = 0 \Rightarrow m = 2, 4\). CF: \(Ae^{2x} + Be^{4x}\).

PI \(y = px^2 + qx + r\): \(2p - 6(2px + q) + 8(px^2 + qx + r) = 2x^2 + x\).

\(x^2\): \(8p = 2\), \(p = \frac14\). \(x\): \(8q - 12p = 1\), \(q = \frac12\). Constant: \(2p - 6q + 8r = 0\), \(r = \frac{5}{16}\).

\(y = Ae^{2x} + Be^{4x} + \frac14 x^2 + \frac12 x + \frac{5}{16}\).

(b) \(A + B + \frac{5}{16} = 1\) and \(2A + 4B + \frac12 = 0\). So \(A = \frac{13}{8}\), \(B = -\frac{15}{16}\).

complex roots

Find the general solution of \(\dfrac{d^2x}{dt^2} + 6\dfrac{dx}{dt} + 13x = 8e^{-3t}\).

\(m^2 + 6m + 13 = 0 \Rightarrow m = -3 \pm 2i\). CF: \(e^{-3t}(A\cos 2t + B\sin 2t)\).

PI \(\lambda e^{-3t}\): \(\lambda(9 - 18 + 13)e^{-3t} = 8e^{-3t} \Rightarrow \lambda = 2\).

\(x = e^{-3t}(A\cos 2t + B\sin 2t) + 2e^{-3t}\).

the PI is in the CF

Find a PI for \(\dfrac{d^2y}{dx^2} + 4y = \sin 2x\).

Try \(y = x(p\cos 2x + q\sin 2x)\). Then \(y'' + 4y = -4p\sin 2x + 4q\cos 2x\).

So \(-4p = 1\) and \(q = 0\): PI \(= -\frac14 x\cos 2x\).

  • M1 for solving the auxiliary equation, A1 for the CF, B1 for the correct PI form, M1 for differentiating and substituting, dM1 for comparing coefficients, A1 A1 for the values, A1ft for the general solution written as \(y = \ldots\) (WFM02A Jan 2026 Q6).
  • Particular solutions: M1 for using \(y(0)\), M1 for differentiating the whole solution (product rule on \(e^{-3t}\cos 2t\)), dM1 for using \(y'(0)\), A1 (WFM02 Jan 2021 Q6b).

Often asked as: general solution, then particular solution, then a comment on behaviour for large \(t\) (e.g. the \(e^{-3t}\) terms die away) in a modelling context (WFM02 Jan 2024 Q6).

Using the conditions on the CF before adding the PI.

Not using the product rule when differentiating \(e^{px}\cos qx\).

Trying \(\lambda\sin\omega x\) alone when \(f(x)\) is \(\sin\omega x\): you need both \(\cos\) and \(\sin\) terms.

Spec5.2Second-order equations reduced by a given substitution

Use a given substitution to transform a second-order equation into one with constant coefficients, then solve it.

Method

The hard part is the second derivative. Use the chain and product rules carefully.

\(x = e^t\) (or \(t = \ln x\)): \(\dfrac{dy}{dx} = \dfrac1x\dfrac{dy}{dt}\) and \(\dfrac{d^2y}{dx^2} = \dfrac{1}{x^2}\left(\dfrac{d^2y}{dt^2} - \dfrac{dy}{dt}\right)\).

Derivation: \(\dfrac{d^2y}{dx^2} = \dfrac{d}{dx}\left(\dfrac1x\dfrac{dy}{dt}\right) = -\dfrac{1}{x^2}\dfrac{dy}{dt} + \dfrac1x \cdot \dfrac{d^2y}{dt^2}\cdot\dfrac{dt}{dx} = \dfrac{1}{x^2}\left(\dfrac{d^2y}{dt^2} - \dfrac{dy}{dt}\right)\).

So \(x^2\dfrac{d^2y}{dx^2} = \dfrac{d^2y}{dt^2} - \dfrac{dy}{dt}\) and \(x\dfrac{dy}{dx} = \dfrac{dy}{dt}\): equations with \(x^2y''\) and \(xy'\) become constant-coefficient.

\(u = xy\): \(\dfrac{du}{dx} = x\dfrac{dy}{dx} + y\) and \(\dfrac{d^2u}{dx^2} = x\dfrac{d^2y}{dx^2} + 2\dfrac{dy}{dx}\).

After solving in the new variable, substitute back.

t = ln x

Use \(x = e^t\) to solve \(x^2\dfrac{d^2y}{dx^2} + x\dfrac{dy}{dx} - 4y = 0\).

The equation becomes \(\left(\dfrac{d^2y}{dt^2} - \dfrac{dy}{dt}\right) + \dfrac{dy}{dt} - 4y = 0\), i.e. \(\dfrac{d^2y}{dt^2} - 4y = 0\).

\(m = \pm 2\): \(y = Ae^{2t} + Be^{-2t} = Ax^2 + \dfrac{B}{x^2}\).

  • B1 for the first derivative relation, M1 for differentiating again with product and chain rules, A1* for the printed second-derivative result; B1* or M1 A1* for substituting into the equation to get the new one (WFM02 May 2024 Q8, WFM02 Jan 2026 Q8).
  • Then the usual CF and PI marks, and a final mark for the answer in the original variables (WFM02 Oct 2021 Q7).

Often asked as: three-part questions worth 10–13 marks: show the derivative relation, show the new equation, solve it.

Treating \(\frac{dy}{dt}\) as a constant when differentiating with respect to \(x\).

Leaving the final answer in \(t\).