I want to derive the Euler Equation for the following:
$$max \sum\limits_{t=0}^{T} = \beta^{t}U(C_t)$$
$$s.t. C_t+K_{t+1} \leq f(K_t) , t=0,1,2,...,T-1$$ $$-K_{T+1} \leq 0$$
I'm a bit confused about why the F.O.C. have that:
$$\frac{d\mathcal{L}}{dK_{t+1}}=-\lambda_t+\lambda_{t+1}f'(k_{t+1})$$
and how we combine the F.O.C to yield the Euler equation:
$$U'(C_t)= \beta U'(C_{t+1})f'(k_{t+1})$$
I assume the F.O.C w.r.t. $K_{t+1}$ is such because of the inclusion of the intensive form of the production function but I am not exactly sure how and I really want to understand this completely. I also need to make sure I understand how we are using the FOC to produce the Euler Equation. Can anyone provide a bit of clarity?