• Support PF! Buy your school textbooks, materials and every day products via PF Here!

2y'' + y' - y = x + 1; y(0) = 1, y'(0) = 0, y_p = ?

  • Thread starter s3a
  • Start date

s3a

795
8
1. The problem statement, all variables and given/known data
Solve the following initial-value problem, using variation of parameters.:
2y'' + y' - y = x + 1; y(0) = 1, y'(0) = 0

2. Relevant equations
Variation of parameters: u_n' `=` W_n/W

3. The attempt at a solution
I'm posting this thread, because I'm getting a wrong particular solution (according to Wolfram Alpha), and I can't find the mistake after reviewing my work numerous times. It doesn't matter which column, I put the fundamental set of solutions (from the complementary solution), right?

My (typed) work is attached as MyWork.pdf.

Any help in finding my mistake(s) would be greatly appreciated!
 

Attachments

PeroK

Science Advisor
Homework Helper
Insights Author
Gold Member
2018 Award
9,402
3,425
Why are you using variation of parameters? Once you have the complementary solution, it looks like an easy undertermined coefficients.

Anyway, when you do the integral, you also need to include (x+1) in the integrand. You've missed this out and just integrated Wi/W.
 

s3a

795
8
I'm using variation of parameters (instead of the method of undetermined coefficients, for example), because that's what the problem wants.

As for not including (x + 1) in each integrand, why must I do this? (I still can't see why it is not the case that I had to just integrate each W_n/W, alone.) Or, is it just a mistake in one of my two integrals?
 

PeroK

Science Advisor
Homework Helper
Insights Author
Gold Member
2018 Award
9,402
3,425
You need to include (x+1) because that's part of the technique:

[tex]v_1 = \int \frac{g(x)W_1(x)}{W(x)}dx[/tex]

But, with g(x) = x+1, you only have to look for Yp = Ax + B, and save yourself a lot of calculation.
 

s3a

795
8
Wait, now I'm really confused. My book only says v_n' `=` W_n/W, and I've done previous problems by only integrating W_n/W!

I'm attaching an example of a problem where I did just that (successfully)!

Is there something I'm missing? Did I somehow do what you're saying without realizing it, in that other problem (that I'm attaching with this post)?
 

Attachments

PeroK

Science Advisor
Homework Helper
Insights Author
Gold Member
2018 Award
9,402
3,425
Yes, I see you kept g(x) in W1/2. My mistake. I usually take it out and put (0, 1) in W1/2. To use this technique you need the coefficient of y'' to be 1. You've ended up with 2 x the correct solution.

But, the coefficients method is much easier.
 
Last edited:

LCKurtz

Science Advisor
Homework Helper
Insights Author
Gold Member
9,468
716
@s3a: Since you are apparently typing your work anyway, why not just type it here? You would get more replies and it makes it easier for us to comment on various steps.
 

s3a

795
8
@LCKurtz:
Well, technically, I'm working on a desk where it's uncomfortable to handwrite my work, so I had them already typed up.

@PeroK, Which technique needs y'' to have a coefficient of 1? Mine? If so, could I just keep doing what I'm doing and divide my particular solution by the coefficient of the highest-order derivative of y, as a general procedure for all cases?
 

vela

Staff Emeritus
Science Advisor
Homework Helper
Education Advisor
14,376
1,073
Well, the forum rules actually require that you type up the problem statement and work, not simply post images of them. I'll note that I ran across this and your other thread earlier, and I skipped over them because I didn't want to bother with opening another file just to look at your work. I know some of the other HHs do the same thing.
 

s3a

795
8
@Vela:
I remember reading that it's only bad if the image is not clear.

Having said that, I think I've found some extension to the software I use which allows me to type for myself just once, and copy over LaTex syntax into this forum, such that everybody wins.

I'll look into later for future postings.

@PeroK:
Thanks to you, I now get that all I have to do is exactly what I was doing except make sure that the coefficient of the highest-order derivative is 1, so thanks! :)
 

Ray Vickson

Science Advisor
Homework Helper
Dearly Missed
10,705
1,713
@LCKurtz:
Well, technically, I'm working on a desk where it's uncomfortable to handwrite my work, so I had them already typed up.

@PeroK, Which technique needs y'' to have a coefficient of 1? Mine? If so, could I just keep doing what I'm doing and divide my particular solution by the coefficient of the highest-order derivative of y, as a general procedure for all cases?
You seem to by typing you work in WORD. For Math that is a painful waste of time. It would be better to use LaTeX, which you could then cut and paste into a Forum input panel.

Nowadays there are user-friendly versions available, such as LyX; see, eg., http://www.lyx.org/ . This is used much like WORD, with easy input, etc., but with math writing orders of magnitude easier than in WORD. It produces LaTeX-consistent output files. The best part: it is free.
 

Want to reply to this thread?

"2y'' + y' - y = x + 1; y(0) = 1, y'(0) = 0, y_p = ?" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top