Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Differential Equations
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Transcription

  • Related Books

Lecture Comments (21)

1 answer

Last reply by: Dr. William Murray
Fri Mar 31, 2017 9:43 AM

Post by Mert Gündüç on March 30, 2017

God bless you !!

1 answer

Last reply by: Dr. William Murray
Thu Dec 22, 2016 11:19 AM

Post by waifong kao on December 19, 2016

Hi Professor Murray,
When you solve for the homogeneous equation, what would happen if you end up with imaginary roots, double roots, or none?


1 answer

Last reply by: Dr. William Murray
Fri Jul 10, 2015 12:39 PM

Post by matt kruk on July 8, 2015

hi professor what method would you use to solve for the homogeneous solutions in example 1 just curious

1 answer

Last reply by: Dr. William Murray
Thu May 21, 2015 9:06 PM

Post by Ji Yun Hwang on May 19, 2015

Hi Dr.Murray, First of all, thank you so much for the clear explanation on the video.
I have a quick question about Wronskian equation.
If the Wronskian gives zero value, then is it impossible to find y particular equation?
If then, why is that?

1 answer

Last reply by: Dr. William Murray
Wed Mar 18, 2015 8:06 PM

Post by Edward Gutierrez on March 15, 2015

Don't know where else to ask this.
I'm watching the lectures for Differential Equations and the titles in my book are different than some in the course curriculum. I don't know if just doesn't have these lessons, or if they are just somewhere in other lectures. I used the search feature, but am unable to find any of the keywords. Please help.
I'm looking for

SECTION:The super-position principle
SECTION: Variable-Coefficient Equations

SECTION:Differential Operators and the elimination method for systems

SECTION: Basic theory of Linear Differential Equations
SECTION: Homogeneous linear equations with constant coefficients
SECTION: Undetermined coefficients and the Annihilator Method

3 answers

Last reply by: Dr. William Murray
Wed Dec 3, 2014 6:28 PM

Post by Josh Winfield on November 29, 2014

You said that this method is used to solve linear, second-order, inhomogeneous, constant coefficient DE. However in example 1 it does not seem to be constant coefficient, why is this?

1 answer

Last reply by: Dr. William Murray
Thu Mar 27, 2014 6:18 PM

Post by Mohamed Badawy on March 25, 2014

Hey Dr. Murray,

Same the same thing Hee Jong Kim, can be said for example 4. I had my y_hom=c1e^(-2t)+c2e^(-t)

But at min 32:39 you were going to say r+2, and then changed your mind, is there a reason for that? is my general solution of y_hom=c1e^(-2t)+c2e^(-t) incorrect?

2 answers

Last reply by: Dr. William Murray
Thu Jul 18, 2013 8:34 AM

Post by mateusz marciniak on July 9, 2013

hi professor in example 5 when you were solving for u1 by taking the integral of u1 prime you did a u substitution, i found it strange since the u and du (in your example s & ds) were the same thing leaving just the sine to be integrated, are you allowed to do that because by instinct i would have done integration by parts


1 answer

Last reply by: Dr. William Murray
Wed May 22, 2013 3:53 PM

Post by Hee Jong Kim on May 22, 2013

Hello, ProfessorMurray

I think example 2's Wronskian of the solutions can be vary. Depending on the arbitrary y_nom, W can be 1 as well if I put y_nom = c1cos(t)+c2sin(t).
Am I missing something or correct?

Thank you for your great lecture! I wish there's second order DE application lectures as well.

Inhomogeneous Equations: Variation of Parameters

Inhomogeneous Equations Variation of Parameters (PDF)

Inhomogeneous Equations: Variation of Parameters

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Lesson Overview 0:31
    • Inhomogeneous vs. Homogeneous
    • First Solve the Homogeneous Equation
    • Notice There is No Coefficient in Front of y''
    • Find a Particular Solution to the Inhomogeneous Equation Using Variation of Parameters
    • How to Solve
    • Hint on Solving the System
  • Example 1 7:27
  • Example 2 17:46
  • Example 3 23:14
  • Example 4 31:49
  • Example 5 36:00

Transcription: Inhomogeneous Equations: Variation of Parameters

Hi welcome back to, I’m Will Murray doing the differential equations lectures.0000

Today we are going to talk about inhomogeneous equations and the method of variation of parameters.0005

