Second-order linear differential equations

Second-order linear differential equations

Spec 9.4–6 · Edexcel A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • For y′′+ay′+by=0y''+ay'+by=0, try y=emxy=e^{mx} to get the auxiliary equation m2+am+b=0m^2+am+b=0.
  • Real roots: Aeαx+BeβxAe^{\alpha x}+Be^{\beta x}. Repeated: (A+Bx)eαx(A+Bx)e^{\alpha x}. Complex p±qip\pm q\mathrm{i}: epx(Acos⁡qx+Bsin⁡qx)e^{px}(A\cos qx+B\sin qx).
  • General solution == CF ++ PI, with two arbitrary constants.
  • Choose the trial PI to match f(x)f(x); if it appears in the CF, multiply by xx.
  • Apply initial conditions to the whole solution.

The auxiliary equation

Try y=emxy=e^{mx} to get the auxiliary equation m2+am+b=0m^2+am+b=0.

A second-order linear equation with constant coefficients has the form y′′+ay′+by=f(x)y''+ay'+by=f(x). When f(x)=0f(x)=0 it is homogeneous.

Try y=emxy=e^{mx}: then y′=memxy'=me^{mx} and y′′=m2emxy''=m^2e^{mx}, giving the auxiliary equation m2+am+b=0m^2+am+b=0.

Its roots decide the form of the solution. The general solution has two arbitrary constants.

−1−0.50.511.522.533.54−1123456xym = 1m = 2m² − 3m + 2
The auxiliary equation m² − 3m + 2 = 0 for y″ − 3y′ + 2y = 0 (the x-axis is m): roots m = 1 and 2 give y = Ae^x + Be^(2x).
  • y′′+ay′+by=0y''+ay'+by=0m2+am+b=0m^2+am+b=0

Worked example

Solve y′′+2y′−8y=0y''+2y'-8y=0.

What is the auxiliary equation of y′′−5y′+6y=0y''-5y'+6y=0?

The three cases

The sign of the discriminant a2−4ba^2-4b gives the form of the complementary function.

The sign of the discriminant a2−4ba^2-4b decides the form of the complementary function.

If the roots are complex, p±qip\pm q\mathrm{i}, then qq is the imaginary part of the root, not the constant term. When p=0p=0 the solution is pure oscillation: y′′+16y=0y''+16y=0 has y=Acos⁡4x+Bsin⁡4xy=A\cos4x+B\sin4x.

A repeated root gives the extra factor xx.

123456−1−0.8−0.6−0.4−0.200.20.40.60.81xyDistinct real rootsRepeated rootComplex roots
One example of each case (x is the independent variable): two distinct real roots, a repeated root, and complex roots with p = −½, q = 3.

Distinct real roots

  • a2−4b>0a^2-4b>0
  • y=Aeαx+Beβxy=Ae^{\alpha x}+Be^{\beta x}

Repeated root

  • a2−4b=0a^2-4b=0
  • y=(A+Bx)eαxy=(A+Bx)e^{\alpha x}

Complex roots p±qip\pm q\mathrm{i}

  • a2−4b<0a^2-4b<0
  • y=epx(Acos⁡qx+Bsin⁡qx)y=e^{px}(A\cos qx+B\sin qx)

Worked example

Solve y′′+4y′+13y=0y''+4y'+13y=0.

The auxiliary equation has the repeated root m=3m=3. What is the general solution?

CF plus PI

The general solution is the complementary function plus a particular integral.

For y′′+ay′+by=f(x)y''+ay'+by=f(x), the general solution is the complementary function (CF) plus a particular integral (PI).

Find the CF as above, then find a PI by trying a trial function of the same form as f(x)f(x). Substitute into the equation and compare coefficients.

For f(x)=mcos⁡ωx+nsin⁡ωxf(x)=m\cos\omega x+n\sin\omega x include both acos⁡ωxa\cos\omega x and bsin⁡ωxb\sin\omega x, even if ff has only one.

  1. 1

    Find the CF

    solve the homogeneous equation

  2. 2

    Choose a trial PI

    same form as f(x)f(x), unknown coefficients

  3. 3

    Substitute

    differentiate, then compare coefficients

  4. 4

    Add

    general solution = CF + PI

  5. 5

    Apply conditions

    to the whole solution

Solving a non-homogeneous equation

f(x)f(x)

  • kepxke^{px}
  • p+qxp+qx or p+qx+cx2p+qx+cx^2
  • mcos⁡ωx+nsin⁡ωxm\cos\omega x+n\sin\omega x

Trial PI

  • λepx\lambda e^{px}
  • Polynomial of the same degree
  • acos⁡ωx+bsin⁡ωxa\cos\omega x+b\sin\omega x

What trial PI would you use for y′′+3y′+2y=5x+1y''+3y'+2y=5x+1?

Worked examples

Find the CF, find the PI by comparing coefficients, add, then use the conditions.

Two complete methods, then initial conditions.

Initial conditions: apply them to the general solution (CF + PI), not to the CF alone. Use y(0)y(0) for one equation and y′(0)y'(0) for the other, remembering the product rule for terms such as xe3xxe^{3x}.

  1. 1

    Complementary function

    solve the auxiliary equation

  2. 2

    Particular integral

    choose a trial and compare coefficients

  3. 3

    General solution

    y = CF + PI

  4. 4

    Apply the conditions

    use y(0) and y′(0) on the whole solution

The order of working for an initial value problem.
  • General solutionCF ++ PI
  • Initial conditionsapply to the whole yy

Worked example

Solve y′′−3y′+2y=4x+2y''-3y'+2y=4x+2.

Worked example

Find a PI for y′′+3y′+2y=10sin⁡xy''+3y'+2y=10\sin x.

Why must initial conditions be applied after adding the PI?

When the trial clashes

Multiply the trial function by xx (or x2x^2 for a repeated root).

If the trial form for the PI already appears in the CF, substituting gives 00 and fails. This is the case where f(x)f(x) matches a term of the CF (resonance).

Multiply the trial function by xx. With a repeated root and f(x)f(x) of that exponential form, multiply by x2x^2 instead.

Find the CF first: it tells you immediately whether your trial will clash.

  1. 1

    Find the CF first

    before choosing a trial

  2. 2

    Does the trial appear in the CF?

    if so, substituting gives 0

  3. 3

    Multiply by x

    for a clash with one root

  4. 4

    Multiply by x²

    for a clash with a repeated root

Avoiding a clash between the trial function and the CF.
  • Trial in the CFmultiply by xx
  • Repeated root clashmultiply by x2x^2

Worked example

Solve y′′−5y′+6y=4e3xy''-5y'+6y=4e^{3x}.

The CF is Aex+Be2xAe^{x}+Be^{2x} and f(x)=e2xf(x)=e^{2x}. What trial PI should you use?

Try an exam question

Find the general solution of y′′−2y′−3y=6x+4y''-2y'-3y=6x+4.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the roots of the auxiliary equation.

1 mark, marked against the mark scheme

Revision notes