Consider the general second-order constant coefficient ODE
where are real non-zero coefficients. Furthermore, assume that the associated characteristic equation
has repeated roots (i.e. the discriminant, , vanishes). Thus we have
Thus our one solution to the ODE is
To find a second solution we take as an ansatz
where is an unknown function to be determined. Since must satisfy the original ODE, we substitute it back in to get
Rearranging this equation in terms of the derivatives of we get
Since we know that is a solution to the original problem, the coefficient of the last term is equal to zero. Furthermore, substituting into the second term's coefficient yields (for that coefficient)
Therefore we are left with
Since is assumed non-zero and is an exponential function and thus never equal to zero we simply have
This can be integrated twice to yield
where are constants of integration. We now can write our second solution as
Since the second term in is a scalar multiple of the first solution (and thus linearly dependent) we can drop that term, yielding a final solution of
Finally, we can prove that the second solution found via this method is linearly independent of the first solution by calculating the Wronskian
Thus is the second linearly independent solution we were looking for.
Given a differential equation
and a single solution (), let the second solution be defined
where is an arbitrary function. Thus
and
If these are substituted for , , and in the differential equation, then
Since is a solution of the original differential equation, , so we can reduce to
which is a first-order differential equation for . Divide by , obtaining
and can be found using a general method. Once is solved, integrate it and enter into the original equation for :