There are 2 ways to solve inhomogeneous equations in the last lecture we learned the method of undetermined coefficients and we worked through that very carefully.0011

Today we are going to learn a totally different method which is called variation of parameters, let us see how that works out.0022

To solve the linear second order inhomogeneous, that is really the key word here, inhomogeneous constant coefficient differential equation, Y″ + bY′ + cy=g(t).0032

The key part here is that inhomogeneous, remember homogeneous means you have a 0 on the right hand side, inhomogeneous means that you have a function here that is not 0, a g(t).0046

We are going to solve the homogeneous equation first by the methods of earlier lectures, remember we had several lectures on how to solve homogeneous equations.0058

If you do not remember how to do that, maybe go back and check the earlier lectures in the differential equation series and what you will get is a homogeneous solution c1 y1 + c2 y2.0070

Before we go on I want to emphasize one point here, you will notice here that there is no coefficient in front of the Y″.0083

That is going to be a key point to make some of the equations later on work out.0092

If you are trying to solve one of these equations and you do have a coefficient in front of the Y″, what you want to do is divide that away any coefficient here.0097

Let us see some examples of that and that really does matter and it is something that can really easily lead you into mistakes when you are solving these things, we will be careful with that.0116

First you solve the homogeneous equation, it means you set the right hand side equal to 0, that is what homogeneous means.0127

Using what we learned about the characteristic equation and complex roots from repeated roots, all that business took us several lectures to unfold to get a homogeneous solution c1 y1 + c2 y2.0136

Let me show you where you go from there, you want to find a particular solution to the inhomogeneous using what is called variation of parameters.0151

What that means is where we had c1 before and c2, we are going to replace those by generic functions u1(t) and u2(t).0161

We do not know what the u1 and u2 are but we are going to replace those by functions and that is going to form our particular solution.0174

Here is how you figure out what u1 and u2 are, you solve this system y1 u1′ + y2 u2′=g.0185

Let me stress here what is known and what is unknown, the known is the y1 and y2.0204

You know that because you got those from your homogeneous solution which you already solved.0215

You also know (g), because that came from the g(t), that is how get this g.0224

What you do not know and what you are trying to solve for are the u1 and u2, remember the u stands for unknown here.0232

Since you do not know what u1 and u2 are, you do not know what their derivatives are either and you want to think of the 2 variables here as being u1′ and u2′.0243

We have 2 equations and unknown here, it is like an algebraic system that you solved in high school algebra but it is actually trickier than that,0254

Because all of these things are functions instead of just constants and numbers.0264

Let me walk you through how you would solve these things, you solve the system for u1 and u2′.0270

That just tells you the derivatives of u1 and u2, then you have to integrate u1′ and u2′ to get u1 and u2.0278

Once you figure out those, you plug those in to your original guess for the particular solution and you make those the coefficients of y1 and y2.0289

Remember those will be functions of (t), it is not c1 y1 + c2 y2, they are not constants anymore, they are functions of (t).0298

I want to expand a little bit on this business of solving the system for u1′ and u2′ because that can be a little unpleasant, it is not as easy as solving systems in high school algebra.0309

I will be gave a short hand way of solving that, you got find what is called the Wronskian of the 2 homogeneous solutions.0321

Wronski was a Polish mathematician so the Wronskian is named after him.0331

It means that you set up this little matrix of y1 and y2 and then on the second line you put their derivatives y1′ and y2′.0336

Then you take the determinant of this matrix which means you cross multiply y1 × y2′ and y2 × y1′ and you subtract those.0347

You get this determinant y1 y2′ – y2 y1′.0360

The way you can find u1′ and u2′ is you plug in that determinant that you just figured out in the denominator and the numerator you have y2 and that (g).0368

Remember that was from the right hand side of the original differential equation Y″ + bY′ +cy=g(t) that is where the (g) comes from.0383

And the y1 and y2 come from your homogeneous solutions.0396

That is kind of a formulaic way you can find u1′ and u2′ but you still have to integrate them to get u1 and u2.0402

And then you take those u1 and u2 and plug in to your guess for the particular solution u1 y1 + u2 y2.0423

There are several steps here we will go through some examples so you will get a chance to get more comfortable with this.0440

Let us go ahead and jump in to the examples.0446

