Ansatz Method
Ansatz Method
and compute the Wronskian W (y1 , y2 )(t) using your result from 1 .
Note: You can check the result for the Wronskian using Abel’s theorem.
with C1 , C2 ∈ R.
Remarks:
• The constants C1 , C2 ∈ R can be fixed by adding further constraints for the solution, e.g.
initial conditions y(t0 ) = y0 , y 0 (t0 ) = ỹ0 for some t0 , y0 , ỹ0 ∈ R.
• Finding a fundamental system for the homogeneous problem analytically is, in general, diffi-
cult. There are, however, special cases of coefficients a1 , a2 , a3 where it is indeed possible to
compute them (e.g. the constant-coeff. case, Euler type equations, etc.). Furthermore, in the
constant-coefficient case with specific RHS f it is possible to find a particular solution also
by the “Method of Undetermined Coefficients”.
• With the notation L[y](x) = y 00 (x) + p(x)y 0 (x) + q(x)y(x), we can write the standard form
of the full ODE problem as L[y] = g and the homogeneous problem as L[y] = 0. This is
reminiscent of systems of linear equations Ay = b where A is a given matrix, b is a given
vector and y is the unknown vector. Look up the solution strategy for such problems in
Linear Algebra.
Second order, linear differential equations
– constant coefficients, homogeneous –
Remarks:
• The real part α of λ gives exponential decay or growth, while the imaginary part β gives
oscillations.
The characteristic equation of the matrix is λ2 + bλ + c = 0 and the solution can be given in
terms of the matrix exponential Y (t) = CeAt where C ∈ R2×2 .
Repeated roots
b
• One solution is obtained via the characteristic equation: y1 (t) = e− 2a t .
b
• A second solution is obtained by making the ansatz y(t) = v(t)e− 2a t :
b
00 b
0 b
0 = ay 00 + by 0 + cy = a ve− 2a t + b ve− 2a t + c ve− 2a t
b2
00 b 0 b
− 2a b b b
=a v − v + 2 e t
+ b v − v e− 2a t + cve− 2a t
0
a 4a 2a
b2 b
= av 00 + (−b + b) v 0 + (− + c) v e− 2a t
| {z }
=0
| 4a
{z }
=0
b
00 − 2a t
= av e
b
• Since a 6= 0 and e− 2a t 6= 0 the equation for v is given by v 00 = 0, so v(t) = C2 t + C1 .
b b b b
• W (e− 2a t , te− 2a t )(t) 6= 0 → {e− 2a t , te− 2a t } is a FS
b
• y(t) = (C2 t + C1 )e− 2a t is the general solution
NOTE: The presented strategy is a special case of a reduction of order: Suppose you know a solution
y1 6= 0 of the second order equation y 00 + p(t)y 0 + q(t)y = 0. Making the ansatz y(t) = v(t)y1 (t) gives
an equation for v reading y1 v 00 + (2y10 + py1 )v 0 = 0, which is a first order equation for w = v 0 .
Const.- coeff., non-homogeneous ODEs with special RHS f
– Method of Undetermined Coefficients (MoUC) –