Solved Exercises on Graphing Sine and Cosine Functions in Precalculus

Master graphing sine and cosine functions: amplitude, period, phase shift, vertical shift, and transformations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic sine function
Exercise 1
Graph the function f(x) = 2sin(x) for two complete periods. Identify the amplitude, period, domain, range, and key points.
Definition:

General Form: f(x) = A sin(Bx - C) + D, where A is amplitude, B affects period, C affects phase shift, and D is vertical shift.

Amplitude: The maximum displacement from the midline, equal to |A|.

Graphing method:
  1. Identify the parameters: A, B, C, D from the general form
  2. Calculate amplitude: |A|
  3. Calculate period: 2π/|B|
  4. Identify phase shift: C/B
  5. Identify vertical shift: D
  6. Plot key points: midline, maximum, minimum, and quarter points
  7. Draw the sinusoidal curve
Function
f(x) = 2sin(x)
Parameters
A = 2, B = 1, C = 0, D = 0
Properties
Amplitude = 2, Period = 2π
Step 1: Identify parameters

f(x) = 2sin(x) has A = 2, B = 1, C = 0, D = 0

Step 2: Calculate amplitude

Amplitude = |A| = |2| = 2

Step 3: Calculate period

Period = 2π/|B| = 2π/1 = 2π

Step 4: Identify shifts

Phase shift = C/B = 0/1 = 0

Vertical shift = D = 0

Step 5: Plot key points for two periods

First period [0, 2π]: (0,0), (π/2,2), (π,0), (3π/2,-2), (2π,0)

Second period [2π, 4π]: (5π/2,2), (3π,0), (7π/2,-2), (4π,0)

Amplitude: 2, Period: 2π, Domain: (-∞, ∞), Range: [-2, 2]
Final answer:

The function f(x) = 2sin(x) has amplitude 2 and period 2π. The domain is all real numbers and the range is [-2, 2]. The graph oscillates between -2 and 2, crossing the x-axis at multiples of π.

Applied rules:

• Amplitude Formula: |A| determines vertical stretch/compression

• Period Formula: 2π/|B| determines horizontal stretch/compression

• Sine Wave Properties: Starts at midline and rises to maximum

2 Cosine with transformations
Exercise 2
Graph the function f(x) = 3cos(2x - π) + 1 for two complete periods. Identify the amplitude, period, phase shift, vertical shift, and key points.
Definition:

Phase Shift: The horizontal shift of the function, calculated as C/B in the general form f(x) = A cos(Bx - C) + D.

Vertical Shift: The vertical displacement of the midline, equal to D in the general form.

Function
f(x) = 3cos(2x - π) + 1
Parameters
A = 3, B = 2, C = π, D = 1
Transformations
Amplitude = 3, Period = π, Phase shift = π/2, Vertical shift = 1
Step 1: Identify parameters

f(x) = 3cos(2x - π) + 1 has A = 3, B = 2, C = π, D = 1

Step 2: Calculate amplitude

Amplitude = |A| = |3| = 3

Step 3: Calculate period

Period = 2π/|B| = 2π/2 = π

Step 4: Calculate phase shift

Phase shift = C/B = π/2 (shifted π/2 units to the right)

Step 5: Identify vertical shift

Vertical shift = D = 1 (midline is y = 1)

Step 6: Determine key points

Standard cosine starts at maximum, so at x = π/2 (phase shift), f(π/2) = 3cos(0) + 1 = 4

Key points: (π/2, 4), (3π/4, 1), (π, -2), (5π/4, 1), (3π/2, 4)

Amplitude: 3, Period: π, Phase shift: π/2 right, Vertical shift: 1 up
Final answer:

The function f(x) = 3cos(2x - π) + 1 has amplitude 3, period π, phase shift π/2 to the right, and vertical shift 1 unit up. The range is [-2, 4] and the midline is y = 1.

Applied rules:

• Phase Shift Formula: C/B determines horizontal shift direction

• Vertical Shift: D moves entire graph up or down

• Cosine Properties: Starts at maximum value

3 Sine with phase shift
Exercise 3
Graph the function f(x) = sin(x + π/3) - 2 for two complete periods. Find the amplitude, period, phase shift, vertical shift, and determine the equation of the midline.
Definition:

Midline: The horizontal line y = D that represents the average value of the function.

Phase Shift Direction: Positive C/B shifts right, negative C/B shifts left (when in form Bx - C).

Function
f(x) = sin(x + π/3) - 2
Rewritten Form
f(x) = sin(x - (-π/3)) - 2
Properties
Amplitude = 1, Period = 2π, Phase shift = -π/3, Vertical shift = -2
Step 1: Rewrite in standard form

f(x) = sin(x + π/3) - 2 = sin(x - (-π/3)) - 2

So A = 1, B = 1, C = -π/3, D = -2