We are starting with the homogeneous differential equation (t2 Y″ – t) × (t + 2Y′) + (t + 2y)=0.0448

We are given the general solution there, the homogeneous solution is c1 t + c2 tet and then we are asked to find the general solution to the inhomogeneous differential equation.0460

It is the same stuff on the left hand side but inhomogeneous means the right hand side is not 0.0477

We replaced it with 2tq, let us go ahead and see how that one works out.0483

I wanted to give myself a new clean slate here.0498

Remember a key part of solving these things using variation of parameters is that you can not have a coefficient on the Y″.0501

Here we do have this coefficient so right away I’m just going to divide the whole equation by t2.0510

I get Y″ -, now t/t2 is 1/t, I will just write t + 2/t Y′ + t + 2/t2y = t3/t2 is just t.0518

What I did there was I divided away that t2 so I will have a nice clean Y″ with no coefficient there and that means my g(t) is 2t, that is the g(t).0541

The homogeneous solution is where you get your y1 and y2, so that is y1 and that is y2.0560

I’m going to follow the solution hint that I gave you in the lesson overview where we find the Wronskian of y1 and y2.0569

That means you write the original equations on the first line, y1 is t and y2 is tet.0579

On the second line you take their derivatives, the derivative of t is 1, derivative of tee we got to use the product rule on that.0591

It is t × the derivative of et, so that is tet + et × the derivative of t, that is just et × 1.0600

That is our Wronskian and we need to take the determinant of that, which is t2 et + tet- the back diagonal tet.0621

Those 2 terms cancel out and we get t2 et, that is our Wronskian determinant.0646

Remember our formula for u1′ is –g × y2/ the Wronskian, so that is negative.0655

My g was 2t, 2t × y2 is tet, I divide that by the Wronskian determinant which is t2et.0669

It looks like I have a t2 cancelling and an et cancelling, I will just get -2 there and that was my u1′.0688

I integrate that to get u1, integrate that would respect to t will get 2t.0698

You do not need to add constants when you are doing these integrals, ultimately our particular solution is going to be u1 y1 + u2 y2.0706

If I added a constant to u1, I would end up just getting more constant multiples of y1 in my particular solution which would just replicate terms from my homogeneous solution.0722

There is no point in adding constant to u1 here.0737

U2′, remember our formula back from the lesson overview is (gy) 1/ the Wronskian determinant.0741

Our g is 2t, our y1 comes from here, is t, divided by t2et and I get 2.0754

The t’s are all cancelled but I still have this et in the denominator, that is the same as multiplying by e-t.0771

The integral of u2′, the integral of 2e-tdt which is negative to e-t, not dt anymore because I have done the integral.0783

I do not need to add a constant when I do that integration, my particular solution is u1 y1 + u2 y2 which is -2t, that is u1 × y1 is t + u2 is -2 e-t and y2 is tet.0801

This actually simplifies down a bit, we get -2t2, the e-t and et cancel each other out (-2t).0838

Let me point something out, this -2t part is actually this replicates a term of the Y homogeneous there.0850

It means that it is really not contributing anything to the particular solution.0874

If you ran it through the differential equation you just get 0 because it is a homogeneous solution.0877

We can omit, we can leave that part off.0886

Which means when we go for the general solution I can leave that part off, it is the homogeneous solution + the particular solution just like before.0896

It is c1 t + c2 tet , and now my particular solution I can leave off the -2t because it is already built in to this part -2t2.0908

We have solved our very first problem using variation of parameters.0931

Let me just recap how that worked out here, first thing we have to do is get rid of this t2.0942

We did not want any coefficient in front of the Y″ so I divided it out and that meant that the term on the right hand side became 2t, so that was the g(t) that I used there.0947

Then I wanted to use my formulas for variations of parameters, first thing I have to do for that was to build this Wronskian matrix.0960

Which means I take the 2 functions from the homogeneous solution t and tet, write down their derivatives and get a 2 by 2 matrix, take its determinant by cross multiplying.0968

That simplify down to t2 et and then I used my 2 formulas for u1′ and u2′ which reduced down to -2 and 2e-t.0982

Integrate then to get u1 and u2, then I plugged it back into our guess for the particular solution which means that you take u1 and u2 and you multiply them by y1 and y2.0995

That is what I’m doing here, I noticed that one term of the particular solution was actually a copy of this term of the homogeneous solution.1011

