Differentiate one function with respect to a chosen variable and see which rule applies at each step.
Result
First derivative
2xsin(x)+x2cos(x)
Conditions
x is real.
The result is defined for every real x.
Steps
Select the product rule. Two differentiable factors are multiplied.(fg)′=f′g+fg′
Differentiate each factor. Use the power rule and the sine derivative.(x2)′=2x,(sinx)′=cosx
Combine without dropping a factor. Each term keeps the factor that was not differentiated.2xsinx+x2cosx
✓
Independent check
A central-difference estimate of the original function agrees with the symbolic derivative at regular sample points.
Scope
What this derivative calculator covers
The derivative calculator handles explicit single-variable expressions. It preserves derivative order and variable choices instead of guessing from ambiguous input.
Basic derivative rules
Constants, powers, sums, and scalar multiples form the base of longer derivatives.
Examples: polynomials, negative powers, fractional powers on their real domains
Products and quotients
Preserve both original factors while applying the product or quotient rule.
Examples: x squared times sine x, exponential over polynomial
Compositions
Apply the chain rule from the outside function toward the inside function.
Examples: sine of x squared, logarithm of a polynomial
Higher derivatives
Repeat differentiation for the requested order and keep the order visible in the interpreted task.
Examples: second derivative, third derivative
How to use it
Enter enough information for one clear task
1
Enter one explicit function
Use parentheses around function arguments and denominators so the structure is unambiguous.
2
Choose the variable and order
A symbol that is not the differentiation variable is treated as constant only when the input makes that intent clear.
3
Check the rule sequence
Read why the product, quotient, or chain rule was chosen before following the algebra.
4
Compare domains
A derivative formula can be algebraically correct but valid on a smaller domain than a casual simplification suggests.
Worked inputs
Examples to try
Use these examples to recognize the method, compare equivalent forms, and check your own work.
Power rule
linearity
dxd(3x5−2x+7)
Expected result
15x4−2
Product rule
product rule
dxd(x2ex)
Expected result
ex(x2+2x)
Quotient rule
quotient rule
dxd(x+1x)
Expected result
(x+1)21
Chain rule
chain rule
dxdsin(x2)
Expected result
2xcos(x2)
Logarithm
chain rule
dxdln(x2+1)
Expected result
x2+12x
Second derivative
repeat the power rule
dx2d2x4
Expected result
12x2
Complete example
Differentiate an implicit circle
Treat y as a function of x. Every derivative of a y-expression therefore includes dy over dx.
x2+y2=25
1
Differentiate both sides
The constant differentiates to zero.
2x+2ydxdy=0
2
Isolate the y derivative
Move 2x to the other side and divide by 2y.
dxdy=−yx
3
State the local condition
This slope expression requires y not equal to zero; the circle has vertical tangents at those points.
y=0
dxdy=−yx
Verification: At the point (3,4), a local parametrization of the circle gives slope minus 3 over 4, matching the implicit result.
Avoidable errors
Common mistakes and how to fix them
Dropped inner derivative
Problem: Writing the derivative of sine of x squared as cosine of x squared.
Why it matters: The outside derivative must be multiplied by the derivative of x squared.
Better approach: Write the outer derivative first, then multiply by 2x.
Incomplete product rule
Problem: Differentiating both factors and multiplying the derivatives.
Why it matters: The product rule is not f prime times g prime.
Better approach: Use f prime g plus f g prime.
Sign error in quotient rule
Problem: Reversing the numerator subtraction.
Why it matters: Changing f prime g minus f g prime changes the result.
Better approach: Name the numerator f and denominator g before substituting.
Ignoring the domain
Problem: Cancelling factors without recording excluded values.
Why it matters: An equivalent simplified formula may not restore points missing from the original function.
Better approach: Carry original domain restrictions into the answer.
Trust the result for the right reasons
Checks, assumptions, and limits
How results are checked
Simplify the result independently and compare equivalent forms.
Substitute regular sample values when a numerical check is meaningful.
Check the domain and any one-sided, endpoint, or constant assumptions.
When to stop and revise the input
Revise an expression when the variable, boundary, direction, or grouping is ambiguous.
Treat a symbolic result as unsupported when the engine cannot establish an elementary form.
Use the steps to check work, not as a substitute for course or examination rules.
Common questions
Find a derivative FAQ
Does the calculator show steps?
Yes. A result includes the interpreted problem, the final answer, the mathematical operation used, relevant conditions, and a verification note when an independent check is available.
Why can a correct answer look different from a textbook answer?
Equivalent algebraic and trigonometric forms can look different while representing the same function. Indefinite integrals can also differ by a constant. Compare by simplifying, differentiating, or substituting values within the shared domain.
What should I include in the input?
State the expression, variable, and operation. Add an interval, upper and lower bounds, a one-sided direction, derivative order, or initial condition whenever the task depends on it.
How should I check an important result?
Inspect the recognized problem and assumptions first. Then use an independent check such as differentiating an antiderivative, substituting a solution into the original equation, or comparing one-sided numerical values.
Continue learning
Useful next steps
Choose the resource that matches what you need to do next.