Mathematica does not like hyperbolic functions

Click For Summary
SUMMARY

The discussion addresses the challenges faced when using Mathematica to solve the equation cosh(x) = n*x, specifically in determining the critical value of n, which is approximately 1.51. Users encountered errors with both Solve and NSolve functions, which failed to provide the expected number of solutions. The solution involved using the relationship between the derivatives of the functions at their intersection points, leading to the equation tanh(x) = 1/x, which can be solved numerically to find the positive solution for x and subsequently n.

PREREQUISITES
  • Understanding of hyperbolic functions, specifically cosh and sinh.
  • Familiarity with Mathematica syntax and functions such as Solve, NSolve, and FindRoot.
  • Knowledge of numerical methods for solving equations.
  • Basic calculus concepts, particularly derivatives and intersection points of functions.
NEXT STEPS
  • Explore advanced Mathematica functions for solving equations, such as Reduce and Manipulate.
  • Learn about numerical methods in Mathematica, focusing on NMinimize and NMaximize.
  • Investigate the properties of hyperbolic functions and their applications in solving equations.
  • Study the implications of critical values in mathematical modeling and their significance in function behavior.
USEFUL FOR

Mathematics students, researchers in applied mathematics, and anyone using Mathematica for solving complex equations involving hyperbolic functions.

blalien
Messages
31
Reaction score
0
[SOLVED] Mathematica does not like hyperbolic functions

So, consider the equation cosh(x)=n*x

For a given n, the equation has 0, 1, or 2 possible values of x. If n is below the critical value, the equation has no solutions. If n is above the critical value, the equation has two solutions. And if n is exactly the critical value, the equation has one solution. My goal is to use Mathematica to show that the critical value is approximately 1.51.

Theoretically, the line Length[Solve[Cosh[x] == n*x, x]] should give the number of solutions for a given n. Then I can make a table of n's and find the point where the number of solutions goes from 0 to 2.

Unfortunately, I keep getting the error:
Solve::tdep: The equations appear to involve the variables to be solved for in an essentially non-algebraic way.

NSolve has the exact same problem. FindRoot always gives exactly one solution, whether there are zero or two solutions to the equation. Is there a way to make Mathematica more cooperative, or another way to go about this problem? Since the TI-89 can handle this problem (but is too slow to be useful), it seems like Mathematica should be able to as well.

Thanks for your help!
 
Physics news on Phys.org
Since [itex]\cosh x[/itex] and [itex]nx[/itex] have one intersection point, their derivatives are equal. Along with the original equation, this gives two equations for the two unknowns [itex]n[/itex] and [itex]x[/itex] (at intersection).

[tex]\sinh x = n[/tex]

[tex]\cosh x = nx.[/tex]

Divide these equations and get

[tex]tanh x = \frac{1}{x}.[/tex]

Solve this numerically for [itex]x[/itex] (use only the positive solution), and, to find [itex]n[/itex], plug this solution into the top equation.
 
Last edited:
Sweet, it worked. Thanks!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K