I decided to leave it out because it is already built in to the homogeneous solution, I leave that part out and I added my particular solution back to the homogeneous solution to get my general solution.1021

At this point, if I have initial conditions I would use them to find the values of c1 and c2.1040

In this case I was not given an initial condition, I’m not going to find c1 and c2.1054

I’m just going to stop with my general solution.1060

Let us move on, for the inhomogeneous differential equation Y″ + y= tan t, we want to solve the corresponding homogeneous equation and find the Wronskian of the solutions.1067

The homogenous equation means you take the right hand side and you set it equal to 0, that is Y″ + y is equal to 0.1084

The characteristic equation, this is actually one that sometimes trips students up because they will say r2 + r=0.1095

That is not correct, remember the r term corresponds to the Y′ term not the y term, that is incorrect.1104

Let me show you, the correct one would be r2 + 1 =0, you will get r2=-1, r= i or -i.1115

Remember we have a formula back when we got complex roots to the characteristic equation, you can look that up a few lectures back when we have homogeneous equations.1131

There was a lecture called complex roots, it is said that when you have a + bi then you r solution is c1 eat cos.1142

I think we might have listed cos first, we might have listed sin first, it does not matter you can list either one first, + c2 eat cos(bt).1161

In this case our a is 0 and our b is 1, because we got 0 + 1i and 0-1i, these ea t terms that just gives you e0.1176

Those terms just turn into 1 and our homogeneous solution is c1 sin(1)t, just c1 sin(t) + c2 cos(t).1192

We got a nice homogeneous solution, it is not the solution to the inhomogeneous equation yet but it is a nice homogeneous solution.1214

We are also asked to find the Wronskian of the solutions, remember we set up this little matrix sin(t) cos(t) and then we take the derivative.1228

The derivative of sin is –cos and the derivative of cos is sin.1246

Reverse those, the derivative of sin(t) is +cos(t) and the derivative of cos is –sin(t).1259

To take the determinant we cross multiply there.1269

We get –sin2 and this one is positive but there was a negative in there so we get –sin2.1274

The back direction you always subtract so –cos2 and we get -1 for the Wronskian.1286

Let me mention here that this is a slightly unusual situation.1300

Normally the Wronskian will be a function of t not just a simple number, this was a nice one and it just simplify down to a number.1307

Normally the Wronskian will be a function of t, it will be et or cos (t) or something like that.1324

We have the Wronskian and we have our homogeneous solution.1331

That is all was have to do for this example but you want to make sure you really understand this example because we are going to use this one to solve the next one as well.1336

Let me recap quickly how this worked out, we wrote down the characteristic equation.1345

This is the correct form of the characteristic equation and that one I was just trying to highlight a common mistake that student make.1350

We found the roots, looked back at our old form for complex roots to find the generic form of the homogeneous solution.1358

This is plugging in a=0, b=1, and we get our homogeneous solution and that was the y1, that was the y2.1368

We set up our little matrix, found the derivatives and cross multiplied, simplified down to -1 as our Wronskian.1380

We are going to use all these to solve the inhomogeneous equation in the next example.1388

In example 3, we are going to keep going from example 2 where we have the inhomogeneous differential equation Y″ + y= tan(t).1395

Let me just remind you that we already solved the homogeneous equation in the previous example.1408

Here is what we figured out in example 2, the homogenous solution is c1 sin(t) + c2 cos(t).1416

That means our y1 is sin(t) and y2 is cos(t).1432

We also figured out the Wronskian of those 2 solutions, the Wronskian matrix turn out the derivative, the determinant turned out to be -11437

We are going to use all that to build our inhomogeneous solution using variation of parameters.1446

Let me show you how that one goes, u1′, here is our generic formula that we had at the very beginning of the lecture its –y2g/the Wronskian.1453

In this case, our y2 we got up above is cos(t) and our g, that is the right hand side of the original differential equation, that is g(t) right there.1469

This is tan(t) and our Wronskian is -1 so the negative is cancel we got cos(t) and tan(t) I’m going to write that as sin(t)/cos(t).1484

The cos is cancel and we just get sin(t), that was just u1′.1502

To get u1, we have to integrate that, the integral of sin(t)dt is –cos(t).1508