Step 2: Calculate amplitude

Amplitude = |A| = |1| = 1

Step 3: Calculate period

Period = 2π/|B| = 2π/1 = 2π

Step 4: Calculate phase shift

Phase shift = C/B = (-π/3)/1 = -π/3 (shifted π/3 units to the left)

Step 5: Identify vertical shift

Vertical shift = D = -2 (midline is y = -2)

Step 6: Find key points

Standard sine starts at midline and rises, so at x = -π/3, f(-π/3) = sin(0) - 2 = -2

Key points: (-π/3, -2), (π/6, -1), (2π/3, -2), (7π/6, -3), (5π/3, -2)

Amplitude: 1, Period: 2π, Phase shift: π/3 left, Vertical shift: 2 down, Midline: y = -2
Final answer:

The function f(x) = sin(x + π/3) - 2 has amplitude 1, period 2π, phase shift π/3 to the left, and vertical shift 2 units down. The equation of the midline is y = -2, and the range is [-3, -1].

Applied rules:

• Phase Shift Direction: Negative C/B means shift left

• Midline Equation: y = D

• Range Calculation: [D - |A|, D + |A|]

Key Concepts: Graphing Sine and Cosine Functions
\(f(x) = A\sin(Bx - C) + D\)
General Form
Amplitude
\(A\)
Vertical stretch/compression
Period
\(\frac{2\pi}{|B|}\)
Horizontal stretch/compression
Phase Shift
\(\frac{C}{B}\)
Horizontal shift
Key definitions:

Amplitude: The maximum displacement from the midline, equal to |A| in the general form. It determines the vertical stretch of the function.

Period: The length of one complete cycle, calculated as 2π/|B|. It determines the horizontal compression/stretch.

Phase Shift: The horizontal displacement of the function, calculated as C/B. Positive values shift right, negative values shift left.

Graphing Methodology:
  1. Identify Parameters: Extract A, B, C, D from the function in standard form
  2. Calculate Properties: Find amplitude, period, phase shift, and vertical shift
  3. Determine Key Points: Calculate quarter points for one period
  4. Sketch Midline: Draw the horizontal line y = D
  5. Plot Critical Points: Maximum, minimum, and midline crossings
  6. Draw Curve: Connect points with smooth sinusoidal curve
  7. Extend Graph: Repeat pattern for additional periods
Tip 1: Remember that sine starts at midline and cosine starts at maximum value.
Tip 2: Phase shift is C/B, not just C. Pay attention to the coefficient B.
Tip 3: The range is always [D - |A|, D + |A|] regardless of the function type.
Tip 4: Use quarter points: 0, π/2, π, 3π/2, 2π for basic sine/cosine.
Common errors: Forgetting to factor out coefficients when identifying parameters, misinterpreting phase shift direction, confusing amplitude with period.
Exam preparation: Practice with various combinations of transformations, memorize the standard forms, understand how each parameter affects the graph.
Essential Rules:

• Amplitude: |A| determines vertical stretch/compression

• Period: 2π/|B| determines horizontal stretch/compression

• Phase Shift: C/B determines horizontal shift direction

• Vertical Shift: D moves entire graph up/down

• Range: [D - |A|, D + |A|] for any sinusoidal function

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

Reflection: A negative coefficient A causes a reflection across the midline, flipping the graph vertically.

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

Function
f(x) = -2cos(3x + π/2) + 4
Standard Form
f(x) = -2cos(3x - (-π/2)) + 4
Parameters
A = -2, B = 3, C = -π/2, D = 4
Step 1: Identify parameters

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

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

Step 2: Calculate transformations

Amplitude = |A| = |-2| = 2

Period = 2π/|B| = 2π/3

Phase shift = C/B = (-π/2)/3 = -π/6 (left by π/6)

Vertical shift = D = 4 (up by 4)

Step 3: Analyze the negative coefficient

Since A = -2 is negative, the graph is reflected across the midline y = 4

This means it starts at minimum instead of maximum

Step 4: Find key points

Starting point (minimum): x = -π/6, f(-π/6) = -2cos(0) + 4 = 2

Quarter points: (-π/6, 2), (-π/12, 4), (0, 6), (π/12, 4), (π/6, 2)

Step 5: Sketch the graph

The graph starts at minimum (2), rises to maximum (6), then returns to minimum (2)

Midline is y = 4, amplitude is 2, so graph oscillates between 2 and 6

Amplitude: 2, Period: 2π/3, Phase shift: π/6 left, Vertical shift: 4 up, Reflected
Final answer:

The function f(x) = -2cos(3x + π/2) + 4 has amplitude 2, period 2π/3, phase shift π/6 to the left, vertical shift 4 units up, and is reflected across the midline. The range is [2, 6] and the midline is y = 4.

Applied rules:

