Graphing Tangent and Cotangent: Transformations – Study Notes
offline

Difficulty: Intermediate | Prerequisites: Part 1 (parent tangent and cotangent functions), basic function transformations (shifts, stretches, reflections)


Big Picture

Once you know the parent tangent and cotangent graphs, the next step is learning how to shift, stretch, compress, and reflect them using the general form y = a tan[b(x − h)] + k (or the cotangent equivalent). This is the same transformation framework used for sine and cosine, so if you have already studied those transformations, you are reapplying familiar tools. The difference is that tangent and cotangent have no amplitude, and their period formula is π/b rather than 2π/b. This topic is heavily tested: expect to read parameters off an equation, sketch the transformed graph, or identify an equation from a given graph.


TL;DR

The general form y = a tan[b(x − h)] + k has four parameters. The value of a controls vertical stretch and reflection, b controls the period (π/b), h shifts the graph left or right, and k shifts it up or down. Each parameter acts independently, so you can apply them one at a time when sketching.


Key Terms

General form

y = a tan[b(x − h)] + k or y = a cot[b(x − h)] + k. This is the template equation that captures every possible transformation of the parent function in a single expression.

Vertical stretch/compression (a)

The coefficient a scales every y-value of the parent function by that factor. |a| > 1 stretches the graph vertically; 0 < |a| < 1 compresses it. In simple terms, a controls how steep the curve is near its inflection point.

Reflection

When a is negative, the graph is flipped across the x-axis. A tangent curve that normally rises from −∞ to +∞ will instead fall from +∞ to −∞ within each period, and vice versa for cotangent.

Period (π/b)

The horizontal length of one full cycle of the transformed function. For tangent and cotangent, period = π/b. Think of b as a horizontal speed dial: larger b means shorter period (compressed), smaller b means longer period (stretched).

Phase shift (h)

The horizontal translation of the graph. In the form (x − h), a positive h moves the graph to the right, and a negative h moves it to the left. In simple terms, h slides the entire pattern sideways without changing its shape.

Vertical shift (k)

The constant added outside the function that moves the entire graph up (positive k) or down (negative k). The asymptotes stay in the same x-positions; only the y-values shift.


Core Content

Vertical Translations: y = tan(x) + k or y = cot(x) + k

  • The value of k shifts the graph up or down by k units

  • Positive k: translate up

  • Negative k: translate down

  • Asymptotes do not move (they are vertical lines at fixed x-values, unaffected by vertical shifts)

  • The x-intercepts do move, because the curve now crosses y = 0 at different points

  • Example: y = cot(x) − 3 takes the parent cotangent graph and shifts every point down 3 units. The asymptotes remain at x = nπ, but the curve now passes through (π/2, −3) instead of (π/2, 0).

Phase Shifts: y = tan(x − h) or y = cot(x − h)

  • The value of h shifts the graph left or right by h units

  • The shift direction depends on the sign inside the parentheses, and the standard form is (x − h):

    • If h is positive, shift right

    • If h is negative, shift left

  • Watch the sign carefully: y = tan(x + π/4) is the same as y = tan(x − (−π/4)), so h = −π/4, meaning the graph shifts π/4 units to the left

  • Asymptotes and x-intercepts both shift by the same amount as the curve

  • Example: y = tan(x − π/4) shifts the parent tangent graph π/4 units to the right. The asymptotes move from x = π/2 + nπ to x = π/2 + π/4 + nπ = 3π/4 + nπ.

Period Changes: y = tan(bx) or y = cot(bx)

  • The new period is calculated as π/b

  • If b > 1, the period is shorter than π, meaning the graph is compressed horizontally (cycles repeat more often)

  • If 0 < b < 1, the period is longer than π, meaning the graph is stretched horizontally (cycles repeat less often)

  • Example: y = tan(x/2). Rewrite as y = tan((1/2)x), so b = 1/2. New period = π/(1/2) = 2π. The graph stretches horizontally, with asymptotes now spaced 2π apart instead of π apart.

Vertical Stretch: y = a tan(x) or y = a cot(x)

  • The coefficient a multiplies every output value of the parent function

  • |a| > 1 produces a steeper curve near the centre of each period

  • 0 < |a| < 1 produces a flatter curve near the centre

  • If a < 0, the graph is also reflected across the x-axis

  • Asymptotes are unaffected (vertical stretch does not move the x-positions of asymptotes)

  • Example: y = 5 cot(x). The parent cotangent graph is stretched vertically by a factor of 5. At x = π/4 the parent gives cot(π/4) = 1, but the transformed function gives 5(1) = 5.

Putting It All Together: y = a tan[b(x − h)] + k

This is the general form. To graph it, work through the parameters in a consistent order:

  • Step 1: Identify a, b, h, and k from the equation

  • Step 2: Calculate the new period: π/b

  • Step 3: Determine the phase shift: h units right (if positive) or left (if negative)

  • Step 4: Determine the vertical shift: k units up or down

  • Step 5: Note the vertical stretch/compression factor |a| and whether a is negative (reflection)

  • Step 6: Sketch the parent function, then apply the transformations in sequence: period change, phase shift, vertical stretch/reflection, vertical shift

Worked Example: y = (1/2) cot(x + π/2) − 2

Rewrite as y = (1/2) cot[1·(x − (−π/2))] − 2 to read off the parameters:

  • a = 1/2 (vertical compression by half)

  • b = 1, so period = π/1 = π (same as the parent)

  • h = −π/2, so the graph shifts π/2 units to the left

  • k = −2, so the graph shifts 2 units down