Remember, when we do this integration you do not need to add the arbitrary constant, if you did then you would end up just like replicating copies of your homogeneous solution.1518

That is why you do not have to worry about the arbitrary constant.1529

U2′, again using our formula from the beginning of the lecture is y1 g/the Wronskian.1532

Our y1 was sin(t) and our g was tan(t), Wronskian is -1.1543

Now, I put the negative outside, sin(t) and tan(t) is sin(t)/cos(t) and this is –sin2t/cos(t), that is a little uglier.1555

I’m going to write that as –sin2 as the same as 1 – cos 2(t)/cos(t).1577

I will distribute the negative signs so I get cos2t – 1/cos(t).1588

That is the same as cos(t), if I break up the fraction, -1/cos(t) is sec(t).1597

That was all, remember u2′, we still have not actually found u2.1613

To get u2 we take the integral of that, so let me keep going up here.1618

U2 is the integral of cos(t) – sec(t)dt, so we got to integrate that.1622

The integral of cos is sin(t), the integral of sec(t) is really not something you want to figure out on the spot.1635

That is just something that you have to remember from either calculus 1 or calculus 2.1644

If you do not remember that, you might want to check back at the lectures for calculus 2 in particular, we figured out what the integral of sec(t) is.1650

It was the natural log of sec(t) + tan(t).1659

Now we are going to take u1 and u2 and we are going to plug in our generic formula for the particular solution.1676

That is u1 y1 + u2 y2 and u1 is –cos(t) that is from here, y1 from here is sin(t).1685

Now u2 is this long expression sin(t), I will multiply it through by y2 which is cos(t) as I go along, + sin(t) cos(t) – cos(t) natural log of sec(t) + tan(t).1706

That is our particular solution but it works out pretty nicely because you can see we got a –cos(t) sin(t) here and then a +sin(t) cos(t)so those cancel out.1732

It simplifies down to –cos(y) × the natural log of sec(t) + tan(t).1744

That was our particular solution and to get the general solution, remember it is the homogeneous solution + the particular solution.1757

I go back to, my homogeneous solution is c1 sin(t) + c2 cos(t) + -cos(t) × natural log of sec(t) + tan(t).1770

You do not put an arbitrary constant on that particular part.1791

You just have arbitrary constants on the homogeneous part, the particular part was very carefully designed to work exactly right for the inhomogeneous equation.1798

It does not get an arbitrary constant.1808

To summarize what we did here, we started out with our homogeneous solution which we found back in example 2 and the previous examples.1813

You can check back there if you do not remember where that comes from, c1 × sin(t), c2 cos(t), sin(t) is y1 and cos(t) is y2.1823

We had these generic formulas for variation of parameters, u1′ is –y2g/the Wronskian and u2′ is y1g/the Wronskian.1834

For each of those we get our g(t) over here from the right hand side of the equation.1845

We plug in what y1 and y2 are I here and here and work them out.1850

That was u1′ so we had to take its integral to get u1, that was our u1.1856

This was u2′, a little bit of trigonometric cleverness and then we had to take the integral of that to get u2.1866

We plug those back into our generic form for the particular solution u1 y1 + u2 y2.1875

It turned out after we plugged in what u1 y1, u2 y2 where and got a nice cancellation here.1882

That simplified down and gave us a slightly simpler form for the particular solution.1889

We added that back on to the homogeneous solution c1 sin(t) + c2 cos(t).1894

That plus our particular solution gave us the general solution to the differential equation.1901

On our next example, we are going to start with the inhomogeneous differential equation Y″ + 3y′ + 2y=sin(et).1909

We are going to solve the corresponding homogeneous equation and we are going to find the Wronskian of the solutions.1919

The homogeneous equation means that you take the right hand side and you just set it equal to 0, you throw away whatever you see over there.1926

We are going to throw away the sin(et) and we are joust going to get Y″ + 3Y′ + 2y =0.1935

We learned in a few lectures back how to solve this kind of thing, you just set up the characteristic equation r2 + 3r + 2=0.1945

That factors nicely, that is r + 1 × r + 2=0.1957

I get r=-1 or -2, if you did not want to factor it, you could also do this by the quadratic equation.1971

My own personal feeling is that the quadratic equation is slight more susceptible to mistakes than the factoring method, but if you are more comfortable it is certainly ok to do it that way.1979

