Derivatives

In the Desmos math tools, you can plot a function and its derivative and evaluate numerical derivative values directly.

Watch the video for an introduction to derivatives in Desmos, and read on for more information and challenges.

 

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\).

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 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\), you can graph the derivative of \(f(x)\) with respect to \(x\) using \(\frac{d}{dx}(f(x))\).

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 the 3D Graphing Calculator, you can graph partial derivatives using function notation. For example, if \(f(x,y) = -x^2-y^2+2\), then \(g(x,y) = \frac{d}{dx}(f(x,y))\) will graph the derivative of \(f(x,y)\) with respect to \(x\). And, \(h(x,y) = \frac{d}{dy}(f(x,y))\) will graph the derivative of \(f(x,y)\) with respect to \(y\).

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 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. The equation for the tangent line through any point \((a, f(a))\) is \(y=f’(a)(x-a)+f(a)\).

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.