Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Function Reflections


Quadratic
f(x) = x²g(x) = −(x)²
×
880 × 600
Reflectingg(x) = −f(x)· across the x-axis
Across the x-axisFlips the curve upside down — every point (x, y) becomes (x, −y).Across the y-axisMirror image left ↔ right — every point (x, y) becomes (−x, y).Across the line y = xSwaps x and y coordinates. Reflects every point of f across the diagonal.Across the horizontal line y = cMirrors the curve across a horizontal line. Each (x, y) becomes (x, 2c − y).Across the vertical line x = cMirrors the curve across a vertical line. Each (x, y) becomes (2c − x, y).|f(x)| — output absolute valueReflects only the parts of f below the x-axis. Non-negative parts stay put.f(|x|) — input absolute valueReplaces the left half of the graph with a mirror copy of the right half.
No parameters for this reflection — see the Explanation panel.







Key Terms

Reflection — A geometric transformation that produces the mirror image of a curve across a chosen axis or line.

Axis of reflection — The line that acts as the mirror. Every point of the original is mapped to a partner the same perpendicular distance on the opposite side.

Even function — A function satisfying f(x)=f(x)f(-x) = f(x). Its graph is unchanged by the y-axis reflection.

Odd function — A function satisfying f(x)=f(x)f(-x) = -f(x). Its graph is unchanged by a 180°180° rotation about the origin.

One-to-one — A function where every output corresponds to exactly one input. Only one-to-one functions have inverses that are themselves functions.

Inverse function — The reflection of ff across the line y=xy = x. Written f1f^{-1}, it satisfies f1(f(x))=xf^{-1}(f(x)) = x.

Fixed point — A point that does not move under a transformation. For reflection across an axis, fixed points are those already sitting on the axis.

Getting Started

The visualizer has three columns. On the left is the base function picker with ten families. In the center sits the plot with the original curve ff in slate gray and the reflected curve gg in blue. On the right are the explanation panel and the reflection tab strip with seven tabs.

The page launches with the quadratic as base and the x-axis reflection active, so g(x)=x2g(x) = -x^2 appears as the upside-down parabola.

To explore, click a different base in the left column or pick a different reflection tab on the right. Equation badges above the plot rewrite to match. Tabs whose reflection has no parameters apply instantly; the y = c and x = c tabs expose a slider for the line offset cc, which you can drag, animate, or step through.

Choosing a Base Function

The left column lists ten common function families, with sine and cosine grouped under Trigonometric. Each entry shows a small glyph of the family's characteristic shape next to its name.

Click any family to load it as the new ff. The plot redraws with the original curve and the reflected curve, the equation badges update, and the explanation panel rewrites its "Applied to" section to describe what the current reflection does to this specific family.

Some families have symmetry properties that make certain reflections trivial — reflecting an even function across the y-axis leaves it unchanged, for example, and the explanation panel calls this out explicitly. Other families have restricted domains — the square root and the logarithm only exist for positive inputs — and reflections that flip the input swap the domain to the other side of the y-axis.

The Seven Reflection Tabs

    Seven tabs on the right control which reflection applies to the current base.

  • x-axis (g(x)=f(x)g(x) = -f(x)) — flips the curve upside down through the x-axis
  • y-axis (g(x)=f(x)g(x) = f(-x)) — mirrors the curve left to right across the y-axis
  • y = x — swaps xx and yy coordinates; produces the inverse function, or all branches if ff is not one-to-one
  • y = c (g(x)=2cf(x)g(x) = 2c - f(x)) — mirrors across a horizontal line; the slider controls cc
  • x = c (g(x)=f(2cx)g(x) = f(2c - x)) — mirrors across a vertical line; the slider controls cc
  • |f| (g(x)=f(x)g(x) = |f(x)|) — partial reflection: flips only the parts of ff below the x-axis
  • f(|x|) (g(x)=f(x)g(x) = f(|x|)) — replaces the left half of ff with a mirror of the right half

  • Hover any tab to see its formula and a one-line description in a tooltip.

The Parameter Tabs: y = c and x = c

The y = c and x = c tabs each expose a slider controlling the line offset cc. Values range from 6-6 to 66 in steps of 0.10.1, with a default of c=1c = 1.

For y = c, the axis of reflection is the horizontal line y=cy = c, drawn in orange on the plot. Each point (x,y)(x, y) of ff maps to (x,2cy)(x, 2c - y), the same vertical distance from the line but on the opposite side. When c=0c = 0, the result coincides with the x-axis reflection.

For x = c, the axis is the vertical line x=cx = c, marked by an orange band on the plot. Each point (x,y)(x, y) maps to (2cx,y)(2c - x, y) — same height, mirrored left-right. When c=0c = 0, the result coincides with the y-axis reflection.

Slider values appear in a small monospace badge on the tab. A Reset button restores the default c=1c = 1 for the active tab without disturbing the other.

Manual vs Auto Mode

The y = c and x = c tabs include a Manual / Auto toggle.

In Manual mode (default), drag the slider yourself. Each drag updates the reflection in real time.

