WordGPT

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.

-4-4-3-3-2-2-1-10011223344xyLevel curves: blue = low z (1.03), red = high z (7.09)
The same surface seen from above: each curve joins the points that have the same height z.

How to work it out

  1. 1

    Domain: the pairs (x, y) the formula accepts. Here: all (x, y).

    z=∣x∣+∣y∣z = |x|+|y|
  2. 2

    Range: the heights z the surface reaches: z ≥ 0.

  3. 3

    Symmetry: even in x and in y; unchanged when x and y swap.

  4. 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. 5

    Partial derivatives: the slope in the x direction and in the y direction. Set both to zero to find the critical points.

    ∂z∂x=sign(x),∂z∂y=sign(y)\frac{\partial z}{\partial x} = sign(x),\qquad \frac{\partial z}{\partial y} = sign(y)
  6. 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-1012
-243234
-132123
021012
132123
243234

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.

Edit it

Other surfaces

    3D graph of z = |x| + |y|: shape, level curves and critical points | WordGPT