Skip to main content
K12 LibreTexts

2.7.3: Tangent and Cotangent Graphs

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Involve asymptotes spaced \(\pi\) radians apart.

    What if your instructor gave you a set of graphs like these:

    Figure \(\PageIndex{1}\)

    and asked you to identify which were the graphs of the tangent and cotangent functions?

    Tangent and cotangent Graphs

    The name of the tangent function comes from the tangent line of a circle. This is a line that is perpendicular to the radius at a point on the circle so that the line touches the circle at exactly one point.

    Figure \(\PageIndex{2}\)

    If we extend angle \(\theta \) through the unit circle so that it intersects with the tangent line, \(\tan \theta \) will be equal to the length of the red segment. Below, this segment is labeled the "tangent segment".

    Figure \(\PageIndex{3}\)

    Why? The dashed segment is 1 because it is the radius of the unit circle. Recall that in general, \(\tan \theta =\dfrac{y}{x}\). So here, \(\tan \theta =\dfrac{\text{tangent segment}}{1}=\text{tangent segment}\)

    As the value of \(\theta \) increases, the value of \(\tan \theta\) changes. As we rotate through the first quadrant, the value of \(\tan \theta \) will increase very slowly at first and then more rapidly.

    Figure \(\PageIndex{4}\)
    Figure \(\PageIndex{5}\)
    Figure \(\PageIndex{6}\)

    As we get very close to the y−axis the segment gets infinitely large, until when the angle really hits \( 90^{\circ}\), at which point the extension of the angle and the tangent line will actually be parallel and therefore never intersect.

    Figure \(\PageIndex{7}\)

    This means there is no finite length of the tangent segment, or the tangent segment is infinitely large.

    Let’s translate this portion of the graph onto the coordinate plane. Plot \((\theta ,\tan \theta )\) as \((x,y)\).

    Figure \(\PageIndex{8}\)
    Figure \(\PageIndex{9}\)
    Figure \(\PageIndex{10}\)
    Figure \(\PageIndex{11}\)

    In fact as we get infinitely close to \(90^{\circ}\), the tangent value increases without bound, until when we actually reach \(90^{\circ}\), at which point the tangent is undefined. Recall there are some angles (\(90^{\circ}\) and \(270^{\circ}\), for example) for which the tangent is not defined. Therefore, at these points, there are going to be vertical asymptotes.

    Rotating past \(90^{\circ}\), the intersection of the extension of the angle and the tangent line is actually below the x−axis. This fits nicely with what we know about the tangent for a \(2^{nd}\) quadrant angle being negative. At first, it will have very large negative values, but as the angle rotates, the segment gets shorter, reaches 0, then crosses back into the positive numbers as the angle enters the \(3^{rd}\) quadrant. The segment will again get infinitely large as it approaches \(270^{\circ}\). After being undefined at \(270^{\circ}\), the angle crosses into the \(4^{th}\) quadrant and once again changes from being infinitely negative, to approaching zero as we complete a full rotation.

    Figure \(\PageIndex{12}\)
    Figure \(\PageIndex{13}\)
    Figure \(\PageIndex{14}\)

    The graph \(y=\tan x\) over several rotations would look like this:

    Figure \(\PageIndex{15}\)

    Notice the x−axis is measured in radians. Our asymptotes occur every \(\pi \) radians, starting at \(\dfrac{\pi}{2}\). The period of the graph is therefore \(\pi \) radians. The domain is all reals except for the asymptotes at \(\dfrac{\pi}{2},\; \dfrac{3\pi}{2} ,\; −\dfrac{\pi}{2}\), etc. and the range is all real numbers.

    cotangent is the reciprocal of tangent, \(\dfrac{x}{y}\), so it would make sense that where ever the tangent had an asymptote, now the cotangent will be zero. The opposite of this is also true. When the tangent is zero, now the cotangent will have an asymptote. The shape of the curve is generally the same, so the graph looks like this:

    Figure \(\PageIndex{16}\)
    Figure \(\PageIndex{17}\)

    When you overlap the two functions, notice that the graphs consistently intersect at 1 and -1. These are the angles that have \(45^{\circ}\) as reference angles, which always have tangents and cotangents equal to 1 or -1. It makes sense that 1 and -1 are the only values for which a function and it’s reciprocal are the same. Keep this in mind as we look at cosecant and secant compared to their reciprocals of sine and cosine.

    The cotangent function has a domain of all real angles except multiples of \(\pi {\ldots −2\pi ,−\pi , 0, \pi , 2\pi \ldots}\) The range is all real numbers.

    Sketching Graphs

    1. Sketch the graph of \(g(x)=−2+\cot \dfrac{1}{3}x\) over the interval \([0,6\pi ]\)

    Starting with \(y=\cot x\), \(g(x)\) would be shifted down two and frequency is \(\dfrac{1}{3}\), which means the period would be \(3\pi \), instead of \(9\pi \). So, in our interval of \([0,6\pi ]\) there would be two complete repetitions. The red graph is \(y=\cot x\).

    Figure \(\PageIndex{18}\)

    2. Sketch the graph of \(y=−3\tan \left(x−\dfrac{\pi}{4} \right)\) over the interval \([−\pi , 2\pi ]\)

    If you compare this graph to \(y=\tan x\), it will be stretched and flipped. It will also have a phase shift of \(\dfrac{\pi}{4} \) to the right. The red graph is \(y=\tan x\).

    Figure \(\PageIndex{19}\)

    3. Sketch the graph of \(h(x)=4\tan \left(x+\dfrac{\pi}{2}\right)+3\) over the interval \([0,2\pi ]\)

    The constant in front of the tangent function will cause the graph to be stretched. It will also have a phase shift of \(\dfrac{\pi}{2}\) to the left. Finally, the graph will be shifted up three. Here you can see both graphs, where the red graph is \(y=\tan x\).

    Figure \(\PageIndex{20}\)
    Example \(\PageIndex{1}\)

    Earlier, you were asked to identify which graphs are tangent and cotangent.


    As you can tell after completing this section, when presented with the graphs:

    1. f-d_359c9ec86300870ded7b0d256bbc518f4aed88fbcee03f92bfdbf08e+IMAGE_TINY+IMAGE_TINY.jpg
      Figure \(\PageIndex{21}\)
    2. f-d_1eb90bf52af003c8523060c0ecd961166e006a1ad14e9343abf75768+IMAGE_TINY+IMAGE_TINY.jpg
      Figure \(\PageIndex{22}\)
    3. f-d_35f229ef73a0074c7da5c9b33bc8958dd8cefa31db7d815ac7acb06b+IMAGE_TINY+IMAGE_TINY.jpg
      Figure \(\PageIndex{23}\)
    4. f-d_d8e15f828dcd8c67ab8a99cdc979727a3717974ffa57efcb1a401762+IMAGE_TINY+IMAGE_TINY.jpg
      Figure \(\PageIndex{24}\)
    5. f-d_a6e29259dcc3345d244ada5284e4e8e3de66412e998d9e575cdc0f0c+IMAGE_TINY+IMAGE_TINY.jpg
      Figure \(\PageIndex{25}\)
    6. f-d_e794236b76f4798e53b98077bb06b31749ea757588ad2a5a2afc8789+IMAGE_TINY+IMAGE_TINY.jpg
      Figure \(\PageIndex{26}\)

    The tangent and cotangent graphs are the third and sixth graphs.

    Example \(\PageIndex{2}\)

    Graph \(y=−1+\dfrac{1}{3}\cot 2x\)


    Figure \(\PageIndex{27}\)
    Example \(\PageIndex{4}\)

    Graph \(f(x)=4+\tan (0.5(x−\pi ))\)


    Figure \(\PageIndex{28}\)
    Example \(\PageIndex{5}\)

    Graph \(y=−2\tan 2x\)


    Figure \(\PageIndex{29}\)


    Graph each of the following functions

    1. \(f(x)=\tan (x)\)
    2. \(h(x)=\tan (2x)\)
    3. \(k(x)=\tan (2x+\pi )\)
    4. \(m(x)=−\tan (2x+\pi )\)
    5. \(g(x)=−\tan (2x+\pi )+3\)
    6. \(f(x)=\cot (x)\)
    7. \(h(x)=\cot (2x)\)
    8. \(k(x)=\cot (2x+\pi )\)
    9. \(m(x)=3\cot (2x+\pi )\)
    10. \(g(x)=−2+3\cot (2x+\pi )\)
    11. \(h(x)=\tan \left(\dfrac{x}{2}\right)\)
    12. \(k(x)=\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)\)
    13. \(m(x)=3\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)\)
    14. \(g(x)=3\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)−1\)
    15. \(h(x)=\cot \left(\dfrac{x}{2}\right)\)
    16. \(k(x)=\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)\)
    17. \(m(x)=−3\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)\)
    18. \(g(x)=2−3\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)\)

    Review (Answers)

    To see the Review answers, open this PDF file and look for section 2.11.


    Term Definition
    Circular Function A circular function is a function measured by examining the angle of rotation around the coordinate plane.

    This page titled 2.7.3: Tangent and Cotangent Graphs is shared under a CK-12 license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    CK-12 Foundation
    CK-12 Foundation is licensed under CK-12 Curriculum Materials License
    • Was this article helpful?