Second-Order Differential Equations Further Maths
Revise second-order differential equations for A-level Further Maths with clear methods, worked examples, common errors and exam-style practice.

Second-Order Differential Equations Further Maths Revision Guide
Second-order differential equations in Further Maths are equations involving a second derivative, usually written in the form
d2ydx2+adydx+by=f(x),\frac{d^2y}{dx^2}+a\frac{dy}{dx}+by=f(x),dx2d2y+adxdy+by=f(x),where aaa and bbb are constants. For the equations studied at A-level, the standard method is to find a complementary function, find a particular integral, and combine them to obtain the general solution.
This guide explains that process step by step. It covers the three possible types of auxiliary equation, suitable trial functions for particular integrals, initial conditions, resonance, worked examples and second-order differential equations exam questions.
What is a second-order differential equation?
The order of a differential equation is the order of its highest derivative. An equation containing y′′y''y′′ but no higher derivative is therefore second order.
A linear second-order differential equation with constant coefficients has the form
ay′′+by′+cy=f(x),ay''+by'+cy=f(x),ay′′+by′+cy=f(x),where aaa, bbb and ccc are constants and a≠0a\ne0a=0. It is often divided through by aaa so that the coefficient of y′′y''y′′ is 111.
The equation is:
- homogeneous if its right-hand side is zero;
- non-homogeneous if its right-hand side is not zero.
For example, y′′−5y′+6y=0y''-5y'+6y=0y′′−5y′+6y=0 is homogeneous, while y′′−5y′+6y=exy''-5y'+6y=e^xy′′−5y′+6y=ex is non-homogeneous.
The general solution of a non-homogeneous equation is
y=yc+yp,y=y_c+y_p,y=yc+yp,where ycy_cyc is the complementary function and ypy_pyp is a particular integral. The complementary function contains the two arbitrary constants expected in the general solution of a second-order equation.
Step 1: Find the complementary function
To find the complementary function, replace the right-hand side by zero. For
y′′+ay′+by=f(x),y''+ay'+by=f(x),y′′+ay′+by=f(x),the associated homogeneous equation is
y′′+ay′+by=0.y''+ay'+by=0.y′′+ay′+by=0.Assume that y=emxy=e^{mx}y=emx. Since y′=memxy'=me^{mx}y′=memx and y′′=m2emxy''=m^2e^{mx}y′′=m2emx, substitution gives
m2emx+amemx+bemx=0.m^2e^{mx}+ame^{mx}+be^{mx}=0.m2emx+amemx+bemx=0.As emx≠0e^{mx}\ne0emx=0, this reduces to
m2+am+b=0.m^2+am+b=0.m2+am+b=0.This quadratic is called the auxiliary equation. The form of the complementary function depends on its roots.
| Roots of the auxiliary equation | Complementary function |
|---|---|
| Two distinct real roots ppp and qqq | yc=Aepx+Beqxy_c=Ae^{px}+Be^{qx}yc=Aepx+Beqx |
| A repeated real root ppp | yc=(A+Bx)epxy_c=(A+Bx)e^{px}yc=(A+Bx)epx |
| Complex roots α±βi\alpha\pm\beta iα±βi | yc=eαx(Acosβx+Bsinβx)y_c=e^{\alpha x}(A\cos\beta x+B\sin\beta x)yc=eαx(Acosβx+Bsinβx) |
Here AAA and BBB are arbitrary constants. They must remain in the solution until any given initial or boundary conditions are applied.
Why complex roots produce sine and cosine
If the roots are α±βi\alpha\pm\beta iα±βi, the corresponding exponential solutions involve e(α±βi)xe^{(\alpha\pm\beta i)x}e(α±βi)x. Euler's relation converts these into real functions involving eαxcosβxe^{\alpha x}\cos\beta xeαxcosβx and eαxsinβxe^{\alpha x}\sin\beta xeαxsinβx.
The factor eαxe^{\alpha x}eαx controls growth or decay, while the sine and cosine terms produce oscillation. This interpretation is especially useful in mathematical models of mechanical or electrical systems.
Worked example 1: A homogeneous equation
Solve
y′′−2y′+5y=0.y''-2y'+5y=0.y′′−2y′+5y=0.The auxiliary equation is
m2−2m+5=0.m^2-2m+5=0.m2−2m+5=0.Using the quadratic formula,
m=2±4−202=1±2i.m=\frac{2\pm\sqrt{4-20}}{2}=1\pm2i.m=22±4−20=1±2i.The roots have real part 111 and imaginary part 222, so
y=ex(Acos2x+Bsin2x).\boxed{y=e^x(A\cos2x+B\sin2x)}.y=ex(Acos2x+Bsin2x).A common error is to write e2x(Acosx+Bsinx)e^{2x}(A\cos x+B\sin x)e2x(Acosx+Bsinx). The real part of the root belongs in the exponential, and the coefficient of iii belongs in the trigonometric arguments.
Step 2: Choose a particular integral
For a non-homogeneous equation, the complementary function alone solves only the version whose right-hand side is zero. A particular integral is one specific function that produces the required f(x)f(x)f(x) when substituted into the left-hand side.
At A-level, the usual method is undetermined coefficients. Choose a trial function of the same general type as f(x)f(x)f(x), differentiate it and substitute it into the equation.
| Form of f(x)f(x)f(x) | Usual trial for ypy_pyp |
|---|---|
| kerxke^{rx}kerx | CerxCe^{rx}Cerx |
| Constant kkk | CCC |
| Linear polynomial p+qxp+qxp+qx | C+DxC+DxC+Dx |
| Quadratic polynomial p+qx+rx2p+qx+rx^2p+qx+rx2 | C+Dx+Ex2C+Dx+Ex^2C+Dx+Ex2 |
| pcosωx+qsinωxp\cos\omega x+q\sin\omega xpcosωx+qsinωx | Ccosωx+DsinωxC\cos\omega x+D\sin\omega xCcosωx+Dsinωx |
For a polynomial, include every power down to the constant term, even if some are absent from the right-hand side. Differentiation mixes these terms, so omitting one may make coefficient comparison impossible.
For a trigonometric function, include both sine and cosine. Differentiating sine produces cosine, and differentiating cosine produces sine.
Worked example 2: Exponential particular integral
Solve
y′′−3y′+2y=6e3x.y''-3y'+2y=6e^{3x}.y′′−3y′+2y=6e3x.First find the complementary function. The auxiliary equation is
m2−3m+2=0,m^2-3m+2=0,m2−3m+2=0,so
(m−1)(m−2)=0.(m-1)(m-2)=0.(m−1)(m−2)=0.Therefore,
yc=Aex+Be2x.y_c=Ae^x+Be^{2x}.yc=Aex+Be2x.For the particular integral, try
yp=Ce3x.y_p=Ce^{3x}.yp=Ce3x.Then
yp′=3Ce3x,yp′′=9Ce3x.y_p'=3Ce^{3x},\qquad y_p''=9Ce^{3x}.yp′=3Ce3x,yp′′=9Ce3x.Substitution gives
9Ce3x−9Ce3x+2Ce3x=6e3x.9Ce^{3x}-9Ce^{3x}+2Ce^{3x}=6e^{3x}.9Ce3x−9Ce3x+2Ce3x=6e3x.Hence
2C=6,2C=6,2C=6,so C=3C=3C=3. The general solution is
y=Aex+Be2x+3e3x.\boxed{y=Ae^x+Be^{2x}+3e^{3x}}.y=Aex+Be2x+3e3x.The arbitrary constants appear only in the complementary function. A particular integral is one specific solution, so it does not require another arbitrary constant.
Worked example 3: Polynomial particular integral
Solve
y′′+y′−2y=4x+1.y''+y'-2y=4x+1.y′′+y′−2y=4x+1.The auxiliary equation is
m2+m−2=0,m^2+m-2=0,m2+m−2=0,which factorises as
(m+2)(m−1)=0.(m+2)(m-1)=0.(m+2)(m−1)=0.Thus
yc=Aex+Be−2x.y_c=Ae^x+Be^{-2x}.yc=Aex+Be−2x.Since the right-hand side is linear, try
yp=Cx+D.y_p=Cx+D.yp=Cx+D.Then
yp′=C,yp′′=0.y_p'=C,\qquad y_p''=0.yp′=C,yp′′=0.Substituting gives
C−2(Cx+D)=4x+1.C-2(Cx+D)=4x+1.C−2(Cx+D)=4x+1.Comparing coefficients of xxx,
−2C=4,-2C=4,−2C=4,so C=−2C=-2C=−2. Comparing constant terms,
C−2D=1.C-2D=1.C−2D=1.Therefore
−2−2D=1,-2-2D=1,−2−2D=1,which gives D=−32D=-\frac32D=−23. Hence
y=Aex+Be−2x−2x−32.\boxed{y=Ae^x+Be^{-2x}-2x-\frac32}.y=Aex+Be−2x−2x−23.Resonance: when the normal trial fails
A trial fails if it duplicates part of the complementary function. This is often called resonance. Multiplying the trial by xxx makes it linearly independent from the duplicated solution.
For example, suppose the right-hand side is e2xe^{2x}e2x and e2xe^{2x}e2x already appears in ycy_cyc. The trial Ce2xCe^{2x}Ce2x cannot work because the differential operator sends every complementary-function term to zero. Use
yp=Cxe2xy_p=Cxe^{2x}yp=Cxe2xinstead.
If the corresponding root is repeated twice, multiply by x2x^2x2. The general rule is to multiply by the lowest power of xxx that removes the duplication.
Worked example 4: A resonant trial
Solve
y′′−4y′+4y=e2x.y''-4y'+4y=e^{2x}.y′′−4y′+4y=e2x.The auxiliary equation is
m2−4m+4=(m−2)2=0.m^2-4m+4=(m-2)^2=0.m2−4m+4=(m−2)2=0.Therefore,
yc=(A+Bx)e2x.y_c=(A+Bx)e^{2x}.yc=(A+Bx)e2x.Both e2xe^{2x}e2x and xe2xxe^{2x}xe2x are already represented in the complementary function. The usual trial and the trial multiplied by xxx would both overlap, so use
yp=Cx2e2x.y_p=Cx^2e^{2x}.yp=Cx2e2x.Differentiating,
yp′=C(2x+2x2)e2x,y_p'=C(2x+2x^2)e^{2x},yp′=C(2x+2x2)e2x,and
yp′′=C(2+8x+4x2)e2x.y_p''=C(2+8x+4x^2)e^{2x}.yp′′=C(2+8x+4x2)e2x.Substitution gives
C(2+8x+4x2)e2x−4C(2x+2x2)e2x+4Cx2e2x=e2x.C(2+8x+4x^2)e^{2x}-4C(2x+2x^2)e^{2x}+4Cx^2e^{2x}=e^{2x}.C(2+8x+4x2)e2x−4C(2x+2x2)e2x+4Cx2e2x=e2x.The xxx and x2x^2x2 terms cancel, leaving
2Ce2x=e2x.2Ce^{2x}=e^{2x}.2Ce2x=e2x.Thus C=12C=\frac12C=21, and
y=(A+Bx)e2x+12x2e2x.\boxed{y=(A+Bx)e^{2x}+\frac12x^2e^{2x}}.y=(A+Bx)e2x+21x2e2x.Applying initial conditions
A second-order general solution contains two arbitrary constants. Two independent conditions are normally required to determine them, often values such as
y(0)=pandy′(0)=q.y(0)=p\qquad\text{and}\qquad y'(0)=q.y(0)=pandy′(0)=q.Find the complete general solution first. Then differentiate it carefully and substitute the conditions into yyy and y′y'y′.
Worked example 5: Finding the constants
Given
y′′+4y=8,y(0)=1,y′(0)=2,y''+4y=8,\qquad y(0)=1,\qquad y'(0)=2,y′′+4y=8,y(0)=1,y′(0)=2,find yyy.
The auxiliary equation is
m2+4=0,m^2+4=0,m2+4=0,so m=±2im=\pm2im=±2i and
yc=Acos2x+Bsin2x.y_c=A\cos2x+B\sin2x.yc=Acos2x+Bsin2x.Try the constant particular integral yp=Cy_p=Cyp=C. Substitution gives
4C=8,4C=8,4C=8,so C=2C=2C=2. Therefore,
y=Acos2x+Bsin2x+2.y=A\cos2x+B\sin2x+2.y=Acos2x+Bsin2x+2.Using y(0)=1y(0)=1y(0)=1 gives
A+2=1,A+2=1,A+2=1,so A=−1A=-1A=−1. Now
y′=−2Asin2x+2Bcos2x.y'=-2A\sin2x+2B\cos2x.y′=−2Asin2x+2Bcos2x.Using y′(0)=2y'(0)=2y′(0)=2 gives 2B=22B=22B=2, so B=1B=1B=1. Hence
y=−cos2x+sin2x+2.\boxed{y=-\cos2x+\sin2x+2}.y=−cos2x+sin2x+2.Common mistakes in second-order differential equations
Solving the wrong auxiliary equation
The auxiliary equation comes from the homogeneous left-hand side, not from the whole differential equation. Keep the powers consistent: y′′y''y′′ corresponds to m2m^2m2, y′y'y′ to mmm, and yyy to a constant term.
Mishandling repeated roots
If m=pm=pm=p is a repeated root, the two independent terms are epxe^{px}epx and xepxxe^{px}xepx. Writing Aepx+BepxAe^{px}+Be^{px}Aepx+Bepx provides only one independent solution because it simplifies to (A+B)epx(A+B)e^{px}(A+B)epx.
Omitting part of a trial function
For a quadratic right-hand side, use Ax2+Bx+CAx^2+Bx+CAx2+Bx+C, not just Ax2Ax^2Ax2. For a trigonometric right-hand side, include both sine and cosine even if only one appears initially.
Failing to check for overlap
Before differentiating a trial, compare it with the complementary function. If it duplicates a complementary term, multiply the entire trial by xxx, or by x2x^2x2 when required by a repeated root.
Applying conditions too early
Do not use initial conditions on the complementary function before adding the particular integral. The conditions apply to the complete solution y=yc+ypy=y_c+y_py=yc+yp.
Losing chain-rule factors
When differentiating sinkx\sin kxsinkx, coskx\cos kxcoskx or ekxe^{kx}ekx, retain the factor kkk. Missing these factors changes the equations used to find the unknown coefficients.
Embedded exam-style question
Solve the differential equation
y′′+2y′+5y=10cosx,y''+2y'+5y=10\cos x,y′′+2y′+5y=10cosx,subject to
y(0)=1,y′(0)=0.y(0)=1,\qquad y'(0)=0.y(0)=1,y′(0)=0.Give your answer in terms of real functions.
Answer
The auxiliary equation is
m2+2m+5=0,m^2+2m+5=0,m2+2m+5=0,with roots m=−1±2im=-1\pm2im=−1±2i. Therefore,
yc=e−x(Acos2x+Bsin2x).y_c=e^{-x}(A\cos2x+B\sin2x).yc=e−x(Acos2x+Bsin2x).Try
yp=Ccosx+Dsinx.y_p=C\cos x+D\sin x.yp=Ccosx+Dsinx.Substitution and comparison of coefficients give
4C+2D=10,−2C+4D=0.4C+2D=10,\qquad -2C+4D=0.4C+2D=10,−2C+4D=0.Hence C=2C=2C=2 and D=1D=1D=1, so
y=e−x(Acos2x+Bsin2x)+2cosx+sinx.y=e^{-x}(A\cos2x+B\sin2x)+2\cos x+\sin x.y=e−x(Acos2x+Bsin2x)+2cosx+sinx.From y(0)=1y(0)=1y(0)=1, A+2=1A+2=1A+2=1, so A=−1A=-1A=−1. Differentiating and applying y′(0)=0y'(0)=0y′(0)=0 gives
−A+2B+1=0,-A+2B+1=0,−A+2B+1=0,so B=−1B=-1B=−1. The required solution is
y=−e−x(cos2x+sin2x)+2cosx+sinx.\boxed{y=-e^{-x}(\cos2x+\sin2x)+2\cos x+\sin x}.y=−e−x(cos2x+sin2x)+2cosx+sinx.Try 4 more: practise with MathsGenie past-paper questions and mark schemes.
Exam technique and revision priorities
Show the auxiliary equation before giving its roots. This makes your method clear and may allow method marks to be awarded even if a later arithmetic error occurs.
Write y=yc+ypy=y_c+y_py=yc+yp explicitly before applying conditions. When finding a particular integral, display the trial, its derivatives and the coefficient comparison rather than attempting too much mentally.
A reliable checking method is to substitute the particular integral back into the original equation. You can also check that the complementary function gives zero when substituted into the homogeneous equation.
Practise questions with distinct real roots, repeated roots and complex roots. Then include polynomial, exponential and trigonometric forcing terms, followed by resonant cases and questions involving initial conditions. MathsGenie's OCR Further Maths Pure Core 2 paper provides further examination practice, while its Edexcel A-level Maths revision page is useful for reviewing prerequisite differentiation and integration.
Students reviewing their wider course can also use the MathsGenie guide to GCSE Maths topics by exam board and tier to identify earlier algebra and calculus foundations, although second-order differential equations themselves are an A-level Further Maths topic on relevant specifications rather than a GCSE topic.
Conclusion
For second-order differential equations in Further Maths, begin with the homogeneous equation and solve its auxiliary equation. Use the roots to construct the complementary function, choose a suitable particular-integral trial, check for resonance, and then apply any conditions to the complete solution.
Accuracy depends on recognising the correct solution form and differentiating it carefully. After learning the method, use MathsGenie past papers and mark schemes to practise selecting trials, handling repeated or complex roots, and presenting solutions in a form that examiners can follow.
Sources and referenced URLs
- https://mathsgenie.co.uk/paper/a-level/further-maths/ocr/a-level-ocr-further-maths-a-2024-june-pure-core-2-y541-01-7ca8e55908
- https://mathsgenie.co.uk/paper/a-level/further-maths/ocr/a-level-ocr-further-maths-a-2023-june-pure-core-2-y541-01-3b08179ae1
- https://mathsgenie.co.uk/a-level/maths/edexcel
- https://mathsgenie.co.uk/blog/gcse-maths-topics-by-exam-board-and-tier



