HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, variation of parameters, also known as variation of constants, is a general method to solve
inhomogeneous Homogeneity and heterogeneity are concepts relating to the uniformity of a substance, process or image. A homogeneous feature is uniform in composition or character (i.e., color, shape, size, weight, height, distribution, texture, language, i ...
linear
ordinary differential equation In mathematics, an ordinary differential equation (ODE) is a differential equation (DE) dependent on only a single independent variable (mathematics), variable. As with any other DE, its unknown(s) consists of one (or more) Function (mathematic ...
s. For first-order inhomogeneous
linear differential equation In mathematics, a linear differential equation is a differential equation that is linear equation, linear in the unknown function and its derivatives, so it can be written in the form a_0(x)y + a_1(x)y' + a_2(x)y'' \cdots + a_n(x)y^ = b(x) wher ...
s it is usually possible to find solutions via
integrating factor In mathematics, an integrating factor is a function that is chosen to facilitate the solving of a given equation involving differentials. It is commonly used to solve non-exact ordinary differential equations, but is also used within multivari ...
s or undetermined coefficients with considerably less effort, although those methods leverage
heuristic A heuristic or heuristic technique (''problem solving'', '' mental shortcut'', ''rule of thumb'') is any approach to problem solving that employs a pragmatic method that is not fully optimized, perfected, or rationalized, but is nevertheless ...
s that involve guessing and do not work for all inhomogeneous linear differential equations. Variation of parameters extends to linear
partial differential equations In mathematics, a partial differential equation (PDE) is an equation which involves a multivariable function and one or more of its partial derivatives. The function is often thought of as an "unknown" that solves the equation, similar to how ...
as well, specifically to inhomogeneous problems for linear evolution equations like the
heat equation In mathematics and physics (more specifically thermodynamics), the heat equation is a parabolic partial differential equation. The theory of the heat equation was first developed by Joseph Fourier in 1822 for the purpose of modeling how a quanti ...
,
wave equation The wave equation is a second-order linear partial differential equation for the description of waves or standing wave fields such as mechanical waves (e.g. water waves, sound waves and seismic waves) or electromagnetic waves (including light ...
, and vibrating plate equation. In this setting, the method is more often known as Duhamel's principle, named after Jean-Marie Duhamel (1797–1872) 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 first sketched by the Swiss mathematician
Leonhard Euler Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
(1707–1783), and later completed by the Italian-French mathematician
Joseph-Louis Lagrange Joseph-Louis Lagrange (born Giuseppe Luigi Lagrangiapages 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


Description of method

Given an ordinary non-homogeneous
linear differential equation In mathematics, a linear differential equation is a differential equation that is linear equation, linear in the unknown function and its derivatives, so it can be written in the form a_0(x)y + a_1(x)y' + a_2(x)y'' \cdots + a_n(x)y^ = b(x) wher ...
of order ''n'' Let y_1(x), \ldots, y_n(x) be a basis of the
vector space In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
of solutions of the corresponding homogeneous equation Then a particular solution to the non-homogeneous equation is given by where the c_i(x) are differentiable functions which are assumed to satisfy the conditions Starting with (), repeated differentiation combined with repeated use of () gives One last differentiation gives By substituting () into () and applying () and () it follows that The linear system ( and ) of ''n'' equations can then be solved using
Cramer's rule In linear algebra, Cramer's rule is an explicit formula for the solution of a system of linear equations with as many equations as unknowns, valid whenever the system has a unique solution. It expresses the solution in terms of the determinants of ...
yielding :c_i'(x) = \frac, \, \quad i=1,\ldots,n where W(x) is the Wronskian determinant of the basis y_1(x), \ldots, y_n(x) and W_i(x) is the Wronskian determinant of the basis with the ''i''-th column replaced by (0, 0, \ldots, b(x)). The particular solution to the non-homogeneous equation can then be written as :\sum_^n y_i(x) \, \int \frac\, \mathrm dx.


Intuitive explanation

Consider the equation of the forced dispersionless spring, in suitable units: :x''(t) + x(t) = F(t). Here is the displacement of the spring from the equilibrium , and 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 and t=s+ds, the momentum corresponding to the solution has a net change F(s)\,ds (see:
Impulse (physics) In classical mechanics, impulse (symbolized by or Imp) is the change in momentum of an object. If the initial momentum of an object is , and a subsequent momentum is , the object has received an impulse : \mathbf=\mathbf_2 - \mathbf_1. Moment ...
). A solution to the inhomogeneous equation, at the present time , is obtained by linearly superposing the solutions obtained in this manner, for going between 0 and . The homogeneous initial-value problem, representing a small impulse F(s)\,ds being added to the solution at time t=s, is :x''(t)+x(t)=0,\quad x(s)=0,\ x'(s)=F(s)\,ds. The unique solution to this problem is easily seen to be x(t) = F(s)\sin(t-s)\,ds. The linear superposition of all of these solutions is given by the integral: :x(t) = \int_0^t F(s)\sin(t-s)\,ds. To verify that this satisfies the required equation: :x'(t)=\int_0^t F(s)\cos(t-s)\,ds :x''(t) = F(t) - \int_0^tF(s)\sin(t-s)\,ds = F(t)-x(t), as required (see:
Leibniz integral rule In calculus, the Leibniz integral rule for differentiation under the integral sign, named after Gottfried Wilhelm Leibniz, states that for an integral of the form \int_^ f(x,t)\,dt, where -\infty < a(x), b(x) < \infty and the integrands ...
). The general method of variation of parameters allows for solving an inhomogeneous linear equation :Lx(t)=F(t) 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 the solution of the homogeneous initial value problem :Lx(t)=0, \quad x(s)=0,\ x'(s)=F (s)\,ds. Then a particular solution of the inhomogeneous equation is :x (t)=\int_0^t x_s (t)\,ds, 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 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 is the associated decomposition into fundamental solutions.


Examples


First-order equation

: y' + p(x)y = q(x) The complementary solution to our original (inhomogeneous) equation is the general solution of the corresponding homogeneous equation (written below): : y' + p(x)y = 0 This homogeneous differential equation can be solved by different methods, for example
separation of variables In mathematics, separation of variables (also known as the Fourier method) is any of several methods for solving ordinary differential equation, ordinary and partial differential equations, in which algebra allows one to rewrite an equation so tha ...
: :\frac y + p(x)y = 0 :\frac=-p(x)y : = -, :\int \frac \, dy = -\int p(x) \, dx :\ln , y, = -\int p(x) \, dx + C :y = \pm e^ = C_0 e^ The complementary solution to our original equation is therefore: :y_c = C_0 e^ 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^ By substituting the particular solution into the non-homogeneous equation, we can find ''C''(''x''): : C' (x) e^ - C(x) p(x) e^ + p(x) C(x) e^ = q(x) : C' (x) e^ = q(x) : C' (x) = q(x) e^ : C(x) =\int q(x) e^ \, dx + 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^ \int q(x) e^ \, dx The final solution of the differential equation is: :\begin y &= y_c + y_p\\ &=C_0 e^ + e^ \int q(x) e^ \, dx \end This recreates the method of
integrating factor In mathematics, an integrating factor is a function that is chosen to facilitate the solving of a given equation involving differentials. It is commonly used to solve non-exact ordinary differential equations, but is also used within multivari ...
s.


Specific second-order equation

Let us solve : y''+4y'+4y = \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''+4y'+4y=0. The characteristic equation is: : \lambda^2+4\lambda+4=(\lambda+2)^2=0 Since \lambda=-2 is a repeated root, we have to introduce a factor of ''x'' for one solution to ensure linear independence: u_1 = e^ and u_2 =x e^. The
Wronskian In mathematics, the Wronskian of ''n'' differentiable functions is the determinant formed with the functions and their derivatives up to order . It was introduced in 1812 by the Polish mathematician Józef Wroński, and is used in the study of ...
of these two functions is : W=\begin e^ & xe^ \\ -2e^ & -e^(2x-1)\\ \end = -e^e^(2x-1)+2xe^e^ = e^. 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'')''u''1 + ''B''(''x'')''u''2 is a particular solution of the non-homogeneous equation. We need only calculate the integrals :A(x) = - \int u_2(x) b(x)\,\mathrm dx,\; B(x) = \int u_1(x)b(x)\,\mathrm dx Recall that for this example :b(x) = \cosh x That is, :A(x) = - \int xe^ \cosh x \,\mathrm dx = - \int xe^\cosh x \,\mathrm dx = -e^x\left(9(x-1)+e^(3x-1)\right)+C_1 :B(x) = \int e^ \cosh x \,\mathrm dx = \int e^\cosh x\,\mathrm dx =e^x\left(3+e^\right)+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 In mathematics, a differential operator is an operator defined as a function of the differentiation operator. It is helpful, as a matter of notation first, to consider differentiation as an abstract operation that accepts a function and retur ...
. 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 ''u''1 and ''u''2 — 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 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: :A'(x)u_1(x)+B'(x)u_2(x)=0. Now, :\begin u_G'(x) &= \left (A(x)u_1(x)+B(x)u_2(x) \right )' \\ &= \left (A(x)u_1(x) \right )'+ \left (B(x)u_2(x) \right )'\\ &=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) \end 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 ''u''''G'' as :Lu_G=A(x)Lu_1(x)+B(x)Lu_2(x)+A'(x)u_1'(x)+B'(x)u_2'(x). Since ''u''1 and ''u''2 are solutions, then :Lu_G=A'(x)u_1'(x)+B'(x)u_2'(x). We have the system of equations :\begin u_1(x) & u_2(x) \\ u_1'(x) & u_2'(x) \end \begin A'(x) \\ B'(x)\end = \begin 0 \\ f \end. Expanding, :\begin A'(x)u_1(x)+B'(x)u_2(x)\\ A'(x)u_1'(x)+B'(x)u_2'(x) \end = \begin 0\\f\end. 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)=Lu_G=f. We seek ''A''(''x'') and ''B''(''x'') from these conditions, so, given :\begin u_1(x) & u_2(x) \\ u_1'(x) & u_2'(x) \end \begin A'(x) \\ B'(x)\end = \begin 0\\ f\end we can solve for (''A''′(''x''), ''B''′(''x''))T, so :\begin A'(x) \\ B'(x) \end = \begin u_1(x) & u_2(x) \\ u_1'(x) & u_2'(x) \end^ \begin 0\\ f \end =\frac \begin u_2'(x) & -u_2(x) \\ -u_1'(x) & u_1(x) \end \begin 0\\ f \end, where ''W'' denotes the
Wronskian In mathematics, the Wronskian of ''n'' differentiable functions is the determinant formed with the functions and their derivatives up to order . It was introduced in 1812 by the Polish mathematician Józef Wroński, and is used in the study of ...
of ''u''1 and ''u''2. (We know that ''W'' is nonzero, from the assumption that ''u''1 and ''u''2 are linearly independent.) So, : \begin A'(x) &= - u_2(x) f(x), & B'(x) &= u_1(x)f(x) \\ A(x) &= - \int u_2(x) f(x)\,\mathrm dx, & B(x) &= \int u_1(x)f(x)\,\mathrm dx \end While homogeneous equations are relatively easy to solve, this method allows the calculation of the coefficients of the general solution of the ''in''homogeneous 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 In calculus, the constant of integration, often denoted by C (or c), is a constant term added to an antiderivative of a function f(x) to indicate that the indefinite integral of f(x) (i.e., the set of all antiderivatives of f(x)), on a connecte ...
). Adding a constant to A(x) or B(x) does not change the value of Lu_G(x) because the extra term is just a linear combination of ''u''1 and ''u''2, which is a solution of L by definition.


See also

*
Alekseev–Gröbner formula The Alekseev–Gröbner formula, or nonlinear variation-of-constants formula, is a generalization of the linear variation of constants formula which was proven independently by Wolfgang Gröbner in 1960 and Vladimir Mikhailovich Alekseev in 1961 ...
, a generalization of the variation of constants formula. *
Reduction of order Reduction of order (or d’Alembert reduction) is a technique in mathematics for solving second-order linear ordinary differential equations. It is employed when one solution y_1(x) is known and a second linearly independent solution y_2(x) is ...


Notes


References

* * * {{cite book , last = Teschl , first = Gerald , author-link = Gerald Teschl , title = Ordinary Differential Equations and Dynamical Systems , publisher =
American Mathematical Society The American Mathematical Society (AMS) is an association of professional mathematicians dedicated to the interests of mathematical research and scholarship, and serves the national and international community through its publications, meetings, ...
, year = 2012 , url = https://www.mat.univie.ac.at/~gerald/ftp/book-ode/


External links


Online Notes / Proof
by Paul Dawkins,
Lamar University Lamar University (Lamar or LU) is a public university in Beaumont, Texas, United States. Lamar has been a member of the Texas State University System since 1995. It was the flagship institution of the former Lamar University System. As of the ...
.
PlanetMath page

A NOTE ON LAGRANGE’S METHOD OF VARIATION OF PARAMETERS
Ordinary differential equations