An interactive lecture · 28 minutes · calculus required, courage supplied

The π/2 Heist

One integral your calculator can estimate but calculus cannot crack, and the walk through the complex plane that steals the exact answer.

0 sin xx dx = ?
the trap at 0 our getaway route
Act IThe impossible target
Act IINew tools: the complex plane
Act IIIThe heist itself
Act IVThe payoff

Use or the buttons below · every figure with a slider is live, drag things · dotted terms open definitions when clicked

Presenter notes

Cold open, under a minute. Read the integral aloud: the area under sine of x over x, from zero to infinity. Promise the exact answer by minute 26, by a route that leaves the real number line entirely. The problem and its method sit in Chapter 4 of Ablowitz and Fokas, the appendix has the full rigorous writeup.

Act I · The impossible target ≈ 2 min · 1:00 → 3:00

Meet the target: a wave that hides a number

The function sin x / x looks broken at x = 0, but it is not: as x → 0, sin x / x → 1. It starts at height 1, then makes and that shrink forever.

The question: add up all the signed area, out to infinity. Drag the slider. The running total overshoots, undershoots, and squeezes toward a mystery number.

Try the second toggle too: counting all area as positive, the total never settles. It grows like 1 + ½ + ⅓ + ⋯, past every bound. The answer only exists because . Hold that thought, it is why the proof must be careful.

∫ ≈ …
Signed area under sin x/x from 0 to b. The dashed gold line marks the number the total keeps circling: 1.5707963…
Presenter notes

Let a student drive the slider. Analogy: a pendulum losing energy, each swing past the target smaller than the last. Do not name π/2 yet, just let 1.5707963 sit on screen. Then flip the positive-area toggle to plant the honest caveat: convergence here is pure cancellation, the unsigned area is infinite.

Act I · The impossible target ≈ 2 min · 3:00 → 5:00

Every key on your keyring fails

The normal plan: find an antiderivative F, compute F(∞) − F(0). Watch each standard tool bounce off, then see why they all had to.

Attempt 1 · substitution — fails
No substitution untangles sin x from 1/x: whatever you set u to, the other factor refuses to convert.
Attempt 2 · integration by parts — fails
sin xxdx= −cos xxcos xx2dx The new integral is just as bad. Repeat it and the powers keep climbing, forever.
Attempt 3 · power series — a half-success
Termwise integration gives an infinite series, true but useless: it converges too slowly and never reveals a closed form.
The verdict ·
It is a proven theorem that no finite formula built from school functions (polynomials, trig, exponentials, logs, roots) has sin x / x as its derivative. The door is not just stuck. It is provably lock-picked-proof. We need a different kind of entrance.
Where we stand

The number exists (the wobble on the last slide converges). The fundamental theorem of calculus cannot reach it. Numerics can only ever whisper digits, never certify the exact value. Evidence motivates. Proof certifies.

What would count as a win

An exact, closed-form value with a proof a human can check. Spoiler for the impatient: the answer is a famous constant, and the proof fits in fifteen minutes once we buy new tools.

Presenter notes

Click through the failed attempts quickly, the point is the pattern, not the algebra. Land hard on the Liouville card: this is not "we are not clever enough," it is a theorem that no elementary antiderivative exists. Preempt "the computer already said 1.5708": finitely many digits never certify an exact value.

Act II · New tools: the complex plane ≈ 2.5 min · 5:00 → 7:30

Numbers grow a second dimension

Define one new number: i, with i2 = −1. A a + b i is simply the point (a, b) in a plane. Nothing mystical: these numbers obey the usual algebra, and physics and engineering run on them daily.

Adding complex numbers is adding arrows, tip to tail. Multiplying is the beautiful part: multiplying by a number on the rotates the whole plane. Multiplying by i itself is exactly a quarter turn.

Negative numbers were once called absurd. Then they became bookkeeping for debt. i is the same story one century later: bookkeeping for rotation.

w = …
The product z·w is z rotated by the angle of w. Multiplication became geometry.
Presenter notes

Spend the time on multiplication-as-rotation, it is the single intuition the whole talk rests on. Hit the "Set w = i" button and say: times i, quarter turn, times i again, half turn, which is −1, and that is i² = −1 seen with your eyes. Preempt "i is fake": it is a consistent number system, points in a plane, no less real than negatives.

Act II · New tools: the complex plane ≈ 2 min · 7:30 → 9:30

Euler’s formula: the unit circle in one line

e = cos θ + isin θ

e is the point on the unit circle at angle θ. Where does that come from? Feed into the power series for ex, and the terms sort themselves: the even ones assemble cosine, the odd ones assemble i times sine. Exponentials and rotation are the same machine.

