The tangent function is defined as $\tan(x) = \frac{\sin(x)}{\cos(x)}$. The function is undefined at $x = \pm \frac{\pi}{2}$ because the cosine function is zero at these points, which would make the denominator of the tangent function zero. This results in
Show more…