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.