Trading Dev AcademyFree quant education

Free lesson · Integral calculus

Core integral rules: undo a derivative, then check

Open interactive lessonPractice calculationsExplore labs

Start with the idea

  • An antiderivative reverses differentiation.
  • Check your answer by differentiating it.
Symbols, units & horizon
  • x: dimensionless input
  • n: nonnegative integer exponent for the rule stated here
  • c: constant integrand value
  • C: arbitrary integration constant
  • dx: integrate with respect to x
  • ∫: indefinite integration, producing a family of antiderivatives
  • F: an antiderivative

When and why to use this

Use an antiderivative to reconstruct accumulation from a rate. Definite integrals then compare endpoint values; substitution later reverses the chain rule.

  • Constant rule: ∫cdx=cx+C.
  • Power rule: ∫xndx=xn+1(n+1)+C for nonnegative integer n here.
  • Increase the power by one. Divide by that new power.
  • Sum rule: integrate each term and add the results.
  • A fixed multiplier stays outside the integral.
  • The arbitrary constant C has derivative zero. Different C values give the same derivative.
  • Changing C shifts an antiderivative vertically. It does not change any of its slopes.
  • For F(x)=x²+3x+C, choosing C=5 gives F(0)=5 and F(2)=15. Choosing C=0 gives 0 and 10.
  • The endpoint difference is 10 in both cases: the same constant is added to both endpoints and cancels when you subtract.
∫(2x+3)dx=x2+3x+C
Core rule · definition and worked arithmetic

Core integral rules: undo a derivative, then check

  1. Differentiate xn+1(n+1): the power rule gives (n+1)xn(n+1)=xn.
  2. Split the example into ∫2xdx+∫3dx.
  3. The terms integrate to x2 and 3x. Add one arbitrary constant C.
  4. Check: ddx(x2+3x+C)=2x+3.
Work it by hand

Choose C=0. Then F(2)=2²+3×2=10 and F(0)=0. The next lesson explains why F(2)−F(0)=10 gives the definite integral on [0,2].

Use the rule

  • Name the inputs and units.
  • Work the small example by hand.
  • Check the result before continuing to the next lesson.

Before moving on

Explain the core rule in one sentence, reproduce the worked calculation and solve both practice variations.

Further reading: OpenStax · Definite integrals · textbook checked 12 September 2026 ↗

Python implementation

Self-contained teaching example. Python 3.10+; dependencies and input conventions are shown in the code and notation. Run in your own Python environment.

def antiderivative(x, constant=0):
    return x*x+3*x+constant

def check_derivative(x):
    return 2*x+3

print(antiderivative(2), check_derivative(2))

Continue learning

Integral Calculus: Accumulation & Area — all lessons
  1. Start with rectangles: rate × time = amount
  2. Definite integrals: adding many small contributions
  3. Core integral rules: undo a derivative, then check
  4. Antiderivatives and the fundamental theorem
  5. Integration techniques: substitution and integration by parts
  6. Improper integrals, densities and continuous expectations
  7. Numerical integration and a continuous cash-flow building block

Quantitative finance and development glossary · Python resources and libraries · Research sources and limitations