Let $f:[0,\frac{1}{2}] \rightarrow\mathbb{R}$ be a differentiable function such that $|f^\ {'}(x)|\leq |f(x)|$ and $f(0)=0.$ Prove: $f(x)=0, \forall x\in [0,\frac{1}{2}]$.
So I tried to work by the definition of the derivative at $0$ and somehow squeeze it, but got stuck.
Any help appreciated.