Solving y'=1-y^2: What Trick Am I Missing?

  • Thread starter Thread starter TheFerruccio
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 2K views
TheFerruccio
Messages
216
Reaction score
0

Homework Statement


[itex]y'=1-y^2[/itex]


Homework Equations



I've tried a few methods, including change of variables, separability. I'm pretty sure it's separable.


The Attempt at a Solution



If I use separation of variables, I end up with

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

This integral evades me. There must be another trick that I am missing.
 
Physics news on Phys.org
TheFerruccio said:

Homework Statement


[itex]y'=1-y^2[/itex]


Homework Equations



I've tried a few methods, including change of variables, separability. I'm pretty sure it's separable.


The Attempt at a Solution



If I use separation of variables, I end up with

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

This integral evades me. There must be another trick that I am missing.

Partial fraction decomposition
 
It appears that the integral of [itex]\frac{\text{dy}}{1-y^2}[/itex] is [itex]\tanh ^{-1}(y)[/itex].

This would make the solution [itex]y=\frac{e^{2 c_1}+e^{2 x}}{e^{2 x}-e^{2 c_1}}[/itex]
 
pasmith said:

That's a good idea! I tried partial fraction decomposition, and I ended up with

[itex]0.5 (c+\log (1-y)+\log (y+1))=c+x[/itex]
[itex]\log (c (1-y) (y+1))=2 c+2 x[/itex]
[itex]c (1-y) (y+1)=e^{2 c+2 x}[/itex]
From here, it looks like it gets into a hairy quadratic formula with solutions of the form
[itex]y=\pm \sqrt{-e^{2 c+2 x}-1}[/itex]

If I just recognized the solution was a form of hyberbolic inverse tangent, it would have been much easier, though, I do not see how I would have seen that without guessing. I did not have that in my memory.
 
TheFerruccio said:
That's a good idea! I tried partial fraction decomposition, and I ended up with

[itex]0.5 (c+\log (1-y)+\log (y+1))=c+x[/itex]
You don't need to put a constant of integration both sides (and certainly not the same one!).
You have a sign error in the integration. You should end up with a ratio of the y terms, not the product.
 
haruspex said:
You don't need to put a constant of integration both sides (and certainly not the same one!).
You have a sign error in the integration. You should end up with a ratio of the y terms, not the product.

I do not see where the mixup is. If I expand the term into partial fractions, I end up with...
[itex]\frac{1}{1-y^2}\to \frac{1}{(1-y) (y+1)}\to \frac{A}{y+1}+\frac{B}{1-y}\to \frac{A (1-y)+B<br /> (y+1)}{(1-y) (y+1)}\to A+B=1, B-A=0\to A=B=0.5[/itex]

If that's the case for A and B, then I simply move on to... Aaaaand I see what I did. Integrating the [itex]\frac{0.5}{y+1}+\frac{0.5}{1-y}[/itex] results in a difference instead of a sum. However, I am even more baffled as to how to isolate y algebraically in this case, since I end up with...

[itex]e^{2 c+2 x}=\frac{y+1}{1-y}[/itex]
 
TheFerruccio said:
I am even more baffled as to how to isolate y algebraically in this case, since I end up with...

[itex]e^{2 c+2 x}=\frac{y+1}{1-y}[/itex]
It's quite easy - you're probably overthinking it
Multiply out and collect up the y terms.