← All 70 questions
Question 21·Churchill College·year not stated·A one-line substitution hides an exactly-all trap: the differentiating route widens the solution set unless the integration constant is re-pinned, the answer is complete only once the reversibility of the reduction is stated, and the regularity hypothesis should be consumed exactly once, visibly.
Reducing a two-variable functional equation by two independent routes - the normalising substitution g=fe−x, an exact equivalence with Cauchy additivity, and differentiating in one variable at y=0, a first-order linear ODE - and proving the reduction reversible; the answer is the one-parameter family f(x)=cxex.
6–10 minutes at interview pace
Live video, shared whiteboard. Everything under BOARD is written with the pen; everything under SAY is spoken over it, at the same time. Never write a line in silence, and never say a line you have not put on the board.
Find all differentiable functions f:ℝ→ℝ that satisfy the relation f(x+y)=f(x)ey+f(y)ex for all real numbers x and y.
Answer: f(x)=cxex for an arbitrary real constant c (with c=0 giving the zero function); equivalently f(x)=f′(0)xex - one free parameter.

The whiteboard, beat by beat

1 · Orient · beat 1 of 7

What an exactly-all two-variable claim demands

Differentiable f:ℝ→ℝ: f(x+y)=f(x)ey+f(y)ex
Two-variable identity
Symmetric in x and y
First contact (x,y)=(0,0): f(0)=2f(0), hence f(0)=0
What you say, out loud

The question asks for all differentiable functions on the reals satisfying one identity for every pair x, y. A single example will never close that. I need the whole solution set, and I need to show nothing else is in it.

Two structural facts before any algebra. The relation is symmetric in x and y, which is a cheap consistency check on anything I guess. And the point (0,0) is free: it says f of 0 equals twice f of 0, so f of 0 is 0. That is a strainer for every candidate from now on.

The hypothesis says differentiable, not continuously differentiable. So I will keep track of the exact step where regularity is consumed. That is the only thing that can beat the pathological functional-equation folklore in this problem.

Why this beat exists: Orient by the quantifiers: this is an exactly-all statement, and pinning f(0) = 0 at the very start gives every later candidate a one-line test.
2 · Set up the language · beat 2 of 7

Two routes that share no steps

Route A: g(t)=f(t)e−t
Route B (calculus): ODE in x
et≠0 everywhere: f=get invertible
f differentiable ⇒ g differentiable ⇒ g continuous
What you say, out loud

I will run two routes with zero shared steps. Route A is pure algebra: a change of unknown that turns the relation into a classical one-variable functional equation. Route B is calculus. Freeze one variable, differentiate in the other, and solve the ordinary differential equation that drops out.

The substitution g equals f times e to the minus t is the natural normalising move. The relation mixes f with exponentials, and dividing by the exponential is what stops them reappearing at every step. It is invertible because e to the t never vanishes.

For Route B I must be honest about what differentiable grants. I may differentiate with respect to y at fixed x, because the left side is f of x plus y, that is f composed with the affine map taking y to x plus y, and the right side is a differentiable function of y built from f of y and e to the y. The chain rule applies, and nothing beyond one derivative is assumed.

Why this beat exists: Naming both routes before choosing one is what lets the final answer be checked twice by genuinely different machinery.
3 · First decisive move · beat 3 of 7

Divide by ex+y: the relation becomes Cauchy

Divide by ex+y: f(x+y)ex+y=f(x)ex+f(y)ey, i.e. g(x+y)=g(x)+g(y)
Exact residual: f(x+y)−f(x)ey−f(y)ex=ex+y[g(x+y)−g(x)−g(y)]
f solves ⟺ g additive
the substitution g = f/e^x straightens the familyc = 1: f(x) = x*e^x (blue) vs g(x) = x (green)f(x) = x*e^xf(1) = eg(x) = f(x)/e^x = xmin at x = -1: -1/eshared vertex (0, 0)g(x+y) = g(x) + g(y) (Cauchy additive)f solves the relation <=> g = f/e^x is additive9 vertices per curve, x = -3, -2.5, ..., 1the two polylines share exactly one vertex: (0, 0)
The c = 1 member before and after the normalising substitution, on x from -3 to 1 with 9 vertices each at step 0.5. The green polyline is g(x) = f(x)/e^x = x: its 9 drawn vertices are collinear (constant slope in screen coordinates) and pass through (-3, -3), (0, 0) and (1, 1). The blue polyline is f(x) = x*e^x: it passes through (0, 0) and (1, e) with e = 2.718..., has its lowest drawn vertex at x = -1 with value -1/e = -0.3679..., and the two polylines share exactly one vertex, (0, 0) - the curves f and g meet only where x*e^x = x, i.e. x = 0. Dividing by e^x turned the curved family member into the straight line y = x, which is the graph of the additive equation g(x+y) = g(x) + g(y) in the c = 1 case.
What you say, out loud

