Home › Calculators › Derivative Calculator

Derivative Calculator

Type a function of x and get its exact symbolic derivative, simplified, together with the differentiation rules used. Choose the 2nd to 5th derivative, evaluate the slope at any point and see f(x) and its derivative plotted together.

Last updated:

Use x as the variable. Supports + − * / ^, sin cos tan sec csc cot, asin acos atan, sinh cosh tanh, exp, ln, log (base 10), sqrt, cbrt, abs, pi, e. 2x and 3sin(x) work too.

Leave empty to skip. Gives the slope and tangent line.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Derivative Calculator

  1. Type your function using x as the variable, e.g. x^3·sin(x), e^(2x) or ln(x^2+1).
  2. Pick the order: first derivative, second derivative, up to the fifth.
  3. Optionally enter a point to get the derivative's value there and, for the first derivative, the tangent line.
  4. Press Calculate derivative to see the simplified result and the steps.
  5. Check the graph and table to compare f(x) with its derivative, then copy the result or download the values as CSV.

Derivative rules used by the calculator

RuleFormulaExample
Constantd/dx c = 0d/dx 7 = 0
Power ruled/dx xⁿ = n·xⁿ⁻¹d/dx x⁵ = 5x⁴
Constant multiple(c·u)′ = c·u′(3x²)′ = 6x
Sum / difference(u ± v)′ = u′ ± v′(x² + x)′ = 2x + 1
Product rule(u·v)′ = u′v + uv′(x·sin x)′ = sin x + x·cos x
Quotient rule(u/v)′ = (u′v − uv′) / v²(1/x)′ = −1/x²
Chain rulef(g(x))′ = f′(g(x))·g′(x)(sin x²)′ = 2x·cos x²
Exponential(eˣ)′ = eˣ, (aˣ)′ = aˣ·ln a(2ˣ)′ = 2ˣ·ln 2
Logarithm(ln x)′ = 1/x, (log₁₀ x)′ = 1/(x·ln 10)(ln(x²+1))′ = 2x/(x²+1)

Common derivatives

f(x)f′(x)f(x)f′(x)
sin xcos xasin x1/√(1 − x²)
cos x−sin xacos x−1/√(1 − x²)
tan xsec² xatan x1/(1 + x²)
sec xsec x·tan xsinh xcosh x
csc x−csc x·cot xcosh xsinh x
cot x−csc² xtanh x1 − tanh² x
√x1/(2√x)xˣxˣ·(ln x + 1)

The derivative f′(a) is the slope of the curve at x = a, defined as the limit of (f(a + h) − f(a)) / h as h → 0. Where f′ is positive the function increases, where it is negative the function decreases, and where it is zero the graph has a horizontal tangent (a possible maximum or minimum). The second derivative measures how the slope itself changes and tells you about concavity.

Frequently asked questions

How do I enter functions in the derivative calculator?

Use x as the variable and the usual operators + − * / ^. Multiplication can be implied, so 3x^2, 2sin(x) and (x+1)(x−1) all work. Supported functions are sin, cos, tan, sec, csc, cot, asin, acos, atan, sinh, cosh, tanh, exp, ln, log (base 10), log2, sqrt, cbrt and abs, plus the constants pi and e.

Is the result exact or approximate?

The derivative itself is exact: the calculator applies the differentiation rules symbolically and then simplifies the expression. Only the value at a point and the graph use decimal arithmetic.

What rules does it use?

The sum rule, constant multiple rule, power rule d/dx xⁿ = n·xⁿ⁻¹, product rule (uv)′ = u′v + uv′, quotient rule (u/v)′ = (u′v − uv′)/v², chain rule, and the standard derivatives of trigonometric, inverse trigonometric, hyperbolic, exponential and logarithmic functions.

How do I find the second derivative?

Choose 2nd derivative in the order menu. The calculator differentiates the simplified first derivative again, and the steps show each intermediate derivative. This is useful for concavity and inflection points: where f″(x) changes sign, the curve changes from concave up to concave down.

How is the tangent line calculated?

