Solved Exercises on Vertical and Horizontal Shifts in College Algebra

Master vertical and horizontal shifts: definition, applications, graphing transformations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Vertical shift problem
Exercise 1
Given \(f(x) = x^2\), write the equation for the function that shifts the graph of \(f(x)\) up by 3 units and down by 2 units.
Definition:

Vertical shift: Adding or subtracting a constant to a function moves its graph up or down

• \(f(x) + k\) shifts the graph up by \(k\) units

• \(f(x) - k\) shifts the graph down by \(k\) units

Transformation method:
  1. Start with the original function: \(f(x) = x^2\)
  2. Add constants to shift vertically
  3. Combine shifts if needed
Original function
\(f(x) = x^2\)
Shift up by 3
\(f(x) + 3 = x^2 + 3\)
Shift down by 2
\(f(x) + 3 - 2 = x^2 + 1\)
Step 1: Start with the original function

Given: \(f(x) = x^2\)

Step 2: Apply the vertical shift up by 3 units

Adding 3 to the function: \(f(x) + 3 = x^2 + 3\)

Step 3: Apply the vertical shift down by 2 units

Subtracting 2 from the previous result: \(x^2 + 3 - 2 = x^2 + 1\)

\(g(x) = x^2 + 1\)
Final answer:

The equation is \(g(x) = x^2 + 1\)

Applied rules:

• Vertical shift rule: \(f(x) + k\) shifts up, \(f(x) - k\) shifts down

• Order of operations: Perform shifts sequentially

• Net effect: Up 3 then down 2 results in net up 1

2 Horizontal shift problem
Exercise 2
Given \(f(x) = x^2\), write the equation for the function that shifts the graph of \(f(x)\) left by 4 units and right by 1 unit.
Definition:

Horizontal shift: Adding or subtracting a constant inside the function argument moves its graph left or right

• \(f(x + h)\) shifts the graph left by \(h\) units

• \(f(x - h)\) shifts the graph right by \(h\) units

Original function
\(f(x) = x^2\)
Shift left by 4
\(f(x + 4) = (x + 4)^2\)
Shift right by 1
\(f(x + 4 - 1) = (x + 3)^2\)
Step 1: Start with the original function

Given: \(f(x) = x^2\)

Step 2: Apply the horizontal shift left by 4 units

Replace \(x\) with \(x + 4\): \(f(x + 4) = (x + 4)^2\)

Step 3: Apply the horizontal shift right by 1 unit

Replace \(x\) with \(x - 1\) in the previous result: \(f((x - 1) + 4) = ((x - 1) + 4)^2 = (x + 3)^2\)

\(g(x) = (x + 3)^2\)
Final answer:

The equation is \(g(x) = (x + 3)^2\)

Applied rules:

• Horizontal shift rule: \(f(x + h)\) shifts left, \(f(x - h)\) shifts right

• Counterintuitive direction: Adding shifts left, subtracting shifts right

• Net effect: Left 4 then right 1 results in net left 3

3 Combined shifts problem
Exercise 3
Given \(f(x) = x^2\), write the equation for the function that shifts the graph of \(f(x)\) right by 2 units and up by 5 units.
Definition:

Combined shifts: Both vertical and horizontal shifts can be applied simultaneously using the general form \(f(x - h) + k\) where \(h\) is horizontal shift and \(k\) is vertical shift

Original function
\(f(x) = x^2\)
Right by 2 units
\(f(x - 2) = (x - 2)^2\)
Up by 5 units
\(f(x - 2) + 5 = (x - 2)^2 + 5\)
Step 1: Start with the original function

Given: \(f(x) = x^2\)

Step 2: Apply the horizontal shift right by 2 units

Replace \(x\) with \(x - 2\): \(f(x - 2) = (x - 2)^2\)

Step 3: Apply the vertical shift up by 5 units

Add 5 to the function: \(f(x - 2) + 5 = (x - 2)^2 + 5\)

\(g(x) = (x - 2)^2 + 5\)
Final answer:

The equation is \(g(x) = (x - 2)^2 + 5\)

Applied rules:

• Combined transformation: \(f(x - h) + k\) for horizontal and vertical shifts

• Horizontal shift: Right by \(h\) units uses \(f(x - h)\)

• Vertical shift: Up by \(k\) units adds \(k\) to the function

