ODE Methods - Variation of Parameters
Contents
9. ODE Methods - Variation of Parameters#
Whilst the method of undetermined coefficients works for specific set of source terms
Definition
The variation of parameters method can be used to solve
which can be shown to have the solution:
where
and
where the
9.1. First order systems#
If we start with a general first order linear ODE:
we can think of this a sourced first order problem, so the homogenous equation is:
which we can solve, for instance with separation of variables:
where
Now we can use this homogeneous solution
If we substitute this back into (9.1) we will find:
which by straight integration means that:
and so the final solution is given by the sum of:
which we have seen before with integrating factors for first order systems.
9.2. Second order systems#
Let’s begin again with the form of the inhomogeneous second order ODE in ode2order
:
firstly we aim to solve the homogeneous equation:
which will admit solutions
We note that if
If we try to constuct the form of (8.1) using (9.2), we will find:
where we have used our condition (9.3) to reach the final line. Likewise for second derivatives:
and so using the linear derivative operator:
where we have used the fact that the terms with
which if we write as a matrix system
where
So to find the solutions
which means the final solutions can be found from:
Worked example
Lets try and solve the ODE:
subject to the conditions
The solutions to the homoegenous ODE can be found from the ansatz
which means that in order to construct the full solution:
We need the Wronskian
and so using (9.4):
wher
Given the initial conditions, we find that:
which we can solve as
which we can check gives the right answer as:
and so the solutions are correct!