Extending from 2D to 3D

The Desmos 3D Calculator allows you to explore points, functions, and surfaces with an interface similar to our 2D Graphing Calculator. As you start exploring, you’ll encounter the same expression list for typing your equations and many familiar settings. However, you’ll also discover some new options and extensions on previous features.

 

Getting Oriented

When working in 2D, your view is restricted to the \(xy\)-plane. The default view in our 3D calculator is a cube containing the \(x\)-, \(y\)-, and \(z\)-axes, you can view the same 2D plane by clicking XY OrientationXY Orientation icon , which will animate the cube turning to snap you to the xy-plane. To return to the 3D view, you can click Default OrientationDefault Orientation icon.

Animation of using the XY orientation button and then returning to the Default Orientation.

 

Plotting Points

One of the simplest things you can create in the calculator is a point. When working in 2D, points are plotted as coordinate pairs of \((x,y)\). You can still plot an \((x,y)\) point in the 3D calculator, and it will appear on the \(xy\)-plane. You can also add a \(z\)-component, with coordinates of the form \((x,y,z)\), to plot your point anywhere in 3D space. You can plot your points individually in an expression line, in the same line separated by commas, or with variables defined by tables, sliders, or lists.

Image of expression list showing different coordinate.  Expression line 1: (0,1) Expression line 2: (1,2,0) Expression line 3: (0,0,1),(1,0,0) and a table in Expression line 4 showing (0,0,0), (0,1,1) and (1,-1,0)

 

Extending to 3D

In 2D, equations are defined with the variables \(x\) and \(y\). 3D enables you to work with expressions in \(x\), \(y\), and \(z\). If you type an expression in the 3D Calculator with only \(x\) and \(y\) variables, you will see your curve graphed flat on the \(xy\)-plane. You’ll also have the option to check Extend to 3D. By checking this box, the calculator will plot the entire surface of points that satisfies your expression for all \(z\) values.

You won’t see this checkbox if your expression includes a \(z\) variable.

The equation y=x^2-2 graphed in a 3D plane.  Screenshot.

The equation y=x^2-2 graphed in a 3D plane with 'Extend to 3D' selected showing the surface.   Screenshot.

 

Polygons and Triangles

It is often convenient to define a surface by points rather than an explicit equation. In 2D, you can use the polygon function to do this. In 3D, you can use the triangle function. To use the function, type triangle into an expression line. Or, click Show Keypad and then Functions. Then, scroll to the Geometry section and select Triangle.

However, the 2D polygon function can take any number of points, but the 3D triangle function can only accept three points as inputs.

Polygon function in the expression list graphing a triangle in a cartesian plane with vertices (-2,2),(2,0),(2,4).  Screenshot.

Triangle function in the expression list graphing a triangle in a 3D plane with vertices (2,-1,0),(2,2,0),(0,0,2).  Screenshot.

 

Inequalities

In 2D, inequalities are essential for producing shaded regions on the plane, using lines or curves as boundaries. By using curly brackets, you can create a system of inequalities that restricts the \(x\) or \(y\) values. In 3D, you can extend this notation to create surfaces and solids by combining inequalities in \(x\), \(y\), and \(z\).

The graph of the inequality y is less than or equal to 3 graphed in a cartesian plane restricted between x values greater than or equal to 1 and less than or equal to 4.  Screenshot.

The graph of the inequality z is less than or equal to 1 graph in a 3D plane.  The graph is restricted between x values greater than or equal to -1 and less than or equal to 1 and also restricted between y values greater than or equal to 0 and less than or equal to 1.  Screenshot.

 

Parametrics

You can create parametric curves in 2D with an ordered pair where one or both coordinates are defined in terms of the parameter \(t\). In 3D, a similar approach gives you the option of creating parametric surfaces. To generate a surface, your expression should have three coordinates defined in terms of the parameters \(u\) and \(v\).

A circle graphed using (cos t,sin t) in a cartesian plane with vertices. Screenshot.

A Sphere graphed in a 3D plane.  Screenshot.

 

Learn More

Please write in with any other questions or suggestions to support@desmos.com.