0
$\begingroup$

I am new to the Mathematica and I have a question about the plotting. I am trying to plot the transcendental equation

$$\tan{(z)}=\sqrt{\frac{1}{2m_0}\left (\frac{z_0}{z}\right)^2-1} $$

where the parameter $z_0=4.8$. I am just wondering can I keep the parameter $\frac{1}{2m_0}$ without specifying an exact value to it? I have searched some similar questions but still don't figure this out. Could anyone give some suggestions? Thanks!

$\endgroup$
4
  • 2
    $\begingroup$ How could the function be plotted if $m_0$ have no numerical value? You can use Manipulate to give it different values and see how the plot changes. $\endgroup$
    – Nasser
    Sep 8 at 0:23
  • $\begingroup$ Solving a transcendental trygonometric equation should involve a careful analysis of the problem. Then solutions can demonstrate their geometric sense, see e.g. Solve symbolically a transcendental trigonometric equation and plot its solutions. $\endgroup$
    – Artes
    Sep 8 at 0:56
  • $\begingroup$ Ummm.... how would you plot $y = a x$ for an unspecified $a$? (Of course, $a$ could be negative.) If you can solve that, well, you've solved your posted problem. $\endgroup$ Sep 8 at 3:57
  • $\begingroup$ @Artes Oh, that help a lot! Thanks so much! The link is really good at illustrating the general idea of how to deal with this types problem...although I hope there are some better approaches. $\endgroup$
    – user81752
    Sep 8 at 4:13
1
$\begingroup$

In this particular case, you can view the solution set in the $z,m_0$ plane (i.e. allowing $m_0$ to vary) with ContourPlot:

z0 = 4.8;

ContourPlot[
 Tan[z] == Sqrt[(1/(2 m0)) (z0/z)^2 - 1], {z, -5, 5}, {m0, 0, 2}, 
 PlotPoints -> 50]

enter image description here (PlotPoints -> 50 just makes the resolution a bit better.)


Note: as @Artes mentions in a comment on the original question, these sorts of equations are difficult to handle. As such, the above plot might not reveal the full solution set. However, by plotting both sides of the equation in 3D and viewing the result from directly above to see where the intersections lie, it does seem we've got them all in this range.

Plot3D[{Tan[z], Sqrt[(1/(2 m0)) (z0/z)^2 - 1]}, {z, -5, 5}, {m0, 0, 2},
 PlotPoints -> 50, ViewPoint -> {0, 0, Infinity}, 
 ViewAngle -> All, Ticks -> False, AxesLabel -> Automatic, 
 PlotRange -> {-100, 100}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.