Differential equation using power series method

  • #1
Graham87
63
16
TL;DR Summary
Differential equation using power series method
I am attempting to solve this differential equation with power series
Screenshot 2023-12-20 135848.png


I came with the following solution but I doubt it is correct.
Screenshot 2023-12-20 140010.png

Screenshot 2023-12-20 140022.png


Since x=1 we get:
Screenshot 2023-12-20 140039.png

Screenshot 2023-12-20 140053.png

Screenshot 2023-12-20 140111.png

I doubt its correctness because it looks messy. Also the convergence radian R goes to 0, giving only a solution for x=0 which is not correct, since the beginning condition states y(1)=2.
Screenshot 2023-12-20 140120.png
 

Attachments

  • Screenshot 2023-12-20 140022.png
    Screenshot 2023-12-20 140022.png
    9.4 KB · Views: 26
Last edited:
Physics news on Phys.org
  • #2
If you set [itex]y(x) = \sum_{k=0}^\infty c_k(x - 1)^k[/itex] then [itex]x[/itex] cannot appear in the recurrence relation for [itex]c_k[/itex]; the [itex]c_k[/itex] are supposed to be independent of [itex]x[/itex]. You need to write [tex]\begin{split}(x + 3)y' &=
(x - 1 + 4)\sum_{k=1}^\infty kc_k (x-1)^{k-1} \\
&= \sum_{k=1}^\infty kc_k (x - 1)^k + 4\sum_{k=1}^\infty kc_k (x- 1)^{k-1} \end{split}[/tex] and then compare coefficients of [itex](x-1)^k[/itex].
 
  • Like
Likes Graham87
  • #3
pasmith said:
If you set [itex]y(x) = \sum_{k=0}^\infty c_k(x - 1)^k[/itex] then [itex]x[/itex] cannot appear in the recurrence relation for [itex]c_k[/itex]; the [itex]c_k[/itex] are supposed to be independent of [itex]x[/itex]. You need to write [tex]\begin{split}(x + 3)y' &=
(x - 1 + 4)\sum_{k=1}^\infty kc_k (x-1)^{k-1} \\
&= \sum_{k=1}^\infty kc_k (x - 1)^k + 4\sum_{k=1}^\infty kc_k (x- 1)^{k-1} \end{split}[/tex] and then compare coefficients of [itex](x-1)^k[/itex].
Oh, I tried that too but did not go through it completely. So I get thefollowing:
Screenshot 2023-12-20 162206.png

Screenshot 2023-12-20 162211.png

Screenshot 2023-12-20 162217.png

However the general solution formula does not seem obvious. Where might I have gone wrong?
 
Last edited:
  • #4
You can write the ODE as [tex]
\sum_{k=0}^\infty ( kc_k + 4(k+1)c_{k+1} + 2c_k )(x-1)^k = 0[/tex] from which it follows that [tex]
c_{k+1} = -\frac{k+2}{4(k+1)}c_k, \quad k \geq 0.[/tex] This linear first-order recurrence can be easily solved, since the general solution of [tex]
a_{k+1} = f(k)a_k[/tex] is [tex]
a_k = a_0 \prod_{r=0}^{k-1} f(r).[/tex] Note that by inspection [itex]y = A(x + 3)^{-2}[/itex] is the general solution of [itex](x + 3)y' + 2y = 0[/itex] so that you can check your answer against [tex]\begin{split}
y(x) &= 16y(1)(x + 3)^{-2} \\
&= 16y(1)(x - 1 + 4)^{-2} \\
&= y(1) \left(1 + \frac{x-1}{4}\right)^{-2} \\
&= y(1) \left(1 - 2\frac{x-1}4 + \dots
+ \frac{(-2)(-3) \cdots (-n - 1)}{n!}\left(\frac{x-1}4\right)^n + \dots \right)\end{split}[/tex]
 
  • Like
Likes Graham87
  • #5
