Britannica Sources used in this answer

Why does the graph of tangent have vertical asymptotes?

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

The graph of the tangent function has vertical asymptotes because the function is defined as the ratio of sine to cosine:

tanA=sinAcosA

In mathematics, division by zero is undefined. Therefore, the tangent function is undefined whenever the denominator, cosA, is equal to zero. These points occur at A=π2+nπ, where n is any integer. As the angle A approaches these values, the value of the tangent function increases or decreases without bound, resulting in the vertical lines on the graph known as asymptotes.1