Taylor Series for Solving a Simple ODE: Finding Higher Order Derivatives

In summary, the conversation discusses finding the Taylor expansion of y(x) satisfying the differential equation y'(x) = 1 - xy and the expressions for higher order derivatives. The two approaches mentioned are: assuming a Taylor series form for y(x) and plugging it into the differential equation, and differentiating the differential equation directly to find the recurrence relation for the derivatives. The second approach is used to find y''(x) and y'''(x), with the final answer being -2y'-xy''.
  • #1
LaxeyT
7
0

Homework Statement


Find the Taylor expansion y(x) satisfying: y'(x) = 1 - xy

Homework Equations




The Attempt at a Solution



So I need expressions for y''(x), y'''(x), ...etc

I can find y''(x)=-y-xy' by differentiating implicitly.
By setting y'(x)=z, then dz/dx = δz/δx+(δz/δy)(dy/dx)

However when I use the same method to try and find y'''(x) I have problems:
- partial differential of y'(x) ?
- is the (dy/dx) from the implicit formula still dy/dx or the second differential?

[Ans: -2y'-xy'']

Please tell me the technique, or give me a reference, that is used to find y'''(x) in this example?

Thanks!
 
Physics news on Phys.org
  • #2
I'm slightly confused as to what you are trying to do. If your goal is to find a Taylor series expansion for y(x), you should assume it has the form

[tex]y(x) = \sum_{n=0}^\infty \frac{a_n}{n!}x^n,[/tex]
where the factor of 1/n! is just conventional because it makes [itex]a_n = y^{(n)}(0)[/itex].

You then plug that into the differential equation, and since everything has to be zero you can work out a recurrence relation for an, which you can then try to solve.

Your approach seems to be to try to compute the [itex]y^{(n)}(0)[/itex] by repeatedly differentiating the differential equation. You could do it this way, but it won't get you the full recurrence relation for the derivatives at x = 0.

To do it your way, you don't need any implicit differentiation or even the chain rule, just the product rule. [itex]y'(x)[/itex] is just [itex]dy/dx[/itex], so if you differentiate your differential equation, you just have

[tex]\frac{d^2 y}{dx^2} = -x \frac{dy}{dx} - y.[/tex]

You could then set x = 0 to get y"(0) = -y(0) (i.e., a2 = -a0).

To get the third derivative you would just differentiate this equation directly again (with x arbitrary! Don't try to differentiate the equation with x = 0), since d(y''(x))/dx = y'''(x), and so on.
 
  • #3
LaxeyT said:

Homework Statement


Find the Taylor expansion y(x) satisfying: y'(x) = 1 - xy

Homework Equations

The Attempt at a Solution



So I need expressions for y''(x), y'''(x), ...etc

I can find y''(x)=-y-xy' by differentiating implicitly.
By setting y'(x)=z, then dz/dx = δz/δx+(δz/δy)(dy/dx)

However when I use the same method to try and find y'''(x) I have problems:
- partial differential of y'(x) ?
- is the (dy/dx) from the implicit formula still dy/dx or the second differential?

[Ans: -2y'-xy'']

Please tell me the technique, or give me a reference, that is used to find y'''(x) in this example?

Thanks!

Putting z in there just confuses things
$$y'=1-xy$$ $$
y'' =-y -xy' = -y-x(1-xy)=-y-x+x^2y$$ $$
y'''=-y'-1+2xy+x^2y' = -(1-xy)-1+2xy- x^2(1-xy)=-1+xy-1+2xy-x^2+x^3y=-2+3xy-x^2+x^3y$$
 
  • #4
Yes thanks, quite straightforward really.
Just reading my notes from a few year's ago.

thanks
 

FAQ: Taylor Series for Solving a Simple ODE: Finding Higher Order Derivatives

What is a Taylor series for a simple ODE?

A Taylor series is a representation of a function as an infinite sum of terms, with each term being a derivative of the function evaluated at a specific point. In the context of a simple ODE, the Taylor series can be used to approximate the solution to the ODE at a given point.

Why is a Taylor series useful for solving ODEs?

A Taylor series allows us to approximate a function with a polynomial, which can make it easier to find a solution to an ODE. By using a finite number of terms in the series, we can get a close approximation to the actual solution of the ODE.

How do you find the Taylor series for a simple ODE?

To find the Taylor series for a simple ODE, we first need to determine the derivatives of the function at a specific point. Then, we can use the Taylor series formula to write out the series, with each term being a derivative evaluated at that point. The more terms we include in the series, the closer our approximation will be to the actual solution.

What is the error associated with a Taylor series for a simple ODE?

The error associated with a Taylor series for a simple ODE is the difference between the actual solution of the ODE and the approximation given by the series. As we include more terms in the series, the error decreases and the approximation becomes more accurate.

Can a Taylor series be used for all types of ODEs?

No, a Taylor series is most useful for simple ODEs with a small number of terms. For more complex ODEs, other methods may be more effective in finding a solution. Additionally, a Taylor series may not converge for certain functions, making it unsuitable for those types of ODEs.

Similar threads

Replies
25
Views
1K
Replies
3
Views
1K
Replies
5
Views
2K
Replies
20
Views
2K
Replies
32
Views
3K
Replies
10
Views
2K
Back
Top