Britannica Sources used in this answer

At which angles are tangent and secant undefined?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In trigonometry, both the tangent and secant functions are undefined at angles where the cosine of the angle is equal to zero.

Because the tangent function is defined as tanA=sinAcosA and the secant function is the reciprocal of the cosine (secA=1cosA), division by zero occurs whenever cosA=0. This happens at angles defined by the expression:

A=π2+nπ

where n is any integer. At these values, the functions exhibit vertical asymptotes and diverge toward infinity.12