$\sec\theta$ never equals $\tan\theta$. Or does it?!?

305 Views Asked by At

Wolfram-alpha is disagreeing with me. I am wondering why: which of us is wrong?

I was writing a question to demonstrate why domains of functions matter. The question is:

Does there exist an angle $\theta$ such that $\sec\theta=\tan\theta$?

Then you get $\sin\theta=1$ and $\cos\theta\neq0$ (knowing to retain this inequality is the point of the question). These angles $\theta$ coincide (so $\theta=n\pi+\pi/2$ and also $\theta\neq n\pi+\pi/2$). We conclude that no such angle $\theta$ exists, so $\sec\theta\neq\tan\theta$ for all $\theta$.

However, WolframAlpha disagrees. Apparently, $\theta=2n\pi+\pi/2$ works (but not, for example, $3\pi+\pi/2$). What is going on here?

  1. Am I wrong?
  2. Does WolframAlpha use an odd definition for $\sec$?
  3. Do I use an odd definition for $\sec$? (I use $\sec=1/\cos$, which I believe is standard. I have never heard of any other definition.)
  4. None of the above.
5

There are 5 best solutions below

1
On BEST ANSWER

I think the other answers indicating that this is an error made by WolframAlpha are perfectly reasonable and I upvoted them all. I also think it's a good idea to push the feedback button as @AlexR suggests. However, we can place the query in a broader context that makes WolframAlpha's response reasonable and shows us how to fix it at the same time. I want to emphasize that I am not saying that I agree with WA's output; I'm simply trying to demonstrate how it might be reasonable from one point of view.

To see this, try entering just tan(pi/2) or sec(pi/2) into WolframAlpha. and you'll see that you get the same result, namely $\hat{\infty}$ or complex infinity. A reasonable interpretation is that WA is working on the Riemann Sphere and, indeed, Mathematica does exactly that in this context. This suggests that we might get different results from the following queries:

solve tan(x)=sec(x)

vs

solve tan(x)=sec(x) over the reals

I invite you to try that. Note that all these WolframAlpha inputs correspond to Mathematica commands like the following:

In[1]:= Tan[Pi/2]
(* Out[1]= ComplexInfinity *)

In[2]:= Sec[Pi/2]
(* Out[2]= ComplexInfinity *)

In[3]:= Reduce[Tan[x] == Sec[x], x]
(* Out[3]= Element[C[1], Integers] && x == Pi/2 + 2 Pi C[1] *)

In[4]:= Reduce[Tan[x] == Sec[x], x, Reals]
(* Out[4]= False *)
7
On

$$\frac1{\cos\theta}=\frac{\sin\theta}{\cos\theta}\iff\begin{cases}\sin\theta=1\\{}\\and\\{}\\\cos\theta\neq0\end{cases}$$

and since the lower case always happens when the upper one happens, there is no solution.

If WA tells otherwise then it is, again, wrong.

0
On

Suppose that $$\sec\theta = \tan\theta$$ then it follows, from the Pythagorean identity that $$\sec^2\theta=\tan^2\theta+1$$ $$\tan^2\theta=\tan^2\theta+1$$ $$0=1$$ which is a contradiction, therefore my original supposition (that $\sec\theta=\tan\theta$) was false.

0
On

Note that the solution W|A claims is $\frac12 (4\pi n + \pi) = \frac\pi2 + 2\pi n$ but $\tan\theta$ is never defined for $\theta = \frac\pi2 + 2\pi n$, thus you have found an error in W|A, wich you should report to them using their feedback form.

0
On

Why not?

$\sec \theta = \tan \theta \leftrightarrow \dfrac{1}{cos \theta}=\dfrac{\sin \theta}{\cos \theta} $. We should conver this into $\cos \theta$.

$\dfrac{1}{cos \theta}=\dfrac{\pm \sqrt{1-cos^2 \theta}}{\cos \theta}$. Now, we can cut $\cos \theta$ from both sides when $\cos \theta\ne0$. But at last we gets $\cos \theta = 0$.. so, it is a contradiction.

In the WA, by watching graph, we can imagine if it intersects then it will only once, whence in solution, it tells the graph interects many times. This is not semms right.