Here is the decisive move: divide the whole relation by e to the x plus y. Each term collapses. f of x plus y over e to the x plus y is g of x plus y, and f of x times e to the y over the same denominator is just g of x. What survives is Cauchy's additive equation for g.

The direction that matters for an exactly-all answer is the reverse one, and it holds because the substitution is invertible. Multiply back and the residual of the original relation is exactly e to the x plus y times the additivity defect of g. So every additive g yields a solution, and nothing outside the substitution can.

The figure shows what the normalising substitution buys. The member f of x equals x e to the x is genuinely curved, with minimum minus one over e at x equals minus one. After dividing by e to the x the same function is the straight line g of x equals x. Additivity is straightness.

Why this beat exists: The factorised residual is the reversibility proof of Route A in one line; the drawn vertices collinear for g and curved for f are the same fact made visible.
4 · Execute · beat 4 of 7

Closing both routes

Additive + continuous at a point ⇒ g(t)=ct
ℚ→ℝ step: differentiability consumed
Additivity alone only reaches g(q)=qg(1) on ℚ
Route B: ∂∂y at y=0: f′(x)=f(x)+f′(0)ex, i.e. f′−f=kex with k:=f′(0)
(fe−x)′=k, so f=(kx+C)ex, C=0
Both routes: f(x)=cxex, c=k=f′(0)
What you say, out loud

Route A: additivity gives g of 0 equals 0, g of minus t equals minus g of t, and by induction g of n t equals n g of t. So g of q equals q times g of 1 for every rational q. Stepping from the rationals to an irrational t is a limit step, and continuity is exactly what licenses it. That single step is the only place the word differentiable gets used.

Route B: differentiate the identity in y and set y to 0. That gives f prime of x equals f of x plus f prime of 0 times e to the x. The integrating factor e to the minus x turns the right-hand side into a pure derivative: the derivative of f times e to the minus x is the constant k. So f is k x plus C, all times e to the x.

The two answers agree constant by constant. Route A's c is g of 1, which is f of 1 over e, and Route B's k is f prime of 0. For f equals c x e to the x both of them are c. The constant C is not free: the original relation still demands f of 0 equals 0, so C is 0.

Why this beat exists: Route B alone would have stopped one line too early; the constraint f(0) = 0 taken from the un-specialised relation is what closes it, and beat 5 pins the last constant.
5 · Pin the exact value · beat 5 of 7

One free constant, and everything the relation fixes

f(0)=0, f′(0)=c free, f′′(0)=2c, f(1)=ce, f(−1)=−ce−1
f′(0)=k+C but k is f′(0): C=0
Answer: f(x)=cxex
What you say, out loud

Let me pin the exact values the relation forces. f of 0 is 0, f of 1 is c times e, and f of minus 1 is minus c over e. The derivative tower at 0 reads f prime of 0 equals c and f double prime of 0 equals 2c. So f double prime of 0 equals 2 f prime of 0, and that is a necessary condition every candidate must pass.

There is a second, independent closure of the constant. In Route B, k was defined as f prime of 0, but the general solution, k x plus C all times e to the x, has f prime of 0 equal to k plus C. Forcing k equals k plus C kills C without ever invoking f of 0 equals 0. Two different arguments, same verdict.

So the answer is exactly one real parameter wide: f equals c x e to the x for any real c. That includes c equals 0, which gives the zero function. An exactly-all answer that silently drops the zero function is wrong by one member.

Why this beat exists: Pinning c = f'(0) = f(1)/e and the second closure C = 0 turns the verification beat from a formality into a redundancy check.
6 · Test the claim · beat 6 of 7

The ODE alone widens the answer - check every witness

