HexMathv1.0.3

Derivative calculator with steps

Type or scan a function. HexMath differentiates it and names the rule at every step.

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 (use Integral calculator with steps), 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

Problem

Differentiate f(x)=e2xcos⁡(3x)\displaystyle f(x) = e^{2x}\cos(3x).

Answer

Verified

The answer is

f′(x)=e2x(2cos⁡(3x)−3sin⁡(3x))f'(x) = e^{2x}\bigl(2\cos(3x) - 3\sin(3x)\bigr)

Explanation

  1. Identify the structure
    This is a product of u=e2xu = e^{2x} and v=cos⁡(3x)v = \cos(3x), so the product rule applies
    (uv)′=u′v+uv′(uv)' = u'v + uv'
  2. Differentiate the first factor
    u′=2e2xu' = 2e^{2x}, by the chain rule (the inner function 2x2x has derivative 2).
  3. Differentiate the second factor
    v′=−3sin⁡(3x)v' = -3\sin(3x), by the chain rule (the inner function 3x3x has derivative 3).
  4. Apply the product rule
    f′(x)=2e2xcos⁡(3x)+e2x(−3sin⁡(3x))f'(x) = 2e^{2x}\cos(3x) + e^{2x}\bigl(-3\sin(3x)\bigr)
  5. Factor out the common e2xe^{2x}

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.

1 math question to try today without signing in, 3 a day signed in, unlimited with Pro.

Ready to solve your next math problem?

Try one problem free in your browser. Create a free account for 3 math questions a day.

Last updated: · HexMath