Kalpana Kalpana (Editor)

Variation of parameters

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, variation of parameters, also known as variation of constants, is a general method to solve inhomogeneous linear ordinary differential equations.

Contents

For first-order inhomogeneous linear differential equations it is usually possible to find solutions via integrating factors or undetermined coefficients with considerably less effort, although those methods leverage heuristics that involve guessing and don't work for all inhomogeneous linear differential equations.

Variation of parameters extends to linear partial differential equations as well, specifically to inhomogeneous problems for linear evolution equations like the heat equation, wave equation, and vibrating plate equation. In this setting, the method is more often known as Duhamel's principle, named after Jean-Marie Duhamel who first applied the method to solve the inhomogeneous heat equation. Sometimes variation of parameters itself is called Duhamel's principle and vice versa.

History

The method of variation of parameters was introduced by the Swiss-born mathematician Leonhard Euler (1707–1783) and completed by the Italian-French mathematician Joseph-Louis Lagrange (1736–1813). A forerunner of the method of variation of a celestial body's orbital elements appeared in Euler's work in 1748, while he was studying the mutual perturbations of Jupiter and Saturn. In his 1749 study of the motions of the earth, Euler obtained differential equations for the orbital elements; and in 1753 he applied the method to his study of the motions of the moon. Lagrange first used the method in 1766. Between 1778 and 1783, Lagrange further developed the method both in a series of memoirs on variations in the motions of the planets and in another series of memoirs on determining the orbit of a comet from three observations. (It should be noted that Euler and Lagrange applied this method to nonlinear differential equations and that, instead of varying the coefficients of linear combinations of solutions to homogeneous equations, they varied the constants of the unperturbed motions of the celestial bodies.) During 1808-1810, Lagrange gave the method of variation of parameters its final form in a series of papers. The central result of his study was the system of planetary equations in the form of Lagrange, which described the evolution of the Keplerian parameters (orbital elements) of a perturbed orbit.

In his description of evolving orbits, Lagrange set a reduced two-body problem as an unperturbed solution, and presumed that all perturbations come from the gravitational pull which the bodies other than the primary exert at the secondary (orbiting) body. Accordingly, his method implied that the perturbations depend solely on the position of the secondary, but not on its velocity. In the 20th century, celestial mechanics began to consider interactions which depend on both positions and velocities (relativistic corrections, atmospheric drag, inertial forces). Therefore, the method of variation of parameters used by Lagrange was extended to the situation with velocity-dependent forces.

Description of method

Given an ordinary non-homogeneous linear differential equation of order n

y ( n ) ( x ) + i = 0 n 1 a i ( x ) y ( i ) ( x ) = b ( x ) . ( i )

let y 1 ( x ) , , y n ( x ) be a fundamental system of solutions of the corresponding homogeneous equation

y ( n ) ( x ) + i = 0 n 1 a i ( x ) y ( i ) ( x ) = 0. ( i i )

Then a particular solution to the non-homogeneous equation is given by

y p ( x ) = i = 1 n c i ( x ) y i ( x ) ( i i i )

where the c i ( x ) are differentiable functions which are assumed to satisfy the conditions

i = 1 n c i ( x ) y i ( j ) ( x ) = 0 , j = 0 , , n 2. ( i v )

Starting with (iii), repeated differentiation combined with repeated use of (iv) gives

y p ( j ) ( x ) = i = 1 n c i ( x ) y i ( j ) ( x ) , j = 0 , , n 1 . ( v )

One last differentiation gives

y p ( n ) ( x ) = i = 1 n c i ( x ) y i ( n 1 ) ( x ) + i = 1 n c i ( x ) y i ( n ) ( x ) . ( v i )

By substituting (iii) into (i) and applying (v) and (vi) it follows that

i = 1 n c i ( x ) y i ( n 1 ) ( x ) = b ( x ) . ( v i i )

The linear system (iv and vii) of n equations can then be solved using Cramer's rule yielding

c i ( x ) = W i ( x ) W ( x ) , i = 1 , , n

where W ( x ) is the Wronskian determinant of the fundamental system and W i ( x ) is the Wronskian determinant of the fundamental system with the i-th column replaced by ( 0 , 0 , , b ( x ) ) .

The particular solution to the non-homogeneous equation can then be written as

i = 1 n y i ( x ) W i ( x ) W ( x )   d x .

First order equation

y + p ( x ) y = q ( x )

The general solution of the corresponding homogeneous equation (written below) is the complementary solution to our original (inhomogeneous) equation:

y + p ( x ) y = 0 .

This homogeneous differential equation can be solved by different methods, for example separation of variables:

d d x y + p ( x ) y = 0 d y d x = p ( x ) y d y y = p ( x ) d x , 1 y d y = p ( x ) d x ln | y | = p ( x ) d x + C 0 y = ± e p ( x ) d x + C 0 = C 0 e p ( x ) d x

The complementary solution to our original equation is therefore:

y c = C 0 e p ( x ) d x

Now we return to solving the non-homogeneous equation:

y + p ( x ) y = q ( x )

Using the method variation of parameters, the particular solution is formed by multiplying the complementary solution by an unknown function C(x):

y p = C ( x ) e p ( x ) d x

By substituting the particular solution into the non-homogeneous equation, we can find C(x):

C ( x ) e p ( x ) d x C ( x ) p ( x ) e p ( x ) d x + p ( x ) C ( x ) e p ( x ) d x = q ( x ) C ( x ) e p ( x ) d x = q ( x ) C ( x ) = q ( x ) e p ( x ) d x C ( x ) = q ( x ) e p ( x ) d x d x + C 1

