Variation Of Parameters
In mathematics, variation of parameters, also known as variation of constants, is a general method to solve inhomogeneous linear ordinary differential equations.
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 do not 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 (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.
Contents
Intuitive explanation
Consider the equation of the forced dispersionless spring, in suitable units:
Here x is the displacement of the spring from the equilibrium , 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 and , the momentum corresponding to the solution has a net change (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 being added to the solution at time , is
The unique solution to this problem is easily seen to be . 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 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 then being given in terms of explicit linear combinations of linearly independent fundamental solutions. In the case of the forced dispersionless spring, the kernel is the associated decomposition into fundamental solutions.
Description of method (Second Order)
Consider a general second order linear nonhomogeneous differential equation whose coefficient functions , , and are continuous:
The corresponding second order linear homogeneous differential equation is thus . Suppose that we know the general solution to the corresponding second order linear homogeneous differential equation in terms of two functions and which form a fundamental set of solutions to the corresponding second order linear homogeneous differential equation, say .
We will now replace the constants and with functions, and to get:
We then want to try and determine what functions and make a particular solution to our original second order linear nonhomogeneous differential equation. We first differentiate and apply the product rule where appropriate to get:
Now we will set the terms containing the derivatives of the functions and to equal zero, that is . Note that this is a rather hefty assumption, however, this assumption is not rash as we're looking only for a particular solution, namely one for which this property holds. We'll see that making this assumption does not lead to any contradictions, and so:
We now differentiate again by applying the product rule where appropriate to get the second derivative of :
We will now plug in , , and into our second order linear nonhomogeneous differential equation to get that:
Now recall that we supposed that . To solve for and , then all we need to do is solve the following system of equations:
Recall that a unique solution exists provided that the determinant is nonzero. But this determinant is identically the Wronskian , and it is assumed that this Wronskian is nonzero since and form the general solution of the corresponding second order linear homogeneous differential equation, and so by apply Cramer's rule, the values of and are:
We now integrate both sides of each equation above, and for constants and , we get and :
Therefore, a particular solution to our second order linear nonhomogeneous differential equation is:
And finally, the general solution to our differential equation will be:
Note that the method of variation of parameters is useful provided that the general solution to the corresponding second order linear homogeneous differential equation is easy to solve, and provided that the two integrals in the formula above are relatively simply to compute.
Examples
First-order equation
The general solution of the corresponding homogeneous equation (written below) is the complementary solution to our original (inhomogeneous) equation:
- .
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 for simplicity. Therefore the particular solution is:
The final solution of the differential equation is:
This recreates the method of integrating factors.
Specific second-order equation
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 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
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
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A(x) = - \int {1\over W} u_2(x) b(x)\,\mathrm dx,\; B(x) = \int {1 \over W} u_1(x)b(x)\,\mathrm dx}
Recall that for this example
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle b(x) = \cosh x}
That is,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A(x) = - \int {1\over e^{-4x}} xe^{-2x} \cosh x \,\mathrm dx = - \int xe^{2x}\cosh x \,\mathrm dx = -{1\over 18}e^x\left(9(x-1)+e^{2x}(3x-1)\right)+C_1}
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B(x) = \int {1 \over e^{-4x}} e^{-2x} \cosh x \,\mathrm dx = \int e^{2x}\cosh x\,\mathrm dx ={1\over 6}e^x\left(3+e^{2x}\right)+C_2 }
where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle C_1} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle C_2} are constants of integration.
General second-order equation
We have a differential equation of the form
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u''+p(x)u'+q(x)u=f(x)}
and we define the linear operator
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L=D^2+p(x)D+q(x)}
where D represents the differential operator. We therefore have to solve the equation Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L u(x)=f(x)} for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u(x)} , where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)} are known.
We must solve first the corresponding homogeneous equation:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 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 which we assume to be of the form
Here, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A(x)} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B(x)} are unknown and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_1(x)} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_2(x)} are the solutions to the homogeneous equation. (Observe that if Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A(x)} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B(x)} are constants, then Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\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:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A'(x)u_1(x)+B'(x)u_2(x)=0.}
Now,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} 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{align}}
Differentiating again (omitting intermediary steps)
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 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
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Lu_G=A(x)Lu_1(x)+B(x)Lu_2(x)+A'(x)u_1'(x)+B'(x)u_2'(x).}
Since u1 and u2 are solutions, then
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Lu_G=A'(x)u_1'(x)+B'(x)u_2'(x).}
We have the system of equations
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{bmatrix} u_1(x) & u_2(x) \\ u_1'(x) & u_2'(x) \end{bmatrix} \begin{bmatrix} A'(x) \\ B'(x)\end{bmatrix} = \begin{bmatrix} 0 \\ f \end{bmatrix}.}
Expanding,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{bmatrix} A'(x)u_1(x)+B'(x)u_2(x)\\ A'(x)u_1'(x)+B'(x)u_2'(x) \end{bmatrix} = \begin{bmatrix} 0\\f\end{bmatrix}.}
So the above system determines precisely the conditions
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A'(x)u_1(x)+B'(x)u_2(x)=0.}
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 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
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{bmatrix} u_1(x) & u_2(x) \\ u_1'(x) & u_2'(x) \end{bmatrix} \begin{bmatrix} A'(x) \\ B'(x)\end{bmatrix} = \begin{bmatrix} 0\\ f\end{bmatrix}}
we can solve for (A′(x), B′(x))T, so
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{bmatrix} A'(x) \\ B'(x) \end{bmatrix} = \begin{bmatrix} u_1(x) & u_2(x) \\ u_1'(x) & u_2'(x) \end{bmatrix}^{-1} \begin{bmatrix} 0\\ f \end{bmatrix} =\frac{1}{W} \begin{bmatrix} u_2'(x) & -u_2(x) \\ -u_1'(x) & u_1(x) \end{bmatrix} \begin{bmatrix} 0\\ f \end{bmatrix},}
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,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} A'(x) &= - {1\over W} u_2(x) f(x), & B'(x) &= {1 \over W} u_1(x)f(x) \\ A(x) &= - \int {1\over W} u_2(x) f(x)\,\mathrm dx, & B(x) &= \int {1 \over W} u_1(x)f(x)\,\mathrm dx \end{align}}
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 Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A(x)} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B(x)} are each determined only up to an arbitrary additive constant (the constant of integration). Adding a constant to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A(x)} or Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B(x)} does not change the value of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Lu_G(x)} because the extra term is just a linear combination of u1 and u2, which is a solution of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L} by definition.
Higher Order
The method of variation of parameters can also be applied to higher order differential equations. The process can be derived similarly. Suppose that we have a higher order differential equation of the following form:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad \frac{d^ny}{dt^n} + p_1(t) \frac{d^{n-1}}{dt^{n-1}} + ... + p_n(t) y = g(t) \end{align}}
We first solve the corresponding homogeneous differential equation to get Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_h(t) = C_1 y_1(t) + C_2y_2(t) + ... + C_ny_n(t) } . The functions Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_1(t) } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_2(t) } , …, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_n(t) } form a fundamental set. Assume a particular solution to the nonhomogeneous differential equation is of the form:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad Y(t) = u_1(t)y_1(t) + u_2(t)y_2(t) + ... + u_n(t)y_n(t) \end{align}}
We then solve the following system of equations for the functions Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_1'(t) } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_2'(t) } , …, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_n'(t) } .
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad \left\{\begin{matrix} u_1'(t)y_1(t) + u_2'(t)y_2(t) + ... + u_n'(t)y_n(t) = 0 \\ u_1'(t)y_1'(t) + u_2'(t)y_2'(t) + ... + u_n'(t)y_n'(t) = 0 \\ \vdots \\ u_1'(t)y_1^{(n-1)}(t) + u_2'(t)y_2^{(n-1)}(t) + ... + u_n'(t)y_n^{(n-1)}(t) = g(t) \end{matrix}\right. \end{align}}
Once again, a unique solution is guaranteed since Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_1(t) } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_2(t) } , …, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_n(t) } form a fundamental set of solutions implies the Wronskian Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle W(y_1, y_2, ..., y_n) } is nonzero. Furthermore, it should be noted that the system above can be solved for with row reduction (if the process is simple) or more commonly by applying Cramer's rule once again.
We then integrate each of the functions Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_1'(t) } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_2'(t) } , …, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_n'(t) } to obtain Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_1(t) } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_2(t) } , …, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_n(t) } . Lastly, we obtain that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y(t) = u_1(t)y_1(t) + u_2(t)y_2(t) + ... + u_n(t)y_n(t) } as our particular solution.
We will now look at an example of using the method of variation of parameters for higher order nonhomogeneous differential equations.
Example 1
Solve the third order linear nonhomogeneous differential equation Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y''' + y' = \tan t } using the method of variation of parameters.
For the corresponding homogeneous differential equation Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y''' + y' = 0 } we have that the characteristic equation is which can be factored as Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle r(r^2 + 1) = 0 } and so Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle r = 0 } or Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle r = \pm i } . The solution to the corresponding homogeneous differential equation is therefore:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad y(t) = P + Q\cos t + R \sin t \end{align}}
Furthermore, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_1 = e^{0t} = 1 } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_2 = e^{0t} \cos t= \cos t } , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_3 = e^{0t} \sin t = \sin t } .
Now let's try to find a particular solution to this differential equation. We have that:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad y_p = u_1y_1 + u_2y_2 + u_3y_3 \\ \quad y_p = u_1 + u_2 \cos t + u_3 \sin t \end{align}}
Thus we want to solve the following system of equations:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad u_1' (1) + u_2' \cos t + u_3' \sin t = 0 \\ \quad u_1' (0) + u_2' (-\sin t) + u_3' (\cos t) = 0 \\ \quad u_1' (0) + u_2' (\cos t) + u_3' (\sin t) = \tan t \end{align}}
We will use Cramer's rule in order to solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_1' } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_2' } , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_3' } . We first find the corresponding Wronskian:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad W = \begin{bmatrix} 1 & \cos t & \sin t \\ 0 & -\sin t & \cos t \\ 0 & -\cos t & -\sin t \end{bmatrix} = \begin{bmatrix} -\sin t & \cos t \\ -\cos t & -\sin t \end{bmatrix} = 1 \end{align}}
Now we have that:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad u_1' = \frac{\begin{bmatrix} 0 & \cos t & \sin t \\ 0 & -\sin t & \cos t \\ \tan t & -\cos t & -\sin t \end{bmatrix}}{1} = \tan t \begin{bmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{bmatrix} = \tan t \end{align}}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad u_2' = \frac{\begin{bmatrix} 1 & 0 & \sin t \\ 0 & 0 & \cos t \\ 0 & \tan t & -\sin t \end{bmatrix}}{1} = - \begin{bmatrix} 1 & 0 & \sin t \\ 0 & \tan t & -\sin t \\ 0 & 0 & \cos t \end{bmatrix} = -\tan t \cos t = -\frac{\sin t}{\cos t} \cos t = -\sin t \end{align}}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad u_3' = \frac{\begin{bmatrix} 1 & \cos t & 0 \\ 0 & -\sin t & 0 \\ 0 & -\cos t & \tan t \end{bmatrix}}{1} = \begin{bmatrix} -\sin t & 0 \\ -\cos t & \tan t \end{bmatrix} = -\sin t \tan t = -\frac{\sin^2 t}{\cos t} \end{align}}
We will now integrate Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_1' } , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_2' } , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u_3' } to get:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad \int u_1'(t) dt = \int \tan t dt = \ln \mid \sec t \mid + C \end{align}}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad \int u_2'(t) dt = \int - \sin t dt = \cos t + D \end{align}}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad \int u_3'(t) dt = \int -\frac{\sin^2 t}{\cos t} dt = \int \frac{\cos^2 t - 1}{\cos t} dt = \int \left ( \cos t - \sec t \right ) dt = \sin t + \ln \mid \sec t + \tan t \mid + E \end{align}}
Thus we have that:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \quad y(t) = \left ( \ln \mid \sec t \mid + C \right ) (1) + \left ( \cos t + D \right ) \cos t + \left ( \sin t + \ln \mid \sec t + \tan t \mid + E \right ) \sin t \end{align}}
Licensing
Content obtained and/or adapted from:
- Variation of parameters, Wikipedia under a CC BY-SA license
- The Method of Variation of Parameters, mathonline.wikidot.com under a CC BY-SA license
- Variation of Parameters for Higher Order, mathonline.wikidot.com under a CC BY-SA license