Variables, Functions and Graphing

Variables

Define a variable, v=5 for example. Change the number or move the slider below the definition to change the variable's value.

You can change slider bounds and the step size by clicking on the definition. They can also be variables defined elsewhere. Same value for minimum and maximum will disable the slider.

Pressing the play button will automatically move the slider. There are animation settings under the play button.

Animation modes available (left to right):

  • Loop forwards and backwards
  • Repeat in one direction
  • Play once
  • Play indefinitely

Press the _ (underscore) button for subscripts. (a_b next to 123 on the desmos keyboard) v_ar, for example, is considered as a single variable.

You can use a variable everywhere as long as it's defined.

Predefined variables: You can type "pi" and "tau" for π and τ. e and i (only in complex mode) are also defined. Their definitions can't be changed.

Functions

Define a function, f(x)=x^2 for example. Since we've used x here, it will also be plotted. (see Graphing) You can use a function anywhere as long as it's defined. Replace x in f(x) with a number for function evaluation.

The subscript button also works for functions.

Functions can have multiple arguments: g(x,y)=x^2+y^2

Wackscope Variables

"w" is a wackscope variable in the example below. The function definition doesn't give an error because w defines x and y for the function.

Built-In Functions

There are dozens of built-in functions in Desmos. You can see them by clicking the function button on the Desmos keyboard. See Built-in Functions for the full list.

Graphing

If an expression contains x and/or y (and/or z in the 3D Calculator), the resulting function will be plotted on the graph paper.

The function doesn't need be defined. Desmos supports two different types of Cartesian graphing, explicit and implicit.

Explicit Graphing

If you type y=f(x), the function will be plotted explicitly. Same as typing f(x) since the equation starts with "y=" by default. Click on the plot to see local minima and maxima and intersections with x- and y-axes. They can be highlighted by clicking on them.

Implicit Graphing

If the left hand side of the equation is something other than y, like "x2+y2=1" it can't be plotted explicitly, so Desmos plots them implicitly with a different algorithm. The curves on the graph paper show where the equation is satisfied.

Graphing Settings

Expressions being plotted have a symbol at the left. Left click to hide/show the graph. Long left click to open the options menu.

You can change:

  • Opacity
  • Line thickness
  • Color
  • Appearance (solid, dashed, dotted) of the graphs.

You can also make them clickable. (see Actions and the Ticker)