Maths Formulae Equations Horizontal Shifting

Horizontal Shifting – Graph Transformations in Functions

Learn horizontal shifting transformations of functions, how to translate graphs left or right. Key concept in function a...
🔑

Definition of Horizontal Shifting

A horizontal shift, also known as a horizontal translation, moves the graph of a function left or right along the x-axis without changing its shape, size, or orientation. The transformation is achieved by adding or subtracting a constant, denoted by h, directly to the input variable x within the function's definition. This is a fundamental type of rigid transformation in algebra and calculus.

\[ g(x) = f(x - h) \]
General Form of a Horizontal Shift

In this form, f(x) is the original function, g(x) is the transformed function, and h is the value of the horizontal shift. The direction of the shift is counter-intuitive: a positive h shifts the graph to the right, and a negative h (making the expression f(x+h)) shifts the graph to the left.

📐

Key Formulas for Horizontal Shifting

\[ g(x) = f(x - h) \]
General Shift Formula
\[ f(x - h), \text{ where } h > 0 \]
Shifts the graph RIGHT by h units
\[ f(x + h), \text{ where } h > 0 \]
Shifts the graph LEFT by h units
\[ (a, b) \rightarrow (a + h, b) \]
Point Transformation for g(x) = f(x-h)
\[ g(x) = af(b(x - h)) + k \]
Combined Transformations (h is the horizontal shift)
📊

Visualizing the Shift

+h f(x−h): shift right h f(x+h): shift left h h > 0 → right shift
Horizontal shifting: f(x−h) shifts the graph right by h units; f(x+h) shifts it left by h. The shape is unchanged — only its position along the x-axis moves.

Imagine a standard parabola, f(x) = x², with its vertex at the origin (0,0). A horizontal shift transforms this graph by moving it along the x-axis. If we apply the transformation g(x) = f(x - 3), which is g(x) = (x - 3)², the entire parabola moves 3 units to the right. Its new vertex is now at (3,0). Conversely, for g(x) = f(x + 2) or g(x) = (x + 2)², the parabola slides 2 units to the left, with its new vertex at (-2,0). The shape and upward orientation of the parabola remain identical in all cases.

⚙️

Properties of Horizontal Shifting

Shape Preservation: The fundamental shape, width, and orientation of the function's graph are not altered by a horizontal shift. It is a rigid transformation.

Domain Shift: If the domain of f(x) is [a, b], the domain of g(x) = f(x - h) becomes [a + h, b + h]. The entire set of valid inputs is shifted by h.

Range Invariance: The range (the set of all possible output values) of the function remains completely unchanged after a horizontal shift.

Key Point Translation: Any point (a, b) on the graph of f(x) moves to a new point (a + h, b) on the graph of g(x) = f(x - h). This applies to vertices, intercepts, and other characteristic points.

Vertical Asymptotes: If f(x) has a vertical asymptote at x = c, then g(x) = f(x - h) will have a vertical asymptote at x = c + h.

Y-Intercept Change: The y-intercept of f(x) is at (0, f(0)). The y-intercept of g(x) = f(x - h) is at (0, f(-h)).

🔬

Proof of Horizontal Shift Transformation

We want to prove that the graph of g(x) = f(x - h) is the graph of f(x) shifted horizontally by h units.

1. Start with an arbitrary point on the original graph:

Let (x₀, y₀) be any point on the graph of y = f(x). By definition, this means that y₀ = f(x₀).

2. Define a new point on the shifted graph:

Let (x₁, y₁) be the corresponding point on the graph of y = g(x), which we claim is shifted horizontally by h. This means the new point should have the coordinates x₁ = x₀ + h and y₁ = y₀.

3. Show that this new point satisfies the shifted function's equation:

We need to verify if y₁ = g(x₁). Let's substitute our new coordinates into the equation for g(x).

\[ g(x_1) = f(x_1 - h) \]

Now, substitute x₁ = x₀ + h into the expression:

\[ g(x_1) = f((x_0 + h) - h) = f(x_0) \]

From step 1, we know that f(x₀) = y₀. And from step 2, we set y₁ = y₀. Therefore:

\[ g(x_1) = y_0 = y_1 \]

Conclusion: We have shown that the point (x₀ + h, y₀) satisfies the equation y = g(x) = f(x - h). Since (x₀, y₀) was an arbitrary point on the original graph, this holds for all points. Thus, every point on the graph of f(x) is shifted h units horizontally to produce the graph of g(x).

