Euler’s theorem and harmonic functions
Some multivariable functions carry a hidden bookkeeping rule: scale every input by the same factor , and the output scales predictably too. These are the homogeneous functions, and Euler's theorem turns that scaling rule into a compact identity linking a function to its own partial derivatives — useful both as a fast way to evaluate awkward combinations like and as a built-in check on your partial-derivative algebra. A second, unrelated identity governs harmonic functions: those whose second partials satisfy Laplace's equation . Harmonic functions describe steady-state temperature and electrostatic potential in physics, and — as you will see later, in Complex Variables — they are exactly the real and imaginary parts of an analytic function. This article builds both identities and shows, with one running example, that they are genuinely independent properties.
A homogeneous function of degree obeys (Euler's theorem), while a harmonic function separately satisfies Laplace's equation , and a function can have either property, both, or neither.
The core idea
Homogeneity is a scaling rule. A function is homogeneous of degree if replacing pulls out an overall factor :
where: is the degree of homogeneity, found by direct substitution rather than guessed from the highest total-degree term — this matters for quotients and roots, where the answer is not always obvious from inspection. For example is degree (every monomial has total degree ), while is degree , since . A quotient like is also degree : substituting gives , so the 's from numerator and denominator do not simply cancel to — you must carry the algebra through rather than eyeball the exponents. It helps to notice why the definition is stated for polynomials in the first place: a sum of monomials is homogeneous of degree exactly when every monomial individually has total degree , because substituting multiplies a monomial by , and a sum of terms all carrying the same power of factors that common power straight out. Mixed-degree sums such as fail the test for precisely this reason — no single can be factored out of .
Euler's theorem converts scaling into a derivative identity. For a differentiable homogeneous function of degree ,
and differentiating this relation once more (applying it to , itself homogeneous of degree , and to ) gives the second-order extension
where: are the first partials and the second partials, with guaranteed equal by Clairaut's theorem, which is exactly why the mixed term above carries a coefficient of . Both identities let you check a partial-derivative computation independently, or shortcut a problem that only asks for the combination : instead of computing and separately and then forming by hand, you can read off the degree by inspection and immediately write down , saving a line of algebra on exam problems built around this identity.
Harmonicity is an unrelated second-order condition. A function with continuous second partials is harmonic if it satisfies Laplace's equation:
Verifying this is a direct two-step computation — find , find , check the sum vanishes. Harmonic functions model steady-state temperature fields, electrostatic potentials, and incompressible irrotational flow; here they are treated purely as real-variable objects, though their deeper identity as the real and imaginary parts of an analytic complex function is the subject of the Cauchy-Riemann equations later in the course. Unlike homogeneity, harmonicity has no simple substitution test — there is no shortcut analogous to plugging in . Every check genuinely requires computing both second-order partial derivatives from scratch and adding them, which is why it is worth being fast and careful with second partials before attempting this kind of problem under time pressure.
The goal is to derive the identity starting only from the defining relation , using nothing beyond the chain rule for a function of one variable — showing that Euler's theorem is not a separate assumption but a direct consequence of what homogeneity of degree already means.
Step 1. Start from the definition, valid for every with held fixed: . Treat both sides as functions of the single variable and differentiate with respect to .
Step 2. Differentiate the left side using the chain rule. Writing , we get , since and .
Step 3. Differentiate the right side directly: , since does not depend on . Equating the two sides gives for every .
Step 4. Set . The relation becomes , which is Euler's theorem. Because were arbitrary fixed values throughout, this holds at every point where is differentiable — the identity is not a one-off coincidence but a structural consequence of homogeneity.
Step 5. The second-order relation follows the same pattern one level up. Since is itself homogeneous of degree (differentiating with respect to shows , i.e. ), applying Euler's first-order theorem to gives ; applying it to gives . Multiplying the first by , the second by , and adding reproduces , using the first-order result once more in the final step.
Worked example
Verify both the first- and second-order Euler relations for , and check whether the same function is harmonic.
Step 1. Confirm the degree. Every term has total degree (, , , ), and directly , so .
Step 2. Compute the first partials: and . Forming gives , which equals exactly — the first-order Euler relation holds.
Step 3. Compute the second partials: , , . Forming : . Compare with — the two match, confirming the second-order relation.
Step 4. Check harmonicity separately: , which is not identically zero. This is homogeneous of degree and satisfies both Euler relations, but it is not harmonic — confirming the two properties are independent even for the same function.
Competitive stretch
Test : and , so and is harmonic everywhere. But cannot be written as for any fixed , since sits inside the exponential and cosine rather than as an overall scale factor — so is harmonic but not homogeneous of any degree, the mirror case to Step 4 above. For a function that is genuinely both, try : it is homogeneous of degree (every term has total degree , and ), and gives , so is also harmonic. Together, , and populate all three non-trivial cells of the two-by-two grid — homogeneous only, harmonic only, and both — leaving only "neither" to find on your own, for example .
Common traps
- Confusing homogeneity with harmonicity. They are independent tests on different derivatives — a function can pass one, both, or neither, as the worked example and its stretch both show.
- Guessing the degree instead of substituting. For quotients or roots such as or , always compute directly rather than reading off the highest total-degree term.
- Dropping the factor of in the second-order relation. The identity needs the coefficient on the mixed term, since and both contribute and are equal by Clairaut's theorem.
- Declaring harmonicity from only one second partial. Both and must be computed, and it is specifically their sum that must vanish.
Ask the tutor: if you want to practice finding the degree of an unusual homogeneous function or verifying harmonicity step by step, ask the AI tutor to work through a fresh example with you.
If a function is homogeneous, does that automatically make it harmonic too?
No. Homogeneity is about how scales under , while harmonicity is about whether — two completely different computations on different derivatives. The worked example's function is homogeneous of degree but has , so it is not harmonic. You must check each property separately; passing one tells you nothing about the other.
Why does the second-order Euler relation have a 2 in front of the mixed term but the first-order one does not?
The first-order relation only involves two distinct first partials, and , each appearing once. The second-order relation comes from differentiating that identity again, and the cross term arises twice — once from differentiating with respect to and once from differentiating with respect to . Since by Clairaut's theorem, these two equal contributions combine into the single coefficient .
Where do harmonic functions come from in this course, and why do they matter later?
Right now they are introduced purely as real-variable functions satisfying , useful because they model steady-state temperature and electrostatic potential in physics and engineering. Later, in the Complex Variables unit, you will meet the Cauchy-Riemann equations and discover that if is analytic (complex-differentiable), then both and are automatically harmonic. That connection is not needed to verify harmonicity now — it is simply the reason this topic reappears.