Arithly

← All maths topics

Differentiation and integration basics

Differentiation finds the gradient of a curve — the rate at which y changes with x. Integration is the reverse process. For powers of x the rule mirrors perfectly: to differentiate xⁿ, multiply by n and drop the power by 1; to integrate xⁿ, raise the power by 1 and divide by the new power.

Two standard results to memorise: the derivative of sin x is cos x, and the derivative of cos x is −sin x. And never forget + C when integrating — the constant that differentiation wiped out could have been anything.

The two operations are one idea in reverse

Integration undoes differentiation, which is why the + C matters: differentiating x⁴ − x² + 7 and x⁴ − x² − 3 gives the same derivative, so reversing cannot know which constant was there. Checking an integral by differentiating it is always available and catches most errors — if you do not land back on the integrand, something slipped.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

Differentiate 3x² + sin x

  1. Differentiate term by term: 3x² + sin x.
  2. Use the product rule (u′v + uv′) where a term is a product, and the chain rule for sin(ax + b) / cos(ax + b).
  3. Power rule on 3x²: multiply the coefficient by the power (3 × 2 = 6) and reduce the power by 1 (2 − 1 = 1), giving 6x.
  4. dy/dx = 6x + cos x.

Answer: 6x + cos x

Worked note — integrating a two-term polynomial

Integrate 4x³ − 2x

  1. Integrate term by term, raising each power by 1 and dividing by the new power.
  2. 4x³ becomes 4x⁴ ÷ 4 = x⁴, and −2x becomes −2x² ÷ 2 = −x².
  3. Add the constant of integration: x⁴ − x² + C.

Answer: x⁴ - x² + C

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

Related topics

Calculus hub

Differentiation, integration and limits — every calculus topic in one place.

Derivative Calculator

Products, brackets and quotients — the rule-choice page for derivatives.

Integral Calculator

Integration worked step by step, term by term.

Limits

The idea underneath both operations, made concrete.

Rates of Change, Tangents and Normals

Where derivatives get used: gradients, tangents and normals.

More topics: all maths topics · Next topic: Solving quadratics with the quadratic formula

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.