The one consequence we need

For real x:  sin x = Im eix. Sine is the of a complex exponential. Our final answer will be read out of an imaginary part.

One point, two shadows: cos θ on the real axis, sin θ on the imaginary axis.
Presenter notes

Do not derive the series in full, just show the sorting idea and move. The box is the slide: sin x = Im e^{ix}. Say explicitly that this is the bridge back home: whatever we learn about e^{iz}, taking imaginary parts hands it to sine.

Act II · New tools: the complex plane ≈ 2 min · 9:30 → 11:30

Integrals learn to walk

In the plane, an integral follows a . Chop the path into tiny steps. Each step dz is itself a small complex number (a small arrow). At each spot multiply the function’s value f(z) by the step dz, then add everything up.

This is not area. It is a running total of complex products, and the result is a single complex number: where the chain of little arrows ends.

Watch f(z) = 1/z walk the top half of the unit circle. The chain of contributions lands at a number worth memorizing.

Pocket this

A half-circle walk around 1/z pays out ≈ 0 + 3.14159 i. It will reappear at the climax.

Σ ≈ …
A hiker logging the wind’s push at every step. The answer is the total drift, one complex number.
Presenter notes

Kill the area intuition on this slide, students will otherwise misread every later figure. The left plane is inputs, the path is a route of inputs, and the right panel is the running sum. Play it twice. Then point at iπ and say: remember this number.

Act II · New tools: the complex plane ≈ 2.5 min · 11:30 → 14:00

Cauchy’s theorem: closed loops detect trouble

Cauchy’s theorem · the talk’s first big theorem

If f is at every point on and inside a closed loop, then the loop integral is exactly zero:   f (z) dz = 0.

Intuition (offered as intuition, the proof lives in Chapter 2 of the book): such functions behave like conservative fields, and a round trip in a conservative world nets you nothing.

The power is the fine print. One bad point inside the loop, a , and the zero guarantee breaks, in a precisely measurable way. Slide the loop and watch the integral snap between two values. Closed loops are singularity detectors.

∮ = …
Integrating 1/z around a loop. Swallow the bad point at 0 and the loop pays 2πi. Miss it and the loop pays nothing.
Presenter notes

Preempt the overreach: Cauchy does NOT say every closed loop gives zero, it demands differentiability everywhere inside. That fine print is the entire plot of the next five slides: we will build a loop that carefully dodges one bad point. The 2πi value connects to the last slide: full circle = 2πi, half circle = the iπ in your pocket.

Act II · New tools: the complex plane ≈ 2 min · 14:00 → 16:00

Casting the hero: eiz/z, not sin z / z

We need a function that agrees with our problem on the real axis but behaves upstairs. Two auditions:

sin z / z fails the audition. Off the real axis, sine explodes: at height y, |sin(iy)| = sinh yey/2. At height 9 that is already about 4000.

eiz/z gets the part. Upstairs it decays: |eiz| = e−y. And on the real axis, Im(eix/x) = sin x/x: exactly our integrand, waiting in the imaginary part.

The price: eiz/z has a genuine at z = 0. The original sin x/x was innocent there. We installed the trap ourselves, on purpose, and next we route around it.

Magnitude over the upper half plane, dark = huge, light = tiny. One candidate ignites with altitude, the other cools. Note only eiz/z glows at the origin: that is the pole we installed. For sin z/z the origin is calm, its singularity is .
Presenter notes

This slide answers the two sharpest questions in advance. One: are we changing the problem? No, we only use equality on the real axis, where the problem lives. Two: sine is bounded, right? Only on the real line, toggle the heatmap and let them see sinh. If this slide lands, the rest of the proof feels inevitable.

Act III · The heist ≈ 1.5 min · 16:00 → 17:30

The route: a semicircle with a dent

Build a closed loop out of four pieces, walked counterclockwise. It hugs the real axis (where our problem lives) but hops over the trap at 0, and closes through the upper half plane (where our hero decays).

Each piece has a destiny:

the two straight legs  become the target integral.
the small dodge Cε  pays a fixed toll.
the big arc CR  fades to nothing.

Because the loop never touches the pole, and eiz/z is differentiable everywhere else, Cauchy’s theorem applies: the four pieces sum to exactly zero, for every R and every ε. That equation is the safe we are about to crack.

Σ of 4 pieces = 0, always
A fence around a yard, detouring around a pothole so the pothole stays outside the fence. Arrows show the walking direction: the dodge is walked clockwise over the top. That orientation will matter.
Presenter notes