Substitution: f(x+y)−f(x)ey−f(y)ex≡0
ODE-only witnesses: (x+1)ex, (x−2)ex, (3x+4)ex all solve f′−f=kex
Residuals: −ex+y, 2ex+y, −4ex+y
Grid {−2,−1,0,1,2}2: family passes 25/25
one ODE, three constants - only C = 0 survivesx in [-3, 1], 9 vertices each, step 0.5w1 = (x+1)e^xf = x*e^xw2 = (x-2)e^xC = 1C = 0C = -2all three solve the ODE f' - f = e^xresiduals in the relation: 0, -e^(x+y), +2e^(x+y)grid [-2,2]^2: family passes 25/25, w1 fails 25/25axis crossings 0, 1, -2: the forbidden constant C
Three solutions of the ODE f' - f = e^x on x from -3 to 1, 9 vertices each at step 0.5. Green: f(x) = x*e^x, the answer family with k = 1, C = 0 - its drawn vertex on the vertical axis sits at height 0, and its residual in the original relation simplifies to 0. Red upper: w1 = (x+1)e^x, same ODE with C = 1 - its drawn vertex on the vertical axis sits at height 1, and its residual is -e^(x+y), failing the relation at (0, 0) by -1. Red lower: w2 = (x-2)e^x with C = -2 - drawn vertex at height -2, residual +2e^(x+y), failing at (0, 0) by +2. The three curves cross the vertical axis at exactly 0, 1, -2 in the drawing, and at x = 1 their drawn heights are e = 2.718..., 2e = 5.436... and -e = -2.718...: the same ODE, three different constants, and only the green one satisfies the two-variable relation.
What you say, out loud

Now I test rather than trust. Plug c x e to the x into the relation and the residual simplifies to exactly zero. I did that three ways: symbolically in x and y, on eight hand-picked exact pairs of both signs, including one half against minus one half, and on the full integer grid from minus two to two in both variables. That grid gives twenty-five out of twenty-five.

The reverse audit is the part people skip. The ODE alone is wider than the relation. The three witnesses all solve f prime minus f equals k e to the x, each one carries a nonzero C, and their residuals are minus e to the x plus y, plus two e to the x plus y and minus four e to the x plus y. None of those is anywhere zero. So the reduction to the ODE did not quietly widen the answer, because C equals 0 was earned twice.

The figure makes the same point geometrically. The green curve is the answer, crossing the vertical axis at 0; the two red curves solve the same ODE, but they cross at 1 and minus 2, exactly where the relation demands 0.

On that same exhaustive grid, the witness, x plus 1 all times e to the x, fails every one of the twenty-five pairs.

Why this beat exists: The witnesses are the disproof machinery of the reduction: ODE-solutions that fail the relation localise precisely the information differentiation could have lost - the constant C.
7 · Conclude and generalise · beat 7 of 7

Where the hypothesis bites, and two variants

Continuous or measurable: same cxex
No regularity: {g(x)ex:g additive}
Sign swap: f(x+y)=f(x)ey−f(y)ex
Mismatch: f(x+y)=f(x)ey+f(y)e2x, f=k(e2x−ex)
What you say, out loud

Where does the hypothesis bite? Continuity alone already kills the wild Cauchy solutions, so differentiability is more than Route A needs. One limit step is all of it. Without any regularity the answer genuinely changes shape: by the exact equivalence, every additive g contributes a solution g times e to the x, and discontinuous additive functions exist only via a Hamel basis. None is constructed here, so the defensible statement is the equivalence itself, not a catalogue of monsters.

The relation does not force its own regularity. If g is additive then f equals g times e to the x satisfies the relation whatever g is, and a wild g makes f wild. That is a theorem by computation about the shape of the solution set, with the differentiable subfamily c x e to the x sitting inside it.

Two variants, each solved from its own arithmetic. Flip the sign and the relation turns antisymmetric under swapping x and y. Then twice f of x plus y equals zero, and the family collapses to the zero function alone. Now mismatch the exponents, e to the y against e to the 2x. The substitution no longer symmetrises, but Route B still gives f prime minus f equals k e to the 2x, with f of 0 equals 0, leaving k times the quantity e to the 2x minus e to the x. Its residual substitutes back to exactly zero.

Why this beat exists: The generalisation is the real discriminator: the symmetric variant keeps the shape c*x*e^(ax) because the substitution survives rescaling, while the sign swap and the mismatched variant each need their own computation - pattern matching is not evidence.

Where the interviewer pushes next

“Is differentiability really needed, or would something weaker close the answer?”
What you say, out loud

Continuity is enough. Route A borrows differentiability for exactly one limit step, and continuity at a single point already turns an additive function into a linear one. So the same answer, c x e to the x, survives.

Even measurability, or boundedness on one interval, suffices. That is the standard regularity ladder for Cauchy's equation, and Route A is where it plugs in.

Drop all regularity and the answer changes shape. By the exact equivalence, solutions correspond one-to-one with all additive functions, including discontinuous ones whose existence needs a Hamel basis. I construct none of them, so what I state is the equivalence, and the equivalence is already the complete answer.

Nothing in the relation forces smoothness. With a wild g, f equals g times e to the x is nowhere continuous.

