How to do derivatives in Desmos

Updated November 2026 · Sarkari Tools math team

Quick answer

Desmos computes derivatives for you. Define a function such as f(x) = x³ − 3x, then type f′(x) (with an apostrophe) or d/dx f(x). Desmos graphs the derivative, and f′(2) gives the slope at x = 2.

f(x)=x^3-3xf'(x)y=f'(a)(x-a)+f(a)

Step by step

  1. Define the function: f(x)=x^3-3x.
  2. On a new line type f'(x) to graph the derivative. Typing d/dx f(x) works too.
  3. To get a number, type f'(2). Desmos shows 9.
  4. For a tangent line at x = a, type y=f'(a)(x-a)+f(a) and add a slider for a.
  5. For the second derivative, type f''(x).

Try it live

This graph is drawn by our free graphing calculator, which uses the same style of typing. Edit any line and the graph updates.

drag to pan · scroll to zoom

Common mistakes and tips

  • Name the function first. f′(x) only works after f(x) is defined.
  • The roots of f′(x) are the turning points of f(x), which makes a good check.
  • Desmos gives a graph and values, not a written formula for the derivative.

Frequently asked questions

Can Desmos show the derivative formula?

No. It graphs and evaluates the derivative but doesn’t write it out. Differentiate by hand and graph both to check.

How do I find where the derivative is zero?

Graph f′(x) and click where it crosses the x-axis. Those x values are the turning points of f.

Does Desmos do integrals?

Yes, with ∫ from the keypad (type int), for example ∫ from 0 to 2 of x² dx.

No Desmos? Use our free online graphing calculator

Our free online graphing calculator works in any browser with no sign-up, and it shows step-by-step working where it can.

More Desmos guides

Desmos is a trademark of Desmos Studio PBC. Sarkari Tools is independent and not affiliated with or endorsed by Desmos. Our guides describe how to use the Desmos calculator; our own calculators are separate tools.