How can I solve the equation Tan[t] - t = Ax, where A is a constant for t[x]?
I know that it's impossible to get a close-form solution, but how can I get a numerical approximation with Mathematica?
|
How can I solve the equation I know that it's impossible to get a close-form solution, but how can I get a numerical approximation with Mathematica? |
||||
|
The most convenient way to answer this question is by using
Then your equation
|
|||
|
|
|
You might look for the approximate analytical solution as follows. Let us first denote y=Ax. We will substitute it back later. This is the table of solutions of your equation with 0<=y<=Pi/2:
Now one can fit this list, and get an analytical solution out of it:
This results in such a fit, see the image:
|
||||
|
|
|
A supplement to above two wonderful answers: Notice that any two of the branches of curve $C$ defined by $f(t)=\tan(t)-t$ are identical with only a translation of $\boldsymbol{\mathrm{v}}_n=(n \pi,-n \pi)^{\mathrm T}$ : $$ \left( \begin{array}{c} t \\ \tan(t)-t \\ \end{array} \right)+ \left( \begin{array}{c} 1 \\ -1 \\ \end{array} \right)n\pi = \left( \begin{array}{c} t+n\pi \\ \tan(t+n\pi)-(t+n\pi) \\ \end{array} \right) $$
So for any $F$, to get all solutions of $\tan(t)-t=F$ (the red points in above graphics), just find all intersection points of the center branch of $C$ and horizon lines $l_n(t)=F+n \pi$, where $n\in\mathbb{Z}$ (the green points in above graphics), then translate them with proper vectors. To find those green points, you can adopt Jens'
So we have a function of $x$ as $$x\mapsto(F=F(x))\mapsto t\text{ .}$$ |
||||
|
|
FindRoot. – b.gatessucks Dec 2 '12 at 15:24