Shift Transformations: Core Concepts
\(f(x) + k\)
Vertical Shift Up by k Units
Vertical Shift Up
\(f(x) + k\)
Move graph up by \(k\) units
Vertical Shift Down
\(f(x) - k\)
Move graph down by \(k\) units
Horizontal Shift Left
\(f(x + h)\)
Move graph left by \(h\) units
Horizontal Shift Right
\(f(x - h)\)
Move graph right by \(h\) units
\(f(x - h) + k\)
Combined Shifts
\(\text{Vertex: } (h, k)\)
Vertex of Shifted Parabola
\(\text{Domain: } \mathbb{R}, \text{ Range: } [k, \infty)\)
Domain and Range for Parabolas
Solution: Exercises 4 to 5
4 Multiple shifts problem
Exercise 4
Given \(f(x) = \sqrt{x}\), write the equation for the function that shifts the graph of \(f(x)\) left by 3 units, up by 4 units, and down by 1 unit.
Definition:

Sequential shifts: Multiple transformations can be applied in sequence to achieve the desired result

Original function
\(f(x) = \sqrt{x}\)
Left by 3 units
\(f(x + 3) = \sqrt{x + 3}\)
Up by 4 units
\(f(x + 3) + 4 = \sqrt{x + 3} + 4\)
Down by 1 unit
\(f(x + 3) + 4 - 1 = \sqrt{x + 3} + 3\)
Step 1: Start with the original function

Given: \(f(x) = \sqrt{x}\)

Step 2: Apply the horizontal shift left by 3 units

Replace \(x\) with \(x + 3\): \(f(x + 3) = \sqrt{x + 3}\)

Step 3: Apply the vertical shift up by 4 units

Add 4 to the function: \(f(x + 3) + 4 = \sqrt{x + 3} + 4\)

Step 4: Apply the vertical shift down by 1 unit

Subtract 1 from the function: \(\sqrt{x + 3} + 4 - 1 = \sqrt{x + 3} + 3\)

\(g(x) = \sqrt{x + 3} + 3\)
Final answer:

The equation is \(g(x) = \sqrt{x + 3} + 3\)

Applied rules:

• Sequential transformations: Apply shifts in order

• Horizontal shift: Left by 3 uses \(f(x + 3)\)

• Net vertical shift: Up 4 then down 1 results in net up 3

5 Real-world application
Exercise 5
The height of a ball thrown upward follows the function \(h(t) = -16t^2 + 32t + 5\), where \(h\) is height in feet and \(t\) is time in seconds. Rewrite this function in vertex form to identify the maximum height and time to reach it.
Definition:

Vertex form: A quadratic function in the form \(f(x) = a(x - h)^2 + k\) where \((h, k)\) is the vertex of the parabola

Original function
\(h(t) = -16t^2 + 32t + 5\)
Factor out coefficient
\(h(t) = -16(t^2 - 2t) + 5\)
Complete the square
\(h(t) = -16(t - 1)^2 + 21\)
Step 1: Factor out the coefficient of the squared term

\(h(t) = -16t^2 + 32t + 5 = -16(t^2 - 2t) + 5\)

Step 2: Complete the square inside the parentheses

Take half of the coefficient of \(t\): \(\frac{-2}{2} = -1\)
Square it: \((-1)^2 = 1\)
Add and subtract 1 inside parentheses: \(t^2 - 2t + 1 - 1 = (t - 1)^2 - 1\)

Step 3: Complete the transformation

\(h(t) = -16[(t - 1)^2 - 1] + 5 = -16(t - 1)^2 + 16 + 5 = -16(t - 1)^2 + 21\)

Step 4: Identify the vertex

In vertex form \(h(t) = -16(t - 1)^2 + 21\), the vertex is at \((1, 21)\)

Maximum height: 21 feet at t = 1 second
Final answer:

The function in vertex form is \(h(t) = -16(t - 1)^2 + 21\). The maximum height is 21 feet, reached after 1 second.

Applied rules:

• Completing the square: Method to convert to vertex form

• Vertex identification: \((h, k)\) gives the vertex in \(f(x) = a(x - h)^2 + k\)

• Real-world interpretation: Vertex represents maximum in this case

Comprehensive Guide: Vertical and Horizontal Shifts
\text{Vertical: } f(x) \pm k \quad \text{Horizontal: } f(x \pm h)
Shift Transformations
Key definitions:

Vertical shift: A transformation that moves the graph of a function up or down along the y-axis

Horizontal shift: A transformation that moves the graph of a function left or right along the x-axis

Translation: A type of transformation that preserves the shape of the graph while changing its position

Vertex form: A quadratic function written as \(f(x) = a(x - h)^2 + k\) to easily identify transformations

Complete methodology:
  1. Identify the original function: Start with the base function before transformations
  2. Determine the type of shift: Decide if it's vertical or horizontal
  3. Apply the transformation: Add/subtract constants appropriately
  4. Combine multiple shifts: Apply shifts in the correct order if multiple
  5. Verify the result: Check that the transformation achieves the desired effect
