Solving non-homogenous second order ODEs

Method of undetermined coëfficients

The method of undetermined coëfficients is a method for finding a particular solution to an ODE that involves taking a guess (Ansatz) of the particular solution based on the form of the non-homogenous term 𝑔(𝑡).

𝐿[𝑦]=𝑦+𝑝(𝑡)𝑦+𝑞(𝑡)𝑦=𝑔(𝑡)

The Ansatz is then substituted into the ODE to determine the coëfficients. The following table shows functions and their corresponding guesses, where 𝑝𝑛(𝑥), 𝑃𝑛(𝑥) 𝑄𝑛 are polynomials of order, determined and undetermined respectively.

Non-homogenous term 𝑔(𝑥)Ansatz
𝑝𝑛(𝑥)𝑃𝑛(𝑥)
𝑝𝑛(𝑥)𝑒𝛼𝑥𝑃𝑛(𝑥)
𝑝𝑛(𝑥)sin(𝛽𝑥) or 𝑝𝑛(𝑥)cos(𝛽𝑥)𝑃𝑛(𝑥)sin(𝛽𝑥) +𝑄𝑛(𝑥)cos(𝛽𝑥)
𝑝𝑛(𝑥)𝑒𝛼𝑥sin(𝛽𝑥) or 𝑝𝑛(𝑥)𝑒𝛼𝑥cos(𝛽𝑥)𝑒𝛼𝑥[𝑃𝑛(𝑥)sin(𝛽𝑥) +𝑄𝑛(𝑥)cos(𝛽𝑥)]

Note that a linear combination of such non-homogenous terms leads to a linear combination of their corresponding Ansätze. No term of the Ansatz can be a solution of the homogenous equation, if this is the case the Ansatz is multiplied by 𝑥.1

A special case occurs with Cauchy-Euler differential equations due to their equidimensional structure.

Practice problems


tidy | en | SemBr | review

Footnotes

  1. 2017. Elementary differential equations and boundary value problems, p. 139 (§3.5)