So I just got out of my first exam on differential equations. One point had an integral equation which we were supposed to turn into a first order linear differential equation. The thing is I wasn't able to get rid of the integral and ended with an integro differential equation that looks like this:
$\frac{df}{dx}=\frac{1}{nx}f-\frac{1}{nx^2}\int_{0}^{x}f(k)dk ;~ n\in \mathbb{R}$.
I'm not sure if I made any mistakes, but that's not the point. How could I solve an equation like that?
$$\dfrac{df}{dx}=\dfrac{f}{nx}-\frac{1}{nx^2}\int_{0}^{x}f(k)dk ;~ n\in \mathbb{R}$$ Note that: $$nx^2\frac {df}{dx}=xf-\int_0^xf(k)dk$$ $$n\frac {df}{dx}=\left ( \dfrac {\int_0^xf(k)dk}x \right )'$$ Integrate both sides.