Numerical Methods: Taylor Series for Diff Equation

Click For Summary

Homework Help Overview

The discussion revolves around solving a differential equation using Taylor series expansion. The equation involves second derivatives and is subject to initial conditions at a specific point. Participants are exploring how to derive coefficients for the Taylor series from the given differential equation.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the method of assuming a solution in the form of a Taylor series and the need to differentiate to find higher-order derivatives. There are questions about the application of implicit differentiation techniques and how to handle derivatives in the context of the equation.

Discussion Status

Some participants have offered guidance on differentiating terms and deriving the necessary coefficients for the Taylor series. There is a mix of attempts to clarify the differentiation process and to confirm the correctness of derived expressions. Multiple interpretations of the differentiation steps are being explored.

Contextual Notes

Participants express uncertainty regarding the differentiation of terms involving products of functions and their derivatives, indicating a need for clarity on the application of the chain rule and product rule in this context.

phyzmatix
Messages
313
Reaction score
0

Homework Statement



Solve the differential equation

\frac{dy^2}{dx^2}=xy^2-2yy'+x^3+4

where

y(1)=1
y'(1)=2

by means of the Taylor-series expansion to get the value of y at x=1.1. Use terms up to x^6 and \Delta x=0.1

The Attempt at a Solution



I'm unsure as to how I should go about determining the coefficients for the Taylor expansion from the given equation. What I mean is that I don't know how to apply implicit differentiation techniques to higher order derivatives as in this case. Do we treat the derivatives in the equation as if they were variables? In other words, should I differentiate as follows (I'm using brackets to easier relate the the original term above to my subsequent derivative of said term):

\frac{dy^3}{dx^3}=(y^2+2xyy')-(2y'+2yy'')+3x^2

?

Perhaps there's even an easier way that I'm missing?
Any help will be greatly appreciated.

phyz
 
Last edited:
Physics news on Phys.org
Anybody?
 
Is the idea to assume a solution in the form of a Taylor series and solve for the coefficients? If so, just write out the series, differentiate it to get y' and y'', plug them into the differential equation, and then solve for the coefficients by matching powers of (x-1).
 
Hi Vela!

Well, following the simple example in my textbook (why do they always give the straightforward examples?) we use a standard Taylor series expansion

y(x)=y(x_0)+y'(x_0)(x-x_0)+\frac{y''(x_0)}{2!}(x-x_0)^2+\frac{y'''(x_0)}{3!}(x-x_0)^3+\frac{y^{(4)}(x_0)}{4!}(x-x_0)^4+\frac{y^{(5)}(x_0)}{5!}(x-x_0)^5+\frac{y^{(6)}(x_0)}{6!}(x-x_0)^6

where, if we let h=x-x_0 we'll end up with

y(x)=y(x_0)+y'(x_0)h+\frac{y''(x_0)}{2}h^2+\frac{y'''(x_0)}{6}h^3+\frac{y^{(4)}(x_0)}{24}h^4+\frac{y^{(5)}(x_0)}{120}h^5+\frac{y^{(6)}(x_0)}{720}h^6

after which the idea then is to determine the derivatives of y(x) in order to obtain values for the coefficients of h, i.e. we know that

y(1)=1
y'(1)=2

so that

\frac{d^2y}{dx^2}(1)=xy^2-2yy'+x^3+4=(1)(1)^2-2(1)(2)+(1)^3+4=2

we must then obtain the equation for y''' from y'' and substitute the values for

y(1)=1
y'(1)=2
y''(1)=2

into this equation, giving us the value for y''' which will help us determine the coefficient of h^3 in our Taylor series. So we continue until we have all the coefficients, finally substituting the value x=1.1 into the place of h to obtain the desired value of y.

Does that make sense?

My issue is that I do not know how to differentiate

\frac{d^2y}{dx^2}(1)=xy^2-2yy'+x^3+4

...

phyz
 
phyzmatix said:

The Attempt at a Solution



I'm unsure as to how I should go about determining the coefficients for the Taylor expansion from the given equation. What I mean is that I don't know how to apply implicit differentiation techniques to higher order derivatives as in this case. Do we treat the derivatives in the equation as if they were variables? In other words, should I differentiate as follows (I'm using brackets to easier relate the the original term above to my subsequent derivative of said term):

\frac{dy^3}{dx^3}=(y^2+2xyy')-(2y'+2yy'')+3x^2
That's almost correct. Remember you're differentiating with respect to x, so when you differentiate 2yy', you get

\frac{d}{dx}(2yy') = 2(\frac{dy}{dx})y'+2y(\frac{dy'}{dx}) = 2y'^2+2yy''
 
vela said:
That's almost correct. Remember you're differentiating with respect to x, so when you differentiate 2yy', you get

\frac{d}{dx}(2yy') = 2(\frac{dy}{dx})y'+2y(\frac{dy'}{dx}) = 2y'^2+2yy''

First of all, thanks for your help, I truly appreciate it.

If you don't mind checking one last time though (I'm learning something new here, please bear with me :smile:).

We differentiated

\frac{dy^2}{dx^2}=xy^2-2yy'+x^3+4

and got

\frac{dy^3}{dx^3}=(y^2+2xyy')-(2y'^2+2yy'')+3x^2
\frac{dy^3}{dx^3}=y^2+2xyy'-2y'^2-2yy''+3x^2

Differentiating this yet again, should then give

\frac{d^4y}{dx^4}=2y\frac{dy}{dx}+(2yy'+2x\frac{dy}{dx}y')-4\frac{dy'}{dx}-(2\frac{dy}{dx}y''+2y\frac{dy''}{dx})+6x
\frac{d^4y}{dx^4}=2yy'+(2yy'+2xy'y')-4y''-(2y'y''+2yy''')+6x
\frac{d^4y}{dx^4}=4yy'+2xy'^2-4y''-2y'y''-2yy'''+6x

Am I right? If this is correct, then I think I finally get it.

Thanks again!
phyz
 
Not quite. When you differentiated 2xyy', you should get three terms, not two, because there are three factors. You also forgot to use the chain rule when differentiating 2y'2.
 
vela said:
Not quite. When you differentiated 2xyy', you should get three terms, not two, because there are three factors. You also forgot to use the chain rule when differentiating 2y'2.

Cheers Vela...This thing is going to get really, really nasty towards \frac{y}{(6)} isn't it?

Guess I have to try again...
 
Last edited:

Similar threads

  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
3K
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
2
Views
3K