Absolute Value Graphing Calculator

Graph y = a|x − h| + k and get the vertex, the direction it opens, the slope of each side, the intercepts, the domain and range, and the equivalent piecewise form.

Absolute value function

y = a|x − h| + k. Fractions such as 1/2 are fine.

How the Absolute Value Graphing Calculator works

  1. Enter. a = −2, h = 1, k = 4 · y = −2|x − 1| + 4
  2. Graph. The tool samples the function in your browser and draws it without connecting across breaks.
  3. Read the result. Opens down; vertex (1, 4) is a maximum; x-intercepts (−1, 0) and (3, 0); Range y ≤ 4.
Upside-down V graph with vertex (1, 4) and x-intercepts (−1, 0) and (3, 0).
Example: what you enter, the graph the absolute value graphing calculator draws, and the results it reports.

Examples to load

How the parameters move the V

  • h moves the vertex left or right. |x − 3| is the parent graph moved 3 units right.
  • k moves it up or down.
  • |a| sets the steepness of both sides: larger |a| makes a narrower V.
  • The sign of a decides whether the V opens up (a > 0) or down (a < 0).

Worked example: y = −2|x − 1| + 4

  1. Vertex: h = 1 and k = 4, so the vertex is (1, 4). Because a = −2 < 0, it is a maximum.
  2. Sides: slope −2 to the right of the vertex and +2 to the left.
  3. x-intercepts: set y = 0: |x − 1| = 2, so x = −1 or x = 3.
  4. y-intercept: y = −2|0 − 1| + 4 = 2.
  5. Range: y ≤ 4. The domain is all real numbers.

Common mistakes

  • Reading |x + 2| as a shift to the right. It is |x − (−2)|, so the vertex moves left to x = −2.
  • Giving both sides the same slope sign. The two sides always have opposite slopes.
  • Solving |x − 1| = −3. An absolute value cannot be negative, so there is no solution and no intercept.

Guides: absolute value functions, function transformations and piecewise functions.

Questions

Where is the vertex of y = a|x − h| + k?

At (h, k). It is the lowest point when a > 0 and the highest point when a < 0.

What are the slopes of the two sides?

The right side has slope a and the left side has slope −a. For y = 2|x| the sides rise with slope 2 to the right and fall with slope −2 to the left.

How do I write an absolute value function as a piecewise function?

Split at the vertex: y = −a(x − h) + k for x < h, and y = a(x − h) + k for x ≥ h. The calculator shows this form for your values.

Why are there sometimes no x-intercepts?

If the V opens upward and the vertex is above the x-axis (a > 0, k > 0), the graph never reaches y = 0. The same happens for a downward V whose vertex is below the axis.

Guides that use this calculator

Related calculators

Graphing Calculator

Plot several functions, points and inequalities; find roots, intersections and turning points.