✍️

Worked Example: Shifting a Function

Given the function f(x) = x³ - 2x, determine the equation of the new function, g(x), after shifting f(x) left by 4 units. Then, find the new coordinates of the point (2, 4) from the original graph.
  1. Identify the transformation rule. A shift to the left by 4 units corresponds to h = -4. The rule is g(x) = f(x - h) = f(x - (-4)) = f(x + 4).
  2. Substitute (x + 4) for every x in the original function f(x).
  3. g(x) = (x + 4)³ - 2(x + 4)
  4. Expand and simplify the expression: g(x) = (x³ + 12x² + 48x + 64) - (2x + 8)
  5. g(x) = x³ + 12x² + 46x + 56
  6. Apply the point transformation rule (a, b) → (a + h, b). Here, (a, b) = (2, 4) and h = -4.
  7. New x-coordinate = 2 + (-4) = -2. The y-coordinate remains the same.
  8. The new point is (-2, 4).
The new function is g(x) = x³ + 12x² + 46x + 56, and the point (2, 4) moves to (-2, 4).
🧮

Try It

🚀

Applications in Science and Engineering

Physics & Engineering: Horizontal shifts are used to model time delays in wave propagation (phase shifts), signal processing, and control systems. For example, the response of a system to a stimulus might be delayed by a few milliseconds, which is represented by a horizontal shift in its function.

Economics & Finance: Economists apply horizontal shifts to model market response lags. For instance, the effect of an interest rate change on consumer spending might not be observed immediately but after a delay of several months, which is modeled as a shift along the time axis.

Music & Audio Engineering: In digital audio workstations, horizontal shifting is used for timing corrections, creating echo and delay effects, and ensuring different tracks are synchronized (beat matching).

Medicine & Biology: Medical researchers model circadian rhythm shifts due to travel (jet lag) or changes in work schedules. The timing of drug administration for maximum efficacy (chronotherapy) also relies on understanding these phase shifts in biological processes.

🌍

Real-World Examples

A radio wave's electric field is modeled by the function E(t) = 5cos(ωt), where t is time in seconds. Due to the distance from the transmitter, the signal is received with a time delay of 0.1 seconds. What is the function E_delayed(t) that models the received signal?
  1. Identify the original function: E(t) = 5cos(ωt).
  2. A time delay of 0.1 seconds means the graph must shift to the right by 0.1 units.
  3. A shift to the right by h = 0.1 is represented by replacing t with (t - 0.1).
  4. Substitute (t - 0.1) into the function E(t).
The delayed signal is modeled by the function E_delayed(t) = 5cos(ω(t - 0.1)).
The average daily temperature in a city is modeled by T(m) = -15cos(π/6 * m) + 10, where m is the month (m=1 for January). A neighboring city in a slightly different climate zone experiences the same temperature pattern, but its seasons are delayed by half a month. What is the temperature model T_neighbor(m) for the second city?
  1. Identify the original function: T(m) = -15cos(π/6 * m) + 10.
  2. A delay of half a month means a horizontal shift to the right by h = 0.5.
  3. The transformation requires replacing the input variable m with (m - 0.5).
  4. Substitute (m - 0.5) into the function T(m).
The temperature model for the neighboring city is T_neighbor(m) = -15cos(π/6 * (m - 0.5)) + 10.
🏞️

Where Horizontal Shifts Appear

+h f(x−h): phase shift right
Time Zone and DST Phase Shifts
Seasonal temperature T(d) = A·sin(2πd/365) shifts by h days between time zones: T_zone(d) = T(d − h). A horizontal shift right by h days moves the entire seasonal curve later. Climate scientists model this as f(x−h) to compare temperature cycles across latitudes, and HVAC engineers use it to schedule heating/cooling systems that must account for a location's thermal lag relative to the solar calendar.
shift f(x−h): vertex moves right h
Video Game Sprite Animation Offset
In game development, a character's walking animation follows a periodic function f(t). When the character starts walking at time t₀, the animation begins at f(t − t₀) — a horizontal shift by t₀. All sprite-based animations use this principle: each character instance stores a phase offset (the h in f(x−h)), allowing multiple characters to run the same animation at different starting times without duplicating the animation data.
signal delay: f(t−τ)
Echo and Signal Delay in Audio Processing
An echo is the original audio signal f(t) shifted right by delay τ: echo(t) = A·f(t−τ). Digital reverb effects in music production mix f(t) + A·f(t−τ) + A²·f(t−2τ) + … to simulate room echoes. Sonar and radar use the delay τ = 2d/c to compute object distance d. The horizontal shift f(t−τ) is the mathematical foundation of all delay-based audio and ranging systems.

