Solved Exercises on Graphing Tangent and Cotangent in Precalculus

Master graphing tangent and cotangent: asymptotes, period, phase shift, vertical stretch, and transformations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic tangent function
Exercise 1
Graph the function f(x) = tan(x) for one complete period. Identify the period, domain, range, and all vertical asymptotes. Explain the behavior of the function near the asymptotes.
Definition:

Tangent Function: f(x) = tan(x) = sin(x)/cos(x). Undefined when cos(x) = 0, which occurs at odd multiples of π/2.

Vertical Asymptotes: Vertical lines where the function approaches positive or negative infinity.

Graphing method:
  1. Identify the period of the function
  2. Find the locations of vertical asymptotes
  3. Plot key points between asymptotes
  4. Sketch the curve approaching the asymptotes
  5. Extend the pattern for additional periods
Function
f(x) = tan(x)
Period
π
Asymptotes
x = π/2 + nπ, n ∈ ℤ
Step 1: Identify the period

The basic tangent function has period π, meaning it repeats every π units

Step 2: Find vertical asymptotes

tan(x) = sin(x)/cos(x) is undefined when cos(x) = 0

cos(x) = 0 at x = π/2 + nπ where n is any integer

For one period from -π/2 to π/2: asymptotes at x = -π/2 and x = π/2

Step 3: Plot key points

At x = 0: f(0) = tan(0) = 0

At x = π/4: f(π/4) = tan(π/4) = 1

At x = -π/4: f(-π/4) = tan(-π/4) = -1

Step 4: Analyze behavior near asymptotes

As x approaches π/2 from the left: tan(x) → +∞

As x approaches -π/2 from the right: tan(x) → -∞

Step 5: Determine domain and range

Domain: All real numbers except x = π/2 + nπ, n ∈ ℤ

Range: (-∞, ∞)

Period: π, Domain: x ≠ π/2 + nπ, Range: (-∞, ∞), Asymptotes: x = π/2 + nπ
Final answer:

The function f(x) = tan(x) has period π, vertical asymptotes at x = π/2 + nπ (where n is any integer), domain of all real numbers except the asymptote locations, and range of all real numbers. The function increases from -∞ to +∞ between consecutive asymptotes.

Applied rules:

• Tangent Definition: tan(x) = sin(x)/cos(x)

• Asymptote Location: Where denominator equals zero

• Period Property: tan(x) has period π

2 Transformed cotangent function
Exercise 2
Graph the function f(x) = 2cot(3x) for one complete period. Find the period, asymptotes, and explain how the coefficient affects the graph.
Definition:

Cotangent Function: f(x) = cot(x) = cos(x)/sin(x). Undefined when sin(x) = 0, which occurs at multiples of π.

General Form: f(x) = A cot(Bx) has period π/|B| and vertical asymptotes where Bx = nπ.

Function
f(x) = 2cot(3x)
Parameters
A = 2, B = 3
Properties
Period = π/3, Asymptotes at x = nπ/3
Step 1: Identify parameters

f(x) = 2cot(3x) has A = 2 and B = 3

Step 2: Calculate period

For f(x) = A cot(Bx), the period is π/|B|

Period = π/3

Step 3: Find vertical asymptotes

cot(3x) = cos(3x)/sin(3x) is undefined when sin(3x) = 0

sin(3x) = 0 when 3x = nπ, so x = nπ/3 where n is any integer

Step 4: Find zeros of the function

cot(3x) = 0 when cos(3x) = 0

cos(3x) = 0 when 3x = π/2 + nπ, so x = π/6 + nπ/3

Step 5: Plot key points

Between x = 0 and x = π/3 (one period):

At x = π/6: f(π/6) = 2cot(π/2) = 2(0) = 0

At x = π/12: f(π/12) = 2cot(π/4) = 2(1) = 2

At x = π/4: f(π/4) = 2cot(3π/4) = 2(-1) = -2

Step 6: Analyze the coefficient A = 2

The coefficient A = 2 creates a vertical stretch by a factor of 2

This makes the function increase/decrease more rapidly

Period: π/3, Asymptotes: x = nπ/3, Zeros: x = π/6 + nπ/3
Final answer:

