🧮 Brain Teaser

The Function That Is Its Own Average

Let f:[0,1]→Rf: [0,1] \to \mathbb{R} be a continuous function satisfying

f(x)=1x∫0xf(t) dtfor all x∈(0,1].f(x) = \frac{1}{x} \int_0^x f(t)\, dt \quad \text{for all } x \in (0,1].

What can you conclude about ff?

ODEdifferentiationaveraging conditioncontinuous functionsfixed point

Answer: The Function That Is Its Own Average

Key Idea / Intuition

The condition says f(x)f(x) equals the running average of itself. Intuitively, if a continuous function always equals its own average over [0,x][0,x], it must be "flat" — any deviation from a constant would break the averaging condition. The key move is to differentiate both sides and watch the function force itself to be constant.


Formal Proof / Solution

Step 1: Rewrite the condition.

Define F(x)=∫0xf(t) dtF(x) = \int_0^x f(t)\, dt. The condition says:

F(x)=x⋅f(x)for all x∈(0,1].F(x) = x \cdot f(x) \quad \text{for all } x \in (0,1].

Step 2: Differentiate both sides.

Since ff is continuous, FF is differentiable and F′(x)=f(x)F'(x) = f(x). Differentiating F(x)=xf(x)F(x) = x f(x):

f(x)=f(x)+xf′(x).f(x) = f(x) + x f'(x).

This simplifies to:

xf′(x)=0for all x∈(0,1].x f'(x) = 0 \quad \text{for all } x \in (0,1].

Since x>0x > 0, we conclude f′(x)=0f'(x) = 0 for all x∈(0,1]x \in (0,1].

Step 3: Conclude.

f′(x)=0f'(x) = 0 on (0,1](0,1] means ff is constant on (0,1](0,1]. By continuity of ff at 00, the constant extends to x=0x=0 as well. Hence:

f≡c for some constant c∈R.\boxed{f \equiv c \text{ for some constant } c \in \mathbb{R}.}

Step 4: Verify.

Any constant function f≡cf \equiv c satisfies 1x∫0xc dt=c\frac{1}{x}\int_0^x c\, dt = c. ✓

Remark: Note also that continuity at x=0x=0 is needed: we need f(0)=lim⁡x→0+f(x)f(0) = \lim_{x \to 0^+} f(x) to be well-defined, which is guaranteed by the hypothesis.

Type: analysisEdit on GitHub ↗