Skip to main content
Mathematics LibreTexts

4.4: Variation of parameters revisited

  • Page ID
    153719
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    \(3.6=4.4\) Variation of Parameters
     Suppose that we wanted to solve the following \( a y^{\prime \prime \prime}+b y^{\prime \prime}+c y^{\prime}+e y=g(t) \), we would

    Step 1: Find homogeneous solutions:
    Solve \(y^{\prime \prime \prime}-4 y^{\prime \prime}+y^{\prime}+6 y=0\)
    Plug in \(y=e^{r t}\) and simplify:
    \[ \notag
    r^3-4 r^2+r+6=(r+1)\left(r^2-5 r+6\right)=(r+1)(r-2)(r-3)=0
    \]

    Thus \(r=-1,2,3\) and general homogeneous solution is
    \[ \notag
    y=c_1 e^{-t}+c_2 e^{2 t}+c_3 e^{3 t}
    \]

    Step 2: Find one non-homogeneous solution. Since the general solution to non-homogeneous DE is
    \[\notag
    y=c_1 e^{-t}+c_2 e^{2 t}+c_3 e^{3 t}+\psi
    \]
    \(3.5=4.3:\) where by the undetermined coefficients method,
    \[ \notag
    \psi=A e^{4 t}
    \]
    for some constant \(A\) that can be determined by plugging \(\psi\) into the \(\mathrm{DE}\) and solving for \(A\).

    Note

    \(y=e^{4 t}\) is NOT a homogeneous solution, so it is a good guess.

    Note

    Undetermined coefficients method is usually much much easier than variation of parameters.

    But since the undetermined coefficients method cannot always be used (sometimes guess is impossible to determine), we will instead use the much longer method of variation of parameters to illustrate this method.

    Thus by 3.6 \(=4.4\), variation of parameters method,
    \[ \notag
    \psi=u_1 e^{-t}+u_2 e^{2 t}+u_3 e^{3 t}
    \]
    where \(u_i\) are unknown functions that we can determine via the following:

    If homogeneous solution is \(y=c_1 \phi_1+c_2 \phi_2+c_3 \phi_3\), then a non-homogeneous solution is
    \[ \notag
    y=u_1(t) \phi_1+u_2(t) \phi_2+u_3(t) \phi_3
    \]
    where we can determine the unknown functions by plugging this into the DE. But we have 3 unknowns. Thus we might want 3 equations to solve for the unknowns. Thus we can choose 2 equations to simplify the algebra.

    We need to calculate \(y^{\prime}\) which by the product rule will have 6 terms. Thus we will set the sum of 3 of these terms to 0 to avoid 2nd derivative of \(u_i\) when calculating \(y^{\prime \prime}\).

    Thus we choose \(u_1^{\prime}(t) \phi_1+u_2^{\prime}(t) \phi_2+u_3^{\prime}(t) \phi_3=0\)
    Similarly to avoid 2nd derivative of \(u_i\) when calculating \(y^{\prime \prime \prime}\), we choose \(u_1^{\prime}(t) \phi_1^{\prime}+u_2^{\prime}(t) \phi_2^{\prime}+u_3^{\prime}(t) \phi_3^{\prime}=0\).

    We plug our potential solution into the DE and after lots of simplification, we obtain the 3rd equation:
    \[ \notag
    u_1^{\prime}(t) \phi_1^{\prime \prime}+u_2^{\prime}(t) \phi_2^{\prime \prime}+u_3^{\prime}(t) \phi_3^{\prime \prime}=\frac{g(t)}{a}
    \]

    Thus to summarize, to find \(u_i\), we solve the following system of DE (via Cramer's rule) and then integrate
    \[ \notag
    \begin{gathered}
    u_1^{\prime}(t) \phi_1+u_2^{\prime}(t) \phi_2+u_3^{\prime}(t) \phi_3=0 \\
    u_1^{\prime}(t) \phi_1^{\prime}+u_2^{\prime}(t) \phi_2^{\prime}+u_3^{\prime}(t) \phi_3^{\prime}=0 \\
    u_1^{\prime}(t) \phi_1^{\prime \prime}+u_2^{\prime}(t) \phi_2^{\prime \prime}+u_3^{\prime}(t) \phi_3^{\prime \prime}=\frac{g(t)}{a}
    \end{gathered}
    \]

    Or in matrix form:
    \[ \notag
    \left(\begin{array}{lll}
    \phi_1 & \phi_2 & \phi_3 \\
    \phi_1^{\prime} & \phi_2^{\prime} & \phi_3^{\prime} \\
    \phi_1^{\prime \prime} & \phi_2^{\prime \prime} & \phi_3^{\prime \prime}
    \end{array}\right)\left(\begin{array}{l}
    u_1^{\prime} \\
    u_2^{\prime} \\
    u_3^{\prime}
    \end{array}\right)=\left(\begin{array}{c}
    0 \\
    0 \\
    \frac{g(t)}{a}
    \end{array}\right)
    \]

    Thus for our example: \(\mathbf{1} y^{\prime \prime \prime}-4 y^{\prime \prime}+y^{\prime}+6 y=8 e^{4 t}\), where the homogeneous solution is \(y=c_1 e^{-t}+c_2 e^{2 t}+c_3 e^{3 t}\), and if we use the much longer method of variation of parameters \((3.6=4.4)\), our non-homogeneous solution is
    \[ \notag
    y=u_1(t) e^{-t}+u_2(t) e^{2 t}+u_3(t) e^{3 t}
    \]
    where we can solve for the unknown functions \(u_i\) by solving for the unknowns \(u_i^{\prime}\) in the following system of equations and then integrating.
    \[ \notag
    \begin{gathered}
    u_1^{\prime}(t) e^{-t}+u_2^{\prime}(t) e^{2 t}+u_3^{\prime}(t) e^{3 t}=0 \\
    u_1^{\prime}(t)\left(-e^{-t}\right)+u_2^{\prime}(t)\left(2 e^{2 t}\right)+u_3^{\prime}(t)\left(3 e^{3 t}\right)=0 \\
    u_1^{\prime}(t) e^{-t}+u_2^{\prime}(t)\left(4 e^{2 t}\right)+u_3^{\prime}(t)\left(9 e^{3 t}\right)=8 e^{4 t}
    \end{gathered}
    \]

    Or in matrix form:
    \[ \notag
    \left(\begin{array}{ccc}
    e^{-t} & e^{2 t} & e^{3 t} \\
    -e^{-t} & 2 e^{2 t} & 3 e^{3 t} \\
    e^{-t} & 4 e^{2 t} & 9 e^{3 t}
    \end{array}\right)\left(\begin{array}{l}
    u_1^{\prime} \\
    u_2^{\prime} \\
    u_3^{\prime}
    \end{array}\right)=\left(\begin{array}{c}
    0 \\
    0 \\
    8 e^{4 t}
    \end{array}\right)
    \]

    Note

    Note the coefficient matrix is the matrix whose determinant is the Wronskian! (same matrix, but before you take the determinant)

    Thus if \(W=\) the coefficient matrix, \(\mathbf{u}=n \times 1\) vector with ith coordinate \(u_i\) and \(\mathbf{b}=\) \(n \times 1\) vector where all coordinates are 0 except the last term is \(\frac{g(t)}{a}\), then the matrix formula can be written as
    \[ \notag
    W \mathbf{u}^{\prime}=\mathbf{b}
    \]

    Don't forget to integrate to find \(u_i\) after using Cramer's rule to find \(u_i^{\prime}\).

    Note

    If you are likely to forget to divide by \(a\), you might want to do so in the beginning (after solving homogeneous). This is what the book does:
    \[ \notag
    y^{\prime \prime \prime}+\frac{b}{a} y^{\prime \prime}+\frac{c}{a} y^{\prime}+\frac{e}{a} y=\frac{g(t)}{a}
    \]

     

    We can solve for the unknowns \(u_1^{\prime}, u_2^{\prime}, u_3^{\prime}\) using Cramer's rule.
    To calculate Wronskian:
    Method 1: Use Definition.
    Method 2: Use Abel's Theorem and \(W\left(t_0\right)\). 


    This page titled 4.4: Variation of parameters revisited was last modified on Wed, 26 Jun 2024 15:55:21 GMT and is shared under a not declared license and was authored, remixed, and/or curated by Isabel K. Darcy.

    • Was this article helpful?