Name every piece out loud and its destiny, this is the map for the next three slides. Emphasize twice that the little arc is walked clockwise relative to its own center, students who miss this will lose the minus sign at the climax. Squeeze ε and grow R to foreshadow the limits.

Act III · The heist ≈ 2 min · 17:30 → 19:30

Limit 1: the big arc fades out

On the big arc, z = Re, and the hero’s magnitude is |eiz| = e−R sin θ: exponentially tiny at altitude, merely ordinary near the two ends.

The fails. Bounding (size of function) × (length of path) gives (1/R) × (πR) = π. A constant. Not zero. The crude bound throws away the exponential decay.

The rescue is (Lemma 4.2.2 in the book, page 222): accounting honestly for the decay, the arc integral is at most

πR(1 − eR) ⟶ 0  as R → ∞.

Its proof is one clean inequality: on [0, π/2], the sine curve stays above its chord, sin θ ≥ 2θ/π. Full proof in the appendix.

crude bound: π ≈ 3.1416 (stuck) Jordan: …
A shout sent up into absorbing fog: only the sliver near the ground survives, and that sliver shrinks like 1/R. Grow R and watch the arc vanish from its own picture.
Presenter notes

The teaching moment is the failed bound. Let them feel the crude estimate get stuck at π, then reveal that respecting the decay wins. Name the lemma and its exact home, Lemma 4.2.2, page 222 of Ablowitz and Fokas, this is where the talk touches the book's machinery directly.

Act III · The heist ≈ 2.5 min · 19:30 → 22:00

Limit 2: the dodge pays a fixed toll of −

Surely a vanishingly small detour contributes vanishingly little? No. The path shrinks like ε, but 1/z grows like 1/ε. The two effects cancel exactly, leaving a fixed toll.

Near 0, split the hero: eiz/z = 1/z + (a part that stays bounded). The bounded part contributes at most (bound) × (πε) → 0. The 1/z part, walked clockwise over the top from angle π down to 0, gives exactly

0π1zdz = 0πi dθ =   at every radius ε.

Recognize it? It is the pocketed from the walking slide, with a minus sign because we now walk the half-circle the other way. Orientation is not pedantry, it is the sign of the final answer.

∫ ≈ …
A toll booth on the detour: the 1/z part charges exactly − at every radius, while the bounded leftover fades like ε. The dot is the full computed arc integral: drag ε small and watch it arrive at (0, −π).
Presenter notes

This is the most surprising slide, give it room. Drag ε small slowly and watch the computed value stick at −iπ while the arc visibly disappears. Two misconceptions to kill: tiny path does not mean tiny contribution (1/ε fights ε to a draw), and the sign comes from the clockwise walk. The half-of-2πi shortcut is guaranteed for simple poles like this one, the appendix says exactly when it is safe.

Act III · The heist ≈ 2 min · 22:00 → 24:00

Limit 3: mirror legs merge into the target

The two straight legs live on the real axis, where the hero is eix/x. Pair each point x on the right leg with its mirror −x on the left leg.

Step 1 · reflect the left leg
Substituting x ↦ −x turns the left leg into a right-leg integral of e−ix/(−x)·(−1) = −e−ix/x, over the same range ε to R.
Step 2 · merge the mirrors
legs sum =Rεeixeixxdx
Step 3 · Euler collapses the numerator
eixeix = 2i sin x,  so  legs sum = 2iRεsin xxdx

There it is. The target integral, wearing a coefficient of 2i, assembled out of the two legs.

x −x mirror pair → 2i·sin x / x left leg right leg
Two mirror-image commuters reporting one combined fare. Cosine parts cancel in the pairing, sine parts add: only 2i sin x/x survives.
Presenter notes

Purely algebraic slide, keep momentum. The picture to leave in their heads: cosine is even so its two legs cancel through the pairing, sine is odd so it doubles. That is why the answer will arrive in the imaginary part, exactly as promised on the Euler slide.

Act III · The heist ≈ 2 min · 24:00 → 26:00

Close the books

Cauchy’s theorem said the four pieces always sum to zero. Send R → ∞ and ε → 0, and read the ledger:

piecelimit
two straight legs2i · I  (I = the target)
small dodge−iπ
big arc0
total (Cauchy)0
2iI + 0 = 0
2iI =   divide by 2i, a perfectly legal nonzero number
I = 0sin xxdx = π/2

π/2 = 1.5707963267…

The exact number the slider was circling in minute two. Not an estimate. A theorem.

The honest fine print

The cosine part of eix/x never converges on its own near 0, the legs only make sense taken symmetrically (a ). But the part we keep, the imaginary part, is sin x/x, which is genuinely tame at 0, so the target integral needs no such crutch. Details in the appendix.

