📖 Short lecture
The definite integral $\int_a^b f(x)\,dx$ is the signed area between the graph of $f$ and the $x$-axis from $a$ to $b$. It is the limit of Riemann sums: split $[a,b]$ into $n$ thin rectangles and add their areas as $n\to\infty$.
An antiderivative $F$ satisfies $F'=f$. The Fundamental Theorem of Calculus says $\int_a^b f(x)\,dx=F(b)-F(a)$: integration and differentiation are inverse processes. For example $\int x^n\,dx=\frac{x^{n+1}}{n+1}+C$ for $n\neq-1$.
⚠️ Common mistakes
- Do not forget $+C$ in an indefinite integral.
- $\int x^{-1}dx=\ln|x|+C$; the power rule fails for $n=-1$.
- A definite integral counts area below the axis as negative; for total area split at the zeros.
🔑 Key formulas
✏️ Worked example
Find the area under $y=x^2$ from $0$ to $3$.
- $\displaystyle \int_0^3x^2\,dx=\left[\tfrac{x^3}{3}\right]_0^3$
- $\displaystyle =\tfrac{27}{3}-0=9$
✔ $9$ square units.
🧮 More worked examples
Each step says what we do and why.
Example 2Find $\int(6x^2-4x+5)\,dx$.
- Power rule term by term.$$6\cdot\frac{x^3}{3}-4\cdot\frac{x^2}{2}+5x$$
Example 3Find the area between $y=x$ and $y=x^2$.
- Intersections.$$x=x^2\Rightarrow x=0,\ 1$$
- Top minus bottom.$$\int_0^1(x-x^2)\,dx=\tfrac12-\tfrac13$$
Example 4Estimate $\int_0^2x^2\,dx$ with $4$ right rectangles and compare with the exact value.
- Width and heights.$$\Delta x=0.5,\quad f(0.5),f(1),f(1.5),f(2)=0.25,1,2.25,4$$
- Sum.$$0.5(7.5)=3.75$$
- Exact.$$\tfrac83\approx2.67$$
Example 5Find $\int2x(x^2+1)^3\,dx$.
- Substitute $u=x^2+1$.$$du=2x\,dx\Rightarrow\int u^3\,du$$
- Integrate.$$\frac{u^4}{4}+C$$
Example 6Evaluate $\int_0^{\pi/2}\cos x\,dx$.
- Antiderivative.$$[\sin x]_0^{\pi/2}=1-0$$
Example 7Find the area enclosed by $y=4-x^2$ and the $x$-axis.
- Zeros.$$x=\pm2$$
- Integrate.$$\int_{-2}^{2}(4-x^2)\,dx=\left[4x-\tfrac{x^3}{3}\right]_{-2}^{2}=2\left(8-\tfrac83\right)$$
🖐️ Interactive demo & illustration
Move the sliders or press the buttons: the figure and the numbers update immediately. Try to predict the result before you look.
🎬 Accumulating area: F(x) = ∫ f
The shaded region is the signed area $F(x)=\int_0^x f(t)\,dt$ (blue counts positive, pink negative). The lower graph plots $F$ as $x$ moves. Notice that $F$ rises where $f\gt0$, falls where $f\lt0$, and its slope is always $f(x)$: $F'(x)=f(x)$.
🎞️ Left, right, midpoint or trapezoid? Race to the exact area
The same area can be approximated in four ways. Pick a rule and a number of strips $n$, then press play to double $n$ again and again. Every rule approaches the exact integral, but the midpoint and trapezoid rules get there much faster: their error shrinks like $\frac1{n^2}$ instead of $\frac1n$.
🌍 Modelling problems
Real-life situations: translate the words into mathematics, solve, then interpret the answer.
🚀 Distance from velocity
A car's velocity is $v(t)=3t^2$ m/s. How far does it travel from $t=0$ to $t=4$ s?
Show the solution
- Integrate velocity.$$\int_0^43t^2\,dt=\left[t^3\right]_0^4$$
✔ $64$ m.
💧 Water flow
Water flows into a tank at $r(t)=20-2t$ L/min for $10$ minutes. How much water enters?
Show the solution
- Integrate the rate.$$\int_0^{10}(20-2t)\,dt=\left[20t-t^2\right]_0^{10}=200-100$$
✔ $100$ L.
📈 Total revenue
Marginal revenue is $R'(x)=50-0.4x$ AED per item. Find the revenue from the first $100$ items.
Show the solution
- Integrate.$$\int_0^{100}(50-0.4x)\,dx=\left[50x-0.2x^2\right]_0^{100}=5000-2000$$
✔ $3000$ AED.
🌡️ Average temperature
$T(t)=20+5\sin\left(\frac{\pi t}{12}\right)$ °C over a day ($0\le t\le24$). Find the average temperature.
Show the solution
- Average value.$$\frac1{24}\int_0^{24}T\,dt$$
- The sine part integrates to $0$ over a full period.$$\frac{20\cdot24}{24}=20$$
✔ $20$ °C.
🏭 Total emissions
A factory emits at $r(t)=3e^{0.1t}$ tons per year. Find the total over $10$ years.
Show the solution
- Integrate.$$\int_0^{10}3e^{0.1t}\,dt=30(e-1)$$
✔ About $51.5$ tons.
🔩 Stretching a spring
A spring needs force $F=200x$ N to stretch $x$ m. Find the work to stretch it $0.1$ m.
Show the solution
- Work is the integral of force.$$\int_0^{0.1}200x\,dx=100(0.01)$$
✔ $1$ J.
🏆 Challenge problems
Harder problems for students aiming higher. Try first, then open the solution.
🏆 Derivative of an integral
Find $\dfrac{d}{dx}\displaystyle\int_0^{x^2}\cos t\,dt$.
Show the solution
- Fundamental theorem with the chain rule.$$\cos(x^2)\cdot2x$$
✔ $2x\cos(x^2)$.
🏆 Area between $x$ and $x^3$
Find the total area between $y=x^3$ and $y=x$ for $-1\le x\le1$.
Show the solution
- Symmetry: twice the right half.$$2\int_0^1(x-x^3)\,dx$$
- Integrate.$$2\left(\tfrac12-\tfrac14\right)$$
✔ $\frac12$.
✅ Multiple-choice quiz
📝 Short essay
Explain the idea of a Riemann sum and why the approximation improves as the number of rectangles increases.
We replace the curved region by $n$ rectangles of width $\Delta x=\frac{b-a}{n}$ whose heights are values of $f$. The error comes from the small gaps or overlaps at the top of each rectangle; as $n$ grows they become thinner and the total error tends to $0$, so the sum tends to the exact area.