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
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
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
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