Broadcast Delays: A live television or radio broadcast is often delayed by a few seconds before being aired. The graph representing the audio signal at the broadcast station is horizontally shifted to the right compared to the graph of the signal at the source event.

Seasonal Business Cycles: A company that sells swimwear will have a sales peak in the summer. A similar company in the opposite hemisphere will have the exact same sales curve shape, but it will be shifted horizontally by six months along the time axis.

Traffic Flow: The pattern of traffic congestion at one point on a highway will appear later at a point several miles down the road. The graph of traffic volume versus time for the downstream location is a horizontally shifted version of the graph for the upstream location.

🗂️

Types of Shifts and Notations

Shift DirectionConditionTransformationGeometric Interpretation
Right Shift (Delay)h > 0g(x) = f(x - h)Graph moves h units in the positive x-direction.
Left Shift (Advance)h > 0g(x) = f(x + h)Graph moves h units in the negative x-direction.

Phase Shift: In the context of periodic functions like sine and cosine, a horizontal shift is called a phase shift. It describes how much the start of a cycle is advanced or delayed relative to a standard position. For a function like y = A sin(B(x - C)) + D, the value C represents the phase shift.

⚠️

Common Mistakes to Avoid

⚠️ Confusing the Sign: The most common error is assuming f(x + h) shifts right and f(x - h) shifts left. Remember the rule is counter-intuitive: the sign inside the parenthesis is opposite to the direction of the shift. 'Minus moves right, plus moves left'.
⚠️ Incorrect Order of Operations: When combined with a horizontal stretch (e.g., f(2x - 6)), the shift is not 6 units. You must factor out the coefficient first: f(2(x - 3)). The horizontal shift is 3 units to the right, applied after a horizontal compression by a factor of 2.
💡 Applying Shift to Y-coordinate: A horizontal shift ONLY affects the x-coordinates of points on the graph. A point (a, b) becomes (a + h, b) for a right shift by h, not (a, b + h) or (a + h, b + h).
🚀

Study Strategy

1 🧠 Grasp the Core Concept
  • Focus on why f(x - h) shifts right and f(x + h) shifts left, connecting it to the input value.
  • Use the 'Visualizing the Shift' section to build a mental map of the graph's movement along the x-axis.
  • Review the formal definition to understand that the transformation affects the input variable directly.
  • Contrast horizontal shifting with vertical shifting to clarify the difference between changing input (x) vs. output (y).
2 📝 Commit Formulas to Memory
  • Write out the key formulas g(x) = f(x - h) and g(x) = f(x + h) repeatedly, labeling the direction of the shift.
  • Create flashcards to quiz yourself on the shift direction based on the sign (+ or -) inside the function.
  • Recite the 'Properties of Horizontal Shifting', emphasizing that the domain changes but the range remains the same.
  • Study the 'Types of Shifts and Notations' to recognize the formula in various forms, like y = (x-3)^2 or y = |x+1|.
3 ✍️ Practice with Examples
  • Follow the 'Worked Example' step-by-step, then replicate the solution without looking at the guide.
  • Take a parent function like f(x) = x^2 and apply various shifts (e.g., f(x-2), f(x+5)) and sketch the results.
  • Review the 'Common Mistakes to Avoid' and actively check your practice problems for these specific errors.
  • Solve problems that combine horizontal shifts with other transformations, like vertical shifts or reflections, to build complexity.
4 🌍 Apply to Real-World Problems
  • Analyze the 'Applications in Science and Engineering' to see how horizontal shifts represent time delays in signals.
  • Explain one of the 'Real-World Examples', such as a phase shift in a sound wave, in your own words.
  • Find a trigonometric function (sine or cosine) and apply a horizontal shift to model a real-world periodic phenomenon.
  • Create your own simple scenario, like a production process starting later than planned, and model it with a horizontal shift.
By systematically understanding, memorizing, practicing, and applying, you will master horizontal shifts and unlock a deeper intuition for function transformations.

Frequently Asked Questions

×

×