Tip 1: For vertical shifts, add or subtract the constant outside the function: \(f(x) + k\).
Tip 2: For horizontal shifts, add or subtract the constant inside the function: \(f(x - h)\).
Tip 3: Horizontal shifts are counterintuitive: adding shifts left, subtracting shifts right.
Tip 4: The vertex form \(f(x) = a(x - h)^2 + k\) clearly shows shifts: right by \(h\), up by \(k\).
Common errors: Confusing horizontal and vertical shifts, forgetting the counterintuitive direction of horizontal shifts, mixing up addition and subtraction in the function.
Exam preparation: Practice identifying shifts from equations, graph transformations, convert between standard and vertex forms.
Essential rules to remember:

• Vertical shift: \(f(x) + k\) shifts up by \(k\), \(f(x) - k\) shifts down by \(k\)

• Horizontal shift: \(f(x + h)\) shifts left by \(h\), \(f(x - h)\) shifts right by \(h\)

• Combined shifts: \(f(x - h) + k\) shifts right by \(h\) and up by \(k\)

• Domain preservation: Horizontal shifts may affect domain, vertical shifts do not

• Range changes: Vertical shifts change range, horizontal shifts do not

Exercise with Visualization: Shift Transformations
Exercise 6: Comparing Different Shifts
Consider the following functions:
\(f_1(x) = x^2\) (Original)
\(f_2(x) = x^2 + 3\) (Vertical shift up)
\(f_3(x) = (x - 2)^2\) (Horizontal shift right)
\(f_4(x) = (x + 1)^2 - 2\) (Combined shifts)

Analysis: The chart compares the behavior of different shift transformations.

  • \(f_1(x) = x^2\) is the original parabola with vertex at (0, 0)
  • \(f_2(x) = x^2 + 3\) shifts the parabola up by 3 units (vertex at (0, 3))
  • \(f_3(x) = (x - 2)^2\) shifts the parabola right by 2 units (vertex at (2, 0))
  • \(f_4(x) = (x + 1)^2 - 2\) shifts left by 1 and down by 2 (vertex at (-1, -2))

Questions & Answers

Question: Why do horizontal shifts work in the opposite direction from what I expect? When I add a number inside the function, it shifts left, not right.

Answer: This is a common source of confusion! Think about it this way:

Consider the function \(f(x) = x^2\) and the transformed function \(g(x) = (x - 3)^2\).

The vertex of the original function is at \(x = 0\). For the transformed function to have the same output as the original at \(x = 0\), we need:

  • At \(x = 0\): \(g(0) = (0 - 3)^2 = 9\)
  • To get the same output as the original at \(x = 0\), we need the transformed function to behave as if \(x = 3\)
  • This means the graph has moved to the right by 3 units

The easiest way to remember:

  • \(f(x + h)\) shifts left by \(h\) units
  • \(f(x - h)\) shifts right by \(h\) units

Think of it as needing to compensate: to make the function behave as if the input were larger (by adding), you shift left to bring the graph toward smaller x-values.

Question: How do I combine multiple shifts? Do I need to apply them in a specific order?

Answer: For horizontal and vertical shifts, the order doesn't matter mathematically, but it helps to think systematically:

  1. Horizontal shifts: Work with the input variable first
  2. Vertical shifts: Work with the output last

For example, if you want to shift \(f(x) = x^2\) right by 2 and up by 3:

  • Right by 2: Replace \(x\) with \(x - 2\), giving \(f(x - 2) = (x - 2)^2\)
  • Up by 3: Add 3 to the function, giving \(f(x - 2) + 3 = (x - 2)^2 + 3\)

The general form is \(f(x - h) + k\) where \(h\) is the horizontal shift (right if positive) and \(k\) is the vertical shift (up if positive).

For the function \(f(x - 2) + 3\), the graph moves right by 2 units and up by 3 units from the original position.

Question: How do shifts affect the domain and range of a function?

Answer: Shifts affect domain and range differently:

Vertical shifts:

  • Domain: Unchanged (horizontal extent stays the same)
  • Range: Shifts up or down by the same amount as the vertical shift

Horizontal shifts:

  • Domain: Shifts left or right by the same amount as the horizontal shift
  • Range: Unchanged (vertical extent stays the same)

Example: For \(f(x) = x^2\) with domain \(\mathbb{R}\) and range \([0, \infty)\):

  • \(g(x) = x^2 + 5\) (vertical shift up by 5): domain \(\mathbb{R}\), range \([5, \infty)\)
  • \(h(x) = (x - 3)^2\) (horizontal shift right by 3): domain \(\mathbb{R}\), range \([0, \infty)\)
  • \(k(x) = (x - 3)^2 + 5\) (combined shifts): domain \(\mathbb{R}\), range \([5, \infty)\)

Notice that vertical shifts affect the range, while horizontal shifts affect the domain.