On an average April day in Bhaktapur, the sunlight falling on a flat roof grows from nothing soon after a quarter to six in the morning to about 856 watts on every square meter around noon, then fades back to nothing by about half past six in the evening. A solar panel on that roof turns part of it into electricity, and an electricity meter counts what it makes in kilowatt-hours (units), the same units as the bill from the Nepal Electricity Authority.
So here is this unit’s question: how much energy does that one square meter of roof receive in the day? If the light were steady, energy would be power × time. But the power changes every minute. Adding up a quantity whose rate keeps changing is what this unit is for: it runs the derivative of Unit 18 backwards, and then turns the result into an area. The answer comes at the end of 19.7.
Sunlight figures: the European Commission’s PVGIS, averaged over 2005–2020.

19.1 Anti-derivatives
Running a derivative backwards
In Unit 18 a stone fell meters in t seconds, and differentiating gave its speed, m/s. Now turn the question round. A speedometer tells you the speed at every instant, v = 9.8t. How far has the stone fallen? You need a function whose derivative is 9.8t.
works. So does , and : a constant added on has derivative 0, so it changes nothing. The speed alone can’t tell you where the stone started; you need one more fact, such as s = 0 at t = 0, to pick .
A function F is an anti-derivative (or primitive) of f on an interval if
for every x in it. Finding one is integration, the reverse of differentiation.
Any two anti-derivatives of f differ by a constant.
- Let F′ = f and G′ = f. Then (G − F)′ = f − f = 0 on the interval (the difference rule).
- A function whose slope is 0 at every point of an interval never rises or falls there: it is a constant, C. (This needs the mean value theorem, met in higher mathematics, the same fact behind “f′ > 0 means increasing” in 18.7.)
- So G(x) = F(x) + C.
So once you have found one anti-derivative F, you have them all: F(x) + C, for every constant C. This whole family is written
read “the integral of f(x) with respect to x”. It is called the indefinite integral; f(x) is the integrand, C the constant of integration, and dx says that x is the variable.
On a graph the family is one curve slid up and down (Figure 19.2): every member has the slope f(x) at each x, so their tangents at the same x are parallel. A condition such as “the curve passes through (1, 3)” picks out one member.
Checking is easy. Integration is often hard; differentiation never is. So differentiate your answer: if you get the integrand back, it is right. Do this with every integral in this unit.
means that:
Pick an answer to see why.
F(x) is an anti-derivative of f(x). Which of these is also one?
Pick an answer to see why.
19.2 Integration using basic integrals
The table, read backwards
Every derivative in Unit 18 is an integral read the other way. Turn the table round (and divide out a constant where one appears):
| Since of … | is … | so … dx | = … + C |
|---|---|---|---|
| (n ≠ −1) | |||
| (a > 0, a ≠ 1) | |||
| − cos x | sin x | sin x | − cos x |
| sin x | cos x | cos x | sin x |
| tan x | tan x | ||
Why , not . is defined for negative x too, but isn’t. For x < 0, (chain rule). So is an anti-derivative of on both sides of 0. It also fills the one gap in the power rule: breaks down at n = −1, and there the answer is a logarithm.
Two rules
Proof: differentiate the right sides. By the constant-multiple and sum rules of 18.3 their derivatives are kf and f ± g, so they are anti-derivatives of the left sides. (One + C at the end covers all the constants.)
So a sum is integrated term by term, with the constants brought out. There is no product or quotient rule like this: is not . A product must first be multiplied out, simplified, or handled by the methods of 19.3 and 19.4.
Worked examples
is:
Pick an answer to see why.
is:
Pick an answer to see why.
19.3 Integration by substitution
The chain rule, backwards
is in no table. But the chain rule says , so the answer is . The integrand was the derivative of a function of a function: an outside function cos of an inside , multiplied by the inside’s derivative 2x. Substitution finds such integrals without guessing.
If u = g(x), then .
- Let F be an anti-derivative of f, so F′(u) = f(u).
- By the chain rule, .
- So .
In practice: put u = g(x), write du = g′(x) dx (from ), replace every x by u, integrate in u, then put g(x) back.
A linear inside: f(ax + b)
With u = ax + b, du = a dx, so :
Integrate as if the inside were x, then divide by a. So , , .
A fraction whose top is the bottom’s derivative
With u = f(x), du = f′(x) dx:
So (no bars needed: ). If the top is only a constant times the bottom’s derivative, bring the constant out first.
A power of a function times its derivative
With u = f(x):
More generally, look for a function inside another whose derivative is standing outside it, maybe short of a constant.
Grade 12 turns many such substitutions into ready-made standard forms, such as , and , and adds rational functions split into partial fractions. Here each is worked from a substitution when it is needed.
is:
Pick an answer to see why.
is:
Pick an answer to see why.
19.4 Integration by parts
The product rule, backwards
Substitution undoes the chain rule. Integration by parts undoes the product rule, for integrals such as or , a product of two different kinds of function where neither is the other’s derivative.
- For two functions u and w of x, the product rule gives (uw)′ = uw′ + wu′.
- Integrate both sides: (the constant goes into the integrals).
- Rearrange: .
- Write v for w′, so :
In words: the first times the integral of the second, minus the integral of (the derivative of the first times the integral of the second). It trades one integral for another; the trade is worth making when the new one is easier. Many books write it shortly as .
Which one is “first”?
The first, u, is differentiated; the second, v, is integrated. Choose u as the one that gets simpler when differentiated and v as one you can integrate. The usual order of preference for u is
Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential (LIATE; some books write ILATE, which differs only when a log meets an inverse trig function). So in x sin x, u = x (algebraic beats trigonometric); in , .
is:
Pick an answer to see why.
In , which way works?
Pick an answer to see why.
19.5 The definite integral
Total change from a rate
In Example 5, the motorbike’s position was . How far did it go between t = 2 and t = 6? It is s(6) − s(2), and the C cancels:
Any anti-derivative gives the same difference. So the total change in a quantity, between two values of the variable, comes from its rate of change alone.
If F is an anti-derivative of f on [a, b], the definite integral of f from a to b is
a is the lower limit and b the upper limit. An indefinite integral is a family of functions; a definite integral is a number. The C always cancels, so leave it out.
Properties of the definite integral
Each follows from :
- (F(a) − F(a)).
- (swapping the limits swaps the subtraction).
- for any c ([F(c) − F(a)] + [F(b) − F(c)]).
- : the letter doesn’t matter, only the limits.
- .
- . Put t = a − x, dt = −dx; x = 0 gives t = a, x = a gives t = 0: (by 2 and 4).
- If f is odd (f(−x) = −f(x)), ; if it is even (f(−x) = f(x)), . (Split at 0 by 3, and put x = −t in the left half: it becomes , which is or .)
Property 7 saves work: at a glance, since every term is odd.
Substitution with limits
In a definite integral, when you substitute u = g(x), change the limits too: x = a becomes u = g(a), x = b becomes u = g(b). Then there is no need to go back to x.
equals:
Pick an answer to see why.
equals:
Pick an answer to see why.
19.6 The definite integral as an area under the given curve
Squeezing the area between sums
What is the area under from x = 0 to x = 2, above the X-axis? A curved side has no formula. But the area can be squeezed:
- Cut [0, 2] into n strips of equal width .
- On each strip stand a rectangle whose height is the curve’s height at one point of the strip.
- Add the rectangles’ areas: .
With 4 strips and heights from each strip’s left end, the sum is (0 + 0.25 + 1 + 2.25) × 0.5 = 1.75: the rectangles lie under the rising curve, so the area is more than 1.75. With heights from the right ends, (0.25 + 1 + 2.25 + 4) × 0.5 = 3.75: they stick out, so the area is less. Narrower strips squeeze harder:
| Strips n | 4 | 10 | 100 |
|---|---|---|---|
| Left heights | 1.75 | 2.28 | 2.6268 |
| Right heights | 3.75 | 3.08 | 2.7068 |
Both head for the same number, and Example 15a has already found it: .
This is the definite integral’s second meaning. For a continuous f on [a, b], with n strips of width and any point in the kth strip,
and, where f(x) ≥ 0, it is the area bounded by the curve y = f(x), the X-axis and the ordinates x = a and x = b. Leibniz’s sign is a long S, for “sum”, and dx is what became of : the integral is a sum of thin strips f(x) dx.
Why the area is F(b) − F(a)
Two meanings, one number: a limit of sums of rectangles, and the change in an anti-derivative. Why should they agree? Let f(x) ≥ 0 be continuous, and let A(x) be the area under the curve from a up to x (Figure 19.3).
- Moving from x to x + h adds a thin strip: A(x + h) − A(x) is its area.
- Take h > 0 (for h < 0 the strip is on the left and the same argument holds). The strip lies between two rectangles of width h: one as high as the lowest point of the curve over [x, x + h], m, one as high as the highest, M. So mh ≤ A(x + h) − A(x) ≤ Mh, and .
- As h → 0, both m and M tend to f(x) (f is continuous), so the middle does too: A′(x) = f(x).
- So A is an anti-derivative of f: A(x) = F(x) + C.
- A(a) = 0 (no width, no area), so C = −F(a), and the area up to b is A(b) = F(b) − F(a).
This is the fundamental theorem of calculus: the rate at which the area grows is the height of the curve. It joins the two halves of this subject, slopes and areas, which look unrelated.
When the curve goes below the axis
Where f(x) < 0, each is negative, so the integral counts area under the axis as negative. The definite integral is a signed area: above the axis minus below it. To find an area, which is never negative, split the range where the curve crosses the axis and add the sizes of the parts.
The area bounded by , the X-axis and the ordinates x = −1 and x = 1 is:
Pick an answer to see why.
For on [0, 1] cut into equal strips, the sum of rectangles with heights from each strip’s left end is:
Pick an answer to see why.
19.7 The area between two curves
Top minus bottom
Take two curves with y₁ = f(x) above y₂ = g(x) on [a, b]. The region between them is the area under the top one minus the area under the bottom one:
Each thin strip has height f(x) − g(x), top minus bottom, wherever the curves are, above the axis or below it: the formula needs no change when part of the region is under the X-axis, so long as f stays on top.
To find an area between curves:
- Sketch both curves, and find where they meet by solving f(x) = g(x): these are usually the limits.
- Decide which is on top in each piece (test one value of x).
- Integrate top minus bottom over each piece, and add.
The area enclosed between and y = 2x is:
Pick an answer to see why.
f and g are continuous, they cross only at x = 1 between 0 and 3, and . Then the area between the curves from 0 to 3 is:
Pick an answer to see why.
Back to the sunlight on the roof
About 6.3 kilowatt-hours fell on each square meter of the roof, and a model curve gets within 10% of it with one definite integral. Here is how.
Energy is power × time only for steady power. For changing power P(t), cut the day into short times , in each of which the power hardly changes: the energy in each is about , and the day’s energy is the limit of their sum, , the area under the power–time graph. An electricity meter does exactly this, adding up power times very short times.
A model. The light lasts about hours, from about 5:45 to 6:30, and rises and falls like the first hump of a sine wave. Measuring t in hours from 5:45 and power in watts per square meter,
about 6.9 kWh on each square meter. (A linear inside: divide by .)
The data. PVGIS gives the power at the middle of each hour (the bars): 66, 254, 465, 654, 788, 856, 837, 758, 637, 489, 325, 156 and 16 W/m². Each bar is a rectangle one hour wide with its height from the middle of the hour, exactly 19.6’s sum of rectangles, and they add up to 6300 Wh, 6.3 kWh.
The model is 10% too high because the real day is narrower at the ends than a sine hump: in the early morning and late afternoon the sun is low, and its light crosses far more air, which weakens it. And a panel turns only part of the light into electricity: PVGIS works out that 1 kW of panels (the power they give in full sunlight of 1000 W/m²) on that roof makes about 4.7 kWh a day in April, and 3.5 kWh a day over the year, after heat and wiring losses. That is nearly five units of electricity a day in April from a few square meters of roof.
Exercise
Choose the correct option
is:
Pick an answer to see why.
If F′(x) = f(x), then is:
Pick an answer to see why.
is:
Pick an answer to see why.
is:
Pick an answer to see why.
If , then is:
Pick an answer to see why.
is:
Pick an answer to see why.
equals:
Pick an answer to see why.
The area bounded by , the X-axis and the ordinates x = 0 and x = 3 is:
Pick an answer to see why.
The area enclosed between and the line y = 4 is:
Pick an answer to see why.
is:
Pick an answer to see why.
and . Then is:
Pick an answer to see why.
Short questions
Integrate:
- a. (2 marks)
- b. (2 marks)
- c. (1 mark)
Hint
Answer
Integrate by substitution:
- a. (2 marks)
- b. (2 marks)
- c. (1 mark)
Hint
Answer
Integrate by parts:
- a. (2 marks)
- b. (3 marks)
Hint
Answer
Evaluate . (5 marks)
Hint
Answer
Evaluate:
- a. (2 marks)
- b. (2 marks)
- c. (1 mark)
Answer
A water tank is being filled so that the rate of flow, t minutes after the tap is opened, is 20 − 0.4t liters per minute, until the flow stops.
- a.When does the flow stop? (1 mark)
- b.How much water flows into the tank in that time? (2 marks)
- c.How much flows in during the first 10 minutes, and why is it more than a fifth of the total? (2 marks)
Answer
Sketch the curve , and find the area bounded by it and the X-axis. (5 marks)
Hint
Answer
Find the area enclosed between the parabolas and . (5 marks)
Hint
Answer
Long questions
- a.Integrate . (3 marks)
- b.Evaluate . (2 marks)
- c.Prove that , and use it to evaluate . (3 marks)
Hint
Answer
The parabola and the line y = x enclose a region.
- a.Find the points where they meet, and sketch both. (2 marks)
- b.Find the area of the region between them. (3 marks)
- c.Find the area between the parabola and the X-axis, and hence the area of the part of it that lies below the line. (3 marks)
Answer
Project work
Using what you learned
Our own questions of the kind IOE’s Section B sets: definite integrals and areas in two or three steps.
equals:
Pick an answer to see why.
The area enclosed between the parabola and the line y = x + 2 is:
Pick an answer to see why.
equals:
Pick an answer to see why.
Printable PDFs
- Study notes 2 pages
- Worksheet 5 pages Answer key
- Harder practice questions 2 pages Answer key
Practice every question in the book, and keep track of the ones you miss →
Where these facts come from
- Sunlight on a flat roof at Bhaktapur (27.67° N, 85.43° E): the average April day, hour by hour, and a 1 kW system’s output (4.72 kWh a day in April, 3.48 kWh a day over the year, 14% system losses), PVGIS 5.2 (ERA5 data, 2005–2020): European Commission, Joint Research Centre, PVGIS, daily-profile and PV-output calculations read November 2026 (the opening, 19.7).
- The 500 kW system at the CIAA’s Tangal headquarters, installed in 2017: the photo’s description on Wikimedia Commons.
- Archimedes’ Quadrature of the Parabola, the segment of a triangle by a geometric progression with ratio : Wikipedia, “The Quadrature of the Parabola”, read November 2026; his dates: MacTutor, “Archimedes of Syracuse”. Leibniz’s , a long s, first in Analyseos tetragonisticae pars secunda, 29 October 1675 (Sämtliche Schriften und Briefe VII.5, pp. 288–295), as cited in Wikipedia, “Integral symbol”, read November 2026 (19.6).
- The unit’s items and project work: CDC, Secondary Education Curriculum 2078, Mathematics, Grades 11–12, 6.3 and sample project 14; the marks: CDC, Specification Grid 2078, Mathematics, Grade 11; IOE, BE/BArch Entrance Syllabus 2083, Mathematics 5.3.
Found a mistake? Please tell us.
