Series solution to diffeq, stuck on matching the indices

Click For Summary

Homework Help Overview

The discussion revolves around finding a series solution to the differential equation y'' + x²y' + y = 0, focusing on the challenges of matching indices in the series representation of the solution.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants explore the representation of the solution as a power series and discuss the difficulties in aligning the indices of the series for y'', x²y', and y. There are questions about the necessity of shifting indices and combining series into a single summation.

Discussion Status

Some participants have offered guidance on separating terms to facilitate matching indices, while others express confusion about handling specific terms in the series. Multiple interpretations of how to approach the series solution are being explored.

Contextual Notes

Participants are navigating the constraints of the problem, including the requirement to express the series in a form that allows for the coefficients to be set to zero for all x, which introduces additional complexity in the discussion.

freshman2013
Messages
43
Reaction score
0

Homework Statement



find the series solution to y''+x^2*y'+y=0

Homework Equations


y=summation from n=0 to infinity Cn*x^n


The Attempt at a Solution



y=sum from 0 to inf Cnxn
x^2*y'=sum from 1 to inf nC n xn+1 = sum from 2 to inf (n-1) C n-1 xn = sum from 1 to inf (n-1) C n-1 xn
y''=(n+2)(n+1)Cn+2 xn from 0 to infinity

basically, I can't get all three series to match at starting index n=0 and get them to have the terms x^n
 
Last edited:
Physics news on Phys.org
It's a little hard to read without Latex, but your y'' doesn't seem right. The y' alone will have terms of the form ##nC_nx^{n-1}## starting at n = 1 (since the constant term vanishes) , so the y'' terms should be ##n(n-1)C_nx^{n-2}## starting at n = 2.

You do not have to fool around with the indices on ##x^2y'##. Keep things as simple as you can, and I think it will match up.
 
@brmath my y'' is what you have w/ the indices shifted from 2 to 0. How do you manage not shift indices? Don't you need to combine everything into a single summation term and factor x^n, setting the rest equal to zero? That's what I been doing on every problem so far for finding series to diffeqs.
 
freshman2013 said:

Homework Statement



find the series solution to y''+x^2*y'+y=0

Homework Equations


y=summation from n=0 to infinity Cn*x^n


The Attempt at a Solution



y=sum from 0 to inf Cnxn
$$y = \sum_{n=0}^\infty c_n x^n$$
x^2*y'=sum from 1 to inf nC n xn+1 = sum from 2 to inf (n-1) C n-1 xn = sum from 1 to inf (n-1) C n-1 xn
$$x^2 y' = \sum_{n=1}^\infty n c_n x^{n+1} = \sum_{n=2}^\infty (n-1)c_{n-1} x^n = \sum_{n=1}^\infty (n-1)c_{n-1}x^n$$ Looks fine, though that last summation seems unnecessary.

y''=(n+2)(n+1)Cn+2 xn from 0 to infinity
$$y'' = \sum_{n=0}^\infty (n+2)(n+1)c_{n+2} x^n$$ That's fine.

basically, I can't get all three series to match at starting index n=0 and get them to have the terms x^n
You don't have to get them to all start at n=0. You have
$$y'' + x^2 y' + y = \sum_{n=0}^\infty (n+2)(n+1)c_{n+2} x^n + \sum_{n=2}^\infty (n-1)c_{n-1} x^n + \sum_{n=0}^\infty c_n x^n$$ Just separate out the first two terms of the first and last series, e.g.
$$y = c_0 + c_1x + \sum_{n=2}^\infty c_nx^n$$ and then you'll have three summations that all start from n=2 so you can combine them.
 
what do I do with the extra C0 and C1X?
 
Vela told you that- separate the n= 0 and n= 1 terms from the first and third sums.
$$y'' + x^2 y' + y = \sum_{n=0}^\infty (n+2)(n+1)c_{n+2} x^n + \sum_{n=2}^\infty (n-1)c_{n-1} x^n + \sum_{n=0}^\infty c_n x^n= 0$$

In order that a power series be 0 for all x, we must have each coefficient 0.

If n= 0, [itex](n+2)(n+1)c_{n+2}= 2c_2[/itex] and [itex]c_n= c_0[/itex] so we must have 2c_2+ c_0= 0.

If n= 1, [itex](n+2)(n+1)c_{n+2}= 6c_3[/itex] and [itex]c_n= c_1[/itex] so we must have [itex]6c_3+ c_1= 0[/itex].

For [itex]n\ge 2[/itex] we have all three sums so
[itex](n+2)(n+1)c_{n+2}+ (n- 1)c_{n-1}+ c_n= 0[/itex]

In order to solve for [itex]c_2[/itex], you will need to know [itex]c_0[/itex] and, in order to solve for [itex]c_3[/itex], you will need to know [itex]c_1[/itex]. Those will be the two "constants" for the general solution.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
2
Views
1K
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K