To sketch: start with the parent cot(x) graph, shift it π/2 to the left, compress all y-values by half, then shift everything down 2 units.


Formulas and Diagrams

Parameter

Symbol

What it controls

Formula / rule

Vertical stretch/compression

a

Steepness and reflection

|a| > 1 stretches, 0 < |a| < 1 compresses, a < 0 reflects over x-axis

Period

b

Horizontal spacing of cycles

New period = π/b

Phase shift

h

Left/right position

h > 0 shifts right, h < 0 shifts left

Vertical shift

k

Up/down position

k > 0 shifts up, k < 0 shifts down

Period formula comparison (easy to mix up):

  • Sine and cosine: period = 2π/b

  • Tangent and cotangent: period = π/b


Real-World Applications

In signal processing, tangent-like functions with adjusted periods and phase shifts model certain repeating behaviours in circuits. The parameter-reading skill you build here (identifying a, b, h, k from a graph) transfers directly to analysing any periodic function in physics or engineering, from alternating current waveforms to pendulum motion.


Common Misconceptions

  • Students frequently use the sine/cosine period formula (2π/b) for tangent and cotangent. The correct formula is π/b. This is one of the most common errors on exams.

  • When reading a phase shift from y = tan(x + π/4), students sometimes say "shift right by π/4." The standard form is (x − h), so x + π/4 = x − (−π/4), giving h = −π/4, which means shift left. Always convert to (x − h) form before deciding the direction.

  • Students sometimes think vertical stretch affects the asymptote locations. It does not. Asymptotes are vertical lines determined only by b and h (period and phase shift). The coefficient a only changes the y-values, not the x-positions of asymptotes.

  • Confusing vertical shift with the midline of the function: tangent and cotangent have no bounded midline the way sine and cosine do, but k still shifts the entire graph up or down, including the inflection points.


Why It Matters / Exam Flags

⚠️ The most common exam question gives you an equation in general form and asks you to state the period, phase shift, vertical shift, and asymptote locations. Practise extracting all four parameters quickly.

⚠️ Graphing questions typically ask you to sketch one or two full periods of a transformed tangent or cotangent function. The marking scheme usually awards separate marks for correct asymptotes, correct intercepts, and correct shape, so even a partial sketch can earn credit.

⚠️ Watch for equations where b is a fraction (like x/2 or x/3). Students lose marks by forgetting to find the reciprocal when computing the period.

⚠️ Multiple-choice items often test whether you know the difference between π/b (tan and cot) and 2π/b (sin and cos). This is a free mark if you have it memorised.


Quick Self-Test

  1. Fill in the blank: The period of y = tan(3x) is ___.

  1. True or false: In y = cot(x − π/3), the graph shifts π/3 units to the left.

  1. Fill in the blank: If a = −2 in y = a tan(x), the graph is vertically stretched by a factor of ___ and reflected across the ___.

  1. True or false: The vertical shift k moves the asymptotes up or down.

  1. Fill in the blank: The period formula for tangent and cotangent is ___, not 2π/b.

Answers: 1. π/3. 2. False (it shifts π/3 to the right, because the form is x − h with h = π/3). 3. 2, x-axis. 4. False (asymptotes are vertical lines at fixed x-values; k only shifts y-values). 5. π/b.


Practice Q&A

Q: For y = 4 tan[2(x − π/6)] + 1, state the period, phase shift, vertical stretch factor, and vertical shift.

A: Period = π/2 (since b = 2). Phase shift = π/6 to the right. Vertical stretch factor = 4. Vertical shift = 1 unit up.

Q: Write the asymptote locations for y = tan[2(x − π/6)] + 1.

A: The parent asymptotes are at x = π/2 + nπ. With b = 2, one period is π/2, and asymptotes within one period of the parent occur at ±π/4 from the centre. Applying the phase shift of π/6: asymptotes at x = π/6 + π/4 + n(π/2), which simplifies to x = 5π/12 + nπ/2, where n is any integer.

Q: How does the graph of y = −cot(x) differ from y = cot(x)?

A: It is reflected across the x-axis. The parent cotangent decreases from +∞ to −∞ within each period; the reflected version increases from −∞ to +∞ within each period. Asymptotes and x-intercepts remain in the same positions.

Q: Graph y = (1/2) cot(x + π/2) − 2. State the transformations applied to the parent cot(x).

A: Phase shift π/2 to the left (h = −π/2), vertical compression by a factor of 1/2 (a = 1/2), and vertical shift 2 units down (k = −2). The period remains π since b = 1.

Q: A tangent function has period 2π and passes through the origin. Write a possible equation.

A: y = tan(x/2). Here b = 1/2, so period = π/(1/2) = 2π. At x = 0, tan(0) = 0, so the curve passes through the origin.


Connections to Other Topics

The a, b, h, k transformation framework here is identical to the one used for sine and cosine transformations, so mastering it once covers four of the six trig functions. Secant and cosecant transformations follow the same logic as well, since sec(x) = 1/cos(x) and csc(x) = 1/sin(x). In calculus, the derivative of tan(x) is sec²(x), and knowing the shape of the tangent graph helps you visualise why that derivative is always positive (tangent is always increasing within each period).


Related Terms / Search Tags

tangent transformations, cotangent transformations, phase shift tangent, period of tangent formula, vertical stretch trig, y = a tan b(x-h) + k, horizontal compression tangent, graphing transformed trig functions, precalculus trig transformations, Edgenuity graphing tangent cotangent, tan period pi over b, cot asymptotes shifted, trig function translations