Running differentiation backwards
Differentiation takes a function and gives its slope. An antiderivative goes the other way: given a function , find a function whose slope is . In symbols, .
If is a speed in km per hour, an antiderivative is a position in km, since the slope of position is speed. Lesson 2.5.3 uses that link to find areas.
Guess, check, adjust
To find an antiderivative of , guess : differentiating lowers a power by one, so the answer must have power 3. Then differentiate the guess and compare.
| guess | compared with | |
|---|---|---|
| 3 times too big | ||
| right |
Rule: Antiderivative
is an antiderivative of when the derivative of is . To check an answer, differentiate it: you must get back exactly the function you started with.
The + C: a family of antiderivatives
is not the only antiderivative of . So are and , because an added constant vanishes when you differentiate (lesson 2.3.1).
On an interval, these are all of them: two functions with the same derivative differ by a constant. The indefinite integral collects the whole family under one symbol.
Rule: Indefinite integral
stands for any constant. So . Without limits, the integral is a family of functions, not a number like the definite integral of lesson 2.5.1.
On a graph, the family is one curve copied up and down. At any the copies have the same slope, so their tangent lines there are parallel.
The antiderivatives of : the curves . At all four have slope 2. Only the one with passes through .
One value picks one curve
A single known value of fixes . Say and . Then , and putting in gives , so and .
If is a position and its speed, the speed alone cannot tell you where the car started. One known position settles it.
Powers
Read the power rule of lesson 2.3.1 backwards. Differentiating lowers a power by one and multiplies by the old power; undoing it raises the power by one and divides by the new power.
Rule: Power rule, backwards
Raise the power by one, then divide by the new power. Differentiating undoes both steps: the new power comes down in front and cancels the division.
Write roots and reciprocals as powers first (lesson 1.4.1). Each line of the table leaves out the .
| as a power | antiderivative | |
|---|---|---|
Check the fourth line by differentiating: . An antiderivative keeps the gaps in its domain. and have no value at 0, so the answer holds for and for separately.
Constant multiples and sums
Rule: Multiples and sums
A constant multiplier comes out in front, and a sum splits into two integrals, exactly as for derivatives. So a polynomial is integrated term by term, with a single at the end.
So . Differentiating gives back .
There is no product rule backwards. , but multiplying the separate antiderivatives gives , which is wrong. Multiply out first when you can.
For example, . The chain rule (lesson 2.3.3) shows that works too. Multiplied out, it is : the two answers differ by a constant, which the absorbs.
Try it
sp.integrate(f, x) gives one antiderivative, without the . The cell finds one for each example above, then differentiates it back.
A check of 0 means , so . SymPy writes as x**(-2).
The exception:
For the power rule would give , a division by zero. The antiderivative of is a logarithm instead.
Lesson 2.3.4 showed that has slope for . It also showed that , the same curve mirrored in the -axis, has slope for too. Read backwards, that is the antiderivative on both sides.
Rule: Integral of 1/x
The absolute value lets one formula cover both sides of 0. Each side is its own family, because has no value at 0.
For example, at the slope of is , which is . Constants come out as usual: .
Exponentials
is its own derivative, so it is its own antiderivative. For , differentiating brings out a factor (lesson 2.3.4), so the antiderivative divides by .
Rule: Exponentials
Check by differentiating: . With a negative the antiderivative has a minus sign.
So . And , because dividing by multiplies by . Case study 2.5.5 integrates a discount factor in exactly this way.
Other bases follow from (lesson 2.3.4): . So . Lesson 2.6.1 extends the trick for into a general method, substitution.
Try it
SymPy integrates the log and exponential examples, then differentiates each answer back. A check of 0 means the answer is right.
SymPy writes as log and gives log(x) for : it leaves out the absolute value and answers only for .
Sine and cosine
Lesson 2.3.5 showed that has slope , and has slope . Read backwards, is an antiderivative of , and is an antiderivative of .
Rule: Sine and cosine
With in radians. Check by differentiating: the slope of is .
The minus sign goes with the sine. is an antiderivative of , not of .
With a factor inside, divide by it, as for : . Lesson 2.5.3 turns antiderivatives into exact areas. For on that gives , the area of the hump that lesson 2.5.1 estimated.
Try it
SymPy integrates , and , then differentiates each answer back. A check of 0 means the answer is right.
The last line evaluates at and at 0 and subtracts: the area under one hump.
When there is no formula
Every function made of powers, exponentials and logs can be differentiated by rules. Antiderivatives are harder: some exist but cannot be written with those functions at all.
is the standard example. It has antiderivatives (lesson 2.5.3 builds one from areas), but no combination of powers, roots, exponentials and logs has derivative . SymPy answers with a new function, erf, which is itself defined by an integral of .
Lesson 2.6.3 meets its close relative , the bell curve, whose areas are found numerically. Other integrands need a method rather than a rule: substitution (lesson 2.6.1) and integration by parts (lesson 2.6.2).
Try it
SymPy's answer for uses erf. Differentiating it gives back , so it is an antiderivative; it just has no formula in familiar functions.
Common mistakes
- Divide by the new power. , not , and not , which is the derivative.
- Keep the . An indefinite integral is a whole family. When a value of is given, use it to find .
- is the exception. , not .
- is not a log case. It is , so the power rule gives .
- Divide by , do not multiply. , not .
- There is no product rule backwards. is , not .
- Mind the sign with sine. , not .
- Two answers can both be right. and differ by a constant, so both are antiderivatives of .
Antiderivatives
0 of 13 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- is an antiderivative of when ; check any answer by differentiating it.
- : all antiderivatives differ by a constant. One known value of fixes .
- for , with roots and reciprocals written as powers first.
- , on each side of 0.
- , and .
- and , in radians.
- Constants come out and sums split; products do not. Some functions, like , have no antiderivative formula.