• Reflection Rule: Negative A reflects across midline

• Combined Effects: All transformations occur simultaneously

• Starting Behavior: Negative cosine starts at minimum

5 Application problem
Exercise 5
The height of a person on a Ferris wheel is modeled by h(t) = 15sin(πt/5 - π/2) + 20, where h is in feet and t is in minutes. Find the maximum and minimum heights, period of rotation, and the height after 3 minutes.
Definition:

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

Amplitude in Context: Half the difference between maximum and minimum values.

Function
h(t) = 15sin(πt/5 - π/2) + 20
Parameters
A = 15, B = π/5, C = π/2, D = 20
Physical Values
Max = 35 ft, Min = 5 ft, Period = 10 min
Step 1: Identify parameters

h(t) = 15sin(πt/5 - π/2) + 20

A = 15, B = π/5, C = π/2, D = 20

Step 2: Calculate maximum and minimum heights

Maximum height = D + |A| = 20 + 15 = 35 feet

Minimum height = D - |A| = 20 - 15 = 5 feet

Step 3: Calculate period

Period = 2π/|B| = 2π/(π/5) = 2π × 5/π = 10 minutes

The Ferris wheel completes one rotation every 10 minutes

Step 4: Calculate height after 3 minutes

h(3) = 15sin(π(3)/5 - π/2) + 20

h(3) = 15sin(3π/5 - π/2) + 20

h(3) = 15sin(6π/10 - 5π/10) + 20

h(3) = 15sin(π/10) + 20

h(3) = 15(0.309) + 20 ≈ 4.64 + 20 = 24.64 feet

Step 5: Interpret results

The Ferris wheel has a radius of 15 feet (amplitude)

The center of the wheel is 20 feet above ground (vertical shift)

After 3 minutes, the person is about 24.64 feet above ground

Max: 35 ft, Min: 5 ft, Period: 10 min, Height at 3 min: ≈24.64 ft
Final answer:

The maximum height is 35 feet and the minimum height is 5 feet. The Ferris wheel completes one rotation every 10 minutes. After 3 minutes, the person is approximately 24.64 feet above ground level.

Applied rules:

• Application Interpretation: Connect mathematical parameters to physical meaning

• Range Calculation: [D - |A|, D + |A|] for maximum and minimum values

• Substitution: Replace variable with specific value to find particular result

Comprehensive Summary: Graphing Sine and Cosine Functions
\(f(x) = A\sin(Bx - C) + D \text{ or } f(x) = A\cos(Bx - C) + D\)
General Forms
Key definitions:

Amplitude (A): The maximum displacement from the midline, equal to |A|. It determines the vertical stretch or compression of the function. The larger the amplitude, the taller the peaks and deeper the valleys.

Period: The length of one complete cycle, calculated as 2π/|B|. It determines how frequently the function repeats. Larger values of |B| result in shorter periods (more compressed horizontally).

Phase Shift: The horizontal displacement of the function, calculated as C/B. It shifts the entire graph left or right. A positive phase shift moves the graph right, while a negative phase shift moves it left.

Vertical Shift (D): The vertical displacement of the midline, equal to D. It moves the entire graph up or down. The midline of the function is the horizontal line y = D.

Complete Graphing Methodology:
  1. Parameter Identification: Extract A, B, C, and D from the function written in standard form
  2. Property Calculation: Compute amplitude, period, phase shift, and vertical shift
  3. Midline Determination: Draw the horizontal line y = D
  4. Scale Setting: Determine vertical and horizontal scales based on calculated properties
  5. Key Point Calculation: Find maximum, minimum, and midline crossing points
  6. Graph Sketching: Plot key points and draw smooth sinusoidal curves
  7. Verification: Check that the graph exhibits all expected transformations
Tip 1: Remember that the period formula is 2π/|B|, not 2π/B. The absolute value is crucial.
Tip 2: Sine functions start at the midline and rise, while cosine functions start at the maximum value.
Tip 3: A negative amplitude reflects the graph across the midline, changing the starting behavior.
Tip 4: Always write the function in standard form (Bx - C) to correctly identify the phase shift.
Tip 5: The range is always [D - |A|, D + |A|] regardless of the function type or other parameters.
Common errors: Forgetting the absolute value in amplitude and period calculations, misinterpreting phase shift direction, confusing the effects of different parameters, failing to account for reflections caused by negative coefficients.
Exam preparation: Practice identifying parameters from various forms of equations, work with compound transformations, master the relationship between parameters and graph features, and solve application problems.
Essential Rules and Properties:

• Amplitude Formula: |A| determines vertical scaling and maximum displacement

• Period Formula: 2π/|B| determines horizontal scaling and cycle length

• Phase Shift Formula: C/B determines horizontal translation

• Vertical Shift: D determines the midline position

• Range Formula: [D - |A|, D + |A|] for all sinusoidal functions