We get the homogeneous equation is c1 e-t that is from the -1 + c2 e-2t that is from the -2.1991

We got our homogeneous equation and that is a good step toward what we want.2005

What we are asked to do now is to find the Wronskian of the solution.2014

That means that you make a little matrix, e-t and e-2t and then find their derivatives.2019

Well, derivative of e-t is – e-t, derivative of e-2t is -2e-2t.2030

We are going to find the determinant of that matrix and that means we cross multiply here.2039

Positive direction there gives us -2e-t × e-2t, remember you add the exponents so that is e-3t.2047

In the negative direction we cross multiply and we get -e -2t, e-t, so that is e-3t.2062

But then we are subtracting it, so -e-3t, that turns into a plus and we get -2 +1, -e-3t as our Wronskian.2073

That is what we got by solving the inhomogeneous equation and finding the Wronskian of the solutions.2092

You want to hang on to this because the next example is to solve,2098

Sorry that was for solving the homogeneous equation.2102

We are going to use this same equation for the example and we will solve the inhomogeneous equation.2105

Let me recap quickly how we did this, we started with the homogeneous equation which means you just throw away the right hand side, set it equal to 0.2112

Solve that using the characteristic equation, factor it down, get a couple of roots, the roots become the exponents, the coefficients and the exponents, we get our homogeneous equation.2122

That is going to be the y1, that is going to be the y2, and then we set up our little matrix here with y1 and y2 and the derivatives of each one.2134

We multiply the positive forward direction, we multiply the negative backwards direction, add them up and we get our Wronskian there.2147

Hang on to these solutions, we are going to use them in the next example.2157

For example 5, we are going to solve the inhomogeneous differential equation Y″ + 3Y′ + 2y= sin et.2162

Let me remind you that we have solved the homogeneous equation for this one in the previous example.2173

Let me bring you up to date with what we have learned from example 4 here.2180

If you have not looked at example 4 recently, just go back and read that over so this would not be a complete mystery.2188

Example 4 told us that the homogeneous solution to this equation was c1 et + c2 e-2t.2194

That was our y1 and that was our y2 and we already found the Wronskian of those which turned out to be –e-3t.2213

We are in pretty good shape to get started on the inhomogeneous equation here which means we are going to use variation of parameters.2226

Using our formulas for variation of parameters u1′ is –y2 × g/the Wronskian, so –y2 is e-2t.2234

G is sin(et), remember g is whatever you see on the right hand side there, so sin(et), got that over here from g(t).2253

Our Wronskian determinant is –e-3t, this does simplify a bit.2270

First of course the 2 negative cancel each other, this e-3t, if you bring it up into the numerator it becomes e3t.2279

We have e3t, e-2t, just gives you e1t × sin(et), that simplifies a bit.2292

To get u1 itself, that was just the derivative we found there, we need to integrate e1t × sin(et) dt and we got to do a little substitution there.2303

We are going to do a little s substitution, I can not use u, normally I like to use u for u substitutions but we are already using the u’s for something else here.2317

I’m going to use another variable and I picked s, s = et and ds is going to be derivative of e and t is just eedt.2328

Here I have sin(s) and this ee dt just give me a ds and the integral of sin(s) is –cos(s), which is –cos(et),.2340

That was a little substitution, it might be worth reviewing the calculus 1 lectures for substitution here on if you are a little rusty on how to make substitutions in integration.2363

Let me show you, the next step is to figure u2′.2376

Again, using the formulas from the beginning, we have this is y1g/the Wronskian determinant.2380

Our y1 was e-t, g is still sin(et) and we are dividing that by –e-3t, that is the Wronskian determinant.2389

If I simplify that a bit, I will pull the negative outside and I will get e-3t when it comes up to the numerator turns into e3t.2407

We got e3t and et that gives us e2t × sin(et) and that is just u2′.2419

To get u2 I have to integrate that so u2 is the integral of that, couple of negative outside so e2t × sin(etdt).2431

We can solve this one using the same substitution, I will get my s is et, ds is etdt.2447

This part will give me a sin(s) and now this e2t, I’m going to write that as et × et.2462

The reason I’m doing that is I need one et for my (ds), if I take on et to be (ds).2472

Those were the collectively give me my (ds), I still have one et left so there is still an (s) left over there.2482