Additive + continuous ⇒ linear
Measurable or bounded: same ladder
No regularity: {g(x)ex:g additive}
g wild ⇒ f=gex nowhere continuous
“You differentiated the relation - why must every solution of the ODE be checked back in?”
What you say, out loud

Differentiation is a one-way step. The relation implies the ODE, but the ODE forgets the integration constant that the relation had already pinned. So every solution of the ODE is a suspect until it is substituted back into the original identity.

The cleanest witness is the function x plus 1 all times e to the x. It satisfies f prime minus f equals e to the x exactly, but the relation demands f of 0 equals twice f of 0, and this function has f of 0 equals 1. So it fails by minus 1 already at the origin.

Route A never needed this audit, because its substitution was an equivalence. That asymmetry is worth stating out loud. The reversible route proves completeness by construction, while the differentiating route proves it by re-checking.

Differentiating in y at y equals zero reads only one slice of the two-variable identity.

The ODE alone admits the whole family, k x plus C all times e to the x, for every value of C.

The witness residual is minus e to the x plus y, so it fails everywhere, not just at the origin.

Differentiate in y at y=0
ODE f′−f=kex: family (kx+C)ex
Witness (x+1)ex: k=1, f(0)=1≠0, residual −ex+y
C killed by f(0)=0
“What if the exponentials were e2x, or the sign between the terms flipped?”
What you say, out loud

The symmetric variants are structurally identical. Replace e to the t by e to the a t everywhere and the same normalising substitution gives additivity, so the answer is c x e to the a x. The family keeps its shape because the substitution does not care about the scale.

The sign swap is different in kind. The relation becomes antisymmetric: swapping x and y negates the right side but not the left. So twice f of x plus y is zero, and the whole family collapses to the zero function.

The mismatched variant is the honest test of the method. The substitution no longer symmetrises, but Route B still applies. Differentiating at y equals 0 gives f prime minus f equals k e to the 2x, and f of 0 equals 0 leaves k times the quantity e to the 2x minus e to the x, which substitutes back to zero residual. Each variant stands on its own arithmetic, not on pattern matching.

The original family c x e to the x does not fix the mismatched relation either. Test it at the pair one, two. The residual there is 2 times the quantity 1 minus e, all times e to the 3.

Symmetric change f(x+y)=f(x)e2y+f(y)e2x: g=fe−2x still additive, so f=cxe2x
Sign swap: 2f(x+y)=0, so f≡0
Mismatch f(x+y)=f(x)ey+f(y)e2x: ODE f′−f=ke2x with f(0)=0 gives f=k(e2x−ex)
Residual 0: k(e2x−ex); at (1,2): 2(1−e)e3

Traps on this question

  • Dividing by ex+y and treating the substitution as a one-way implication: the exactly-all answer needs the reverse direction, i.e. the residual identity f(x+y)−f(x)ey−f(y)ex=ex+y[g(x+y)−g(x)−g(y)], which is what proves that every additive g gives a solution and nothing else does.
  • Solving the ODE f′−f=kex and reporting (kx+C)ex: differentiation lost the constant. (x+1)ex solves the ODE but fails the relation at (0,0) by −1; the constraint f(0)=0 (or the self-consistency f′(0)=k) must be re-imposed.
  • Specialising to y=x or y=0 and treating the resulting one-variable identity as if it were the relation: every specialisation is necessary but not sufficient, and f(0)=0 alone never characterises f.
  • Misreading g(t)=ct as f(t)=cet: the substitution is f=get, so f(t)=ctet. The wrong reading leaves residual cex+y, nonzero at (0,0) unless c=0 - caught by a single substitution.
  • Claiming the answer stays cxex with no regularity because pathological solutions are exotic, or conversely reciting Hamel-basis monsters as if one had been constructed: the defensible statement is the exact equivalence with all additive g, plus the fact that continuity already collapses them to lines.

What gets written on the assessor’s form

  • Pinned f(0)=0 from (x,y)=(0,0) before any algebra and used it as a strainer on every later candidate.
  • Made the normalising substitution reversible by writing the factorised residual identity, so Route A proves completeness by construction rather than by check-back.
  • Consumed the hypothesis explicitly at the ℚ→ℝ limit step and said that continuity alone would have sufficed.
  • Ran the ODE route independently, closed the constant twice (f(0)=0 and the self-consistency f′(0)=k), and matched the two routes constant by constant: c=g(1)=f(1)/e=f′(0)=k.
  • Tested the claim with exact substitutions, a 25/25 integer-grid pass, three ODE witnesses with nonzero residuals −ex+y, 2ex+y, −4ex+y, and two variants solved from their own arithmetic.