pasmith said:
You can write the ODE as [tex]
\sum_{k=0}^\infty ( kc_k + 4(k+1)c_{k+1} + 2c_k )(x-1)^k = 0[/tex] from which it follows that [tex]
c_{k+1} = -\frac{k+2}{4(k+1)}c_k, \quad k \geq 0.[/tex] This linear first-order recurrence can be easily solved, since the general solution of [tex]
a_{k+1} = f(k)a_k[/tex] is [tex]
a_k = a_0 \prod_{r=0}^{k-1} f(r).[/tex] Note that by inspection [itex]y = A(x + 3)^{-2}[/itex] is the general solution of [itex](x + 3)y' + 2y = 0[/itex] so that you can check your answer against [tex]\begin{split}
y(x) &= 16y(1)(x + 3)^{-2} \\
&= 16y(1)(x - 1 + 4)^{-2} \\
&= y(1) \left(1 + \frac{x-1}{4}\right)^{-2} \\
&= y(1) \left(1 - 2\frac{x-1}4 + \dots
+ \frac{(-2)(-3) \cdots (-n - 1)}{n!}\left(\frac{x-1}4\right)^n + \dots \right)\end{split}[/tex]
I tried that, but I get stuck in the manipulation on the most left sum to k=0?
Screenshot 2023-12-20 162206.png

From your answer it turned to this somehow?
Screenshot 2023-12-20 181951.png

Shouldn't the most left term be
Screenshot 2023-12-20 183210.png
 
Last edited:
  • #6
No; [tex]
(x-1)y' = \sum_{k=1}^\infty kc_k(x-1)^k = \sum_{k=0}^\infty kc_k(x-1)^k[/tex] because [itex]0c_0(x-1)^0 = 0[/itex].
 
  • Like
Likes Graham87
  • #7
pasmith said:
No; [tex]
(x-1)y' = \sum_{k=1}^\infty kc_k(x-1)^k = \sum_{k=0}^\infty kc_k(x-1)^k[/tex] because [itex]0c_0(x-1)^0 = 0[/itex].
Yeah, I realised that too! Thanks alot!
 
  • #8
pasmith said:
No; [tex]
(x-1)y' = \sum_{k=1}^\infty kc_k(x-1)^k = \sum_{k=0}^\infty kc_k(x-1)^k[/tex] because 0c0(x−1)0=0.
Are you sure about this?
I did like this:
Screenshot 2023-12-20 192440.png

And since x=1 we get the following
Screenshot 2023-12-20 192448.png

And eventually
Screenshot 2023-12-20 192615.png

Screenshot 2023-12-20 192625.png
 
  • #9
The fundamental issue here is that [tex](x- 1)\sum_{k=1}^\infty kc_k(x-1)^{k-1} = \sum_{k=1}^\infty kc_k(x-1)^{k} = \sum_{k=0}^\infty kc_k(x-1)^k.[/tex]
 
  • Like
Likes Graham87

1. How do you solve a differential equation using the power series method?

To solve a differential equation using the power series method, you first express the unknown function as a power series. Then, substitute this series into the differential equation and solve for the coefficients of the series by equating coefficients of like powers of the independent variable.

2. When is the power series method useful for solving differential equations?

The power series method is useful for solving differential equations when the equation cannot be solved using traditional methods such as separation of variables or integrating factors. It is particularly helpful for solving nonlinear differential equations or equations with non-constant coefficients.

3. What are the advantages of using the power series method for solving differential equations?

One advantage of using the power series method is that it provides a systematic way to find solutions to differential equations that cannot be solved by other methods. It also allows for the solution to be expressed as a series, which can be easier to work with in some cases.

4. Are there any limitations to using the power series method for solving differential equations?

One limitation of the power series method is that it can be time-consuming and computationally intensive, especially when dealing with higher-order differential equations. Additionally, the method may not always converge to a solution, particularly for equations with singular points.

5. Can the power series method be used for all types of differential equations?

No, the power series method is not suitable for all types of differential equations. It is most commonly used for linear differential equations with variable coefficients or nonlinear equations that cannot be easily solved by other methods. It may not be effective for equations with singular points or those that require special functions for their solutions.

Similar threads

  • Differential Equations
Replies
7
Views
392
  • Differential Equations
Replies
2
Views
993
Replies
2
Views
2K
  • Differential Equations
2
Replies
52
Views
822
  • Differential Equations
Replies
1
Views
1K
Replies
1
Views
2K
  • Differential Equations
Replies
1
Views
667
  • Differential Equations
Replies
5
Views
1K
Replies
4
Views
767
  • Differential Equations
Replies
4
Views
2K
Back
Top