\( \newcommand{\abs}[1]{\left| \, {#1} \, \right| } \) \( \newcommand{\cm}{\mathrm{cm} } \) \( \newcommand{\sec}{ \, \mathrm{sec} \, } \) \( \newcommand{\vhat}[1]{\,\hat{#1}} \) \( \newcommand{\vhati}{\,\hat{i}} \) \( \newcommand{\vhatj}{\,\hat{j}} \) \( \newcommand{\vhatk}{\,\hat{k}} \) \( \newcommand{\vect}[1]{\boldsymbol{\vec{#1}}} \) \( \newcommand{\norm}[1]{\|{#1}\|} \) \( \newcommand{\arccot}{ \, \mathrm{arccot} \, } \) \( \newcommand{\arcsec}{ \, \mathrm{arcsec} \, } \) \( \newcommand{\arccsc}{ \, \mathrm{arccsc} \, } \) \( \newcommand{\sech}{ \, \mathrm{sech} \, } \) \( \newcommand{\csch}{ \, \mathrm{csch} \, } \) \( \newcommand{\arcsinh}{ \, \mathrm{arcsinh} \, } \) \( \newcommand{\arccosh}{ \, \mathrm{arccosh} \, } \) \( \newcommand{\arctanh}{ \, \mathrm{arctanh} \, } \) \( \newcommand{\arccoth}{ \, \mathrm{arccoth} \, } \) \( \newcommand{\arcsech}{ \, \mathrm{arcsech} \, } \) \( \newcommand{\arccsch}{ \, \mathrm{arccsch} \, } \)

17Calculus Differential Equations - Variation of Parameters

ODE Techniques

1st Order

2nd/Higher Order

Laplace Transforms

Applications

Additional Topics

Practice

Calculus 1 Practice

Calculus 2 Practice

Practice Exams

Tools

Calculus Tools

Additional Tools

Articles

ODE Techniques

1st Order

2nd/Higher Order

Laplace Transforms

Applications

Additional Topics

SV Calculus

MV Calculus

Practice

Calculus 1 Practice

Calculus 2 Practice

Practice Exams

Tools

Calculus Tools

Additional Tools

Articles

General Form: \(y'' + p(t)y' + q(t)y = g(t)\)

Classification: second-order, linear, inhomogeneous

Alternate Name For Variation of Parameters: Variation of Constants

Variation of Parameters is a second order technique to solve nonhomogeneous differential equations. The form of the equations we solve using this technique is
\( y'' + p(t)y' + q(t)y = g(t) \) where \( g(t) \neq 0 \).

Although this technique will work when \( g(t) \) is a standard form, we normally use the method of undetermined coefficients which is easier. However, variation of parameters can be used for a wider range of problems.
The equations we use are

\(W =\begin{vmatrix} y_1(t) & y_2(t) \\ y'_1(t) & y'_2(t) \end{vmatrix}\)

\(\displaystyle{ u'_1(t) = \frac{ \begin{vmatrix} 0 & y_2(t) \\ g(t) & y'_2(t) \end{vmatrix} }{W}}\)

\(\displaystyle{ u'_2(t) = \frac{ \begin{vmatrix} y_1(t) & 0 \\ y'_1(t) & g(t) \end{vmatrix} }{W}}\)

\(y_1(t)\) and \(y_2(t)\) are solutions to the homogeneous equation

The matrix \(W\) is called the Wronskian , and from the above equations you can tell that we require \(W \neq 0\). After evaluating the above matrices for \(u'_1(t)\) and \(u'_2(t)\), we integrate to obtain \(u_1(t)\) and \(u_2(t)\). The final solution to the differential equation is

\( y (t) = u_1(t) y_1 (t) + u_2(t) y_2 (t) \)

It will help you understand these if you know where the equations come from. So the next section shows the derivation of the these equations and explains step-by-step why we can use them in this form.

Deriving the Variation of Parameters Equations

1. Set Up Equations

First, we form the homogeneous, \(g(t)=0\), solution
\( y_H (t) = c_1 y_1 (t) + c_2 y_2 (t) \).
However, we replace the constants \( c_1, c_2\) with functions \( u_1 (t), u_2 (t) \). This gives us

\( y (t) = u_1(t) y_1 (t) + u_2(t) y_2 (t) \)       [1]

Let's take the derivative with respect to \(t\).

\( y'(t) = u_1(t) y'_1(t) + \color{red}{u'_1(t)y_1(t)} + \) \( u_2(t) y'_2(t) + \color{red}{u'_2(t)y_2(t)} \)

Now we set up an unusual condition; we require

\( u'_1(t)y_1(t) + u'_2(t)y_2(t) = 0 \)

i.e. we take the \(u\)-derivative terms (red terms) and set the sum equal to zero. This removes those terms from the derivative \( y'(t) \) and we are left with
\( y'(t) = u_1(t) y'_1(t) + u_2(t) y'_2(t) \). Let's take the derivative of this again.

\( y''(t) = u_1(t) y''_1(t) + \color{red}{u'_1(t) y'_1(t)} + \) \( u_2(t) y''_2(t) + \color{red}{u'_2(t) y'_2(t)} \)

Now we set up another condition.

\( u'_1(t) y'_1(t) + u'_2(t) y'_2(t) = g(t) \)

Again, we take the \(u\)-derivatives terms (red terms) and set the sum equal to \( g(t) \) from the original differential equation.

Finally, we have the two equations

\(\begin{array}{lclcl} u'_1(t)y_1(t) & + & u'_2(t)y_2(t) & = & 0 \\ u'_1(t) y'_1(t) & + & u'_2(t) y'_2(t) & = & g(t) \end{array}\)

with the two unknowns \( u'_1(t), u'_2(t) \).

2. Solving For Two Unknowns

Using Cramer's Rule to solve a system of equations, we have the Wronskian

\( W = \begin{vmatrix} y_1(t) & y_2(t) \\ y'_1(t) & y'_2(t) \end{vmatrix} \)     which we use to solve for \( u'_1(t) \) and \( u'_2(t) \)


\(\displaystyle{ u'_1(t) = \frac{ \begin{vmatrix} 0 & y_2(t) \\ g(t) & y'_2(t) \end{vmatrix} }{W} }\)

   

\(\displaystyle{ u'_2(t) = \frac{ \begin{vmatrix} y_1(t) & 0 \\ y'_1(t) & g(t) \end{vmatrix} }{W} }\)

3. Finishing Up

Now we integrate the equations for \( u'_1(t)\) and \( u'_2(t) \) and plug the results into equation [1] to get our final answer. If we have initial conditions, we would need to use them to find the constants that result from the integration in the last step.

There are two ways to think about how to write the final solution. You can integrate \( u'_1(t)\) and \( u'_2(t) \) to get \( u_1(t) + c_1\) and \( u_2(t) + c_2 \) and write the final solution as
\( y (t) = (u_1(t) + c_1) y_1 (t) + \) \( ( u_2(t) + c_2) y_2 (t) \)
or, as the video below shows, you can think of the solution \( y_p (t) = u_1(t) y_1 (t) + u_2(t) y_2 (t) \) as a particular solution to which you add the homogeneous solution to get
\( y (t) = y_p(t) + y_h(t) = \) \( u_1(t) y_1 (t) + u_2(t) y_2 (t) + \) \( c_1y_1(t) + c_2y_2(t) \)
As you can see, these are just two different ways of looking at the same thing. It is best to follow what your instructor requires.

Here is a video showing the same derivation. The presenter does a very good job explaining the equations.

Dr Chris Tisdell - variation of parameters [13mins-40secs]

video by Dr Chris Tisdell

Here is another video discussing variation of parameters. This video is quite in-depth and he starts out with some matrix theory that supports the later discussion. This video is included here for completeness but is not necessary for using variation of parameters.

MIT OCW - variation of parameters [46mins-52secs]

video by MIT OCW

Practice

Unless otherwise instructed, solve these differential equations using the variation of parameters technique. Give your answers in exact terms and completely factored.

Basic

\( y'' - 5y' + 6y = 4e^t \)

Problem Statement

\( y'' - 5y' + 6y = 4e^t \)

Final Answer

\( y(t) = 2e^t + c_1e^{2t} + c_2e^{3t} \)

Problem Statement

\( y'' - 5y' + 6y = 4e^t \)

Solution

We could use the method of undetermined coefficients to solve this problem more easily. However, we are asked to use variation of parameters. We will work through the solution by going through the derivation of the equations.

First, we solve the homogeneous equation.

\( y'' - 5y' + 6y = 0 \)

The characteristic equation is

\( r^2 - 5r + 6 = 0 \)

\( (r-3)(r-2) = 0 \)

So our homogeneous solution is

\( y_H(t) = c_1e^{2t} + c_2e^{3t} \)

Now, we work on the particular solution by replacing the constants with functions of t, \( y(t) = u_1(t)e^{2t} + u_2(t)e^{3t} \), and taking the derivative with respect to t.
\(y'(t) = u_1(t)(2e^{2t}) + \color{red}{u'_1(t)e^{2t}} + u_2(t)(3e^{3t}) + \color{red}{u'_2(t)e^{3t} }\)
For our first equation, we take the terms in red and set them equal to zero to get \( u'_1(t)e^{2t} + u'_2(t)e^{3t} = 0\)     [ 1 ]
This leaves us with \( y'(t) = u_1(t)(2e^{2t}) + u_2(t)(3e^{3t}) \), which we now take the derivative of with respect to t giving us
\( y''(t) = 2u_1(t)(2e^{2t}) + \color{red}{ 2u'_1(t)e^{2t} } + 3u_2(t)(3e^{3t}) + \color{red}{ 3u'_2(t)e^{3t} } \)
Setting the red terms equal to \( g(t) = 4e^t \), we have
\( 2u'_1(t)e^{2t} + 3u'_2(t)e^{3t} = 4e^t \)
Now, we have the two equations we need, the last one and equation [1].

\( u'_1(t)e^{2t} + u'_2(t)e^{3t} = 0 \)

\( u'_1(t)(2e^{2t}) + u'_2(t)(3e^{3t}) = 4e^t \)

Now we need to solve for \( u'_1(t)\) and \( u'_2(t) \).

\(\displaystyle{ W = \begin{vmatrix} e^{2t} & e^{3t} \\ 2e^{2t} & 3e^{3t} \end{vmatrix} }\)

\( W = 3e^{5t} - 2e^{5t} = e^{5t} \)

\(\displaystyle{ u'_1(t) = \frac{ \begin{vmatrix} 0 & e^{3t} \\ 4e^t & 3e^{3t} \end{vmatrix} }{W} }\)

\(\displaystyle{ u'_1(t) = \frac{0 -4e^{4t}}{e^{5t}} = -4e^{-t} }\)

\(\displaystyle{ u_1(t) = \int{-4e^{-t} dt} = 4e^{-t} + c_1 }\)

\(\displaystyle{ u'_2(t) = \frac{ \begin{vmatrix} e^{2t} & 0 \\ 2e^{2t} & 4e^t \end{vmatrix} }{W} }\)

\(\displaystyle{ u'_2(t) = \frac{4e^{3t}-0}{e^{5t}} = 4e^{-2t} }\)

\( u_2(t) = \int{4e^{-2t} dt} = -2e^{-2t} + c_2 \)

Substituting these results into

\( y(t) = u_1(t)e^{2t} + u_2e^{3t} \)

gives us

\( y(t) = [ 4e^{-t} + c_1 ] e^{2t} + [ -2e^{-2t} + c_2 ] e^{3t} \)

\( y(t) = 4e^t+ c_1 e^{2t} - 2e^t + c_2 e^{3t} \)

\( y(t) = 2e^t + c_1 e^{2t} + c_2 e^{3t} \)

Final Answer

\( y(t) = 2e^t + c_1e^{2t} + c_2e^{3t} \)

close solution

Log in to rate this practice problem and to see it's current rating.

\(y_1=x\) and \(y_2=x^3\) are solutions to the homogeneous equation, find the general solution of \( x^2y'' - 3xy' + 3y = 4x^7 \)

Problem Statement

\(y_1=x\) and \(y_2=x^3\) are solutions to the homogeneous equation, find the general solution of \( x^2y'' - 3xy' + 3y = 4x^7 \)

Final Answer

\(y = x^7 / 6 + c_1x + c_2x^3\)

Problem Statement

\(y_1=x\) and \(y_2=x^3\) are solutions to the homogeneous equation, find the general solution of \( x^2y'' - 3xy' + 3y = 4x^7 \)

Solution

606 video

video by PatrickJMT

Final Answer

\(y = x^7 / 6 + c_1x + c_2x^3\)

close solution

Log in to rate this practice problem and to see it's current rating.

\( 2y'' - y' - y = 2e^t \)

Problem Statement

\( 2y'' - y' - y = 2e^t \)

Solution

2218 video

close solution

Log in to rate this practice problem and to see it's current rating.

Intermediate

\(\displaystyle{ y'' - 2y' + y = \frac{e^x}{x^2+1} }\)

Problem Statement

\(\displaystyle{ y'' - 2y' + y = \frac{e^x}{x^2+1} }\)

Final Answer

\(\displaystyle{ y = Ae^x + Bxe^x - \frac{e^x}{2}\ln(x^2+1) + xe^x\arctan(x) }\)

Problem Statement

\(\displaystyle{ y'' - 2y' + y = \frac{e^x}{x^2+1} }\)

Solution

600 video

video by Dr Chris Tisdell

Final Answer

\(\displaystyle{ y = Ae^x + Bxe^x - \frac{e^x}{2}\ln(x^2+1) + xe^x\arctan(x) }\)

close solution

Log in to rate this practice problem and to see it's current rating.

\( y'' + y = \tan(x) \)

Problem Statement

\( y'' + y = \tan(x) \)

Final Answer

\( y = -\cos(x)\ln\abs{\sec(x) + \tan(x)} + A\cos(x) + B\sin(x) \)

Problem Statement

\( y'' + y = \tan(x) \)

Solution

Here are two video solutions by too different instructors. If, after watching the first video, you need more explanation, perhaps the second one will help.

601 video

video by Dr Chris Tisdell

601 video

Final Answer

\( y = -\cos(x)\ln\abs{\sec(x) + \tan(x)} + A\cos(x) + B\sin(x) \)

close solution

Log in to rate this practice problem and to see it's current rating.

\( y'' + 4y = \csc(2x) \)

Problem Statement

\( y'' + 4y = \csc(2x) \)

Final Answer

\(\displaystyle{ y = A\cos(2x) + B\sin(2x) - \frac{x}{2}\cos(2x) + \frac{1}{4} \sin(2x) \ln\abs{\sin(2x)} }\)

Problem Statement

\( y'' + 4y = \csc(2x) \)

Solution

603 video

video by Dr Chris Tisdell

Final Answer

\(\displaystyle{ y = A\cos(2x) + B\sin(2x) - \frac{x}{2}\cos(2x) + \frac{1}{4} \sin(2x) \ln\abs{\sin(2x)} }\)

close solution

Log in to rate this practice problem and to see it's current rating.

\(\displaystyle{ y'' + y = \frac{1}{\cos(x)} }\)

Problem Statement

\(\displaystyle{ y'' + y = \frac{1}{\cos(x)} }\)

Final Answer

\( y = A\cos(x) + B\sin(x) + \cos(x)\ln\abs{\cos(x)} + x\sin(x) \)

Problem Statement

\(\displaystyle{ y'' + y = \frac{1}{\cos(x)} }\)

Solution

604 video

video by Dr Chris Tisdell

Final Answer

\( y = A\cos(x) + B\sin(x) + \cos(x)\ln\abs{\cos(x)} + x\sin(x) \)

close solution

Log in to rate this practice problem and to see it's current rating.

\(\displaystyle{ y'' - 2y' + y = \frac{e^x}{x^4} }\)

Problem Statement

\(\displaystyle{ y'' - 2y' + y = \frac{e^x}{x^4} }\)

Final Answer

\(\displaystyle{ y = c_1e^x + c_2xe^x + \frac{e^x}{6x^2} }\)

Problem Statement

\(\displaystyle{ y'' - 2y' + y = \frac{e^x}{x^4} }\)

Solution

607 video

video by Krista King Math

Final Answer

\(\displaystyle{ y = c_1e^x + c_2xe^x + \frac{e^x}{6x^2} }\)

close solution

Log in to rate this practice problem and to see it's current rating.

Advanced

\( y'' + 9y = 2\tan(3x) \)

Problem Statement

\( y'' + 9y = 2\tan(3x) \)

Final Answer

\(\displaystyle{ y = \frac{-2}{9}\cos(3x)\ln\abs{\sec(3x)+\tan(3x)} + A\cos(3x) + B\sin(3x) }\)

Problem Statement

\( y'' + 9y = 2\tan(3x) \)

Solution

602 video

video by Dr Chris Tisdell

Final Answer

\(\displaystyle{ y = \frac{-2}{9}\cos(3x)\ln\abs{\sec(3x)+\tan(3x)} + A\cos(3x) + B\sin(3x) }\)

close solution

Log in to rate this practice problem and to see it's current rating.

\( y'' + 3y' + 2y = 5\cos(t) \)

Problem Statement

\( y'' + 3y' + 2y = 5\cos(t) \)

Final Answer

\( y(t) = (1/2)e^{-2t} - (1/2)e^{-t} + (1/2)\cos(t) + (3/2)\sin(t) \)

Problem Statement

\( y'' + 3y' + 2y = 5\cos(t) \)

Solution

605 video

video by Dr Chris Tisdell

Final Answer

\( y(t) = (1/2)e^{-2t} - (1/2)e^{-t} + (1/2)\cos(t) + (3/2)\sin(t) \)

close solution

Log in to rate this practice problem and to see it's current rating.

You CAN Ace Differential Equations

Topics You Need To Understand For This Page

Related Topics and Links

external links you may find helpful

youtube playlist

Wikipedia - Variation of Parameters

Trig Formulas

The Unit Circle

The Unit Circle [wikipedia]

Basic Trig Identities

Set 1 - basic identities

\(\displaystyle{ \tan(t) = \frac{\sin(t)}{\cos(t)} }\)

\(\displaystyle{ \cot(t) = \frac{\cos(t)}{\sin(t)} }\)

\(\displaystyle{ \sec(t) = \frac{1}{\cos(t)} }\)

\(\displaystyle{ \csc(t) = \frac{1}{\sin(t)} }\)

Set 2 - squared identities

\( \sin^2t + \cos^2t = 1\)

\( 1 + \tan^2t = \sec^2t\)

\( 1 + \cot^2t = \csc^2t\)

Set 3 - double-angle formulas

\( \sin(2t) = 2\sin(t)\cos(t)\)

\(\displaystyle{ \cos(2t) = \cos^2(t) - \sin^2(t) }\)

Set 4 - half-angle formulas

\(\displaystyle{ \sin^2(t) = \frac{1-\cos(2t)}{2} }\)

\(\displaystyle{ \cos^2(t) = \frac{1+\cos(2t)}{2} }\)

Trig Derivatives

\(\displaystyle{ \frac{d[\sin(t)]}{dt} = \cos(t) }\)

 

\(\displaystyle{ \frac{d[\cos(t)]}{dt} = -\sin(t) }\)

\(\displaystyle{ \frac{d[\tan(t)]}{dt} = \sec^2(t) }\)

 

\(\displaystyle{ \frac{d[\cot(t)]}{dt} = -\csc^2(t) }\)

\(\displaystyle{ \frac{d[\sec(t)]}{dt} = \sec(t)\tan(t) }\)

 

\(\displaystyle{ \frac{d[\csc(t)]}{dt} = -\csc(t)\cot(t) }\)

Inverse Trig Derivatives

\(\displaystyle{ \frac{d[\arcsin(t)]}{dt} = \frac{1}{\sqrt{1-t^2}} }\)

 

\(\displaystyle{ \frac{d[\arccos(t)]}{dt} = -\frac{1}{\sqrt{1-t^2}} }\)

\(\displaystyle{ \frac{d[\arctan(t)]}{dt} = \frac{1}{1+t^2} }\)

 

\(\displaystyle{ \frac{d[\arccot(t)]}{dt} = -\frac{1}{1+t^2} }\)

\(\displaystyle{ \frac{d[\arcsec(t)]}{dt} = \frac{1}{\abs{t}\sqrt{t^2 -1}} }\)

 

\(\displaystyle{ \frac{d[\arccsc(t)]}{dt} = -\frac{1}{\abs{t}\sqrt{t^2 -1}} }\)

Trig Integrals

\(\int{\sin(x)~dx} = -\cos(x)+C\)

 

\(\int{\cos(x)~dx} = \sin(x)+C\)

\(\int{\tan(x)~dx} = -\ln\abs{\cos(x)}+C\)

 

\(\int{\cot(x)~dx} = \ln\abs{\sin(x)}+C\)

\(\int{\sec(x)~dx} = \) \( \ln\abs{\sec(x)+\tan(x)}+C\)

 

\(\int{\csc(x)~dx} = \) \( -\ln\abs{\csc(x)+\cot(x)}+C\)

To bookmark this page and practice problems, log in to your account or set up a free account.

Topics Listed Alphabetically

Single Variable Calculus

Multi-Variable Calculus

Differential Equations

Precalculus

Engineering

Circuits

Semiconductors

Search Practice Problems

Do you have a practice problem number but do not know on which page it is found? If so, enter the number below and click 'page' to go to the page on which it is found or click 'practice' to be taken to the practice problem.

calculus motivation - music and learning

The 17Calculus and 17Precalculus iOS and Android apps are no longer available for download. If you are still using a previously downloaded app, your app will be available until the end of 2020, after which the information may no longer be available. However, do not despair. All the information (and more) is now available on 17calculus.com for free.

Deep Work: Rules for Focused Success in a Distracted World

Shop eBags.com, the leading online retailer of luggage, handbags, backpacks, accessories, and more!

Prime Student 6-month Trial

Ordinary Differential Equations (Dover Books on Mathematics)

Shop eBags.com, the leading online retailer of luggage, handbags, backpacks, accessories, and more!

Shop Amazon - Sell Us Your Books - Get up to 80% Back

Practice Instructions

Unless otherwise instructed, solve these differential equations using the variation of parameters technique. Give your answers in exact terms and completely factored.

Do NOT follow this link or you will be banned from the site!

When using the material on this site, check with your instructor to see what they require. Their requirements come first, so make sure your notation and work follow their specifications.

DISCLAIMER - 17Calculus owners and contributors are not responsible for how the material, videos, practice problems, exams, links or anything on this site are used or how they affect the grades or projects of any individual or organization. We have worked, to the best of our ability, to ensure accurate and correct information on each page and solutions to practice problems and exams. However, we do not guarantee 100% accuracy. It is each individual's responsibility to verify correctness and to determine what different instructors and organizations expect. How each person chooses to use the material on this site is up to that person as well as the responsibility for how it impacts grades, projects and understanding of calculus, math or any other subject. In short, use this site wisely by questioning and verifying everything. If you see something that is incorrect, contact us right away so that we can correct it.

Links and banners on this page are affiliate links. We carefully choose only the affiliates that we think will help you learn. Clicking on them and making purchases help you support 17Calculus at no extra charge to you. However, only you can decide what will actually help you learn. So think carefully about what you need and purchase only what you think will help you.

We use cookies on this site to enhance your learning experience.

17calculus

Copyright © 2010-2020 17Calculus, All Rights Reserved     [Privacy Policy]     [Support]     [About]

mathjax.org
Real Time Web Analytics
17Calculus
We use cookies to ensure that we give you the best experience on our website. By using this site, you agree to our Website Privacy Policy.