The function f(x) = 2cot(3x) has period π/3, vertical asymptotes at x = nπ/3 (where n is any integer), and zeros at x = π/6 + nπ/3. The coefficient A = 2 creates a vertical stretch, making the function steeper.

Applied rules:

• Cotangent Definition: cot(x) = cos(x)/sin(x)

• Period Formula: π/|B| for A cot(Bx)

• Asymptote Location: Where sin(Bx) = 0

3 Tangent with phase shift
Exercise 3
Graph the function f(x) = tan(2x - π/4) for one complete period. Find the period, phase shift, and locations of vertical asymptotes.
Definition:

Phase Shift: The horizontal shift of the function. For f(x) = tan(Bx - C), the phase shift is C/B.

General Form: f(x) = tan(Bx - C) has period π/|B| and phase shift C/B.

Function
f(x) = tan(2x - π/4)
Parameters
B = 2, C = π/4
Properties
Period = π/2, Phase shift = π/8 right
Step 1: Identify parameters

f(x) = tan(2x - π/4) has B = 2 and C = π/4

Step 2: Calculate period

For f(x) = tan(Bx - C), the period is π/|B|

Period = π/2

Step 3: Calculate phase shift

Phase shift = C/B = (π/4)/2 = π/8

The graph shifts π/8 units to the right

Step 4: Find vertical asymptotes

tan(2x - π/4) is undefined when 2x - π/4 = π/2 + nπ

2x = π/4 + π/2 + nπ = 3π/4 + nπ

x = 3π/8 + nπ/2

Step 5: Find zeros of the function

tan(2x - π/4) = 0 when 2x - π/4 = nπ

2x = π/4 + nπ

x = π/8 + nπ/2

Step 6: Plot key points for one period

One period from x = π/8 to x = 5π/8:

At x = π/8: f(π/8) = tan(0) = 0

At x = 3π/8: f(3π/8) = tan(π/2) = undefined (asymptote)

At x = π/2: f(π/2) = tan(3π/4) = -1

Period: π/2, Phase shift: π/8 right, Asymptotes: x = 3π/8 + nπ/2
Final answer:

The function f(x) = tan(2x - π/4) has period π/2, phase shift π/8 to the right, and vertical asymptotes at x = 3π/8 + nπ/2 (where n is any integer). The zeros occur at x = π/8 + nπ/2.

Applied rules:

• Period Formula: π/|B| for tan(Bx - C)

• Phase Shift Formula: C/B for horizontal shift

• Asymptote Calculation: Solve Bx - C = π/2 + nπ

Key Concepts: Graphing Tangent and Cotangent
\(f(x) = A\tan(Bx - C) + D \text{ or } f(x) = A\cot(Bx - C) + D\)
General Forms
Tangent Period
\(\frac{\pi}{|B|}\)
Period for tangent
Cotangent Period
\(\frac{\pi}{|B|}\)
Period for cotangent
Phase Shift
\(\frac{C}{B}\)
Horizontal translation
Key definitions:

Tangent Function: f(x) = tan(x) = sin(x)/cos(x). Has vertical asymptotes where cos(x) = 0, at odd multiples of π/2.

Cotangent Function: f(x) = cot(x) = cos(x)/sin(x). Has vertical asymptotes where sin(x) = 0, at multiples of π.

Period: The distance between consecutive vertical asymptotes. For tan and cot, this is π/|B|.

Vertical Asymptotes: Lines where the function approaches positive or negative infinity. Occur where the denominator equals zero.

Graphing Methodology:
  1. Identify Parameters: Extract A, B, C, D from the function in standard form
  2. Calculate Period: Find π/|B| for both tangent and cotangent
  3. Find Asymptotes: Determine where the function is undefined
  4. Find Zeros: Determine where the function equals zero
  5. Plot Key Points: Calculate values at strategic points between asymptotes
  6. Sketch Graph: Draw the curve approaching asymptotes
  7. Apply Stretches: Account for vertical and horizontal stretches/compressions
