Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

What integrals compute

An integral was defined to compute an area, and area is close to the least interesting thing it does.

The pattern behind every application in this lesson is the same three-step move: cut the quantity into slices, approximate each slice by something elementary enough to write down, and recognise the total as a Riemann sum whose limit is an integral. Learning that move is worth more than memorising any of the formulas it produces, because the formulas are numerous and the move is one thing.

Area between two curves

If fg on [a,b], a vertical strip at position x has height f(x)-g(x) and width dx, so the area between the curves is

ab[f(x)-g(x)]dx

The subtraction handles signs automatically: the formula is correct even where both curves are below the axis, because only their difference enters.

Example. Find the area enclosed between y=x+2 and y=x2.

First find where they meet: x2=x+2 gives x2-x-2=0, so x=-1 and x=2. Between those points the line is above the parabola, checked at x=0 where the line gives 2 and the parabola gives 0. So the area is

-12(x+2-x2)dx=[x22+2x-x33]-12=3.3333-(-1.16667)=4.5

Now you. Find the area enclosed between y=2x and y=x2.

Answer

They meet where x2=2x, at x=0 and x=2, and the line is above in between. The area is 02(2x-x2)dx=[x2-x3/3]02=4-2.6667=1.3333.

Volumes by slicing

A solid can be cut into thin slabs perpendicular to an axis. If the slab at position x has cross-sectional area A(x) and thickness dx, its volume is A(x)dx, and the total is A(x)dx. When the solid is made by revolving a curve about the x-axis, each slab is a disc of radius f(x), so

V=abπ[f(x)]2dx

Example. Derive the volume of a sphere of radius R.

A sphere is the solid of revolution of the semicircle y=R2-x2 from -R to R. The disc at position x has radius y, so its area is π(R2-x2), and

V=-RRπ(R2-x2)dx=π[R2x-x33]-RR

Working the bracket out: at x=R it is R3-R3/3=2R3/3, and at x=-R it is -2R3/3, so the difference is 4R3/3 and V=43πR3. The formula that school geometry asserts without justification falls out of one integral. Archimedes obtained it by exhaustion around 225 BC and was proud enough of the result to have the figure carved on his tomb.

Now you. Find the volume generated by revolving y=x from x=0 to x=4 about the x-axis.

Answer

The disc radius is x, so the area is πx and the volume is 04πxdx=π[x2/2]04=8π=25.13.

The same slicing gives the cone. Revolving the line y=(R/h)x from 0 to h gives V=π(R/h)20hx2dx=π(R/h)2h3/3=13πR2h, which is where the mysterious one third comes from: it is the x3/3 of the power rule and nothing more.

Work against a varying force

Elementary mechanics defines work as force times distance, which is valid only when the force is constant. When it varies, cut the displacement into pieces small enough that the force is nearly constant on each, multiply, and sum:

W=abF(x)dx

For a spring obeying Hooke's law, F=kx, so stretching from 0 to d takes W=12kd2. That familiar formula is an integral, and its quadratic form is the reason a spring stretched twice as far stores four times the energy.

Example. A cylindrical tank of radius 2 m contains water to a depth of 3 m. How much work is needed to pump it all out over the rim, 5 m above the base?

Slice the water into horizontal layers. The layer at height y above the base has volume π(2)2dy=4πdy cubic metres, so its mass is 4000πdy kilograms and its weight is 4000πgdy newtons. That layer must be lifted a distance 5-y. So

W=034000πg(5-y)dy=39200π[5y-y22]03=39200π(15-4.5)

which is 411600π=1.293×106 J, using g=9.8 m s⁻². The check is that the total mass is 4π×3×1000=37700 kg and its centre of mass sits at y=1.5, needing a lift of 3.5 m, giving 37700×9.8×3.5=1.293×106 J. The integral and the centre-of-mass shortcut agree, as they must.

Now you. A spring with stiffness k=200 N/m is stretched from its natural length to 0.3 m. How much work is done?

Answer

W=00.3200xdx=100(0.09)=9 J.

