Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Derivative Calculator

Every rule shown — product, quotient, chain — plus partials, implicit dy/dx and tangents.

Math No upload Works offline Free, no sign-up

Use ^ for powers, * or just a space for multiplication: x^2 sin(x), e^(2x), sqrt(x), ln(x), log_2(x), |x|, arcsin(x).

Graph from to
Try:

Result

— —

Read as

    At the point

      f(x) f′(x) Tangent line

      Step-by-step

      Next steps

      About the Derivative Calculator

      Type a function such as x^2 sin(x), sin(x^2 + 1)/x or sqrt(x^2 + 1) and get its derivative in simplified form, with a tree of the rules used at every step — the power, constant multiple, sum, product, quotient and chain rules, exponentials and logarithms, trigonometric, inverse trigonometric and hyperbolic functions, and logarithmic differentiation for powers such as xˣ. Derivatives of any order up to the 10th are given, each with its own steps.

      Other modes find partial and mixed partial derivatives, dy/dx by implicit differentiation, the gradient, the Jacobian matrix with its determinant, and the Hessian matrix with the second-derivative test. Give a point to get exact values such as f′(π) = −π², the tangent and normal lines, and a graph of f with f′ and the tangent. Every result is compared with a numerical derivative wherever floating-point arithmetic can judge it (the page says when it cannot), values at poles such as tan(π/2) are reported as undefined, and nothing leaves your browser.

      How to use it

      1. Choose what to find: Derivative, Partial ∂, Implicit dy/dx, Gradient, Jacobian or Hessian.
      2. Type the function using ^ for powers (x^2), sqrt( ), ln( ), log_2( ), e^x, |x| and sin, cos, tan, arcsin …; 2x and x sin(x) work without “*”. A leading “f(x) =” or “y =” is ignored.
      3. Set the variable and the order if needed, and optionally a point such as 2, pi/4 or x = 1, y = 2.
      4. Read the simplified result, open “Show the rules used” for each step, and use the values, tangent and normal lines and the graph. Copy or download everything as text.

      Examples

      Product rule
      Input
      x² sin x
      Result
      x² cos x + 2x sin x

      d/dx[uv] = u′v + uv′ with u = x², v = sin x.

      Quotient and chain rules
      Input
      sin(x² + 1)/x
      Result
      (2x² cos(x² + 1) − sin(x² + 1))/x²
      Chain rule
      Input
      √(x² + 1)
      Result
      x/√(x² + 1)
      Logarithmic differentiation
      Input
      xˣ
      Result
      xˣ(ln x + 1)
      Tangent and normal at a point
      Input
      x² sin x at x = π
      Result
      f′(π) = −π²; tangent y = −π²x + π³
      Implicit differentiation
      Input
      x² + y² = 25 at (3, 4)
      Result
      dy/dx = −x/y = −3/4

      Differentiating both sides: 2x + 2y·dy/dx = 0.

      Mixed partial derivative
      Input
      x²y³ + sin(xy), ∂ by xy
      Result
      f_xy = 6xy² − xy sin(xy) + cos(xy)
      Second-derivative test
      Input
      Hessian of x³ − 3x + y² at (1, 0)
      Result
      H = [6 0; 0 2], D = 12 > 0: local minimum

      Common uses

      • Checking calculus homework and seeing which rule applies at each step.
      • Finding the slope, tangent line and normal line of a curve at a given point.
      • Partial derivatives, gradients and Jacobians for multivariable calculus, optimisation and physics.
      • Classifying critical points of a function of two or more variables with the Hessian.

      The rules used

      • Power rule: d/dx[xⁿ] = n·xⁿ⁻¹ (for any real n, so √x and 1/x² are covered by rewriting them as powers).
      • Constant multiple and sum rules: d/dx[c·u] = c·u′ and d/dx[u + v] = u′ + v′.
      • Product rule: d/dx[uv] = u′v + uv′. Quotient rule: d/dx[u/v] = (u′v − uv′)/v².
      • Chain rule: d/dx[f(g(x))] = f′(g(x))·g′(x) — every rule above is combined with it when the inside is not just x.
      • Exponentials and logarithms: d/dx[eᵘ] = eᵘ·u′, d/dx[aᵘ] = aᵘ·ln a·u′, d/dx[ln u] = u′/u, d/dx[log_b u] = u′/(u ln b).
      • Trigonometry: (sin u)′ = cos u·u′, (cos u)′ = −sin u·u′, (tan u)′ = sec²u·u′; (arcsin u)′ = u′/√(1 − u²), (arctan u)′ = u′/(1 + u²), and the hyperbolic versions.
      • Logarithmic differentiation: d/dx[uʷ] = uʷ·(w′ ln u + w·u′/u), used when both the base and the exponent depend on x.

      Tangent lines, implicit derivatives and the Hessian

      The tangent line at x = a is y − f(a) = f′(a)(x − a); the normal line is perpendicular to it, with slope −1/f′(a) (a vertical line when the tangent is horizontal). For an equation F(x, y) = 0, implicit differentiation treats y as a function of x, so each y-term gets a factor dy/dx by the chain rule; solving gives dy/dx = −Fₓ/F_y. The gradient ∇f collects the first partial derivatives and points in the direction of fastest increase. The Hessian collects the second partial derivatives; at a critical point (∇f = 0) of a function of two variables, D = f_xx·f_yy − f_xy² > 0 with f_xx > 0 means a local minimum, with f_xx < 0 a local maximum, D < 0 a saddle point, and D = 0 tells nothing. With more variables the signs of the leading principal minors decide (Sylvester’s criterion).

      Limitations

      • Real-valued functions only. Answers are simplified, but an equivalent form may look different from your textbook’s (for example cos²x − sin²x instead of cos 2x).
      • Functions defined only at whole numbers (n!, binomial coefficients) and step functions (floor, ceiling, sign) are not differentiated. The derivative of |x| is given as x/|x|, valid for x ≠ 0.
      • Orders up to 10, and up to 6 variables and 6 functions for the Jacobian. Very long results are stopped with a message.

      Privacy

      Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.

      Frequently asked questions

      When do I use the chain rule?

      Whenever a function is applied to something other than plain x — sin(3x), (x² + 1)¹⁰, e^(x²), ln(cos x). Differentiate the outer function with the inside left alone, then multiply by the derivative of the inside: d/dx[(x² + 1)¹⁰] = 10(x² + 1)⁹ · 2x = 20x(x² + 1)⁹.

      Product rule or quotient rule?

      Use the product rule for f·g and the quotient rule for f/g: (f/g)′ = (f′g − fg′)/g². You can also write f/g as f·g⁻¹ and use the product and chain rules — the answer is the same. When the top is a constant, as in 3/x², it is quicker to rewrite it as 3x⁻² and use the power rule.

      How do I find the equation of the tangent line?

      Work out f(a) and the slope f′(a), then use y − f(a) = f′(a)(x − a). Type the function and the point: for x² sin x at x = π the tool gives f(π) = 0, f′(π) = −π² and the tangent y = −π²x + π³.

      What is implicit differentiation?

      A way to find dy/dx when y is not written as a function of x, as in x² + y² = 25. Differentiate both sides with respect to x, remembering that y depends on x (so d/dx[y²] = 2y·dy/dx), then solve for dy/dx: here dy/dx = −x/y.

      What is the difference between a derivative and a partial derivative?

      A partial derivative is the derivative with respect to one variable while every other variable is held constant. For f = x²y³, ∂f/∂x = 2xy³ and ∂f/∂y = 3x²y². A mixed partial such as f_xy differentiates by x and then by y; for smooth functions the order does not matter (Clairaut’s theorem).

      Can I trust the answer?

      Each result is compared with a numerical derivative (a central difference) at several points, and the page says so — or warns you if the check fails, for example where the function is undefined. When the values are too large for a floating-point comparison (x + 10¹⁷, say), it says that the result was not checked numerically instead of claiming a check. The symbolic steps are standard rules you can follow line by line.

      Quick answers and tool search

      Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.