I would like to solve the following equation, wrt $n(e)$
$$f(n(e))=g(n(e)) + \int_{\alpha}^{e} w(n(x))dx $$
The integral there it confuses me.
Any suggestion on how I can implement this on a the computer (I am mostly Matlab user)
thanks
UPDATE
or simplicity assume the integral is between some values $e_1$ and $e_2$ although in general can also be thought as an indefinite integral. Again for simplicity, assume:
$$f(n)=\frac{1}{1-n} \; \rm{and} \;\; g(n) = \frac{n^2}{1-n^3}$$
I picked those function randomly, just for exposition, if it helps i can post the ones i really have but are rather complicated expressions. In the code, i have those
c= @(n) (1+rtax)*k0+wtax*e*n-(1+grate)*k;
labor= @(n) n - ((1-eta)*c(n))/eta*wtax*e
where everything is known apart from n.
while the $$ w(n) = (1-\eta) \left[c^\eta (1-n)^{(1-\eta)}\right]^{-\mu} \left[\frac{en}{L} - \frac{a}{k}\right]$$
assume everything is known apart from $n$, and $c$ is defined as in the code.
PS : This is a first order condition from a stochastic maximization, and consider e as a particular value in specific state of the world, so n depends on e, implicitly and cannot be taken out of the integral.