Solve the initial-value problem

  • Thread starter Thread starter _N3WTON_
  • Start date Start date
Click For Summary

Homework Help Overview

The problem involves solving an initial-value problem for a differential equation of the form dy/dx = y^2 - 4 with the initial condition y(0) = -6. The subject area is differential equations, specifically focusing on the separation of variables technique.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the separation of variables approach and the integration of the equation. There are mentions of using hyperbolic functions and the challenges associated with them. Some participants suggest alternative methods such as using partial fractions and logarithms. Questions arise regarding the correct application of inverse hyperbolic functions and how to determine the constant C using the initial condition.

Discussion Status

Participants are actively exploring different methods to solve for the constant C and are questioning the correctness of their approaches. Some guidance has been provided regarding the use of hyperbolic functions and the integration process, but there is no explicit consensus on the final form of the solution.

Contextual Notes

There are discussions about the difficulty of using hyperbolic functions and the need for clarity in notation. Participants express uncertainty about the correct application of formulas and the implications of their calculations.

_N3WTON_
Messages
350
Reaction score
3

Homework Statement


\frac{dy}{dx} = y^2 - 4
y(0) = -6


Homework Equations


The idea behind this problem is to use the separation of variables technique for solving differential equations.


The Attempt at a Solution


I have separated the equation to get:
\int{\frac{dy}{y^2 -4}} = \int 1\, dx
Now I will have to not use latex because I do not know how to enter inverse hyperbolic functions in latex, but my integrals work out to:
atanh(y/2) = -2x+C
y/2 = tanh(2x+C)
y = 2tanh(2x+C)
Now I am unsure how to solve for C using the initial value, my ability to solve inverse hyperbolic functions is severely lacking lol
Edit: If somebody knows how to enter hyperbolic/inverse hyperbolic functions on Latex please let me know so that I can make my equations more reader friendly
 
Last edited:
Physics news on Phys.org
Use \tanh for the hyperbolic tangent, don't know about the arc hyperbolic tangent since \arctanh doesn't do it.

Anyway, if you are uncomfortable with the hyperbolics, just use partial fractions on the y integral and work it directly with logarithms.

[Edit, added:] At the line where you have ##\textrm{arctanh}(\frac y 2) =-2x+C## you can put ##x=0,~y=6## giving ##\textrm{arctanh}(\frac 6 2) =-2\cdot 0+C## which gives ##C=
\textrm{arctanh}(3)##. Also I believe you dropped a minus sign after that.
 
Last edited:
LCKurtz said:
Use \tanh for the arctangent, don't know about the arc hyperbolic tangent since \arctanh doesn't do it.

Anyway, if you are uncomfortable with the hyperbolics, just use partial fractions on the y integral and work it directly with logarithms.
thanks, I was thinking I could possibly convert the hyperbolic tangent into e terms in order to solve for C
 
_N3WTON_ said:
thanks, I was thinking I could possibly convert the hyperbolic tangent into e terms in order to solve for C

Note that while you were typing this, I edited post #2 to show how to calculate C directly.
 
LCKurtz said:
Use \tanh for the hyperbolic tangent, don't know about the arc hyperbolic tangent since \arctanh doesn't do it.

Anyway, if you are uncomfortable with the hyperbolics, just use partial fractions on the y integral and work it directly with logarithms.

[Edit, added:] At the line where you have ##\textrm{arctanh}(\frac y 2) =-2x+C## you can put ##x=0,~y=6## giving ##\textrm{arctanh}(\frac 6 2) =-2\cdot 0+C## which gives ##C=
\textrm{arctanh}(3)##. Also I believe you dropped a minus sign after that.
thank you, so for my final equation I ended up with:
y = tanh(-2x + arctanh(3))
I am wondering if I can possibly simplify this by writing:
y = tanh(-2x) + 3
or is that not correct?
 
Did you drop a ##2##? And no, you don't get to make up formulas for tanh(a+b).
 
  • Like
Likes   Reactions: 1 person
LCKurtz said:
Did you drop a ##2##? And no, you don't get to make up formulas for tanh(a+b).
you're right i did, sorry so it should be:
y = 2tanh(-2x + arctanh(3))
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
20
Views
2K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 18 ·
Replies
18
Views
3K