3D graph of z = |x| + |y|
The graph of z = |x| + |y| is a surface over the (x, y) plane. Domain: all (x, y). Range: z ≥ 0. Critical points: a minimum at (0, 0, 0); the surface has creases along both axes where it is not differentiable.
Drag to turn the surface, scroll or pinch to zoom. The colour shows the height z.
How to work it out
- 1
Domain: the pairs (x, y) the formula accepts. Here: all (x, y).
- 2
Range: the heights z the surface reaches: z ≥ 0.
- 3
Symmetry: even in x and in y; unchanged when x and y swap.
- 4
Level curves: slice the surface at a height c and look from above. Here you get squares tilted by 45° (diamonds), |x| + |y| = c.
- 5
Partial derivatives: the slope in the x direction and in the y direction. Set both to zero to find the critical points.
- 6
Critical points: a minimum at (0, 0, 0); the surface has creases along both axes where it is not differentiable.
LaTeX source of the formulas on this page
\[ z = |x|+|y| \]
\[ \frac{\partial z}{\partial x} = sign(x),\qquad \frac{\partial z}{\partial y} = sign(y) \]Table of heights z = f(x, y)
| x \ y | -2 | -1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| -2 | 4 | 3 | 2 | 3 | 4 |
| -1 | 3 | 2 | 1 | 2 | 3 |
| 0 | 2 | 1 | 0 | 1 | 2 |
| 1 | 3 | 2 | 1 | 2 | 3 |
| 2 | 4 | 3 | 2 | 3 | 4 |
Questions
What does the graph of z = |x| + |y| look like?
A pyramid turned upside down, with square level curves.
What are the domain and range of z = |x| + |y|?
Domain: all (x, y). Range: z ≥ 0.
What are the partial derivatives of z = |x| + |y|?
∂z/∂x = sign(x) and ∂z/∂y = sign(y).
Where are the critical points of z = |x| + |y|?
A minimum at (0, 0, 0); the surface has creases along both axes where it is not differentiable.
What do the level curves of z = |x| + |y| look like?
Squares tilted by 45° (diamonds), |x| + |y| = c.