Solving an ODE: Methods and Confusion

  • Context: Undergrad 
  • Thread starter Thread starter n00by
  • Start date Start date
  • Tags Tags
    Ode
Click For Summary

Discussion Overview

The discussion revolves around solving the ordinary differential equation (ODE) given by \(\frac{dy}{dx} = \frac{y^2 - 1}{x^2 - 1}\) with the initial condition \(y(2) = 2\). Participants explore various methods for solving the ODE, including separation of variables, partial fractions, and implicit solutions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses confusion about the steps following the transformation of the ODE into an exact equation.
  • Another suggests using the method of partial fractions to simplify \(\frac{dy}{y^2-1}\).
  • A participant questions the application of partial fractions to the expression \(\frac{dy}{y^2-1}\).
  • One participant provides a detailed breakdown of applying partial fractions and solving for constants A and B.
  • A later reply indicates that it may not be necessary to solve for \(y\) explicitly, suggesting that an implicit solution could suffice.
  • Another participant emphasizes the importance of using initial conditions to find constants in the solution.
  • One participant points out a potential algebra mistake in the manipulation of logarithmic expressions.
  • Another participant proposes that the linear function \(y = x + c\) satisfies the ODE and checks it against the initial condition.

Areas of Agreement / Disagreement

Participants express differing views on whether solving for \(y\) explicitly is necessary. There is also a mix of agreement on the methods to approach the problem, but no consensus on the best path forward or the correctness of specific steps.

Contextual Notes

Some participants note potential algebraic mistakes and the need for careful handling of logarithmic identities. The discussion also highlights the dependency on initial conditions for determining constants in the solution.

Who May Find This Useful

This discussion may be useful for students and practitioners working on ordinary differential equations, particularly those exploring various solution methods and the implications of initial conditions.

n00by
Messages
7
Reaction score
0
The equation I'm trying to solve is

[itex]\frac{dy}{dx} = \frac{y^2 - 1}{x^2-1}[/itex], given y(2) = 2

The methods I'm somewhat familiar with are separation of variables, integrating factor, and exact. I tried this:

[itex]\frac{dy}{dx} = \frac{y^2 - 1}{x^2-1}[/itex]

[itex](x^2 - 1)dy = (y^2-1)dx[/itex]

[itex](x^2 - 1)dy - (y^2-1)dx= 0[/itex]

So, now it's an exact equation, right?

I tried integrating each part:

[itex]\int (x^2 - 1)dy = (x^2-1)y+c1(x)[/itex]

[itex]\int (y^2 - 1)dx = (y^2-1)x+c1(y)[/itex]

But now I'm confused what I'm supposed to do! If I just let the constants of integration be zero, then I have:

[itex](x^2-1)y[/itex]

[itex](y^2-1)x[/itex]

But what do I do with those?

I'm really confused :(
 
Physics news on Phys.org
Hello,
Try this:
[tex]dy/(y^2-1)=dx/(x^2-1)[/tex]
You can apply partial fractions
 
Hi, I don't see how I can apply partial fractions to [itex]\frac {dy}{y^2-1}[/itex] ?
 
[tex]1/(y^2-1)=1/[(y+1)(y-1)]=A/(y+1)+B/(y-1)[/tex]
You would then be required to solve for A and B.
 
Thanks for your help, I really appreciate it.

Here's what I tried:

[itex]\frac{1}{y^2-1} = \frac{1}{(y+1)(y-1)} = \frac {A}{(y+1)} + \frac{B}{(y-1)}[/itex]

[itex]1 = A(y-1) + B(y+1)[/itex]

[itex]y = 1: 1 = 0 + B(2) \iff B = \frac{1}{2}[/itex]

[itex]y = -1: 1 = A(-2) + 0 \iff A = -\frac{1}{2}[/itex]

[itex]\therefore \frac{1}{y^2-1} = \frac {-\frac{1}{2}}{(y+1)} + \frac{\frac{1}{2}}{(y-1)} → \int (\frac {-\frac{1}{2}}{(y+1)} + \frac{\frac{1}{2}}{(y-1)})dy = \int (\frac {-\frac{1}{2}}{(x+1)} + \frac{\frac{1}{2}}{(x-1)})dx[/itex]

[itex]-\frac{1}{2}ln|y+1| + \frac{1}{2}ln|y-1| = -\frac{1}{2}ln|x+1| + \frac{1}{2}ln|x-1| + C_1[/itex] , x > 1, y > 1

[itex]ln(y+1)^{-\frac{1}{2}} + ln(y-1)^{\frac{1}{2}} = ln(x+1)^{-\frac{1}{2}} + ln(x-1)^{\frac{1}{2}} + C_1[/itex], raise by e

[itex](y+1)^{-\frac{1}{2}} + (y-1)^{\frac{1}{2}} = (x+1)^{-\frac{1}{2}} + (x-1)^{\frac{1}{2}}+ C_2, C_2 = e^{C_1}[/itex]

But I don't see how I can solve for y. Any hints?
 
Are you required to solve for y?
 
Most of the time, it is enough to give the final equation in implicit form. To find the constant, you plug in the initial conditions: ie, y(2) = 2 means that x=2 and y=2. If the initial conditions were y(5) = 3, then it would be y=3 and x=5.

A minor nitpick but there's an algebra mistake in the last part:

n00by said:
[itex]ln(y+1)^{-\frac{1}{2}} + ln(y-1)^{\frac{1}{2}} = ln(x+1)^{-\frac{1}{2}} + ln(x-1)^{\frac{1}{2}} + C_1[/itex], raise by e

[itex](y+1)^{-\frac{1}{2}} + (y-1)^{\frac{1}{2}} = (x+1)^{-\frac{1}{2}} + (x-1)^{\frac{1}{2}}+ C_2, C_2 = e^{C_1}[/itex]

Hint: [itex]ln(A) + ln(B) = ln(AB)[/itex]
 
HallsofIvy said:
Are you required to solve for y?

I'm supposed to "solve" the differential equation. Does that not require solving for y?
 
doesn't y = x + c satisfy this ODE?

y(2) = 2

2 = 2 + c

c = 0

so checking y = x via differentiation:

dy/dx = 1

then substitution:

dy/dx = (y^2 -1) / (x^2 - 1) = (x^2 - 1) / (x^2 - 1) = 1

sorry if I'm a little off base or this doesn't help much, I'm just used to solving PDEs and when you get them to ODEs just using some ansatz math.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K