Tip 1: Remember that tan(x) has asymptotes at odd multiples of π/2, while cot(x) has asymptotes at multiples of π.
Tip 2: Tangent increases from -∞ to +∞ between asymptotes, while cotangent decreases from +∞ to -∞.
Tip 3: The period is always π/|B| for both tangent and cotangent functions.
Tip 4: Negative A values reflect the graph across the x-axis.
Common errors: Forgetting to adjust asymptote locations for transformed functions, misidentifying the period, confusing tangent and cotangent behaviors, forgetting that ranges are always (-∞, ∞).
Exam preparation: Practice with various combinations of transformations, master asymptote location formulas, understand the difference between tangent and cotangent behaviors, work with fractional coefficients.
Essential Rules:

• Period Formula: π/|B| for both tan and cot functions

• Tangent Asymptotes: cos(Bx - C) = 0 → Bx - C = π/2 + nπ

• Cotangent Asymptotes: sin(Bx - C) = 0 → Bx - C = nπ

• Range: (-∞, ∞) for both tan and cot functions

• Domain: All reals except asymptote locations

Solution: Exercises 4 to 5
4 Complex transformation
Exercise 4
Graph the function f(x) = -3cot(4x + π/2) for one complete period. Determine all transformations and explain how the negative sign affects the graph.
Definition:

Reflection: When A is negative, the graph is reflected across the x-axis, reversing the direction of the function.

Combined Transformations: Multiple transformations applied simultaneously to the basic function.

Function
f(x) = -3cot(4x + π/2)
Standard Form
f(x) = -3cot(4x - (-π/2))
Transformations
A = -3, B = 4, C = -π/2, Period = π/4, Phase shift = -π/8
Step 1: Rewrite in standard form

f(x) = -3cot(4x + π/2) = -3cot(4x - (-π/2))

So A = -3, B = 4, C = -π/2

Step 2: Calculate period

Period = π/|B| = π/4

Step 3: Calculate phase shift

Phase shift = C/B = (-π/2)/4 = -π/8

The graph shifts π/8 units to the left

Step 4: Find vertical asymptotes

cot(4x + π/2) is undefined when sin(4x + π/2) = 0

4x + π/2 = nπ

4x = -π/2 + nπ

x = -π/8 + nπ/4

Step 5: Find zeros of the function

cot(4x + π/2) = 0 when cos(4x + π/2) = 0

4x + π/2 = π/2 + nπ

4x = nπ

x = nπ/4

Step 6: Analyze the negative coefficient

Since A = -3 is negative, the graph is reflected across the x-axis

Instead of decreasing from +∞ to -∞ between asymptotes, it increases from -∞ to +∞

Step 7: Plot key points

Between x = -π/8 and x = π/8 (one period):

At x = 0: f(0) = -3cot(π/2) = -3(0) = 0

At x = π/16: f(π/16) = -3cot(π/4 + π/2) = -3cot(3π/4) = -3(-1) = 3

Period: π/4, Phase shift: π/8 left, Asymptotes: x = -π/8 + nπ/4, Reflected
Final answer:

The function f(x) = -3cot(4x + π/2) has period π/4, phase shift π/8 to the left, and vertical asymptotes at x = -π/8 + nπ/4. The negative coefficient A = -3 reflects the graph across the x-axis, causing it to increase from -∞ to +∞ between consecutive asymptotes instead of decreasing.

Applied rules:

• Reflection Rule: Negative A reflects across x-axis

• Asymptote Formula: Solve for when denominator equals zero

• Combined Effects: All transformations occur simultaneously

5 Application problem
Exercise 5
The height of a wave in a tank is modeled by h(t) = 2tan(πt/4 - π/2) + 1, where h is in centimeters and t is in seconds. Find the period of oscillation and explain when the wave height becomes undefined.
Definition:

Modeling: Using trigonometric functions to represent real-world periodic phenomena.

Undefined Values: Points where the function has vertical asymptotes, representing extreme behavior.

Function
h(t) = 2tan(πt/4 - π/2) + 1
Parameters
A = 2, B = π/4, C = π/2, D = 1
Period
Period = 4 seconds
Step 1: Identify parameters

h(t) = 2tan(πt/4 - π/2) + 1

A = 2, B = π/4, C = π/2, D = 1

Step 2: Calculate period

Period = π/|B| = π/(π/4) = π × 4/π = 4 seconds

The wave pattern repeats every 4 seconds

Step 3: Calculate phase shift

Phase shift = C/B = (π/2)/(π/4) = π/2 × 4/π = 2 seconds

The pattern is shifted 2 seconds to the right

