The method of variation of parameters was first sketched by the Swiss mathematician Leonhard Euler (1707–1783), and later completed by the Italian-French mathematician Joseph-Louis Lagrange (1736–1813).1
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.2 In his 1749 study of the motions of the earth, Euler obtained differential equations for the orbital elements.3 In 1753, he applied the method to his study of the motions of the moon.4
Lagrange first used the method in 1766.5 Between 1778 and 1783, he further developed the method in two series of memoirs: one on variations in the motions of the planets6 and another on determining the orbit of a comet from three observations.7 During 1808–1810, Lagrange gave the method of variation of parameters its final form in a third series of papers.8
Given an ordinary non-homogeneous linear differential equation of order n
Let y 1 ( x ) , … , y n ( x ) {\displaystyle y_{1}(x),\ldots ,y_{n}(x)} be a basis of the vector space of solutions of the corresponding homogeneous equation
Then a particular solution to the non-homogeneous equation is given by
where the c i ( x ) {\displaystyle c_{i}(x)} are differentiable functions which are assumed to satisfy the conditions
Starting with (iii), repeated differentiation combined with repeated use of (iv) gives
One last differentiation gives
By substituting (iii) into (i) and applying (v) and (vi) it follows that
The linear system (iv and vii) of n equations can then be solved using Cramer's rule yielding
where W ( x ) {\displaystyle W(x)} is the Wronskian determinant of the basis y 1 ( x ) , … , y n ( x ) {\displaystyle y_{1}(x),\ldots ,y_{n}(x)} and W i ( x ) {\displaystyle W_{i}(x)} is the Wronskian determinant of the basis with the i-th column replaced by ( 0 , 0 , … , b ( x ) ) . {\displaystyle (0,0,\ldots ,b(x)).}
The particular solution to the non-homogeneous equation can then be written as
Consider the equation of the forced dispersionless spring, in suitable units:
Here x is the displacement of the spring from the equilibrium x = 0, and F(t) is an external applied force that depends on time. When the external force is zero, this is the homogeneous equation (whose solutions are linear combinations of sines and cosines, corresponding to the spring oscillating with constant total energy).
We can construct the solution physically, as follows. Between times t = s {\displaystyle t=s} and t = s + d s {\displaystyle t=s+ds} , the momentum corresponding to the solution has a net change F ( s ) d s {\displaystyle F(s)\,ds} (see: Impulse (physics)). A solution to the inhomogeneous equation, at the present time t > 0, is obtained by linearly superposing the solutions obtained in this manner, for s going between 0 and t.
The homogeneous initial-value problem, representing a small impulse F ( s ) d s {\displaystyle F(s)\,ds} being added to the solution at time t = s {\displaystyle t=s} , is
The unique solution to this problem is easily seen to be x ( t ) = F ( s ) sin ( t − s ) d s {\displaystyle x(t)=F(s)\sin(t-s)\,ds} . The linear superposition of all of these solutions is given by the integral:
To verify that this satisfies the required equation:
as required (see: Leibniz integral rule).
The general method of variation of parameters allows for solving an inhomogeneous linear equation
by means of considering the second-order linear differential operator L to be the net force, thus the total impulse imparted to a solution between time s and s+ds is F(s)ds. Denote by x s {\displaystyle x_{s}} the solution of the homogeneous initial value problem
Then a particular solution of the inhomogeneous equation is
the result of linearly superposing the infinitesimal homogeneous solutions. There are generalizations to higher order linear differential operators.
In practice, variation of parameters usually involves the fundamental solution of the homogeneous problem, the infinitesimal solutions x s {\displaystyle x_{s}} then being given in terms of explicit linear combinations of linearly independent fundamental solutions. In the case of the forced dispersionless spring, the kernel sin ( t − s ) = sin t cos s − sin s cos t {\displaystyle \sin(t-s)=\sin t\cos s-\sin s\cos t} is the associated decomposition into fundamental solutions.
The complementary solution to our original (inhomogeneous) equation is the general solution of the corresponding homogeneous equation (written below):
This homogeneous differential equation can be solved by different methods, for example separation of variables:
The complementary solution to our original equation is therefore:
Now we return to solving the non-homogeneous equation:
Using the method variation of parameters, the particular solution is formed by multiplying the complementary solution by an unknown function C(x):
By substituting the particular solution into the non-homogeneous equation, we can find C(x):
We only need a single particular solution, so we arbitrarily select C 1 = 0 {\displaystyle C_{1}=0} for simplicity. Therefore the particular solution is:
The final solution of the differential equation is:
This recreates the method of integrating factors.
Let us solve
We want to find the general solution to the differential equation, that is, we want to find solutions to the homogeneous differential equation
The characteristic equation is:
Since λ = − 2 {\displaystyle \lambda =-2} is a repeated root, we have to introduce a factor of x for one solution to ensure linear independence: u 1 = e − 2 x {\displaystyle u_{1}=e^{-2x}} and u 2 = x e − 2 x {\displaystyle u_{2}=xe^{-2x}} . The Wronskian of these two functions is
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 particular solution of the non-homogeneous equation. We need only calculate the integrals
Recall that for this example
That is,
where C 1 {\displaystyle C_{1}} and C 2 {\displaystyle C_{2}} are constants of integration.
We have a differential equation of the form
and we define the linear operator
where D represents the differential operator. We therefore have to solve the equation L u ( x ) = f ( x ) {\displaystyle Lu(x)=f(x)} for u ( x ) {\displaystyle u(x)} , where L {\displaystyle L} and f ( x ) {\displaystyle f(x)} are known.
We must solve first the corresponding homogeneous equation:
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 ) {\displaystyle u_{G}(x)} which we assume to be of the form
Here, A ( x ) {\displaystyle A(x)} and B ( x ) {\displaystyle B(x)} are unknown and u 1 ( x ) {\displaystyle u_{1}(x)} and u 2 ( x ) {\displaystyle u_{2}(x)} are the solutions to the homogeneous equation. (Observe that if A ( x ) {\displaystyle A(x)} and B ( x ) {\displaystyle B(x)} are constants, then L u G ( x ) = 0 {\displaystyle Lu_{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:
Now,
Differentiating again (omitting intermediary steps)
Now we can write the action of L upon uG as
Since u1 and u2 are solutions, then
We have the system of equations
Expanding,
So the above system determines precisely the conditions
We seek A(x) and B(x) from these conditions, so, given
we can solve for (A′(x), B′(x))T, so
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,
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 ) {\displaystyle A(x)} and B ( x ) {\displaystyle B(x)} are each determined only up to an arbitrary additive constant (the constant of integration). Adding a constant to A ( x ) {\displaystyle A(x)} or B ( x ) {\displaystyle B(x)} does not change the value of L u G ( x ) {\displaystyle Lu_{G}(x)} because the extra term is just a linear combination of u1 and u2, which is a solution of L {\displaystyle L} by definition.
See: Forest Ray Moulton, An Introduction to Celestial Mechanics, 2nd ed. (first published by the Macmillan Company in 1914; reprinted in 1970 by Dover Publications, Inc., Mineola, New York), page 431. Edgar Odell Lovett (1899) "The theory of perturbations and Lie's theory of contact transformations," The Quarterly Journal of Pure and Applied Mathematics, vol. 30, pages 47–149; see especially pages 48–61. /wiki/Forest_Ray_Moulton ↩
Euler, L. (1748) "Recherches sur la question des inégalités du mouvement de Saturne et de Jupiter, sujet proposé pour le prix de l'année 1748, par l’Académie Royale des Sciences de Paris" [Investigations on the question of the differences in the movement of Saturn and Jupiter; this subject proposed for the prize of 1748 by the Royal Academy of Sciences (Paris)] (Paris, France: G. Martin, J.B. Coignard, & H.L. Guerin, 1749). https://books.google.com/books?id=GtA6Ea1NlqwC&pg=PA1 ↩
Euler, L. (1749) "Recherches sur la précession des équinoxes, et sur la nutation de l’axe de la terre," Histoire [or Mémoires ] de l'Académie Royale des Sciences et Belles-lettres (Berlin), pages 289–325 [published in 1751]. https://books.google.com/books?id=xA0_AAAAYAAJ&pg=PA289 ↩
Euler, L. (1753) Theoria motus lunae: exhibens omnes ejus inaequalitates ... [The theory of the motion of the moon: demonstrating all of its inequalities ... ] (Saint Petersburg, Russia: Academia Imperialis Scientiarum Petropolitanae [Imperial Academy of Science (St. Petersburg)], 1753). https://archive.org/details/theoriamotuslun00eulegoog ↩
Lagrange, J.-L. (1766) “Solution de différens problèmes du calcul integral,” Mélanges de philosophie et de mathématique de la Société royale de Turin, vol. 3, pages 179–380. https://books.google.com/books?id=XwVNAAAAMAAJ&pg=RA1-PA179 ↩
See: Lagrange, J.-L. (1781) "Théorie des variations séculaires des élémens des Planetes. Premiere partie, ... ," Nouveaux Mémoires de l'Académie Royale des Sciences et Belles-lettres (Berlin), pages 199–276. Lagrange, J.-L. (1782) "Théorie des variations séculaires des élémens des Planetes. Seconde partie, ... ," Nouveaux Mémoires de l'Académie Royale des Sciences et Belles-lettres (Berlin), pages 169–292. Lagrange, J.-L. (1783) "Théorie des variations périodiques des mouvemens des Planetes. Premiere partie, ... ," Nouveaux Mémoires de l'Académie Royale des Sciences et Belles-lettres (Berlin), pages 161–190. https://books.google.com/books?id=UitRAAAAYAAJ&pg=PA199 ↩
See: Lagrange, J.-L. (1778) "Sur le probleme de la détermination des orbites des cometes d'après trois observations, premier mémoire" (On the problem of determining the orbits of comets from three observations, first memoir), Nouveaux Mémoires de l'Académie Royale des Sciences et Belles-lettres (Berlin), pages 111–123 [published in 1780]. Lagrange, J.-L. (1778) "Sur le probleme de la détermination des orbites des cometes d'après trois observations, second mémoire", Nouveaux Mémoires de l'Académie Royale des Sciences et Belles-lettres (Berlin), pages 124–161 [published in 1780]. Lagrange, J.-L. (1783) "Sur le probleme de la détermination des orbites des cometes d'après trois observations. Troisième mémoire, dans lequel on donne une solution directe et générale du problème.", Nouveaux Mémoires de l'Académie Royale des Sciences et Belles-lettres (Berlin), pages 296–332 [published in 1785]. https://books.google.com/books?id=F90_AAAAYAAJ&pg=PA60-IA55 ↩
See: Lagrange, J.-L. (1808) “Sur la théorie des variations des éléments des planètes et en particulier des variations des grands axes de leurs orbites,” Mémoires de la première Classe de l’Institut de France. Reprinted in: Joseph-Louis Lagrange with Joseph-Alfred Serret, ed., Oeuvres de Lagrange (Paris, France: Gauthier-Villars, 1873), vol. 6, pages 713–768. Lagrange, J.-L. (1809) “Sur la théorie générale de la variation des constantes arbitraires dans tous les problèmes de la méchanique,” Mémoires de la première Classe de l’Institut de France. Reprinted in: Joseph-Louis Lagrange with Joseph-Alfred Serret, ed., Oeuvres de Lagrange (Paris, France: Gauthier-Villars, 1873), vol. 6, pages 771–805. Lagrange, J.-L. (1810) “Second mémoire sur la théorie générale de la variation des constantes arbitraires dans tous les problèmes de la méchanique, ... ,” Mémoires de la première Classe de l’Institut de France. Reprinted in: Joseph-Louis Lagrange with Joseph-Alfred Serret, ed., Oeuvres de Lagrange (Paris, France: Gauthier-Villars, 1873), vol. 6, pages 809–816. http://gallica.bnf.fr/ark:/12148/bpt6k229225j/f715.image ↩