Partial Derivative Calculator

Type a function of x, y and z and the variable to differentiate by.

Use x, y and z. Type powers with ^ and functions with brackets: sin(xy), e^(x + y), ln(x), sqrt(x).

One or more of x, y and z. Type xy for the second derivative ∂²f/∂y∂x: first with respect to x, then with respect to y.

Try

Result

You entered∂f∂x[sin⁡(x y)]\frac{\partial f}{\partial x}\left[\sin\left(x\,y\right)\right]

∂f∂x=y cos⁡(x y)\displaystyle \frac{\partial f}{\partial x} = y\,\cos\left(x\,y\right)
Show the work
  1. Partial derivative

    To find ∂f/∂x\partial f/\partial x, differentiate with respect to xx and treat yy as a constant, because the partial derivative changes one variable and holds the rest fixed.

    Using ∂f∂x=lim⁡h→0f(x+h,y)−f(x,y)h\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}

    ∂∂x[sin⁡(x y)]\frac{\partial}{\partial x}\left[\sin\left(x\,y\right)\right]
  2. Chain rule

    The inner function is g(x)=x yg(x) = x\,y and the outer function is f(u)=sin⁡uf(u) = \sin u. Differentiate the outer function, put gg back in, and multiply by g′(x)=yg'(x) = y.

    Using ddxf(g(x))=f′(g(x)) g′(x)\frac{d}{dx}f(g(x)) = f'(g(x))\,g'(x)

    ∂∂x[sin⁡(x y)]=cos⁡(x y) y\frac{\partial}{\partial x}\left[\sin\left(x\,y\right)\right] = \cos\left(x\,y\right)\,y
  3. Derivative of sine

    The outer function is a standard one: its derivative with respect to uu is cos⁡u\cos u, and here u=x yu = x\,y.

    Using ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x

    ddusin⁡u=cos⁡u\frac{d}{du}\sin u = \cos u
  4. Constant multiple rule

    yy does not depend on xx, so it stays in front while xx is differentiated.

    Using (c u)′=c u′\left(c\,u\right)' = c\,u'

    ∂∂x[x y]=y ∂∂x[x]=y\begin{aligned} \frac{\partial}{\partial x}\left[x\,y\right] &= y\,\frac{\partial}{\partial x}\left[x\right] \\ &= y \end{aligned}
  5. Simplify the result

    Collect like terms and tidy the expression, without changing its value.

    cos⁡(x y) y=y cos⁡(x y)\cos\left(x\,y\right)\,y = y\,\cos\left(x\,y\right)
  6. Partial derivative with respect to x

    Differentiate sin⁡(x y)\sin\left(x\,y\right) with respect to xx, holding the other variables constant.

    ∂∂x[sin⁡(x y)]=y cos⁡(x y)\frac{\partial}{\partial x}\left[\sin\left(x\,y\right)\right] = y\,\cos\left(x\,y\right)
  7. Result

    The partial derivative.

    ∂f∂x=y cos⁡(x y)\frac{\partial f}{\partial x} = y\,\cos\left(x\,y\right)

Worked examples