The equation is $$f'(x)=cf(x/2).$$ The problem emerges when I'm trying to deal with a partial differntial equation $$u_{t}(x,t)=u_{xx}(x,t/2).$$ Either using separation of variables: $$u(x,t)=X(x)T(t)\rightarrow X(x)T'(t)=X''(x)T(t/2)$$ so that $$X''(x)-cX(x)=0, T'(t)-cT(t/2)=0$$ or doing Fourier transform: $$\hat{u}_t(s,t)+s^2\hat{u}(s,t/2)=0$$ eventually reduces the problem to solving $$f'(x)=cf(x/2).$$
But the equation does not seem easy to solve. I can only prove the existence of solutions using the Euler method. The numerical simulation looks like
The other function plotted for comparison is the exponential function.
Does a solution of closed form exist to the equation? If not, how do we solve the original PDE?

To find the analytic solution, we can use a power series expansion around $x=0$ in the usual way: $$ 0 = f'(x) - c f(x/2) = \sum_{n=0}^{\infty} \left( f^{(n+1)}(0)-\frac{c}{2^n}f^{(n)}(0) \right) \frac{x^n}{n!}, $$ and then equating coefficients gives $$ f^{(n+1)}(0)=\frac{c}{2^n}f^{(n)}(0). $$ It is then simple to prove by induction that $$ f^{(n)}(0) = \frac{c^n}{2^{1+2+3+\dotsb+(n-1)}} f(0) = \frac{c^n}{2^{n(n-1)/2}} f(0), $$ so $$ f(x) = f(0) \sum_{n=0}^{\infty} \frac{c^n}{2^{n(n+1)/2}} \frac{x^n}{n!}. $$