I’m integrating s sin(s)/(ds) and that is still a little ugly, I’m going to use integration by parts here.2491

That was something we covered in the calculus 2 lectures here on, you can check back and look up your material on integration by parts if you are a little bit rusty on that.2499

I’m going to the quick version, the integral of s sin(s), let me use tabular integration here.2510

I’m going to write derivatives on the left, t he derivative of s is 1, the derivative of 1 is 0.2520

The integral of sin(s) is –cos(s), and the integral of cos(s) is sin, so the integral of –cos(s) is -sin(s)2525

Then I make little diagonal lines, put a + and – and what I get here, I still have this one negative from the outside.2539

I’m going to read along the diagonal lines there, -s cos(s) + because we have couple of minus there that cancel each other sin(s).2550

If I distribute my negative back in, and by the way remember we do not have to include the (c) when we are integrating to get this u’s.2567

That is one nice thing you do not have to worry about, if I distribute my negative back in I will get +s cos(s) and let us remember that s was et.2575

Et × cos(et) –sin (s) because there was a negative on the outside, - sin (et), that was my u2 there.2587

Now I found u1 and I found u2, I’m ready to just plug them in to the generic form for my particular solution which is u1 y1 + u2 y2.2606

U1 is –cos(et and that gets multiplied by y1 which is e-t + u2 is et cos(et) – sin(et).2628

All of that gets multiplied by y2 which is e-2t, what happens here if I distribute that e-2t here.2663

E-2t × et is e-t × cos(et).2675

I have got e-tcos(et) here, I’m not forgetting that other term, we will get to that in a second.2687

But over here we got -cos(et) × e-t.2694

Those 2 terms cancel each other out, this is pretty common in variation of parameters.2699

You will get 2 terms that cancel each other out in some funny way, it is not always obvious when it happen but it is nice when it does.2704

The only term I have left here is coming from these 2 factors, -(e2t) × sin(et), it is the way it simplifies down there.2713

That is my particular solution, my general solution remember is the homogeneous solution + the particular solution.2730

That is the homogeneous solution we already figured out back in example 4 was e-t + c2 e-2t.2746

I’m going to add on the particular solution that we just worked out that is negative, -e-2t sin(et).2756

That is my general solution since I do not have initial conditions, I do not need to figure out what c1 and c2 are.2772

You do not put a constant on a particular solution, just on a homogeneous solution.2781

That is my general solution and I’m done with that one.2787

Let me recap what we did there, we started out with the homogeneous solution which we found from example 4.2792

If that was a mystery where that came from, go back and watch the video for example 4 and you will see where that comes from.2799

Read off y1 and y2 there and we had also figured out the Wronskian matrix in the previous example.2808

That is still coming from example 4, we have our Wronskian there and then we used our formulas for u1′ and u2′ in terms of y1 and their Wronskian matrix and y2.2818

There is a (g) in there, and we get the (g) from the right hand side of the original differential equation, that is where that (g) comes from, here and here.2832

We simplify those down that gives us u1′ and u2′ and to get u1 and u2 themselves you have to integrate those.2842

That is what we are doing here is we are integrating with a little substitution.2853

First one is not a bad integral to get u1 by itself, remember you do not have to add a constant when you are doing these integrals to find u1 and u2.2857

U2 is a little messier, we had to integrate this and we did a substitution first and then even after substituting we had an integral that we needed to solve by integration by parts.2868

That is what I was doing up here, this little table is doing the integration by parts to integrate s sin(s).2880

If that is fussy for you, you might want to go back and check the lectures for calculus 2 here on

There is a whole lecture on integration by parts where you get some practice with that.2894

After we did that integration by parts we got to substitute back and distribute the negative sign (s is et) and we got our u2.2900

We took u1 and u2 and plug them into our generic form for the particular solution, so there is our u1 and u2.2910

Multiply them by y1 and y2, it was nice because some terms cancel, that term cancel with that term here.2919

It simplify down to a single term here, that was our particular solution.2928

To find the general solution remember you add the particular solution back to your homogeneous solution.2934

There is our homogeneous solution again and there is our particular solution being added on to it.2940

That is how variation of parameters works and that is the end of this lecture in the differential equation series.2949

I’m very happy that you are watching, my name is Will Murray and you are watching

Thanks for joining us, bye.2961