Given the real part, find the function
In Chapter 3 you learned to test for analyticity. Given , the Cauchy-Riemann equations decide whether it is analytic, and as a free consequence the real part and the imaginary part are both harmonic — each one solves Laplace's equation .
Now flip the question. Suppose somebody hands you only the real part. They write and ask: is there an analytic function whose real part is exactly this? If yes, what is the imaginary part ? And what is the function as an expression in ?
Three lines of work and the answer is . The imaginary part you needed was , and the function you reconstructed is the simplest non-trivial polynomial in . This chapter teaches the two recipes that produce that answer — and choose the right one under exam pressure.
The harmonic-conjugate construction has a real-world payoff. Harmonic functions on the plane are the natural model for steady-state heat distribution, ideal fluid flow, and electrostatic potential. The construction in this chapter says: every such physics problem in the plane can be lifted to a problem about an analytic function, where the machinery of complex analysis becomes available. That lift is what conformal mapping (Chapter 5) exploits.
For now, you don't need to chase any of that. You need to learn the construction well enough to do it under exam pressure on five fresh 's in twenty minutes.
The setup
The contract:
Such a is called a harmonic conjugate of . Conjugate here does not mean complex conjugate — it means partner under CR. The pair is conjugate when together they make an analytic function.
Two facts used freely after this beat.
- Existence. On simply connected domains — the ones you will work with, typically all of — every harmonic admits a conjugate .
- Uniqueness. On any connected domain, is unique up to an additive real constant. (Quick proof: if and are both conjugates of , the difference has both partials zero by CR, hence is constant on a connected set.) So every answer ends with a free real parameter that an extra condition like pins down.
If you are instead given and asked for , the same machinery works with CR signs flipped. Milne-Thomson becomes — same recipe, swapped partials, plus sign instead of minus. The exam translator in Beat 6 walks through this variant.
Why harmonicity is exactly the condition
The CR equations from Chapter 3, rearranged with known and unknown:
This tells you both partial derivatives of in terms of the given function . If you know both partials, you can recover by integration — provided the two expressions are consistent with each other.
The consistency check is Clairaut's theorem (mixed partials commute). Differentiating the first equation with respect to and the second with respect to :
For these to agree, — exactly Laplace's equation.
This is genuinely elegant. The Chapter 3 fact "if is analytic then is harmonic" looked like a free bonus. Now you see it from the other side: harmonicity of is not just a consequence of analyticity — it is the condition under which can be the real part of an analytic function in the first place.
So whenever a question begins "given a harmonic function ," the harmonicity is not flavour text. It is the green light that says "yes, the conjugate you are about to find exists."
One technical note. Harmonicity is a local condition — it pins down up to a constant in any small neighbourhood. Getting from there to a single globally defined needs the domain to be simply connected, which is why that hypothesis sits inside the existence statement. For this chapter, every domain you meet is or an open disc, so the global step is automatic.
Direct method, Milne-Thomson, and the orthogonal-families bonus
Method 1 — Direct method
The recipe.
- Step 1. Compute and . Verify (harmonic check).
- Step 2. From CR: . Integrate with respect to , treating as constant: . The constant of integration is a function of alone.
- Step 3. Differentiate this with respect to and set the result equal to (the second CR equation). Solve for . Integrate to get .
- Step 4. Assemble , then . Re-express in by substituting , and watching the terms cancel.
Worked example. . Then , , and ✓. So , giving . Then , so and with . Therefore and
The free constant is pure imaginary — it lives entirely in . Adding a real constant to would shift the real part by that real number and stop matching the prescribed .
Method 2 — Milne-Thomson
The shortcut. This is the method to use on exams unless the question explicitly asks for without asking for .
- Step 1. Compute and .
- Step 2. Substitute and in both: and .
- Step 3. Then .
- Step 4. Integrate with respect to . The result is with . An extra condition like or pins down .
Worked example. Same . Then , so . And , so . So and . Two lines. Same answer as the direct method.
If is analytic, then (the second equality is CR). So , viewed as a function of and , is built entirely from partials of . The substitution then produces an expression in alone, which we integrate. Why the substitution is legitimate uses the fact that an analytic function on a connected domain is fully determined by its values on a real interval — a result we will meet in Chapter 9, when we study power-series representations of analytic functions. For this chapter, treat Milne-Thomson as a reliable construction rule and always sanity-check the final by computing and confirming it matches the given .
The orthogonal-families picture
Here is a free geometric fact that often shows up on exams. Fix an analytic . Consider the two families of level curves:
These two families cross each other at right angles at every point where .
The reason is one line of vectors. At any point where , the gradient is perpendicular to the level curve through that point. Similarly is perpendicular to the curve . Now compute the dot product, using CR ():
The gradients are perpendicular, and rotating each gradient by gives the tangent direction of the corresponding level curve — so the tangents are also perpendicular. Where , both partials of vanish, , and the level curve has no well-defined normal direction; orthogonality can fail there.
For : is a family of hyperbolas, and is another family of hyperbolas rotated by . They cross at right angles everywhere except at the origin, where . You will see this in the playground next — and the same orthogonality for three other analytic functions.
This shows up on exams as: "Show that the families and cut each other orthogonally." Five marks, three lines of work using CR.
Pick a , watch both methods produce the same
Make the speed difference visible. On the same , side by side, you will see both methods produce the same and one of them takes noticeably fewer steps. The harmonic check is pulled out as Step 0 — it is a property of , not of either method, and the two methods are interchangeable downstream. The geometric payoff — orthogonal level curves — appears below both columns once they have finished, attributed to itself rather than to either construction route.
A subtle thing the playground reveals on . Under Milne-Thomson the substitution turns into and into . The falls out instantly, and . The direct method on the same takes a few extra lines of chasing to reach the same answer. The difference is not "Milne-Thomson is shorter" — it is "Milne-Thomson skips integrating in two variables and integrates in one."
Test yourself before moving on
Do not peek. Commit to an answer before you reveal anything. Recognising a correct answer once you see it only feels like learning.
Which of the following cannot be the real part of an analytic function on ?
Given , what is by Milne-Thomson?
For , the curve is the hyperbola . The curve is the hyperbola . At a point where the two hyperbolas cross, the angle between them is:
Reveal 1 — Direct method, scaffolded. Given , find the conjugate and express . Work the three sub-steps below; attempt each on paper before revealing it.
. . , . Sum is ✓.
Targets: ; .
.
. Set equal to . So , hence with . Therefore and
The free constant rides on ; it is pure imaginary in .
Reveal 2 — Milne-Thomson and the trap. Given , find by Milne-Thomson.
. .
.
.
The trap: writing — i.e., renaming as instead of zeroing it out. The substitution is what collapses the two-variable function back to a one-variable function of . Always write the substitution as a visible step on your page.
. Then with .
Check: . ✓ Matches the given .
How this concept appears on exams
In standard Indian engineering-math exams — VTU 21MAT41, JIIT Maths-II and their cousins — and likely in MCC201A unless your class notes differ, this chapter shows up in three forms.
CO-3 form, main pattern. "Given , show that is harmonic and find the analytic function . Express your answer in terms of ." Roughly 6–8 marks, budget 8 minutes. Use Milne-Thomson. Direct integration takes 12–15 minutes on a transcendental and increases sign-error risk.
CO-3 form, given the imaginary part. "Given , find the analytic function ." Same machinery, CR signs flipped. From and CR (), Milne-Thomson becomes
Note the plus sign (not minus) and the swapped partials. Integrate to get with — here the free constant is pure real, because is fixed and the freedom lives in . Mirror image of the -given case, where the free constant was pure imaginary.
CO-3 form, orthogonal families variant. "Show that the families of curves and cut each other orthogonally." Roughly 4–5 marks, budget 5 minutes. Compute and use CR; the dot product reduces to zero.
Occasionally the question pins the constant: "Find such that " or similar. Your answer is with . Plug the given point into this expression and solve for . Two marks, ten seconds — often skipped under exam pressure. Don't skip it.
Four patterns that cost marks
- Stopping at and not expressing the answer in . The single most common mark-loss on these questions. You compute correctly, write with and still in it, and lose 2–3 marks on the "express in terms of " step the question demanded. The fix: substitute , and watch the 's cancel — or, with Milne-Thomson, you arrive in form directly. If you used the direct method, the last line of working must be . Never stop earlier.
- Forgetting the substitution. The biggest Milne-Thomson trap. Write the substitution as a visible step on the page — actually write "let , " — before evaluating. A second of effort, several marks.
- Sign error on the term. The formula has a minus: . Recall it via the derivation: (the second equality uses CR). The minus is not arbitrary — it is the CR minus sign you already memorised. (And for the symmetric -given form, the sign flips to plus and the partials swap.)
- Skipping the harmonic check on a question that demands it. If the question says "show that is harmonic and find …," the marks for the harmonic check are explicitly there. Compute and write . Two marks for ten seconds of work.
Five things to carry out of this chapter
- The harmonic-conjugate problem is the inverse of CR. Given the real part of an analytic function, you can recover the imaginary part (up to an additive real constant) and hence with .
- Harmonicity of is the local condition that makes the construction work. On the simply connected domains you work with, that local condition is enough for global existence.
- The direct method. , integrate in → ; then pins ; combine.
- Milne-Thomson. , ; substitute and ; then ; integrate. Faster, exam-preferred.
- Orthogonal families. The level curves of and of cross at right angles everywhere . One-line proof via from CR.
A note on the syllabus phrase "elementary analytic functions." The MCC201A Unit 1 contents list "elementary analytic functions" as one of its topics. Those functions are — and you have just used several of them as the worked examples in this chapter. You already know what they look like, decomposed into real and imaginary parts. The logarithm is also "elementary," but it carries a branch-cut subtlety that needs its own deliberate treatment; you'll meet it where it does real work, in the contour-integration chapter.
What comes next. Chapter 5, Conformal mapping intuition, takes the analytic functions you have learned to recognise (Chapter 3) and construct (Chapter 4), and asks what they do geometrically. The orthogonal-families picture from Beat 3 is the first hint — analytic functions reshape regions of the plane while preserving angles. The functions , , will reappear immediately as conformal maps with specific geometric effects.
Before you open Chapter 5: solve five fresh "given , find " problems from Zill, Complex Analysis, Chapter 3 (harmonic-functions section) [verify the exact section number against your copy]. Mix two by direct method, three by Milne-Thomson. Retrieval beats recognition every time.
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 5 — Harmonic Functions — harmonic functions and conjugates, the same material worked a different way.
✓ Chapter complete. Your progress, and every quiz answer, is saved on this computer — revisit any time.