In Auto mode, the slider becomes a playback target. A play/pause button starts the animation: cc sweeps from minimum to maximum and back, ping-ponging indefinitely. Step backward and step forward buttons let you advance one increment at a time.

Below the play controls, a Speed selector offers four presets: 0.5×0.5\times, 1×1\times, 2×2\times, and 4×4\times. Slower speeds are best for inspecting how the reflected curve aligns with the axis at specific values of cc; faster speeds let you sweep through the full range quickly to see the global pattern.

Auto mode is the fastest way to watch the line of reflection slide and see exactly how the reflected curve tracks the change.

The y = x Reflection and Multivalued Inverses

    The y = x tab swaps the roles of xx and yy, mapping each point (x,y)(x, y) of ff to (y,x)(y, x).

    For one-to-one functions — linear, cubic, reciprocal, exponential, logarithmic, and square root in this set — the reflection is itself a function: the inverse f1f^{-1}. The two curves form a perfect mirror image across the orange diagonal.

    For functions that are not one-to-one, the reflection is multivalued — a single xx can correspond to multiple yy values. The visualizer plots all branches of the reflection:

  • Quadratic ±x\to \pm\sqrt{x} — two branches forming a sideways parabola
  • Absolute value ±x\to \pm x for x0x \geq 0 — two rays forming a sideways V
  • Sine arcsin(x)+2πk\to \arcsin(x) + 2\pi k and πarcsin(x)+2πk\pi - \arcsin(x) + 2\pi k — many periodic branches
  • Cosine ±arccos(x)+2πk\to \pm\arccos(x) + 2\pi k — many periodic branches

  • To get a single-valued inverse from one of these, you must restrict ff to a principal branch before reflecting.

Partial Reflections: |f(x)| and f(|x|)

Two tabs perform reflections that affect only part of the graph.

|f(x)| keeps the portion of ff that sits on or above the x-axis and flips the portion below up. The roots of ff become corners of f|f| — the curve touches the x-axis and bounces. Applied to the quadratic, f|f| has no effect (the parabola is already non-negative). Applied to the cubic or to sine, the negative arches flip into matching positive ones.

f(|x|) uses the right half of ff for both sides. For x0x \geq 0, g(x)=f(x)g(x) = f(x) unchanged. For x<0x < 0, g(x)=f(x)g(x) = f(-x) — the right half mirrored over. The result is always even, no matter what ff is.

The two are easy to confuse. The mnemonic: outer absolute value acts on outputs (flips below up); inner absolute value acts on inputs (mirrors the right onto the left).

What is a Reflection?

    A reflection of a function ff across a chosen axis or line produces a new function gg whose graph is the mirror image of ff across that axis. The defining property is that every point of ff has a partner on gg at the same perpendicular distance from the axis, on the opposite side.

    The standard reflections fall into three groups:

  • Axis reflections — across the x-axis (g(x)=f(x)g(x) = -f(x)) or the y-axis (g(x)=f(x)g(x) = f(-x))
  • Line reflections — across any horizontal line y=cy = c, vertical line x=cx = c, or the diagonal y=xy = x
  • Partial or piecewise reflectionsf(x)|f(x)| and f(x)f(|x|), which only affect part of the graph

  • All reflections are isometries in the plane: they preserve distances, so the shape of ff is preserved and only its orientation changes. For a deeper treatment of reflections as rigid motions, see the geometric transformations page.

Reflections, Symmetry, and Function Types

Reflections are tied to symmetry properties of functions.

A function is even when f(x)=f(x)f(-x) = f(x) — its graph is symmetric about the y-axis. Equivalently, the y-axis reflection of an even function is identical to the function itself. Examples: x2x^2, x|x|, cosx\cos x.

A function is odd when f(x)=f(x)f(-x) = -f(x) — its graph has 180°180° rotational symmetry about the origin. The y-axis reflection of an odd function gives the same result as the x-axis reflection. Examples: xx, x3x^3, sinx\sin x, 1/x1/x.

A function is one-to-one when each output corresponds to exactly one input. The y = x reflection of a one-to-one function is itself a function — the inverse. Without one-to-one-ness, the reflection across y=xy = x is multivalued.

These symmetries are encoded in the visualizer&apos;s explanation panel, which recognizes the active base&apos;s type and adapts the "applied" notes accordingly.

Related Concepts

Function Transformations — the companion visualizer for shifts and scales: g(x)=af(b(xh))+kg(x) = a \cdot f(b(x - h)) + k. Reflections are the special case where a=1a = -1 or b=1b = -1.

Inverse Functions — the formal theory of f1f^{-1}, when it exists, and how to compute it analytically.

Even and Odd Functions — full treatment of the two main symmetry types and their consequences for integration and Fourier series.

Composition of Functions — how multiple reflections can be chained (two reflections in a row give a rotation or translation).

Parent Functions — the canonical untransformed members of each family used as the base here.

Absolute Value Function — the specific function x|x|, whose graph appears in both the f(x)|f(x)| and f(x)f(|x|) partial reflections.

Symmetry in Geometry — broader perspective on reflection as a geometric operation, beyond functions.