Two paths, one answer — sometimes
Every integral you have ever computed ran along the real line, from to — and there was only one way to get from to . In the complex plane that is no longer true. To integrate a function you must travel from one point to another along a path, and between any two points there are infinitely many paths. So a brand-new question appears, one ordinary calculus never had to ask: does the answer depend on which path you take?
Take the two points and , and two ways between them: the straight diagonal, and the right-angled "elbow" . Integrate along each — you get the same number both times. Integrate along each — you get different numbers. Same two paths, same two endpoints; for one function the path is irrelevant, for the other it is everything.
That dividing line is analyticity — the property you spent four chapters learning to detect. For an integrand analytic everywhere between and around the two paths — no holes, no bad points anywhere in the region they enclose — the path does not matter; only the endpoints do, exactly as in the Fundamental Theorem of Calculus. That caveat about holes is not pedantry; it returns with a vengeance later in this chapter. The theorem that makes this precise, and that says a loop integral of an analytic function is simply zero, is the Cauchy–Goursat theorem — the destination of this chapter. The four labelled numbers above are computed properly in Beat 3; for now, just hold the contrast.
This is the chapter where the subject turns from what analytic functions are to calculus with them, and almost everything left in Unit 1 is built directly on it. The next chapter, on Cauchy's integral formula, takes the small surprise you are about to meet — that rather than — and turns it into a formula that reconstructs an analytic function inside a loop from its values on the loop. The chapter after that, on residues, generalises the same surprise into a machine for evaluating hard real integrals. And for the exam this is among the most reliably tested topics in the course: evaluate a contour integral, state and prove Cauchy's theorem, bound an integral with the ML inequality. This chapter works each one before it asks you for it.
March along the curve, and let the function twist each step
Before any formula, a picture of what is. Chop the path into many tiny steps. Each step is a small complex displacement — a little arrow pointing the way you are travelling. At each step the integral adds the contribution
and here is the one idea that makes complex integration different: is a complex number, and multiplying by a complex number rotates and scales it — exactly the Chapter-1 fact that multiplication is rotation-and-stretch. So a contour integral is: march along the curve, and at each step let the function twist and stretch your stride, then add up all the twisted strides.
This gives path (in)dependence an intuitive reading. For an analytic the little twists are so well-organised that, when you add them along any path between two fixed endpoints — provided no singularity is trapped in the region the paths enclose — everything in the middle cancels and only the endpoints survive, the path washes out. For a non-analytic like , the twists do not cooperate, the middle does not cancel, and the sum remembers the whole journey. That is the entire story of the chapter, in one sentence.
You never add up infinitely many tiny arrows by hand. Parametrise the path: write for . Then the step becomes , and the whole contour integral collapses into an ordinary real-variable integral:
Nothing mystical — one substitution turns it into an integral of a complex-valued function of the real variable , which you handle by integrating its real and imaginary parts separately. This single line is the workhorse of the whole chapter.
Contours, and the substitution that computes them
First the vocabulary, all of it standard one-mark exam material. A smooth arc is a curve with a continuous, non-vanishing derivative; a contour is several smooth arcs joined end to end (so it may have corners, like the sides of a square). A contour is simple if it never crosses itself, and closed if it ends where it began, . A simple closed contour is a loop that bounds a well-defined inside and outside.
For a contour parametrised by , ,
For a closed contour we write . The positive orientation of a closed contour is counterclockwise — traversed so the enclosed region stays on your left. Every closed contour in this chapter is positively oriented unless stated otherwise.
Three properties follow straight from the definition, and you may use them without comment:
- Linearity: .
- Reversing orientation flips the sign: . (Every step arrow reverses, so the whole sum negates.)
- Additivity: a contour split into pieces integrates piece by piece.
Evaluate , once counterclockwise around the unit circle.
Parametrise the circle: , . Then and , so the integrand is . Hence
Two lessons, both worth keeping. (i) The recipe in action: parametrise, substitute, integrate. (ii) A closed-contour integral need not be zero — this one is . Keep this example in your pocket; it returns in the gauntlet.
Now compute the hook's integrals from to along the two paths.
Straight diagonal: , , so and :
Elbow : the first leg () gives ; the second leg () gives . Total .
So gives on the diagonal and on the elbow — genuinely path-dependent, because is not analytic and has no antiderivative (Beat 3B). This is exactly the right-hand panel of the hook.
One more non-analytic integrand — . On the same diagonal we have , so
Notice that simplified to a plain expression in — it did not vanish or stay constant. (On a circle centred at the origin would be the constant radius; on a segment it never is.) We will need this modulus-handling move in Reveal 1, so it is worth seeing once here, ungated.
Bounding an integral, and the antiderivative shortcut
The ML inequality
If for every on the contour , and is the length of , then
The plausibility is immediate from the Riemann sum: each stride contributes at most , and the add up to the length . It never gives the value of an integral — only a ceiling on its size — but that is often all a proof needs.
Bound .
The load-bearing move: to bound the integrand from above, we must bound its denominator from below. On , the reverse triangle inequality gives
so . The length is , hence
Bounding the wrong way — from above — is the classic slip; Quiz 3 tests exactly it.
Antiderivatives and path independence
If is analytic with throughout a domain containing the contour from to , then
which depends only on the endpoints — the path drops out. For a closed contour () the integral is therefore .
Evaluate . Because is entire, it has the antiderivative , so by the theorem above the path is irrelevant and
Check by parametrising the diagonal : — the same number. This is the left-hand panel of the hook: is analytic, so diagonal and elbow both land on .
The fundamental integral
One computation underlies the entire rest of Unit 1. Take a circle of radius about a point , and integrate the power for an integer . Parametrise , , so and :
If , the integrand completes a whole number of oscillations over and integrates to . If , the integrand is and the integral is . So:
The answer is independent of the radius and of the centre . The single non-zero case, (that is, ), is the that the rest of the unit is built on.
We will call this result the fundamental integral throughout the course — the later chapters refer back to it by that name. It is the single most-used computation in everything that follows; commit the boxed result to memory. (One honest caveat for the exam is in Beat 6: that name is ours, not an examiner's.)
Log z, and where the lives
Back in the elementary-functions chapter we promised a deliberate treatment here, because contour integration is where it finally earns its keep. Recall the principal logarithm
with its branch cut along the negative real axis . Off that cut is analytic, and there . So has an antiderivative — which sets up the chapter's best little puzzle.
If has the antiderivative , then the fundamental theorem of Beat 3B should force around the closed unit circle. But the fundamental integral just told us it is . Both cannot be right — so which rule is being broken?
The resolution is the whole point of the branch cut. The principal is not analytic on any domain containing the whole unit circle — the circle meets the branch cut at . As you travel once around the origin, the argument cannot stay single-valued and continuous; it must jump. Walk the circle once counterclockwise and climbs from just above up to : the "antiderivative" fails to return to its starting value, jumping by exactly — which is precisely the value of the integral. The branch cut is not pedantry; it is where the lives.
Cauchy–Goursat, and deforming contours
If is analytic at every point on and inside a simple closed contour , then
This is the destination promised in Beat 1. The proof is the standard exam answer, and it leans on one tool from Unit 2 that you have not formally met yet.
For nice functions on the region bounded by ,
(In words: a circulation around the boundary equals a double integral over the inside. You will prove and practise this in the Green's-theorem chapter in Unit 2; here we simply use it.)
Proof of Cauchy–Goursat (Cauchy's version, assuming continuous). Write and , and split into two real line integrals:
Apply Green's theorem to each. The first becomes ; the second becomes . Now invoke the Cauchy–Riemann equations and (the analyticity you carried from the Cauchy–Riemann chapter): the first integrand is , and the second is . Both double integrals vanish, so .
Goursat's contribution was to prove the same conclusion without assuming is continuous — analyticity alone is enough. That refinement is why the theorem carries both names; the full Goursat argument is more technical than anything this course needs, so we state it without proof. On an exam, "state Cauchy–Goursat" earns the name, so mention it.
Deformation of contours
If is analytic at every point on and and at every point between them (one contour lying inside the other), then
You may deform a contour freely through any region where stays analytic without changing the integral.
The consequence makes the fundamental integral universal: a simple closed contour around a single singularity can be shrunk to a tiny circle around it without crossing anything where misbehaves — so for any loop enclosing the origin once, not just a circle. The value depends only on which singularities the loop encloses, never on its shape.
Evaluate .
The integrand fails to be analytic only where , i.e. . Both lie at distance from the origin, so both are outside . Hence is analytic on and inside , and by Cauchy–Goursat
The two-step ritual that settles almost every contour-integral exam question: (1) locate the singularities; (2) check which are inside the contour. Here, none — so the answer is with no integration at all.
End of sitting 1 — the definitions and the theorem are now in hand. Next sitting you drive: a playground that turns Cauchy–Goursat into an on/off switch, three quizzes, two scaffolded reveals, and six exam problems.
The Cauchy–Goursat meter: watch switch on and off
Drag the singularity across the circle's edge and watch the integral snap between (singularity inside) and (singularity outside). That on/off switch is the Cauchy–Goursat theorem. You can also drag the circle's centre, change its radius, and switch the integrand to the entire function (which gives no matter what, because it is analytic everywhere).
Drag the circle's centre (open ring) or the singularity (✕). The integral is computed numerically by the trapezoid rule on 720 points — watch it land on or on .
Three things, each a result you have already met:
- Preset (a) — at the centre, : the integral reads . This is the fundamental integral, live.
- Drag outward across the circle: as it crosses the edge, the readout switches from to . Right at the edge the meter refuses to answer — the contour passes through the singularity and the integral is undefined.
- Switch to : the readout is wherever you put the circle. An entire integrand is analytic everywhere inside, so Cauchy–Goursat gives every time — there is nothing to switch.
The numeric value never depends on the radius or on where you put the centre, only on whether is enclosed — deformation of contours, made visible.
Test yourself before moving on
Each of these follows a method you have now seen worked. Commit to an answer before you read the feedback — recognising the right option once you see it feels like knowing it, and it is not the same thing.
All four contours are the positively oriented unit circle . Which integral is guaranteed to be by the Cauchy–Goursat theorem?
Evaluate , where is the positively oriented circle .
Using the ML inequality, what is the best bound it gives for , where is the positively oriented circle ?
Evaluate , where is the straight segment from to .
Predict the next step before each reveal: how do you parametrise a vertical segment, and what happens to at the origin?
The segment is with running from to ; then . (Watch the direction: is the start , the end . Running it would flip the sign of the answer.)
— note , not ; and . Do not drop the factor. So
Split at , where has its corner:
(Integrating straight through would give — the classic slip, and obviously wrong, since has positive area.)
Why no shortcut. is real-valued and analytic nowhere, so it has no antiderivative and no theorem applies — for integrands like , , or , direct parametrisation is the only tool.
Evaluate , where is the positively oriented circle .
Predict the next step before each reveal: where does the integrand misbehave, and which of those points does actually enclose?
, so the singularities are and . Both satisfy , so both are enclosed by . (Skipping this check is how marks are lost — you must know which singularities are inside before you do anything else.)
Check by recombining: . ✓
By linearity, . For each term, deform to a small circle around its singularity (legal: the integrand of that term is analytic everywhere else inside ); the fundamental integral then gives for each. (Do not say Cauchy–Goursat forces — the singularity is enclosed, so the theorem does not apply.)
What you just did — decompose, locate each pole, add the 's — is the residue theorem in embryo. A later chapter mechanises exactly this pattern.
Six cold problems
Work each before revealing. The two hardest types each open with a faded bridge — a half-finished solution with the key step blank — before the cold problem. Every solution is complete; nothing points outside this page.
Direct parametrisation
P1. Evaluate , where is the straight segment from to .
Parametrise , ; then and :
Answer: . ( is not analytic — no antiderivative shortcut; parametrise.)
Inside check, orientation, and shape
P2. Let enclose the point . Evaluate when: (a) is , positively oriented; (b) the same circle traversed clockwise; (c) is instead the square with vertices (positively oriented) — explain in one sentence why the answer is unchanged from (a).
(a) lies inside , and is the fundamental integrand with . Enclosed once, counterclockwise: .
(b) Reversing the orientation flips the sign (Beat 3A): .
(c) is analytic in the region between the square and the circle (and on both contours), so by the deformation principle the two integrals are equal: . The shape of the loop never mattered — only that it encloses once.
Linearity with Cauchy–Goursat
P3. Evaluate .
By linearity, integrate each term. is entire, so Cauchy–Goursat gives . The term has its only singularity at , which is outside ; analytic on and inside , so that integral is too. Total:
Antiderivative method
P4. Evaluate .
is entire with antiderivative , so the path is irrelevant:
using Euler's from Chapter 1.
ML inequality
Bound . Fill the blank, then reveal: the bridge to everything is one question — what is the smallest can be when ? Answer: ___. From it, ___ and ___.
On : (equality at ). So the smallest value is , giving , and .
P5. Show that .
From the bridge, and , so
Split poles — one in, one out
Set up . Fill the blanks, then reveal: decompose first — . The contour is the circle of radius centred at . Pole is ___ (inside/outside); pole is ___.
is the centre of the circle — inside. is at distance from the centre — outside. Check each pole against this circle, not against .
P6. Evaluate .
Decompose . The headline is the in/out asymmetry: on the circle , the pole is enclosed (it is the centre), while is outside (distance ). So the first term contributes and the second contributes :
This one-in-one-out twist on Reveal 2's pattern is an exam favourite.
How this appears on exams
In standard Indian engineering math exams, and likely in MCC201A unless your class notes differ, contour-integration questions come in five recognisable shapes — each one you have now seen worked:
- "State and prove Cauchy's theorem" — the Beat 3E Green's-theorem proof; name Goursat for the extra mark.
- "Evaluate over a given circle" — the two-step ritual (locate, then inside/outside). Both the enclosed () and not-enclosed () variants appear. One caution: "the fundamental integral" is this course's internal name — no examiner will recognise it. On paper, write "by direct evaluation of over a circle" or show the two-line parametrisation.
- "Evaluate by parametrisation" (integrands like , , ) — Reveal 1's recipe; no shortcuts exist.
- "Use the ML inequality to bound…" — Quiz 3 and P5: find by bounding the denominator below, multiply by the length .
- Partial-fraction contour integrals — Reveal 2 and P6: decompose, locate each pole, add a for each enclosed one.
- Skipping the inside/outside check — then applying Cauchy–Goursat to a loop that encloses a singularity, or the fundamental integral to one that does not (Quiz 2, P6).
- Dropping the factor when parametrising (Reveal 1).
- Bounding the denominator the wrong way in ML — you must bound below to bound the fraction above (Quiz 3b).
- Writing for — the factor of is not optional (Quiz 2d).
- Confusing "the theorem does not apply" with "the integral is nonzero" (Quiz 1d) — and its converse, invoking Cauchy–Goursat when the integrand is not analytic inside.
- Forgetting the orientation sign on a clockwise contour (P2b), and treating as a global antiderivative across its branch cut (Beat 3D).
Seven things to carry out of this chapter
- The recipe: . Every evaluation starts by writing ; reversing orientation negates the integral.
- ML inequality: , with any number satisfying on and — a ceiling, never the value.
- Antiderivative ⇒ path independence: if with analytic, (endpoints only); round a closed loop.
- The fundamental integral: if , else — independent of and . The seed of residues.
- Cauchy–Goursat: analytic on and inside a simple closed contour . It is Cauchy–Riemann integrated (Green's-theorem proof); Goursat removed the " continuous" assumption.
- Deformation of contours: deform freely through any region where stays analytic; the value depends only on which singularities are enclosed.
- and its cut: has the antiderivative , but only off the branch cut ; a loop around the origin crosses it, and the argument's jump is exactly the .
Come back to two of the six problems tomorrow. Re-doing P1–P6 from a blank page after a night's sleep — not re-reading them, re-doing them — is worth more than another hour now, and it is the kind of spaced practice that pays off at revision time.
What comes next. The next chapter, on Cauchy's integral formula, upgrades today's on/off switch ( or ) into a machine that reads off the value itself from a loop around — and from it spring four famous consequences (Morera, Liouville, the maximum-modulus principle, and the Fundamental Theorem of Algebra). Everything there stands on the contour integral and the deformation principle you built here.
Same material, another voice
If a different explanation would help, this one is worth your time — free, from MIT OpenCourseWare:
- Read: Orloff, MIT 18.04, Topic 3 — Line integrals and Cauchy's theorem — the same path-integral / Cauchy's-theorem material from another angle, with the ML estimate and path independence laid out cleanly.
✓ Chapter complete. Your progress, and every quiz answer, is saved on this computer — revisit any time.