← Back to course

Math — Mechina

Integrals and areas

Summary

The indefinite integral is the “inverse operation” of differentiation: FF is an antiderivative of ff if F′=fF'=f. The definite integral ∫abf dx=F(b)−F(a)\int_a^b f\,dx=F(b)-F(a) is the signed area between the graph and the xx axis (above the axis positive, below negative).

∫xndx=xn+1n+1+C (n≠−1),∫dxx=ln⁡∣x∣+C,∫ekxdx=ekxk+C\int x^n dx=\frac{x^{n+1}}{n+1}+C\ (n\ne-1),\quad \int\frac{dx}{x}=\ln|x|+C,\quad \int e^{kx}dx=\frac{e^{kx}}{k}+C
∫f′(g(x)) g′(x) dx=f(g(x))+C⇒∫g′gdx=ln⁡∣g∣+C,∫g′g dx=g22+C\int f'(g(x))\,g'(x)\,dx=f(g(x))+C\qquad\Rightarrow\qquad \int\frac{g'}{g}dx=\ln|g|+C,\quad \int g'g\,dx=\frac{g^2}2+C
  • The area between two graphs: ∫ab(upper−lower) dx\int_a^b(\text{upper}-\text{lower})\,dx, where a,ba,b are the intersection points.
  • If the graph crosses the xx axis inside the interval — split into pieces and take the absolute value of each.
  • Tangent at x0x_0: y=f(x0)+f′(x0)(x−x0)y=f(x_0)+f'(x_0)(x-x_0).
  • “Function from its derivative”: f=∫f′ dxf=\int f'\,dx, and the constant CC comes from a condition (a point on the graph or tangency to an axis).
-0.50.511.522.533.5-112345xyx^22x(0, 0)(2, 4)
The area between y=2xy=2x (above) and y=x2y=x^2 from 00 to 22 is ∫02(2x−x2)dx=43\int_0^2(2x-x^2)dx=\frac43.

What is new here

The integral answers two questions that look completely different. First: we know the rate of change — what is the quantity itself? For example, we know the speed at every moment and want the distance. Second: what is the area under a curved graph? The fundamental theorem of calculus says these are the same question: the area under the graph of ff is found with a function whose derivative is ff.

Where the ∫\int sign comes from

Split [a,b][a,b] into narrow rectangles of width Δx\Delta x. Each has height f(x)f(x) and area f(x)Δxf(x)\Delta x, and we add them all up. The narrower the rectangles, the closer the sum gets to the exact area. The ∫\int sign is a stretched S — "sum" — and dxdx is the tiny width. That is why integrating speed over time gives distance: a sum of "speed times a short time".

Why we add +C+C

The derivative of a constant is zero, so ff has infinitely many antiderivatives differing by a constant: x2x^2, x2+5x^2+5 and x2−3x^2-3 all differentiate to 2x2x. Their graphs are the same curve shifted up or down. In a definite integral the constant cancels in F(b)−F(a)F(b)-F(a), so it is not written there. When a point on the graph is given, it fixes CC.

Basic rules and more formulas

  • A constant factor comes out, and the integral of a sum is the sum of the integrals.
  • ∫sin⁡x dx=−cos⁡x+C\int\sin x\,dx=-\cos x+C, ∫cos⁡x dx=sin⁡x+C\int\cos x\,dx=\sin x+C.
  • ∫dxx2=−1x+C\int\frac{dx}{x^2}=-\frac1x+C and ∫x dx=23x3/2+C\int\sqrt x\,dx=\frac23x^{3/2}+C — these are just xnx^n with n=−2n=-2 and n=12n=\frac12.

Example: ∫(3x2−4x+e2x)dx=x3−4ln⁡∣x∣+e2x2+C\int\left(3x^2-\frac4x+e^{2x}\right)dx=x^3-4\ln|x|+\frac{e^{2x}}2+C. Check: differentiate the answer and you must get back exactly the integrand. It is the best check there is, and you can always do it.

Substitution — when there is an inner function

  1. Look for an inner expression g(x)g(x) whose derivative appears (up to a constant) next to it.
  2. Set u=g(x)u=g(x); then du=g′(x) dxdu=g'(x)\,dx.
  3. Compute a simple integral in uu.
  4. Go back to xx and check by differentiating.

Example: ∫2x(x2+1)5dx\int2x(x^2+1)^5dx. Here u=x2+1u=x^2+1, du=2x dxdu=2x\,dx, so the result is (x2+1)66+C\frac{(x^2+1)^6}6+C. A useful special case is a linear inner function: ∫(2x+1)4dx=(2x+1)55⋅2+C\int(2x+1)^4dx=\frac{(2x+1)^5}{5\cdot2}+C — divide by the coefficient of xx too.

Definite integral versus area

A definite integral counts area below the xx-axis with a minus sign. So ∫−12x dx=42−12=1.5\int_{-1}^{2}x\,dx=\frac{4}{2}-\frac12=1.5, but the area enclosed between the graph and the axis is 0.5+2=2.50.5+2=2.5: a triangle of 0.50.5 below the axis and one of 22 above. When asked for an area, first find where the graph crosses the axis and compute each piece separately in absolute value.

How to solve an area problem

  1. Sketch the graphs.
  2. Find the intersection points — they are the limits of integration.
  3. On each piece decide which graph is on top (plug in a point in the middle).
  4. Compute ∫(y1−y2) dx\int(y_1-y_2)\,dx on each piece and add up, with y1y_1 the upper graph and y2y_2 the lower.
  5. Check: the area is positive and its size fits the sketch.

Common mistakes

  • Forgetting +C+C in an indefinite integral, or not finding it when a point is given.
  • ∫x−1dx=x00\int x^{-1}dx=\frac{x^0}{0} — wrong; here the answer is ln⁡∣x∣\ln|x|.
  • Not dividing by the inner coefficient in a linear substitution.
  • Computing an area as one integral when the graph crosses the axis — the parts cancel.
  • Swapping upper and lower graphs and getting a negative area.

Question types

1

Integration by substitution

A composite function times (roughly) the derivative of the inner one.

Worked example

Compute ∫ln⁡(3x+1)3x+1dx\int\frac{\ln(3x+1)}{3x+1}dx.

Solution

Ideau=ln⁡(3x+1)u=\ln(3x+1), du=33x+1dxdu=\frac{3}{3x+1}dx.
  1. dx3x+1=du3\frac{dx}{3x+1}=\frac{du}{3}.

    Why: Isolate what appears in the integral.

  2. ∫u3du=u26+C\int\frac{u}{3}du=\frac{u^2}{6}+C.
  3. =ln⁡2(3x+1)6+C=\frac{\ln^2(3x+1)}{6}+C.
CheckDifferentiate: 2ln⁡(3x+1)6⋅33x+1=ln⁡(3x+1)3x+1\frac{2\ln(3x+1)}{6}\cdot\frac{3}{3x+1}=\frac{\ln(3x+1)}{3x+1} ✓.
Common mistakeForgetting the factor 13\frac13 from the inner derivative.

Variants of this type · 1

1.1A definite integral by substitution

Worked example

∫012xex2dx\int_0^1 2xe^{x^2}dx.

Solution

Ideau=x2u=x^2.
  1. =∫01eudu=e−1=\int_0^1e^u du=e-1.
Check≈1.718\approx1.718, positive ✓.
Common mistakeNot changing the limits after substituting.
2

Tangent and area

A tangent is drawn at a point and the question asks for the area between the graph, the tangent and an axis.

Worked example

The tangent to y=x2y=x^2 at x=1x=1; find the area between the graph, the tangent and the xx axis.

Solution

IdeaThe tangent line, then area = area under the parabola minus the triangle under the tangent.
  1. Tangent: y=1+2(x−1)=2x−1y=1+2(x-1)=2x-1, it meets the xx axis at x=12x=\frac12.
  2. Under the parabola from 00 to 11: 13\frac13.

    Why: ∫01x2dx\int_0^1x^2dx.

  3. The triangle under the tangent: 12⋅12⋅1=14\frac12\cdot\frac12\cdot1=\frac14.
  4. Area: 13−14=112\frac13-\frac14=\frac1{12}.
CheckThe area is small — the tangent hugs the parabola ✓.
Common mistakeComputing ∫01(x2−(2x−1))dx\int_0^1(x^2-(2x-1))dx — including the part below the axis.
3

A function from its derivative

Given f′f' and a condition (a point, tangency to the xx axis) — find ff and an area.

Worked example

f′(x)=3x2−12f'(x)=3x^2-12 and the graph of ff touches the xx axis at a minimum. Find ff.

Solution

Ideaf=x3−12x+Cf=x^3-12x+C; touching the axis = a zero value at the extremum.
  1. f′=0⇒x=±2f'=0\Rightarrow x=\pm2; the minimum is at x=2x=2 (f′′=12>0f''=12>0).
  2. f(2)=8−24+C=0⇒C=16f(2)=8-24+C=0\Rightarrow C=16.
  3. f(x)=x3−12x+16f(x)=x^3-12x+16.
Checkf(2)=0f(2)=0, f′(2)=0f'(2)=0 ✓.
Common mistakeForgetting CC.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice