ToolSphere

Derivative Calculator

Student tools

Free derivative calculator: type a function of x such as x^3 + sin(x) to get its symbolic derivative and the slope's numeric value at any point you choose.

Derivative calculator

Supports +, -, *, /, ^, sin, cos, tan, ln, log, sqrt, exp, and parentheses. Use x as the variable; multiplication needs *. abs and variable exponents are not supported.

f'(x)
(((3 * (x ^ 2)) * 1) + (cos(x) * 1))
f'(1)
3.540302

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

How to use Derivative Calculator

  1. 1Enter a function of x with explicit multiplication, such as x^3 + sin(x) or 2*x.
  2. 2Use parentheses for grouped expressions and function arguments; trigonometric functions use radians.
  3. 3Read the symbolic first derivative. Its expression may retain unsimplified rule factors.
  4. 4Enter a numeric x value in the evaluation field to read the slope at that point.
  5. 5Copy the formula or numeric result. An undefined value requires checking the function domain and the evaluation point.

About Derivative Calculator

Calculate a symbolic derivative and a slope

This derivative calculator finds the first derivative of a single-variable function and evaluates that derivative at a point you choose. Enter a function of x, then read the symbolic expression and its numerical slope separately. Use it to check a differentiation exercise, inspect a chain-rule calculation or compare rates of change at different points.

The symbolic output describes a function of x. The evaluated output is one number for the current point. Changing the evaluation point changes that number while leaving the derivative formula the same. Copy controls are available beside both results, so you can record either the expression or the numerical value you need.

The calculation applies differentiation rules directly to the parsed expression. It does not show a textbook sequence of explanations, draw a graph or derive the answer from the limit definition. Its expression can retain factors such as multiplication by one and addition of zero, so the displayed form may be longer than a simplified answer.

Enter a function with unambiguous notation

Use +, -, , / and ^ for arithmetic. Multiplication must be explicit: enter 2x rather than 2x, and x*sin(x) rather than xsin(x). Put function arguments in parentheses. The available differentiable functions are sin, cos, tan, ln, log, sqrt and exp. Trigonometric functions use radians; ln means natural logarithm and log means base ten.

The variable is x, with X also accepted. Named constants pi and e are recognized, and numeric literals can use decimal or scientific notation. Write a constant negative exponent as x^-2 or x^(-2). The differentiator supports numeric constant powers, including negative and fractional exponents, while an expression in the exponent must be rewritten as a numeric literal where appropriate.

Variable exponents such as x^x and 2^x are outside this tool's power-rule implementation. Use exp(x) for the natural exponential function. Although the shared expression parser recognizes abs, this differentiator rejects abs rather than returning a global derivative across its corner. Multivariable, implicit and total derivatives are also outside this interface.

The differentiation rules behind the result

For a constant n, the power rule is d(xⁿ)/dx = n × xⁿ⁻¹. A sum differentiates term by term. For a product, (u × v)' = u' × v + u × v'. For a quotient, (u / v)' = (u' × v − u × v') / v². These rules are applied recursively when a function contains nested expressions.

The chain rule handles composition: (f(g(x)))' = f'(g(x)) × g'(x). For sin(x^2), the cosine factor comes from differentiating the outer sine, while the derivative of the inner square supplies the extra factor. Omitting that inner derivative changes the slope even when the outer function was differentiated correctly.

The returned expression preserves numeric constants instead of rounding them inside the formula. The numerical result is rounded for display to six decimal places, with trailing zeros removed. Distinguish that display rounding from the symbolic formula when checking a copied expression in another calculator.

Worked examples from the calculation library

The default input is x^3 + sin(x), evaluated at x = 1. The derivative is equivalent to 3*x^2 + cos(x), although the rule-based output contains extra parentheses and unit factors. These values were calculated with the same parser, differentiator and evaluator as the tool.

Function entered Evaluation point Derivative value
x^3 + sin(x) 0 1
x^3 + sin(x) 1 3.540302
x^3 + sin(x) 2 11.583853
sin(x^2) 1 1.080605
ln(x) 2 0.5
(x^2+1)/(x+1) 1 0.5

In the default case, the derivative value is the local change in output per unit change in x. It is not the original function value or the average slope over an interval. The quotient example also illustrates why the denominator's contribution cannot be ignored when differentiating a ratio.

Interpret signs and domain restrictions

A positive derivative indicates a positive local slope and a negative derivative a negative local slope. A zero derivative gives a horizontal tangent when the derivative exists, but does not by itself prove a maximum or minimum. Check nearby behavior or use further mathematical analysis to distinguish a turning point from a stationary inflection.

The numeric evaluation checks that both the original function value and the derivative are finite at the chosen point. A blank evaluation field produces undefined rather than silently becoming zero. Logarithms at negative real inputs, division by zero and other nonfinite evaluations therefore require a different point or a review of the domain.

Floating-point evaluation is not a symbolic domain proof. Preserve restrictions from the original function even if an algebraic rewrite appears to remove them. Near singularities or points where cancellation dominates, use analytic reasoning alongside the numerical result rather than interpreting a finite displayed number as a guarantee of regularity.

Check your answer and continue

Read the input back before comparing results. sin(x)^2 and sin(x^2) are different functions, and -(x^2) differs from (-x)^2. Parentheses matter in quotients too: write the complete numerator and denominator as grouped expressions when either has several terms.

For a numerical cross-check at a smooth point, compare with a nearby secant slope, (f(x+h) − f(x)) / h, using a small nonzero h. Rounding and cancellation make an excessively small step unhelpful. The scientific calculator can help evaluate the functions, while the derivative rules guide explains the underlying rules. For accumulated change over bounds, use the separate definite integral calculator.

Guides and tutorials

Frequently asked questions

Does this calculate a derivative formula or a value?

It returns both the symbolic first derivative and its numerical value at your chosen x. The formula describes the slope function, while the number describes the slope at one point.

Does the derivative calculator show steps?

It returns the expression produced by differentiation rules but does not explain each rule as a sequence of steps. The formula can retain unsimplified factors and parentheses.

Can I calculate a total or multivariable derivative?

No, this interface differentiates explicit functions of x only. It does not support partial, total or implicit differentiation.

Which functions can be differentiated?

The tool supports arithmetic, numeric constant powers, sin, cos, tan, ln, log, sqrt and exp. Use parentheses for function arguments and explicit multiplication signs.

Can it differentiate x^x or 2^x?

Variable exponents are not supported by this power-rule implementation. The natural exponential is available through exp(x).

Are negative exponents supported?

Yes, use a numeric negative exponent such as x^-2 or x^(-2). The original function domain still applies when evaluating the derivative.

Does sin use degrees or radians?

It uses radians, as do cos and tan. Convert an angle before entering it if your exercise gives degrees.

Why does the result say undefined?

Check for a blank or invalid evaluation point, or a point outside the real finite domain of the original function or its derivative. Division by zero and logarithms at invalid real inputs are common causes.

Why is abs rejected?

The differentiator does not implement abs, whose derivative needs piecewise treatment at its corner. Entering it produces an unsupported-function message rather than a misleading formula.

Why is the formula longer than my textbook answer?

The tool applies rules without a general algebraic simplifier. Equivalent factors, parentheses and zero terms can remain, so compare the mathematics and valid domains rather than only the printed form.

Have a suggestion for Derivative Calculator?Share your feedback ↗