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

  • Thread starter s3a
  • Start date
  • #1
s3a
800
8

Homework Statement


Solve the following initial-value problem, using variation of parameters.:
2y'' + y' - y = x + 1; y(0) = 1, y'(0) = 0

Homework Equations


Variation of parameters: u_n' `=` W_n/W

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

Answers and Replies

  • #2
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
13,690
6,183
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.
 
  • #3
s3a
800
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?
 
  • #4
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
13,690
6,183
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.
 
  • #5
s3a
800
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

  • #6
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
13,690
6,183
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:
  • #7
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,547
760
@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.
 
  • #8
s3a
800
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?
 
  • #9
vela
Staff Emeritus
Science Advisor
Homework Helper
Education Advisor
14,655
1,292
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.
 
  • #10
s3a
800
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! :)
 
  • #11
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,728
@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.
 

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

Replies
6
Views
1K
Replies
3
Views
9K
  • Last Post
Replies
2
Views
5K
Replies
11
Views
2K
  • Last Post
Replies
2
Views
1K
Replies
2
Views
566
Replies
7
Views
8K
Replies
8
Views
1K
Top