For a point x = a the tangent line is y = f(a) + f′(a)(x − a). The calculator computes f(a) and f′(a), rearranges the line into slope-intercept form y = mx + b and draws it on the graph.

Why does my answer look different from my textbook?

Derivatives can be written in many equivalent forms, for example 2sin(x)cos(x) and sin(2x). Plug in a value of x in both forms or compare the table of values: equal numbers mean the answers agree.

Does log mean natural log here?

No. Here log(x) is the base-10 logarithm and ln(x) is the natural logarithm. For another base write log(x, b), which is converted to ln(x)/ln(b).

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Scientific CalculatorTrig, logs, powers and more in your browser.Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.Asymptote CalculatorFind vertical, horizontal and slant asymptotes and holes of a function, with graph and reasoning.Option Greeks CalculatorDelta, gamma, theta, vega and rho for calls and puts, with position Greeks and sensitivity charts.Partial Derivative CalculatorPartial derivatives ∂/∂x, ∂/∂y, second and mixed orders with steps, gradient and Hessian.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Quadratic Regression CalculatorFit y = ax² + bx + c (or up to degree 6) to x, y data with R², predictions and a graph.Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Nth Term CalculatorFind the nth term formula of a sequence: arithmetic, geometric, quadratic or cubic.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial CalculatorAdd, subtract, multiply, divide and evaluate polynomials; see roots, degree and a graph.Polynomial Long Division CalculatorDivide polynomials with the full long division layout, quotient, remainder and steps.Scale Factor CalculatorScale factor between similar figures, plus scaled lengths, areas (k²) and volumes (k³).Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Table of Values CalculatorMake an x/y table for any function with a start, end and step, then plot it or copy CSV.Scatter Plot MakerPaste X,Y pairs for a scatter plot with trendline, equation, r and R². Download PNG.Synthetic Division CalculatorDivide polynomials by x − c (synthetic table) or any polynomial (long division) with steps.3D Graphing CalculatorPlot z = f(x, y) surfaces and 3D parametric curves; rotate, zoom, add contours, save PNG.Algebra CalculatorSimplify, expand and factor algebraic expressions with exact answers and step-by-step working.Determinant CalculatorDeterminant of a 2×2 to 8×8 matrix with exact fractions and cofactor or row-reduction steps.Differential Equation SolverSolve first- and second-order ODEs step by step, with initial conditions, an RK4 check and a graph.Domain and Range CalculatorFind the domain and range of a function in interval notation, with steps and a graph.Eigenvalue and Eigenvector CalculatorEigenvalues (real or complex), eigenvectors and the characteristic polynomial of a square matrix.Equation SolverSolve any equation for x: exact roots, complex roots, numeric answers, steps and a graph.Inequality CalculatorSolve linear, quadratic, rational and absolute value inequalities with steps and a number line.Inverse Function CalculatorFind the inverse f⁻¹(x) of a function with steps, domain restrictions and a graph.Laplace Transform CalculatorLaplace transform of f(t) with the table rule used for each term and the region of convergence.Limit CalculatorEvaluate limits at a point or at infinity, one-sided or two-sided, with steps, table and graph.Linear Interpolation CalculatorInterpolate or extrapolate y for any x from two points or a data table, with steps and a plot.Matrix Inverse CalculatorFind the inverse of a 2×2 to 8×8 matrix in exact fractions with Gauss–Jordan or adjugate steps.RREF CalculatorRow reduce any matrix to RREF with exact fractions, every row operation, pivots and rank.Stem and Leaf Plot MakerMake stem-and-leaf plots (standard, split stems or back-to-back) with a key; copy or save PNG.Taylor Series CalculatorTaylor and Maclaurin polynomials of any f(x) to order n, with exact coefficients and a graph.Antilog CalculatorInverse logarithm (antilog) in base 10, e, 2 or any base, with steps and scientific notation.Cramer's Rule CalculatorSolve 2x2 and 3x3 linear systems by Cramer's rule with every determinant shown step by step.Dot Plot MakerMake a dot plot or line plot from data or a frequency table; download PNG or SVG.
See all 74 Algebra & Calculus Calculators →