Sanity check the sign

Walk the dodge counterclockwise instead (a differently built, equally valid contour) and the bookkeeping flips consistently, delivering the same +π/2. The classic student error is mixing the two conventions and landing on −π/2, a negative value for a visibly positive-leaning area. If the sign smells wrong, it is.

Presenter notes

The reveal. Click the steps slowly, and after the last one, flip back mentally to slide 2: the mystery digits and π/2 match digit for digit. Say the closing line: numerics suggested it, the complex plane proved it.

Act IV · The payoff ≈ 2 min · 26:00 → 28:00

Why this heist runs the modern world

The residue theorem

The method industrializes. Around any counterclockwise loop, the integral equals 2πi times the sum of (one number per singularity inside). Our − was a half-loop preview of a 2πi. Chapter 4 of Ablowitz & Fokas turns whole families of impossible-looking real integrals into short bookkeeping.

Your phone computes this daily

Our integrand is the , the Fourier transform of a rectangular pulse. It sits at the heart of the sampling theory behind digital audio, images, and radio: reconstructing a smooth signal from discrete samples leans on sinc, and today’s π/2 is the normalization making that bookkeeping exact.

The boss level

In the same book, this is mid-game content. The final chapter runs on : reconstructing unknown functions from how they jump across contours, machinery from advanced graduate courses that powers modern soliton theory and integrable systems. Today’s contour is the first step on that staircase.

The recap in three sentences

Calculus provably cannot produce an antiderivative for sin x/x. So we lifted the problem into the plane, chose the decaying hero eiz/z, and walked a loop that dodges its one singularity. Cauchy’s zero, a fading arc, and a − toll left one equation with one unknown, and the unknown was π/2.

Presenter notes

End at 28 minutes, leaving 2 for questions. If asked what the hardest problem in the book really is: honestly, the Riemann–Hilbert material of Chapter 7, but it cannot be taught in 30 minutes to a calculus audience. This problem was chosen as the hardest idea in the book that can be: it exercises Cauchy's theorem, Jordan's lemma, and principal value indentation, the exact toolkit of sections 4.2 and 4.3.

Appendix A1 · The written solution reference · outside the 30

Setup, convergence, and Cauchy’s theorem

Why no antiderivative exists

Liouville’s theory of integration in finite terms: if ∫f eg is elementary with rational f, g, the antiderivative must equal R eg for some rational R, forcing R′ + ig ′R = f. For eix/x this reads R′ + iR = 1/x, and a pole-order count shows no rational R works: any pole of R of order n makes R′ + iR have one of order n+1 ≥ 2, but 1/x has only a simple pole. Hence Si(x) is not elementary.

Convergence status

Converges: near 0 the integrand extends continuously (limit 1). At infinity, integrate by parts: ∫R1 sin x/x dx = [−cos x/x]R1 − ∫R1 cos x/x² dx, and both pieces settle (the last is dominated by 1/x²).

Not absolutely: on the k-th arch [kπ, (k+1)π], the arch area of |sin| is 2 and x ≤ (k+1)π, so ∫|sin x|/x dx ≥ Σ 2/((k+1)π), a harmonic series. Divergent. All convergence is cancellation, so no dominated-convergence shortcuts.

The contour and the zero

Fix 0 < ε < R and set f(z) = eiz/z. The closed contour ΓR,ε, walked counterclockwise overall:

L: segment from −R to −ε.  Cε: half-circle of radius ε over the origin, angle π down to 0 (clockwise).  L+: segment from ε to R.  CR: half-circle of radius R through the upper half plane, angle 0 up to π (counterclockwise).

f is analytic on ℂ ∖ {0}, and ΓR,ε with its interior avoids 0 by construction. Cauchy’s integral theorem therefore gives, for every ε and R:

Γeizzdz = L−++L++CR = 0
Appendix A2 · The written solution reference · outside the 30

Jordan’s lemma, stated and proved

Jordan’s lemma (A&F Lemma 4.2.2, p. 222)

Let a > 0 and let g be continuous on the arcs CR = {Re : θ ∈ [0, π]} with MR = maxθ |g(Re)|. Then |∫CR g(z) eiazdz| ≤ (π/a) MR (1 − e−aR). If MR → 0, the arc integral → 0.

Proof

Parametrize z = Re, so |dz| = R dθ and |eiaz| = e−aR sin θ. Then the integral is bounded by MR R ∫π0e−aR sin θ = 2MR R ∫π/20e−aR sin θ by the symmetry sin(π − θ) = sin θ.

