If $f(x)=\int_{0}^{x}\sqrt{f(t)}\,dt$ then $f(6)$ is?

Suppose $f(x) = 0$ for some $x \in (0,\infty)$. Then, $f$ is the integral of a non-negative function from $0$ to $x$, so this forces $f(y) = 0$ for all $y \leq x$.

On the contrary, $f$ being the integral of a non-negative function is increasing. Therefore, if $x^* = \inf\{y : f(y) = 0\}$, then $f$ is positive beyond $x^*$ and zero before (and including) that point.


KEY POINT : Once $f$ is shown to be positive, so is the square root, and therefore the derivative exists since we may divide by $\sqrt f$.

Since $f' = \sqrt f$, $f'$ is differentiable in $(x^*,\infty)$ (and positive on this interval, since we are considering the positive square root), with $f'' = (\sqrt f)' = \frac{1}{2\sqrt f} \times f' = \frac 12$ everywhere on $(x^*,\infty)$. Note that $f''(x^*) = 0$, from the fact that $f'$ is zero on $[0,x^*]$.

Thus, $f''$ is constant on $(x^*,\infty)$ and equal to $\frac 12$.We may solve this equation and obtain $f''$ as some quadratic on this interval, since $f '' = \frac 12 \implies f = \frac{x^2}{4} + c_1x+c_2$, with the conditions at $x^*$. You can find what $c_1,c_2$ are.

Thus, if $f$ is as above, then we may characterize $f$ as being $0$ up till some $x^*$ and then the quadratic we obtained above. In particular, $f(6)$ does not take one svalue, but a range of values depending on which $f$ we are referring to. I am sure you will be able to deduce the exact range of values it lies in from here.


For completeness, I add the solution : For any $x^*$, the function $f_{x^*}(x) = \mathbf 1_{x > x^*} \frac{(x-x^*)^2}{4}$ satisfies the given conditions. Conversely, any function satisfying the given conditions must be of this form.

From here, one sees that $f(6)$ may take any of the values $\mathbf 1_{6 > x^*} \frac{(6-x^*)^2}{4}$, from where the decreasing nature of this function in $x^*$ gives the answer as $f(6) \in [0,9]$. Note that if $x^* = 0$ then $f(6) = 9$, which is the "standard" answer under the common mistake of not realizing that $f$ needs to be positive for $\sqrt f$ to be invertible.


Assume $f(x) > 0$. Upon differentiation, we have $y' = \sqrt{y} $ where $y=f(x)$. We have $\int \frac{dy }{y^{1/2}} = x + C $. Thus $2 \sqrt{y} = x + C $ And $C=0$ as $f(0)=0$. Thus, $y = \frac{x^2}{4}$. It follows that $f(6) = 9$

Added: See Clement C's comments below for a more rigorous solutions when $f(x) > 0$ is not assumed.