Solving an ODE: The Pwer Series and Seperation of Variables

In summary, the problem asks to solve the equation (1+x) \frac{dy}{dx} = y by a power series and by separation of variables. The two solutions do not agree, and the issue may be with the power series method. The power series for (1+x) is 1+x+0x^2+0x^3+..., and when plugged into the equation, the coefficients for x^0 and x^1 are found to be 1 and 1 respectively. However, when differentiating the power series, the coefficients for x^0 and x^1 are found to be 0 and 1 respectively. The complete differential equation is (1+x) \frac{dy}{dx} =
  • #1
TFM
1,026
0

Homework Statement



Solve the following equation by a power series and also by separation of variables. Check that the two agree.

Homework Equations



N/A

The Attempt at a Solution



Power Series:

[tex] (1+x) \frac{dy}{dx} = y [/tex]

[tex] (1+x) \frac{1}{dx} = y \frac{1}{dy} [/tex]

The power series is:

[tex] (1+x) \equiv 1+x+0x^2+0x^x [/tex] ...

Thus

[tex] \frac{1 + x}{dx} = \frac{y}{dy} [/tex]


Separation by Variables:

[tex] (1+x) y' = y [/tex]

[tex] y' = \frac{1}{((1+x)} y [/tex]

[tex] x'=g(t)h(x) [/tex]

[tex] H(x) = G(t) + C [/tex]

[tex] H=\int \frac{dx}{h(x)} ; G=\int g(t)dt [/tex]

[tex] H=\int \frac{dy}{y} \equiv \int \frac{1}{y} dy = ln y [/tex]

[tex] G = \int \frac{1}{1+x} dx = ln(1 + x) [/tex]

[tex] ln y = ln (1+x) + c [/tex]

[tex] y = 1 + x + c [/tex]

These two methods haven't agreed for this question. i think the problem lays in my Power Series.

Anyone got any idesa?

TFM
 
Physics news on Phys.org
  • #2
Your second solution looks right, up to
ln(y) = ln(1 + x) + c
But if you exponentiate that, you won't get
y = 1 + x + c,
do that step again.

As for your real question, I suppose that they mean: plug in a solution
[tex]y(x) = \sum_{n = 0}^\infty a_n x^n[/tex]
and determine the coefficients [itex]a_n[/itex] from the differential equation.
Note that you can differentiate by terms, so
[tex]\frac{dy}{dx} = \sum_{n = 0}^\infty n a_n x^{n - 1}[/tex]
etc.
 
  • #3
Indeed it won't:

ln(y) = ln(1 + x) + c

take exponentials of both sides leaves:

[tex] y = 1 + x + e^c [/tex]

Okay so for the power series:

[tex] y(x) = \sum_{n = 0}^\infty a_n x^n [/tex]

so would the coeffieients coming from here:

[tex] (1+x) \frac{1}{dx} = y \frac{1}{dy} [/tex]

be 1 and 1, since you have x^0 has a coefficient of 1, and x has a coefficent of 1 also?

TFM
 
  • #4
No,
e^(ln(1 + x) + c) = e^ln(1+x) * e^c = ...

And what do you mean by: "the coefficients being 1 and 1"? You have infinitely many of them! Start by plugging the sum into
[tex]
(1+x) \frac{dy}{dx} = y [/tex]
- what do you get?
 
  • #5
CompuChip said:
No,
e^(ln(1 + x) + c) = e^ln(1+x) * e^c = ...

Since e^c is another constant, wouldn't it not be:

= k + kx

?

CompuChip said:
And what do you mean by: "the coefficients being 1 and 1"? You have infinitely many of them! Start by plugging the sum into
[tex]
(1+x) \frac{dy}{dx} = y [/tex]
- what do you get?

So I should have:

[tex] (1+x) \frac{dy}{dx} = \sum_{n = 0}^\infty a_n x^n [/tex]

?

TFM
 
  • #6
TFM said:
Since e^c is another constant, wouldn't it not be:

= k + kx

?

Yes, that would be fine.

So I should have:

[tex] (1+x) \frac{dy}{dx} = \sum_{n = 0}^\infty a_n x^n [/tex]

?

TFM

Well, that is a true statement, but not very useful to you in that form. If [tex]y(x)= \sum_{n = 0}^\infty a_n x^n[/tex]...what is [tex]\frac{dy}{dx}[/tex]?
 
  • #7
Would this be:

[tex] y(x)= \sum_{n = 0}^\infty a_n x^n [/tex]

[tex] \frac{dy}{dx} = \sum_{n = 0}^\infty a_n(n - 1) x^{n-1} [/tex]

Does this look right?

TFM
 
  • #8
Almost; is [itex]2 x^2[/itex] the derivative of [itex]x^3[/itex]?

Now write down your complete differential equation.
 
  • #9
Okay so:

x^3 differentiates to 3x^2

[tex] \frac{dy}{dx} = \sum_{n = 0}^\infty a_n(n) x^{n-1} [/tex]

Now write down your complete differential equation.

so would this be:

[tex] \frac{dy}{dx} = \sum_{n = 0}^\infty a_n(n) x^{n-1} + a_{n-1}(n+1) x^{n} + a_{n-2}(n+2) x^{n + 1} + ... [/tex]

?

TFM
 

Related to Solving an ODE: The Pwer Series and Seperation of Variables

1. What is an ODE?

An ODE, or Ordinary Differential Equation, is a type of mathematical equation that involves an unknown function and its derivatives. It is commonly used to model relationships in many scientific fields such as physics, engineering, and biology.

2. What is the power series method for solving ODEs?

The power series method is a technique used to solve ODEs by representing the unknown function as a sum of a series of terms, with each term containing a power of the independent variable. This method is particularly useful for solving ODEs with non-constant coefficients.

3. How does the separation of variables method work?

The separation of variables method involves separating the dependent and independent variables in an ODE and solving for each variable separately. This technique is commonly used for solving first-order ODEs.

4. What are the advantages of using the power series and separation of variables methods?

The power series and separation of variables methods are both powerful tools for solving ODEs because they can be applied to a wide range of equations and can often provide exact solutions. Additionally, they do not require advanced mathematical techniques and can be easily understood and applied by students and researchers.

5. Are there any limitations to using these methods for solving ODEs?

While the power series and separation of variables methods are effective in solving many ODEs, they may not always provide solutions for more complex equations. In some cases, numerical methods or more advanced analytical techniques may be needed to solve the ODE.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
334
  • Calculus and Beyond Homework Help
Replies
3
Views
431
  • Calculus and Beyond Homework Help
Replies
6
Views
829
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
620
  • Calculus and Beyond Homework Help
Replies
16
Views
645
  • Calculus and Beyond Homework Help
Replies
2
Views
856
  • Calculus and Beyond Homework Help
Replies
8
Views
810
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
Replies
5
Views
1K
Back
Top