$f(x)=\sin x$ is a well known function which satisfies the differential equation
$$\frac{df}{dx}=f(\pi/2-x)$$ with the initial condition $f(0)=0$; I am just curious to know are these all? If not,what kind of properties functions should satisfy?
My attempt:
Putting $y=\pi/2-x$ does not seem useful to me.
If $f'(x)=f(\frac {\pi} 2 -x)$ then $f''(x)=-f(x)$ since $\frac {\pi} 2 -(\frac {\pi} 2 -x)=x$. The only solutions of $y''=-y$ are of the form $a\sin x+b \cos x$. From the condition $f(0)=0$ we must have $f(x)=a\sin x$ for some constant $a$.