Topic 9 · Lesson 2 of 4
Second order equations
The homogeneous equation
An equation , with constants , , , is second order linear with constant coefficients. Try : then and , and dividing by leaves the auxiliary equation
Its discriminant decides the form of the general solution, which always has two arbitrary constants:
- Two real roots (): .
- A repeated root (): .
- Complex roots (): . With (roots ) this is .
The complex case comes from , using and combining the constants.
For example:
- : , so .
- : (repeated), so .
- : , so .
The non-homogeneous equation
For , the general solution is
The CF is the general solution of the equation with replaced by 0. The PI is any one solution of the full equation, found by trying a function of the same type as with unknown coefficients:
- : try .
- : try .
- : try (all three terms, even if is missing some).
- : try .
- : try (both terms, even if has only one).
Substitute the trial function, compare coefficients, and solve. Warning: if the trial function is already part of the CF, it gives 0 on the left and cannot work. Then multiply it by : for (where is in the CF), try , which gives .
Worked example
A polynomial right-hand side
Find the solution of with and when .
Show solutionHide solution
- CF: , : .
- PI: try . Then , , and . So and , giving .
- General solution: .
- : . : . So and .
- .
Always find the general solution (CF + PI) before using the conditions; using them on the CF alone gives wrong constants.
Practise this topic
Both are part of Premium.