Step 4: Find when the function is undefined

tan(πt/4 - π/2) is undefined when πt/4 - π/2 = π/2 + nπ

πt/4 = π/2 + π/2 + nπ = π + nπ

t/4 = 1 + n

t = 4 + 4n seconds

Step 5: Interpret the physical meaning

The wave height becomes undefined every 4 seconds, starting at t = 4s

This represents moments when the wave reaches extreme heights approaching infinity

Step 6: Analyze the model limitations

In reality, wave heights cannot reach infinity

The model represents idealized behavior near critical points

Period: 4 seconds, Undefined at t = 4 + 4n seconds
Final answer:

The period of oscillation is 4 seconds. The wave height becomes undefined at t = 4, 8, 12, 16, ... seconds (every 4 seconds starting at t = 4). This mathematical model represents extreme wave behavior at these critical times.

Applied rules:

• Application Interpretation: Connect mathematical parameters to physical meaning

• Period Formula: π/|B| for tangent functions

• Asymptote Calculation: Solve for undefined values in real-world context

Comprehensive Summary: Graphing Tangent and Cotangent
\(f(x) = A\tan(Bx - C) + D \text{ or } f(x) = A\cot(Bx - C) + D\)
General Forms
Key definitions:

Tangent Function (tan x): Defined as sin x/cos x. Has vertical asymptotes where cos x = 0 (at odd multiples of π/2). Increases from -∞ to +∞ between consecutive asymptotes. Period is π.

Cotangent Function (cot x): Defined as cos x/sin x. Has vertical asymptotes where sin x = 0 (at multiples of π). Decreases from +∞ to -∞ between consecutive asymptotes. Period is π.

Vertical Asymptotes: Lines where the function approaches positive or negative infinity. For tan(Bx - C), asymptotes occur when Bx - C = π/2 + nπ. For cot(Bx - C), asymptotes occur when Bx - C = nπ.

Period: The distance between consecutive vertical asymptotes. For both tan and cot functions in the form A tan(Bx - C) + D or A cot(Bx - C) + D, the period is π/|B|.

Complete Graphing Methodology:
  1. Parameter Identification: Extract A, B, C, and D from the function written in standard form
  2. Period Calculation: Compute π/|B| for both tangent and cotangent functions
  3. Asymptote Location: Find where the function is undefined using appropriate formulas
  4. Zero Location: Find where the function equals zero
  5. Scale Setting: Determine vertical and horizontal scales based on calculated properties
  6. Key Point Calculation: Find function values at strategic points between asymptotes
  7. Graph Sketching: Draw asymptotes, plot key points, and sketch the curve
  8. Verification: Check that the graph exhibits all expected behaviors
Tip 1: Remember that both tan and cot have the same period formula: π/|B|.
Tip 2: Tangent increases between asymptotes, cotangent decreases between asymptotes.
Tip 3: Negative A reflects the graph across the x-axis, changing the direction of increase/decrease.
Tip 4: Always write the function in standard form (Bx - C) to correctly identify the phase shift.
Tip 5: The range is always (-∞, ∞) for both tangent and cotangent functions regardless of transformations.
Common errors: Confusing asymptote formulas for tan vs cot, forgetting to adjust asymptote locations for transformed functions, misidentifying the period, confusing the direction of increase/decrease between tan and cot, failing to account for reflections caused by negative coefficients.
Exam preparation: Practice identifying parameters from various forms of equations, master asymptote location formulas, understand the difference between tangent and cotangent behaviors, work with compound transformations, solve application problems.
Essential Rules and Properties:

• Period Formula: π/|B| for both A tan(Bx - C) + D and A cot(Bx - C) + D

• Tangent Asymptotes: Bx - C = π/2 + nπ (odd multiples of π/2)

• Cotangent Asymptotes: Bx - C = nπ (multiples of π)

• Phase Shift Formula: C/B determines horizontal translation

• Range: (-∞, ∞) for all tangent and cotangent functions

• Domain: All real numbers except asymptote locations

• Behavior: Tan increases, cot decreases between consecutive asymptotes

Visual Analysis: Tangent and Cotangent Comparisons
Exercise 6: Transformation Effects
Compare the graphs of: f(x) = tan(x), g(x) = 2tan(x), h(x) = tan(2x), k(x) = cot(x), m(x) = cot(x - π/4)

