AP® Precalculus · Unit 3 · Topic 3.8

Transforming the Tangent Function

Transforming tangent means applying y = a·tan(b(x-c)) + d: a stretches branches vertically, b changes how fast they rise by rescaling the period, c slides the whole pattern sideways, and d shifts it up or down.

Tangent's graph is built from asymptotes, not from a highest or lowest point, and that's the key to understanding its transformations. Asymptotes occur where cosine equals zero, since tan(x) = sin(x)/cos(x). A vertical stretch, the a in y = a·tan(x), multiplies every output value, making branches rise and fall more steeply. But multiplying outputs by a nonzero number never turns a zero denominator into something else, so the asymptotes stay exactly where they were. If a is negative, each branch flips across the x-axis: what used to climb from bottom-left to top-right now falls from top-left to bottom-right, but the vertical lines marking the asymptotes don't budge.

The b inside y = tan(bx) works differently, because it rescales the input before cosine ever sees it. Ordinary tangent has period π, with asymptotes at x = π/2 + k·π. Replace x with bx, and the whole pattern compresses or stretches horizontally by a factor of 1/b, giving a new period of π/b and squeezing or spreading the asymptotes to match. Larger b packs branches closer together; smaller b spreads them out.

Shifts work just like they do for any function: c inside the parentheses slides the graph left or right, and d outside slides it up or down. These four moves combine the same way they do for sine, cosine, and every other function family you've stretched and shifted this unit, which means tangent's transformations aren't a new idea, just a familiar one applied to a trickier-looking parent graph.

Key terms

asymptote
A vertical line the graph approaches but never crosses, located where tangent's denominator, cosine, equals zero.
period
The horizontal distance after which the graph's pattern repeats; for tan(bx) it equals π/b.
point of inflection
The point in the middle of a tangent branch where the curve crosses its midline and changes concavity.
vertical stretch
Multiplying every output value by a constant a, making the graph taller or shorter without moving its asymptotes.

Watch it explained

  1. How it worksHow does b in tan(bx) change the spacing between consecutive asymptotes?
  2. Worked exampleGraph y = 2 tan(x - π/4) and locate its asymptotes and its point of inflection.
  3. Going furtherWhat happens to the branches when a is negative in y = a tan(x)?

Check yourself

Your turn1 of 2
The graph of y = tan(x) is vertically stretched by 7 and shifted right by 0.719. Write the equation of the resulting function.

End of topic.