Derivatives

Unleash the power of differential calculus in Desmos. Plot a function and its derivative, or evaluate numerical derivative values directly. Explore key concepts by building a tangent line using sliders.

Begin with the video on the right, then dive deeper with the resources and challenges below.

Derivative Notation

Derivatives of x squared and sin of y graphed in the Desmos Graphing Calculator

You can use \(\frac{d}{dx}\) or \(\frac{d}{dy}\) for derivatives. For example,\(\frac{d}{dx}\) \((x^{2})\) will graph the derivative of \(x^{2}\) with respect to \(x\), and \(x=\frac{d}{dy}\)\((\sin y)\) will graph the derivative of \(x=\sin y\) with respect to \(y\). Open this example (and any other in the article) by clicking on the image.

Expression line 1: f\left(x\right)=\frac{1}{2}x^{2}+3x+2.  Expression line 2: \frac{d}{dx}\left(f\left(x\right)\right). The graph of f(x) and the derivative of f of x is graphed. in the Desmos Graphing Calculator.

Another efficient way to implement derivative notation is by partnering it with function notation. With a defined function \(f(x)\) such as \(f(x)=\frac{1}{2}x^2+3x+2\), graph the derivative of \(f(x)\) with respect to \(x\) by typing \(\frac{d}{dx}(f(x))\) can have its derivative graphed.

Screenshot of the Desmos 3D calculator. The function f(x,y)=-x^2-y^2+2 is graphed as well as the partial derivative with respect to x and with respect to y.

In 3D, you can graph partial derivatives with function notation. For example, if \(f(x,y) = -x^2-y^2+2\), then \(g(x,y) = d/dx(f(x,y))\) will graph the derivative of \(f(x,y)\) with respect to \(x\) and \(h(x,y) = d/dy(f(x,y))\) will graph the derivative of \(f(x,y)\) with respect to \(y\).

Note: Depending on the complexity of your function, higher order derivatives may be slow to graph or non-existent.

 

Prime Notation

Expression line 1: f\left(x\right)=x^{3}+x^{2}+x+1. Expression line 2: f'\left(x\right). Both functions graphed in the Desmos Graphing Calculator

Prime notation is supported for functions of a single argument. Start by defining a function in function notation such as \(f(x)=x^3+x^2+x+1\). Then, \(f’(x)\) will graph the first derivative of \(f(x)\).

Expression line 1: f\left(x\right)=x^{3}+x^{2}+x+1. Expression line 2: f'\left(x\right).  Expression line 3: f''\left(x\right).  Expression line 4: f'''\left(x\right) equals 6.  All functions graphed in the Desmos Graphing Calculator

Graph the second derivative with \(f’’(x)\), the third derivative with \(f’’’(x)\), and so on. If the derivative evaluates as a constant, the value is shown in the expression list instead of on the graph. Continuing with \(f(x) = x^3+x^2+x+1\), \(f’’’(x) = 6\).

Expression line 1: g(x)=x^{1/3}.  Expression line 2: g'(1)= 1/3. Expression line 3: g'(0)=undefined. The first line is graphed in Desmos Graphing Calculator.

Use prime notation to evaluate the derivative of a function at a given point.

If the function is undifferentiable at given points, the result will be undefined.

 

Using Derivatives to Graph a Tangent Line

With functions, derivatives, and sliders, you can dynamically show that the derivative is the slope of a tangent line to the curve through any given point.

For example, if the function is \(f(x)=sin(x) + 3\) then \(f’(x)\) graphs the derivative and the equation for the tangent line through any point \((a, f(a))\) is \(y=f’(a)(x-a)+f(a)\). Click on the GIF to open the tangent line example graph and play with the slider or try out a new function.

Graph of f(x)=sin(x)+3, f'(x) and a tangent line connected to a slider.

 

Learn More

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