• Reflection Effect: Negative A flips graph across midline

• Domain: All real numbers for sine and cosine functions

Visual Analysis: Sine and Cosine Transformations
Exercise 6: Transformation Comparison
Compare the graphs of: f(x) = sin(x), g(x) = 2sin(x), h(x) = sin(2x), k(x) = sin(x - π/2)

Analysis: The comparison shows how different parameters affect the basic sine function.

  • Amplitude change (2sin(x)): Vertical stretch by factor of 2
  • Period change (sin(2x)): Horizontal compression, period becomes π
  • Phase shift (sin(x - π/2)): Horizontal shift right by π/2

Questions & Answers

Question: How do I determine the phase shift when the function is written as f(x) = sin(x + c) instead of f(x) = sin(x - c)?

Answer: This is a common source of confusion! The key is to rewrite the function in standard form:

  • Standard form: f(x) = sin(Bx - C), where phase shift = C/B
  • For f(x) = sin(x + c): Rewrite as f(x) = sin(x - (-c)), so phase shift = -c/1 = -c
  • For f(x) = sin(x - c): Phase shift = c/1 = c

So when you see sin(x + c), it's equivalent to sin(x - (-c)), which means the phase shift is -c (shifted left by c units).

Example: f(x) = sin(x + π/3) = sin(x - (-π/3)), so phase shift = -π/3, meaning shift π/3 units to the left.

Always rewrite in the form Bx - C to correctly identify the phase shift as C/B.

Question: Why does a negative coefficient A cause the graph to flip upside down? What's happening mathematically?

Answer: When A is negative, we're multiplying the entire function by -1, which creates a reflection across the midline:

  • Without reflection: f(x) = sin(x) starts at midline (0) and rises to maximum (+1)
  • With reflection: f(x) = -sin(x) starts at midline (0) and falls to minimum (-1)

Mathematical explanation: If A is negative, say A = -k where k > 0, then:

f(x) = -k·sin(Bx - C) + D = -(k·sin(Bx - C)) + D

This means every output value is negated, so peaks become valleys and valleys become peaks, creating a reflection across the midline y = D.

For cosine: f(x) = cos(x) starts at maximum, but f(x) = -cos(x) starts at minimum.

Question: How do I know whether to use sine or cosine for graphing? Does it matter which one I choose?

Answer: The choice between sine and cosine affects the phase shift, but both can represent the same wave pattern:

Key differences:

  • Sine: f(x) = sin(x) starts at midline and rises (goes through origin)
  • Cosine: f(x) = cos(x) starts at maximum value

Interchangeability: You can convert between them using phase shifts:

  • sin(x) = cos(x - π/2)
  • cos(x) = sin(x + π/2)

Which to use: Choose based on the given information:

  • If function starts at midline: use sine
  • If function starts at maximum/minimum: use cosine
  • If you have flexibility, choose whichever leads to simpler phase shift

Both will give the same graph if you adjust the phase shift accordingly.

Question: What happens to the graph when the period is a fraction? For example, in f(x) = sin(3x), how does the graph change?

Answer: When B > 1 (making the period a fraction), the graph becomes horizontally compressed:

  • Basic sine: f(x) = sin(x) has period 2π (completes one cycle in 2π units)
  • Compressed sine: f(x) = sin(3x) has period 2π/3 (completes one cycle in 2π/3 units)

Effect: The graph oscillates 3 times faster, completing 3 full cycles in the space where the basic sine completes 1 cycle.

General rule: For f(x) = sin(Bx) where B > 1:

  • Period = 2π/B (shorter than 2π)
  • Graph appears "squeezed" horizontally
  • More oscillations per unit interval

Conversely: When 0 < B < 1, the period is longer than 2π, and the graph is stretched horizontally, oscillating more slowly.

For f(x) = sin(0.5x), the period is 2π/0.5 = 4π, so it oscillates half as fast.

Question: How does graphing sine and cosine functions prepare me for calculus, especially when taking derivatives?

Answer: Graphing skills are crucial for understanding derivatives of trigonometric functions:

Geometric Understanding:

  • Slope Analysis: Graphing helps visualize where functions are increasing/decreasing
  • Derivative Patterns: d/dx[sin(x)] = cos(x) and d/dx[cos(x)] = -sin(x) become clearer with graphs
  • Maximum/Minimum Points: Graphing shows where derivatives equal zero

Transformation Rules: In calculus, you'll encounter derivatives of transformed functions:

  • d/dx[sin(Bx)] = B·cos(Bx) (chain rule effect)
  • Understanding B affects the period helps with differentiation

Applications: Many calculus problems involve optimizing trigonometric functions or analyzing periodic motion, requiring strong graphing intuition.

Your graphing skills provide the visual foundation for understanding the behavior of trigonometric functions in calculus contexts.