We only need a single particular solution, so we arbitrarily select C 1 = 0 for simplicity. Therefore the particular solution is:

y p = e p ( x ) d x q ( x ) e p ( x ) d x d x

The final solution of the differential equation is:

y = y c + y p y = e p ( x ) d x q ( x ) e p ( x ) d x d x + C 0 e p ( x ) d x

Specific second order equation

Let us solve

y + 4 y + 4 y = cosh x .

We want to find the general solution to the differential equation, that is, we want to find solutions to the homogeneous differential equation

y + 4 y + 4 y = 0.

The characteristic equation is:

λ 2 + 4 λ + 4 = ( λ + 2 ) 2 = 0

Since λ = 2 is a repeated root, we have to introduce a factor of x for one solution to ensure linear independence: u1 = e−2x and u2 = xe−2x. The Wronskian of these two functions is

W = | e 2 x x e 2 x 2 e 2 x e 2 x ( 2 x 1 ) | = e 2 x e 2 x ( 2 x 1 ) + 2 x e 2 x e 2 x = e 4 x .

Because the Wronskian is non-zero, the two functions are linearly independent, so this is in fact the general solution for the homogeneous differential equation (and not a mere subset of it).

We seek functions A(x) and B(x) so A(x)u1 + B(x)u2 is a general solution of the non-homogeneous equation. We need only calculate the integrals

A ( x ) = 1 W u 2 ( x ) b ( x ) d x , B ( x ) = 1 W u 1 ( x ) b ( x ) d x

Recall that for this example

b ( x ) = cosh x

That is,

A ( x ) = 1 e 4 x x e 2 x cosh x d x = x e 2 x cosh x d x = 1 18 e x ( 9 ( x 1 ) + e 2 x ( 3 x 1 ) ) + C 1 B ( x ) = 1 e 4 x e 2 x cosh x d x = e 2 x cosh x d x = 1 6 e x ( 3 + e 2 x ) + C 2

where C 1 and C 2 are constants of integration.

General second order equation

We have a differential equation of the form

u + p ( x ) u + q ( x ) u = f ( x )

and we define the linear operator

L = D 2 + p ( x ) D + q ( x )

where D represents the differential operator. We therefore have to solve the equation L u ( x ) = f ( x ) for u ( x ) , where L and f ( x ) are known.

We must solve first the corresponding homogeneous equation:

u + p ( x ) u + q ( x ) u = 0

by the technique of our choice. Once we've obtained two linearly independent solutions to this homogeneous differential equation (because this ODE is second-order) — call them u1 and u2 — we can proceed with variation of parameters.

Now, we seek the general solution to the differential equation u G ( x ) which we assume to be of the form

u G ( x ) = A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) .

Here, A ( x ) and B ( x ) are unknown and u 1 ( x ) and u 2 ( x ) are the solutions to the homogeneous equation. (Observe that if A ( x ) and B ( x ) are constants, then L u G ( x ) = 0 .) Since the above is only one equation and we have two unknown functions, it is reasonable to impose a second condition. We choose the following:

A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) = 0.

Now,

u G ( x ) = ( A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) ) = ( A ( x ) u 1 ( x ) ) + ( B ( x ) u 2 ( x ) ) = A ( x ) u 1 ( x ) + A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) + B ( x ) u 2 ( x ) = A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) + A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) = A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) = 0

Differentiating again (omitting intermediary steps)

u G ( x ) = A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) + A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) .

Now we can write the action of L upon uG as

L u G = A ( x ) L u 1 ( x ) + B ( x ) L u 2 ( x ) + A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) .

Since u1 and u2 are solutions, then

L u G = A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) .

We have the system of equations

( u 1 ( x ) u 2 ( x ) u 1 ( x ) u 2 ( x ) ) ( A ( x ) B ( x ) ) = ( 0 f ) .

Expanding,

( A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) ) = ( 0 f ) .

So the above system determines precisely the conditions

A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) = 0. A ( x ) u 1 ( x ) + B ( x ) u 2 ( x ) = L u G = f .

We seek A(x) and B(x) from these conditions, so, given

( u 1 ( x ) u 2 ( x ) u 1 ( x ) u 2 ( x ) ) ( A ( x ) B ( x ) ) = ( 0 f )

we can solve for (A′(x), B′(x))T, so

( A ( x ) B ( x ) ) = ( u 1 ( x ) u 2 ( x ) u 1 ( x ) u 2 ( x ) ) 1 ( 0 f ) = 1 W ( u 2 ( x ) u 2 ( x ) u 1 ( x ) u 1 ( x ) ) ( 0 f ) ,

where W denotes the Wronskian of u1 and u2. (We know that W is nonzero, from the assumption that u1 and u2 are linearly independent.) So,

A ( x ) = 1 W u 2 ( x ) f ( x ) , B ( x ) = 1 W u 1 ( x ) f ( x ) A ( x ) = 1 W u 2 ( x ) f ( x ) d x , B ( x ) = 1 W u 1 ( x ) f ( x ) d x

While homogeneous equations are relatively easy to solve, this method allows the calculation of the coefficients of the general solution of the inhomogeneous equation, and thus the complete general solution of the inhomogeneous equation can be determined.

Note that A ( x ) and B ( x ) are each determined only up to an arbitrary additive constant (the constant of integration). Adding a constant to A ( x ) or B ( x ) does not change the value of L u G ( x ) because the extra term is just a linear combination of u1 and u2, which is a solution of L by definition.

References

Variation of parameters Wikipedia