Escape velocity, and integrals over infinite ranges

Gravity weakens with distance, so lifting a mass away from a planet is a work integral with a variable force, and the interesting case has no upper limit at all.

An improper integral is defined as a limit: 1f(x)dx means limb1bf(x)dx, and the integral converges if that limit exists. The behaviour depends delicately on the integrand. For 1/x2 the partial integral is 1-1/b, which converges to 1. For 1/x it is lnb, which grows without bound, so that integral diverges. The tail of 1/x is too fat to have a finite total, which is the same fact as the divergence of the harmonic series in the previous course.

Now the escape problem. The force on a mass m at distance r from a planet of mass M is GMm/r2, so the work needed to move it from the surface at R to infinity is

W=RGMmr2dr=GMm[-1r]R=GMmR

finite, because the inverse square law falls off fast enough. Escape is possible with a finite energy budget, and if gravity fell off like 1/r instead it would not be.

Setting the initial kinetic energy equal to that work gives 12mv2=GMm/R, so

v=2GMR

independent of the escaping mass. For Earth, with G=6.674×10-11 m³ kg⁻¹ s⁻², M=5.972×1024 kg and R=6.371×106 m, this gives 11186 m/s, the familiar 11.2 km/s. The number is a direct consequence of an improper integral converging.

Improper integrals also produce genuine curiosities. Revolving y=1/x for x1 about the axis gives a horn whose volume is π1dx/x2=π, finite, while its surface area involves 1dx/x and is infinite. The solid can be filled with a finite amount of paint and its surface cannot be painted, which is a statement about the definitions rather than about paint: a real coat of paint has a thickness, and the horn narrows below it.

Averages, and the difference between two of them

The average value of f over [a,b] was defined two lessons ago as 1b-aabf, and it settles a question that confuses people about alternating current.

The average of sinx over a half cycle from 0 to π is 1π0πsinxdx=2/π=0.6366. The root mean square value, computed in the previous lesson from the average of sin2, is 1/2=0.7071. Both are honest averages of the same wave and they differ by ten per cent, because one averages the voltage and the other averages the power. A meter reading the first and a meter reading the second will disagree, and which one is correct depends entirely on what the number is for.

Centre of mass

A rod along [a,b] with linear density ρ(x) has mass abρ(x)dx, since the piece at x has mass ρ(x)dx. Its centre of mass is the point where a support would balance it, and balancing means the total moment about that point vanishes:

x=abxρ(x)dxabρ(x)dx

which is a weighted average of position, weighted by mass. For a rod of length 2 m with density ρ(x)=1+x kg/m, the mass is 02(1+x)dx=2+2=4 kg and the moment is 02x(1+x)dx=2+8/3=4.667, so x=1.167 m, right of the geometric centre because the rod is denser at that end. The same construction in two and three dimensions gives centroids of plates and solids, and the same integral with x2 in place of x gives the moment of inertia, which is what rotational dynamics runs on.

Arc length, and a warning

The slicing pattern applies to length too. A short piece of curve is nearly straight, with horizontal run dx and rise f(x)dx, so by Pythagoras its length is 1+[f(x)]2dx and

L=ab1+[f(x)]2dx

The derivation is easy and the integrals are usually impossible. The integrand contains a square root of a sum of squares, which resists every technique of the previous lesson except in contrived cases. The perimeter of an ellipse is the standard example: it produces an integral that Legendre and others studied for decades and which has no elementary antiderivative at all. The functions invented to express it are called elliptic integrals, and they are named after this problem.

That is a fair summary of the state of the subject at this point. Setting up the integral is a skill that generalises, the answer exists whenever the integrand is continuous, and evaluating it in closed form is a matter of luck. Where luck runs out, either a numerical method is used, or the function is approximated by something easier before integrating.

That last option is more powerful than it sounds, and it is the subject of the final lesson: replacing a function by a polynomial that matches it to whatever accuracy is required, which is how physics gets usable answers out of expressions that cannot be evaluated at all.