Explore calculusLesson 29 of 48 · 8 min
Integrate and check by differentiating
Distinguish an antiderivative family from a definite accumulated quantity.
Maths refresher: Accumulation and antiderivatives
Integration connects a rate with accumulation. Adding a constant to an antiderivative does not change its derivative.
The definite result is evaluated at minus evaluated at . The arbitrary constant cancels.
An antiderivative F of f has derivative f. Indefinite integration finds one representative, while adding an arbitrary constant describes the family on a suitable interval. Definite integration instead accumulates signed contributions between specified bounds.
SymPy integrate can perform either operation depending on the arguments. Integral retains an unevaluated mathematical object until doit is requested, which is useful for keeping the problem definition visible.
The example integrates a polynomial, differentiates the result to check it, and evaluates a bounded integral. The derivative check cannot determine an additive constant. For functions with singularities, inspect the integration interval and convergence rather than assuming a symbolic expression guarantees a finite ordinary integral.
Does the derivative check distinguish from ?
Write a prediction (optional)
Exact symbolic investigation
Select Run Python with the code unchanged.
Your saved draft is open. To use the published code, select Restore example in Tools. Use Recover draft to bring back your code.
Tools
About Python
Python and the course packages can load while you read. Each run starts with fresh user variables; imported modules stay loaded. Stop replaces the worker. Runtime details ↗
Ctrl+Enter or ⌘+Enter runs Python.
Execution error
Technical error details
Your result
Python text output
Compare with the worked example
Executed from the published Python during the site build. Your own run appears above. Build environment ↗
Worked text output
Antiderivative family: C + x**2 Derivative residual: 0 Defined accumulation: Integral(2*x, (x, 0, 3)) Definite value: 9
Read the starter result
Antiderivative family includes the arbitrary constant C. Derivative residual checks that differentiating removes it and gives back the rate. Definite value gives the separate accumulation over the displayed bounds.
Edit and compare
Replace rate = 2*x with rate = 3*x**2 and upper = 3 with upper = 2. Select Run Python. Read Definite value for the interval from 0 to 2 and use Derivative residual to check the new antiderivative separately.
Scope. General integrals may remain unevaluated or require convergence conditions and piecewise domains.
Try a fresh case
What does differentiating an antiderivative verify?
Need a hint?
Hint 1
The derivative of every constant is zero.
Hint 2
Separate a derivative identity from a bounded or improper accumulation.