HexMathv1.0.4

Derivative calculator with steps

This derivative calculator differentiates polynomials, exponentials, logarithms and trigonometric functions. Type the function or scan it from a photo. The derivative solver returns the derivative in simplified form and names the rule used at each step, such as the product, quotient or chain rule, and it finds second and higher derivatives when you ask for them.

Loading math input...

What this page covers

  • Derivatives of polynomials, powers, exponentials, logarithms and trigonometric functions.
  • The product, quotient and chain rules, applied one step at a time.
  • Higher derivatives when you ask for them (write d²/dx²).
  • Not covered here: integrals (see the integral calculator), and implicit or partial derivatives beyond the basic cases, which you can still type and try.

How to enter the problem

  • Type it as d/dx followed by the function in brackets, or use the math keyboard's derivative key.
  • Scan it. Fit the one expression in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked example

Differentiate x² ln x.

Problem

Differentiate x2ln⁡x\displaystyle x^2 \ln x.

Answer

Verified

The answer is

2xln⁡x+x2x\ln x + x

Explanation

  1. Recognise a product
    u=x2u = x^2 and v=ln⁡xv = \ln x are multiplied, so use the product rule (uv)′=u′v+uv′(uv)' = u'v + uv'.
  2. Differentiate each factor
    u′=2xu' = 2x by the power rule. v′=1xv' = \frac{1}{x}.
  3. Apply the product rule
    u′v+uv′=2xln⁡x+x2⋅1xu'v + uv' = 2x \ln x + x^2 \cdot \frac{1}{x}
  4. Simplify
    x2⋅1x=xx^2 \cdot \frac{1}{x} = x, so the derivative is 2xln⁡x+x2x\ln x + x, which also factors as x(2ln⁡x+1)x(2\ln x + 1).
  5. Check at a point
    At x=1x = 1: ln⁡1=0\ln 1 = 0, so the derivative is 0+1=10 + 1 = 1. The function x2ln⁡xx^2 \ln x is indeed rising through 00 at x=1x = 1.

Common mistakes

  • Forgetting the inner derivative in the chain rule, which gives e2x(cos⁡3x−sin⁡3x)e^{2x}(\cos 3x - \sin 3x) instead of the correct answer.
  • Differentiating a product factor by factor, as if (uv)′(uv)' were u′v′u'v'.
  • Losing the sign of the derivative of cosine: (cos⁡3x)′=−3sin⁡3x(\cos 3x)' = -3\sin 3x.
  • Treating ln⁡x\ln x as a constant in expressions like x2ln⁡xx^2 \ln x; its derivative is 1/x1/x.

Checks, assumptions and limits

  • Check numerically. Pick a point, say x=1x = 1. The formula gives about −17.758-17.758. Estimate the slope from the original function with a tiny step, for example [f(1.000001)−f(0.999999)]/0.000002[f(1.000001) - f(0.999999)] / 0.000002, and compare.
  • Angles are in radians. In degrees the chain rule adds a factor of π/180\pi/180.
  • Domain matters for logarithms and roots: x2ln⁡xx^2 \ln x and its derivative exist only for x>0x > 0.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

Yes. Each step has a short title such as the rule applied, then the working. Ask a follow-up if you want a rule explained.

Yes. Use the camera on the one problem, or choose a photo. Several problems in one photo are solved as a list.

Yes. Write d²/dx² in front of the function, or ask for the second derivative as a follow-up to the first.

Basic cases, yes. Type the equation and ask for dy/dx. Longer implicit and partial derivative problems are outside what this page covers, but you can still type one and try.

Ready to solve your next math problem?

Create a free account for 3 math questions a day in your browser. No card.

Get HexMath on your phone

The same solver and camera scan on iPhone and Android.

Last updated: · HexMath