I have to solve y" = x/y where y'(0)=1 & y(0)=2 By Taylor series method to get the value of y at x=0.1 and x=0.5. Use terms through x^5 but am having trouble enough solving the ODE to begin with.

Any ideas would be most appreciated!!

Cheers

Sep 16th 2008, 12:06 AM

CaptainBlack

Quote:

Originally Posted by Watto81

Hi all,

I have to solve y" = x/y where y'(0)=1 & y(0)=2 By Taylor series method to get the value of y at x=0.1 and x=0.5. Use terms through x^5 but am having trouble enough solving the ODE to begin with.

Any ideas would be most appreciated!!

Cheers

Put

and from the initial conditions you know that

Then:

Expand the left hand side as far as the term in (that will give you all the coefficients you will need to solve for the coefficients up to and including ) and equate coefficients of like powers of x on both sides.

RonL

Sep 16th 2008, 02:50 AM

Watto81

Thanks for the reply but you've lost me already. how does that solve the ODE?

Sep 16th 2008, 03:02 AM

CaptainBlack

Quote:

Originally Posted by Watto81

Thanks for the reply but you've lost me already. how does that solve the ODE?

You do not solve the ODE as such, you are working with a series solution which we suppose to be:

Then we explore the consequences of our supposition that this satisfies the ODE, in this case we have:

We expand the product on the left using the assumed series, and then equate coefficients of like powers on both sides of this equation to solve for as many coefficients as we need.

The initial conditions for the ODE provide us with starting values for the 's (that is , and ).

RonL

Sep 16th 2008, 04:33 AM

Watto81

Yeah i've been looking at this with some friends and we're gonna need it explained like we're 2 yr olds (Headbang) as we can't get our heads around it at all.

Sep 16th 2008, 04:46 AM

Jameson

Quote:

Originally Posted by Watto81

Yeah i've been looking at this with some friends and we're gonna need it explained like we're 2 yr olds (Headbang) as we can't get our heads around it at all.

I don't follow this completely, but the general idea is straightforward enough I think.

Do you see that CaptainBlack just wrote a general Taylor expansion for y(x)? Then he took the second derivative for a few terms. You're D.E. says that yy''=x, so he multiplied these two series expansions. They are infinite expansions but you only need x^5 as your highest term, and when you multiply the LHS of course the powers will add so you really do not need that many terms.

Does that part make sense? Writing y and y'' in terms of a general Taylor expansion.

The only part I'm not seeing is when CB says after expanding the product on the LHS equating powers to get coefficients. Equating the product with what? Just x?

Sep 16th 2008, 07:33 AM

CaptainBlack

Quote:

Originally Posted by Jameson

I don't follow this completely, but the general idea is straightforward enough I think.

Do you see that CaptainBlack just wrote a general Taylor expansion for y(x)? Then he took the second derivative for a few terms. You're D.E. says that yy''=x, so he multiplied these two series expansions. They are infinite expansions but you only need x^5 as your highest term, and when you multiply the LHS of course the powers will add so you really do not need that many terms.

Does that part make sense? Writing y and y'' in terms of a general Taylor expansion.

The only part I'm not seeing is when CB says after expanding the product on the LHS equating powers to get coefficients. Equating the product with what? Just x?

The right hand side is also a power series which just happens to have only one non zero coefficient, so we are just equating coefficients of power series (in fact polynomials by that point).

To be honest if I do much more of this problem I will have solved it for you, and that is not my intention.

RonL

Sep 16th 2008, 07:45 AM

CaptainBlack

Quote:

Originally Posted by CaptainBlack

Put

and from the initial conditions you know that

Then:

Expand the left hand side as far as the term in (that will give you all the coefficients you will need to solve for the coefficients up to and including ) and equate coefficients of like powers of x on both sides.

RonL

so:

Hence equating the coefficients of corresponding powers of x on both sides of this; we have:

which you solve for the 's

RonL

(Check the algebra!)

Sep 17th 2008, 04:33 AM

Watto81

So i've equated the co-efficients, are these the values for y"', y"" & y""'?

Sep 17th 2008, 04:45 AM

CaptainBlack

Quote:

Originally Posted by CaptainBlack

so:

Hence equating the coefficients of corresponding powers of x on both sides of this; we have:

which you solve for the 's

RonL

(Check the algebra!)

So we have , so we have:

so and

RonL

(again check the algebra)

Sep 17th 2008, 04:47 AM

CaptainBlack

Quote:

Originally Posted by Watto81

So i've equated the co-efficients, are these the values for y"', y"" & y""'?

No they are the coefficients of the corresponding powers of x in the power series expansion of y(x)