1
$\begingroup$

I am trying to graph this implicit equation, but I am unable to do so as the plot produced is an empty grid. May I know how do I fix this problem? Thank you!

g = 9.81;
mu = 0.3;
r = 0.35;
eqn = g/(mu Sin[theta] + Cos[theta]) == 
  Sqrt[(mu^2 + 1)/(g^2 + w^4 r^2 (Sin[theta])^2)]
ContourPlot[eqn, {w, 0, 200}, {theta, -10, 10}]
$\endgroup$
4
  • $\begingroup$ Indeed an empty plot in view of FindInstance[eqn, {w, theta}, Reals] which results in {}. $\endgroup$
    – user64494
    Commented Jan 9, 2021 at 7:32
  • 1
    $\begingroup$ Plot3D[{g/(mu Sin[theta]+Cos[theta]), Sqrt[(mu^2+1)/(g^2+w^4 r^2 (Sin[theta])^2)]},{w,0,200},{theta,-10,10}] and press and drag the mouse to change the orientation of the plot around to see the two expressions $\endgroup$
    – Bill
    Commented Jan 9, 2021 at 7:41
  • $\begingroup$ @Bill hi, thank you so much for the solution, but may I ask why the expression is unable to be plotted in a 2D plot? $\endgroup$
    – JUNYEN
    Commented Jan 9, 2021 at 8:01
  • $\begingroup$ ContourPlot[left==right,...] is only going to plot the level where left==right. If you instead did ContourPlot[left-right,...] then it would show more than one contour and more than one level. If you read reference.wolfram.com/language/ref/ContourPlot.html including clicking on the orange Details and Options and reading what that shows then this might help. $\endgroup$
    – Bill
    Commented Jan 9, 2021 at 8:33

1 Answer 1

2
$\begingroup$

We calculate (LHS-RHS)^2 by (SubtractSides[eqn] // First)^2 and found that its minimum is greater than 0.

g = 9.81;
mu = 0.3;
r = 0.35;
eqn = g/(mu Sin[theta] + Cos[theta]) == 
  Sqrt[(mu^2 + 1)/(g^2 + w^4 r^2 (Sin[theta])^2)]
NMinimize[{(SubtractSides[eqn] // First)^2, 
  0 <= w <= 200, -10 <= theta <= 10}, {w, theta}]

{88.2949, {w -> 200., theta -> 9.71633}}

The minimum 88.2949 means that in the domain 0 <= w <= 200, -10 <= theta <= 10, the equation eqn can't hold.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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