Variation of parameters

Database › Mathematics › Applied mathematics › Differential equations

DE-0007MethodUndergraduate

Given two independent solutions y₁, y₂ of the homogeneous equation, a particular solution of y″ + py′ + qy = f is obtained by letting the constants vary, with coefficients fixed by the Wronskian.

$$y_p=-y_1\int\frac{y_2f}{W}dx+y_2\int\frac{y_1f}{W}dx,\qquad W=y_1y_2'-y_1'y_2$$

Explanation

Write $y=c_1(x)y_1+c_2(x)y_2$ and impose $c_1'y_1+c_2'y_2=0$; then $c_1'y_1'+c_2'y_2'=f$, a linear system solved by Cramer's rule. Unlike undetermined coefficients, it works for any forcing and for variable-coefficient equations.

Written as $y_p=\int G(x,t)f(t)\,dt$ it constructs the causal Green function $G=\frac{y_1(t)y_2(x)-y_1(x)y_2(t)}{W(t)}$ for $x>t$.

Example 1

Solve $y''+y=\sec x$.

Solution

$y_1=\cos x$, $y_2=\sin x$, $W=1$. $c_1=-\int\tan x\,dx=\ln|\cos x|$, $c_2=\int1\,dx=x$: $y_p=\cos x\ln|\cos x|+x\sin x$.

Example 2

Find the response of $\ddot x+\omega^2x=F(t)$, at rest at $t=0$, as an integral.

Solution

$x(t)=\frac1\omega\int_0^t\sin\omega(t-t')\,F(t')\,dt'$ — the impulse response convolved with the force.

Related entries