Advanced maths

Derivative calculator with function and tangent graph

Differentiate bounded expressions using product, quotient and chain rules, evaluate a slope and inspect the function, derivative and tangent.

Your numbers

Use explicit multiplication, such as 2*x. Angles are radians; log and ln are natural logarithms.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Try it, understand it

Explore the result

Symbolic differentiation recursively applies a rule to each expression node. The function, derivative and tangent have different meanings and are displayed separately.

Worked example comparison
ExampleOutputWhat to notice
Worked exampleSlope at the selected point0For f(x)=x^2*sin(x), f′(x)=2*x*sin(x)+x^2*cos(x). The slope at zero is zero.
A quotientSlope at the selected point-2The derivative is −2/(x−1)², so the slope at two is −2.
A chainSlope at the selected point1.080605The inner derivative contributes the factor 2*x.

Check your understanding

Does this support the chain rule?

Yes. Supported function compositions are differentiated recursively.

Are logarithms base ten?

No. log and ln mean natural logarithm.

Behind the numbers

How this calculation works

Symbolic differentiation recursively applies a rule to each expression node. The function, derivative and tangent have different meanings and are displayed separately.

THE FORMULA(f/g)′ = (f′g − fg′)/g²; (f ∘ g)′ = f′(g)g′

A worked example

For f(x)=x^2*sin(x), f′(x)=2*x*sin(x)+x^2*cos(x). The slope at zero is zero.

Good to know

Bounded real expressions and floating-point arithmetic. Finite graph samples can miss singularities, isolated features or behavior outside the selected window. Original domain exclusions still apply.

Choose a rule from the expression structure

A fraction containing functions in both numerator and denominator calls for the quotient rule. Multiply the derivative of the numerator by the denominator, subtract the numerator times the derivative of the denominator, then divide by the denominator squared. Keeping the subtraction order prevents a common sign error.

A product instead uses f′g+fg′. Nested functions use the chain rule. These structures may coexist in one expression, so the tool traverses the bounded expression tree rather than choosing just one rule for the entire line.

Interpret the symbolic and numerical results

The printed derivative is an expression in x. The slope is that expression evaluated at your selected point. These are different outputs: a derivative expression can be valid on part of a domain while a particular selected point is excluded.

The tangent equation uses both the original function value and its slope. For f(x)=x² at x=2, the point is (2,4), the slope is four and the tangent is y=4+4(x−2). The derivative curve is y=2x, which is not the same line as this tangent.

Keep original domain exclusions

Differentiating or simplifying a fraction does not restore a missing original value. The expression (x²−1)/(x−1) excludes x=1 even though away from that point it equals x+1. A line drawn across a gap should never be used to assign an original function value.

Absolute value illustrates another boundary: abs(x) has no two-sided derivative at zero. A symbolic formula with division by abs(x) remains undefined there, and the calculator rejects that evaluation rather than assigning a convenient slope.

Use a local graph window

The function and derivative curves share axes so that you can compare zeros, slope signs and local turning behavior. The tangent passes through the selected function point. A steep tangent can dominate the vertical scale; reducing the half-width often makes the local geometry clearer.

The function composition calculator shows the inner and outer evaluations behind a chain-rule problem. The continuity and discontinuity diagnostic calculator examines assigned values and nearby samples. Both offer useful checks, while finite sampling and formal differentiation remain distinct from a proof of smoothness.

A few questions, answered

Does this support the chain rule?

Yes. Supported function compositions are differentiated recursively.

Are logarithms base ten?

No. log and ln mean natural logarithm.

Does the graph prove differentiability?

No. A finite graph cannot certify every point or resolve arbitrary singularities.

Find your calculator

Start typing to explore the library.