Harmonic Function: Check the Domain, Then the Laplacian
A harmonic function is a twice continuously differentiable function whose unmixed second derivatives add to zero. To test one and find its conjugate, check the domain first, then the Laplacian, then integrate.
By Sunil Bansal, Founder · Updated 11 Nov 2026

Key takeaways
A harmonic function u(x, y) satisfies u_xx + u_yy = 0 (Laplace's equation) on a region. Test the domain, then the Laplacian, then build the conjugate with f′(z) = u_x − i·u_y.
- Test the domain before the algebra. log|z| is harmonic on the plane with the origin removed, but it has no single-valued conjugate there.
- Two different-looking conjugates are both right if they differ by a constant. Differentiate your answer to check it against the Cauchy-Riemann equations.
- The GATE 2027 syllabus names harmonic functions and the Laplace equation. In our view, three question types cover the topic: a conjugate with a pinned constant, a Laplace boundary problem solved by inspection, and a mean value argument.
In this article
- 1What is a harmonic function, and what is the six-step check?
- 2Why does log|z| have no harmonic conjugate even though it is harmonic?
- 3How do you find a harmonic conjugate when the question pins down a constant?
- 4Why do two correct methods give different-looking harmonic conjugates?
- 5Which harmonic function questions can you solve by inspection?
- 6What does the GATE and CSIR NET syllabus say about harmonic functions?
- 7What should you practise next, and how can SBTech Math help?
- 8Frequently asked questions
Two correct methods can hand you two different-looking conjugates. The marks go in testing the function on the right region, building its conjugate, and fixing the constant at the end.
The Graduate Aptitude Test in Engineering (GATE) Mathematics (MA) syllabus names harmonic functions. The 2026 paper had a Laplace's equation problem that takes three lines once you know the trick. Below you get a six-step check sheet, three worked problems and the places where marks are lost, with the syllabus position for GATE and for the Council of Scientific and Industrial Research (CSIR) National Eligibility Test (NET).
What is a harmonic function, and what is the six-step check?
A harmonic function is a real function u(x, y) with continuous second derivatives on a region where u_xx + u_yy = 0. The sum u_xx + u_yy is the Laplacian, and setting it to zero gives Laplace's equation. Run the six checks below in order. Steps 1 and 2 decide whether the rest is worth doing.
| Step | The test you run | Pass or fail |
|---|---|---|
| 1. Domain | Is the region simply connected, meaning it has no holes? | Pass: a disc, the whole plane or a half-plane, so a conjugate exists. Fail: the region has a hole (for example a ring-shaped region such as 1 < |z| < 2, or the plane minus the origin), so a conjugate may not exist. Compute the integral of −u_y dx + u_x dy around the hole: pass if it is 0 (conjugate exists), fail if it is not 0 (no single-valued conjugate; log|z| gives 2π). |
| 2. Laplacian | Compute u_xx + u_yy. In polar form compute u_rr + u_r/r + u_θθ/r². | Pass: zero at every point of the region. Fail: non-zero anywhere. |
| 3. Unknown coefficients | Set the coefficient of each monomial in u_xx + u_yy to zero and solve. | Pass: every coefficient equation is satisfied. Fail: the equations contradict each other. |
| 4. Conjugate | Write f′(z) = u_x(z, 0) − i·u_y(z, 0), integrate in z, then take the imaginary part of f(x + iy). | Pass: your v satisfies v_y = u_x and v_x = −u_y when differentiated. |
| 5. Constant | Use the value given for v to fix the added constant. | Pass: v takes the required value at the given point. |
| 6. Two answers | If your v differs from a textbook v, differentiate the difference. | Pass: the derivative is zero, so the two are the same conjugate. |
The conjugate in step 4 is a function v such that u + iv is analytic (complex-differentiable), which requires the Cauchy-Riemann equations u_x = v_y and u_y = −v_x. The reason the shortcut works is that an analytic f = u + iv has f′ = u_x + i·v_x, and the Cauchy-Riemann equations give v_x = −u_y. Step 4's "set y = 0" is safe for polynomial, exponential and trigonometric problems on a region that contains part of the real axis. For anything stranger, integrate the Cauchy-Riemann equations directly. Our Cauchy-Riemann equations page covers those equations.
Real and imaginary parts of an analytic function are harmonic, which is why this topic sits inside complex analysis (Axler, 1986). Two other properties are useful in exams. A harmonic function's value at a centre equals its average on any circle around it whose enclosed disc lies inside the region (the mean value property). A non-constant one has no interior maximum or minimum (the maximum principle) (Wikipedia, Harmonic function).
Why does log|z| have no harmonic conjugate even though it is harmonic?
On the plane with the origin removed, log|z| is harmonic but has no single-valued conjugate. Its natural conjugate is the angle arg z, which increases by 2π every time you go once around the origin. A region with a hole allows that circling, so single-valued conjugates are not guaranteed there.

Simply connected means the region has no holes. On such a region, every harmonic function is the real part of an analytic function, so a conjugate exists. Axler's article in the American Mathematical Monthly states the failure case exactly: log|z| on an annulus (a ring-shaped region such as 1 < |z| < 2) centred at the origin "is harmonic, but it is not the real part of any function analytic on the annulus" (Axler, 1986; see also Wikipedia, Harmonic conjugate).
If an exam asks you to show that u = log|z| has no conjugate on 0 < |z| < 1, this short argument works.
- Suppose an analytic f on that region had real part u. Then f′ = u_x − i·u_y.
- With u = ½ log(x² + y²), u_x = x/(x² + y²) and u_y = y/(x² + y²). So f′ = (x − iy)/(x² + y²) = 1/z.
- If f exists, the integral of f′ around the circle |z| = 1/2 must be zero, because f′ has the primitive f.
- But the integral of 1/z around that circle is 2πi, so no such f exists.
Run step 1 before any algebra: if the region has a hole, the integration can produce a conjugate that is not single-valued, and the work is wasted.
How do you find a harmonic conjugate when the question pins down a constant?
You make the function harmonic first, then build f′(z) from the partial derivatives, integrate, and fix the constant at the end. The problem below is our own practice problem in the style of GATE conjugate questions.
Problem. Let u(x, y) = x³ + a·x²y + b·xy² + 2y³ be harmonic, and let v be its conjugate with v(0, 0) = 1. Find |a + b + v(1, 1)|.
- Laplacian (steps 2 and 3)
u_xx = 6x + 2a·y and u_yy = 2b·x + 12y. The sum is (6 + 2b)x + (2a + 12)y. Setting both coefficients to zero gives b = −3 and a = −6.
- Derivatives
Now u = x³ − 6x²y − 3xy² + 2y³. So u_x = 3x² − 12xy − 3y² and u_y = −6x² − 6xy + 6y².
- Conjugate (step 4)
f′(z) = u_x(z, 0) − i·u_y(z, 0) = 3z² + 6i·z² = (3 + 6i)z². Integrating gives f(z) = (1 + 2i)z³ + C.
- Imaginary part(x + iy)³ = (x³ − 3xy²) + i(3x²y − y³). Multiplying by (1 + 2i), the real part is x³ − 6x²y − 3xy² + 2y³, which matches u. The imaginary part is v = 2x³ + 3x²y − 6xy² − y³ + c.
- Constant (step 5)v(0, 0) = 1 gives c = 1. Then v(1, 1) = 2 + 3 − 6 − 1 + 1 = −1.
- Answer
a + b + v(1, 1) = −6 − 3 − 1 = −10, so the answer is 10.
The order matters. If you build the conjugate before fixing a and b, the Cauchy-Riemann equations contradict each other (the mixed second derivatives of v disagree) and you get stuck with no visible cause.
Why do two correct methods give different-looking harmonic conjugates?
A conjugate is unique only up to an added constant, so two correct answers can look different. If v₁ and v₂ are both conjugates of u on a connected region, their difference has zero derivative everywhere, so it is constant.
The standard example is u = ½ log(x² + y²). Integrating u_x = v_y gives v = tan⁻¹(y/x). Integrating u_y = −v_x gives v = −tan⁻¹(x/y). For x, y > 0, tan⁻¹(y/x) + tan⁻¹(x/y) = π/2, so the two answers differ by exactly π/2. Both are conjugates, each on the part of the plane where it is defined.
Run step 6 whenever your answer disagrees with a book. Differentiate your v, check v_x = −u_y and v_y = u_x, and compare the difference. A wrong answer fails the derivative check, and a right one with a different constant passes it.
Which harmonic function questions can you solve by inspection?
Two kinds can be solved without heavy calculation: a Laplace boundary problem where you guess a harmonic function that fits the edges, and a mean value integral where only one term survives.

Laplace boundary problem (GATE 2026, Q44). The official paper asks for T(½, ⅓) when ∂²T/∂x² + ∂²T/∂y² = 0 on 0 < x < 1, 0 < y < 1, with T(x, 0) = x, T(0, y) = y, T(x, 1) = 1 + x and T(1, y) = 1 + y (GATE 2026 MA paper, IIT Guwahati).
- Try T = x + y. Its Laplacian is 0.
- Check each edge: T(x, 0) = x, T(0, y) = y, T(x, 1) = x + 1 and T(1, y) = 1 + y. All four match.
- A harmonic function on a bounded region is fixed by its boundary values. The difference of two solutions is harmonic and zero on the boundary, so by the maximum principle it is zero everywhere.
- So T = x + y and T(½, ⅓) = 5/6, which is option (B) in that paper.
Mean value integral (our practice problem). Let u be harmonic on the whole plane and let g(x, y) = ∫₀^{2π} u(e^{iθ}(x + iy)) sin θ dθ. Is g a harmonic polynomial?
- Write u = Re Σ aₙzⁿ. Then u(e^{iθ}z) = Re Σ aₙzⁿe^{inθ}.
- The integral of sin θ·cos(nθ) over 0 to 2π is zero for every n ≥ 0. The integral of sin θ·sin(nθ) is π when n = 1 and zero otherwise.
- So only the n = 1 term survives, and g = −π·Im(a₁z). That is a linear harmonic polynomial.
- Check with u = x³ − 3xy² + 2x + 5y, where a₁ = 2 − 5i. The formula gives g = π(5x − 2y).
What does the GATE and CSIR NET syllabus say about harmonic functions?
The GATE 2027 syllabus names harmonic functions in complex analysis, and the Laplace equation and Maximum Principle in partial differential equations. It lists "analytic functions, harmonic functions" in Section 4 (Complex Analysis). Section 9 (Partial Differential Equations) lists the "method of separation of variables for Laplace equation in Cartesian and polar coordinates" and the "Maximum Principle" (GATE 2027 MA syllabus, IIT Madras as GATE 2027 organising institute). Our GATE MA syllabus page maps the full list.
Counts are taken from the question papers linked in the table (every question that mentions harmonic functions or Laplace's equation).
Two papers are too few to estimate how often the topic appears. Our recommendation is to prepare all three question types, because the syllabus names harmonic functions, the Laplace equation and the maximum principle, and these types are how those items are most likely to be tested. Our GATE Mathematics previous year papers page covers marks by section.
For CSIR NET, the CSIR Human Resource Development Group syllabus file (December 2020) lists "Analytic functions, Cauchy-Riemann equations" under complex analysis. It also lists "Method of separation of variables for Laplace, Heat and Wave equations" under partial differential equations (CSIR-HRDG syllabus). The CSIR NET syllabus does not name harmonic functions. In our reading, they are examinable through analytic functions and the Cauchy-Riemann equations (the real and imaginary parts of an analytic function are harmonic) and through Laplace's equation. The same checks apply. Confirm the syllabus in the current information bulletin before you plan.
What should you practise next, and how can SBTech Math help?
Practise the six-step check on twenty varied problems before you add more theory. Mix polynomial, exponential and trigonometric functions, mix pinned and unpinned constants, and include at least two problems on a region with a hole.
Harmonic function questions stand on analytic functions and the Cauchy-Riemann equations. Our Master Course – Complex Analysis, taught by SB Sir, covers analytic functions, the Cauchy-Riemann equations, complex integration, series, singularities and residues, with quizzes and live tests. As of November 2026 it costs ₹2,499.
Free practice is in our free mathematics study content and PDF drive, and the CSIR NET test series has practice tests.
Tell us which topic you are stuck on before you buy, and we will tell you which part of the course, if any, covers it, through our contact form. Our digital courses are non-refundable, except in a serious health issue immediately after purchase, so ask first.
Ask SBTech Math which course part covers your topic
Frequently asked questions
Compute u_xx + u_yy and check that it is zero at every point of the region. A graph cannot prove it. It can only rule it out: a harmonic function that is not constant has no interior maximum or minimum, so a visible interior bump means it is not harmonic.
Sources
- 1.GATE 2027 Mathematics (MA) syllabus, IIT Madras as GATE 2027 organising institute, July 2026
- 2.GATE 2026 Mathematics (MA) question paper, IIT Guwahati
- 3.GATE 2025 Mathematics (MA) question paper, Organised by IIT Roorkee, hosted on the IIT Guwahati GATE site
- 4.CSIR-UGC NET Mathematical Sciences syllabus, CSIR Human Resource Development Group, December 2020
- 5.Sheldon Axler, "Harmonic Functions from a Complex Analysis Viewpoint", American Mathematical Monthly 93(4), pp. 246–258, April 1986
- 6.Wikipedia, Harmonic function
- 7.Wikipedia, Harmonic conjugate
- 8.Our own calculations: the worked problems and the counts in the table of GATE papers, as described on this page.
- 9.SBTech Math's own Master Course – Complex Analysis page, SBTech Math, Price as of November 2026