Jordan’s inequality (concavity of sine): sin θ ≥ 2θ/π on [0, π/2]. Substitute:

2MRR ∫ e−2aRθ/π dθ = 2MRR · (π/2aR)(1 − e−aR) = (π/a) MR (1 − e−aR). ∎

Application to the big arc

Here a = 1 and g(z) = 1/z, so MR = 1/R and

|CReizzdz|πR(1 − eR) → 0

Why the crude ML bound cannot substitute: sup|f| · length = (1/R)(πR) = π, a constant. The exponential decay e−R sin θ off the axis is the load-bearing fact, and Jordan’s chord inequality is the standard clean way to cash it in (any argument exploiting that decay also works).

Numerical spot check: at R = 100, the true ∫π0e−R sin θdθ ≈ 0.0200, against the bound π(1 − e−100)/100 ≈ 0.0314. The bound holds with room.

Appendix A3 · The written solution reference · outside the 30

The indentation, rigorously

Splitting off the pole

From the power series of the exponential, eiz/z = 1/z + g(z) where g(z) = (eiz − 1)/z extends to an entire function with g(0) = i. On the closed unit disk let M = max |g| (finite, by continuity on a compact set). For ε ≤ 1:

|∫Cε g(z) dz| ≤ M · πε → 0.

The exact toll from 1/z

Parametrize z = εe with θ from π down to 0 (clockwise over the top). Then dz = iεe and

Cε dz/z = ∫π0 i dθ = −iπ, for every ε.

So ∫Cε eiz/z dz−iπ as ε → 0 (the full integral at fixed ε is −iπ + O(ε); it is the limit that is exact).

The half-residue shortcut, and its warranty

The residue of eiz/z at 0 is 1, so a full counterclockwise loop would collect 2πi. Our clockwise half-loop collected −½ · 2πi = −. That proportional shortcut is guaranteed for simple poles only: for a pole of order 2 or higher it can fail outright (a c−2/z² term contributes on the order of 1/ε on the shrinking arc, which diverges), so at higher order the arc limit must be examined term by term rather than assumed.

Consistency check from below

Indent under the origin instead and the pole falls inside the contour: the total becomes 2πi (residue theorem) while the arc now contributes +. The books balance to the same principal value, + for the legs. Two different contours, one answer, as it must be.

Appendix A4 · The written solution reference · outside the 30

Assembly, the principal value subtlety, and classic traps

Assembly

Take ε → 0 and R → ∞ in the Cauchy identity. Legs → 2i ∫0sin x/x dx (shown on slide 12), dodge → −, big arc → 0. Hence 2iI − = 0, so I = π/2. Equivalently, in principal-value form, PV∫−∞eix/x dx = .

Why "principal value" appears at all

Split eix/x = cos x/x + i sin x/x. The cosine part behaves like 1/x near 0 and is not integrable there: it only makes sense with symmetric cutoffs ±ε (the PV), where its odd symmetry cancels it. The sine part is continuous at 0 (limit 1), so the imaginary part is a genuine improper integral, no crutch needed. The PV is scaffolding for the part we discard, not for the answer we keep.

Classic traps

trapwhat goes wrong
Dodge walked counterclockwise while keeping the same legsBookkeeping flips inconsistently and delivers −π/2, a sign error dressed as an answer.
Using e−iz in the upper half plane|e−iz| = e+R sin θ explodes on the big arc. That hero must exit through the lower half plane.
Contouring sin z / z directlysin z grows exponentially in both half planes, and worse, sin z/z is entire, so its closed-loop integral is 0 = 0. True and useless.
Trusting the ML bound on the big arcIt returns the constant π. Only the exponential decay (Jordan) closes the argument.
Mixing pole-inside and pole-outside conventionsTotal 0 with arc −iπ, or total 2πi with arc +iπ. Either set of books balances. Mixing them is off by 2πi.
Forgetting the evenness halvingThe full-line sine integral is π. The 0-to-∞ answer is half: π/2.
Appendix A5 · Sources reference · outside the 30

Sources and evidence chain

Why this problem

The genuinely hardest material in Ablowitz & Fokas is the Chapter 7 Riemann–Hilbert theory (with the Wiener–Hopf method, the DBAR problem, and Painlevé connections), which the authors themselves place at advanced graduate level and which cannot be delivered to a calculus audience in 30 minutes. This talk instead takes the hardest teachable summit: the Dirichlet integral, worked in the book’s principal-value section via the indented contour, exercising the central theorems of Chapter 4 (Cauchy’s theorem, Jordan’s lemma, principal-value indentation).

Every mathematical step in this deck was independently re-derived and adversarially checked before publication. One caveat is flagged honestly below.