Analysis: The comparison shows how different parameters affect tangent and cotangent functions.

  • Vertical stretch (2tan(x)): Makes the function steeper
  • Horizontal compression (tan(2x)): Shortens the period to π/2
  • Phase shift (cot(x - π/4)): Shifts the graph π/4 units right
  • Tangent vs Cotangent: Opposite increasing/decreasing behaviors

Questions & Answers

Question: How do I remember where the asymptotes are for tangent and cotangent? I keep getting them mixed up.

Answer: Here's a helpful memory trick:

  • Tangent (tan x) = sin x/cos x: Undefined when cos x = 0, which occurs at odd multiples of π/2: ..., -3π/2, -π/2, π/2, 3π/2, ...
  • Cotangent (cot x) = cos x/sin x: Undefined when sin x = 0, which occurs at multiples of π: ..., -2π, -π, 0, π, 2π, ...

Memory aid: "Tan goes to heaven" - think of tangent approaching infinity at odd multiples of π/2 (like going up to heaven). "Cot is at the origin" - cotangent has asymptotes at multiples of π including 0.

For transformed functions f(x) = A tan(Bx - C) or f(x) = A cot(Bx - C), solve for when the denominator equals zero using the same logic.

Question: Why does tangent increase between asymptotes while cotangent decreases? What's the mathematical reason?

Answer: The behavior difference comes from the derivatives of these functions:

  • For tan x: d/dx[tan x] = sec²x = 1/cos²x, which is always positive when defined
  • For cot x: d/dx[cot x] = -csc²x = -1/sin²x, which is always negative when defined

Since the derivative of tan x is always positive, the function is always increasing on intervals where it's defined. Since the derivative of cot x is always negative, the function is always decreasing on intervals where it's defined.

This explains why tangent curves go from bottom left to top right between asymptotes, while cotangent curves go from top left to bottom right.

Question: How do I find the zeros of tangent and cotangent functions? Do they have zeros?

Answer: Yes, both tangent and cotangent functions have zeros:

  • Tangent zeros: tan x = 0 when sin x = 0, so at x = nπ (multiples of π)
  • Cotangent zeros: cot x = 0 when cos x = 0, so at x = π/2 + nπ (odd multiples of π/2)

For transformed functions:

  • A tan(Bx - C) + D: Zeros occur when Bx - C = nπ
  • A cot(Bx - C) + D: Zeros occur when Bx - C = π/2 + nπ

Note that the zeros of tan x occur at the same x-values where cot x has asymptotes, and vice versa. This is because tan x = sin x/cos x and cot x = cos x/sin x.

Question: What happens to the range of tangent and cotangent functions when I apply vertical stretches or shifts?

Answer: Unlike sine and cosine, vertical stretches and shifts do NOT change the range of tangent and cotangent functions:

For f(x) = A tan(Bx - C) + D:

  • Vertical stretch by |A|: Makes the function increase/decrease more rapidly
  • Vertical shift by D: Moves the entire graph up or down
  • Range remains: (-∞, ∞)

Why the range stays infinite: The vertical asymptotes ensure that the function still approaches both +∞ and -∞, regardless of vertical stretches or shifts. The function can still take on arbitrarily large positive and negative values.

This is fundamentally different from sine and cosine, where vertical transformations DO affect the range.

Only horizontal transformations (changing the period) affect the rate at which the function approaches infinity, but not the range itself.

Question: How do these tangent and cotangent graphing concepts prepare me for calculus, especially regarding limits and derivatives?

Answer: Understanding tangent and cotangent graphs is crucial for calculus:

Limits and Continuity:

  • Asymptotes represent infinite limits, fundamental to understanding limit behavior
  • Discontinuities in tangent/cotangent prepare you for piecewise functions

Derivatives:

  • tan x has derivative sec²x, which is always positive (explaining why tan increases)
  • cot x has derivative -csc²x, which is always negative (explaining why cot decreases)
  • Derivatives of tan and cot are used frequently in integration

Integration: The antiderivatives of sec²x and -csc²x are tan x and cot x, respectively, forming important integral formulas.

Your graphing skills provide the visual foundation for understanding these calculus concepts.