J(X_{t_0}, t_0, u) = \int_{t_0}^{T} L(X_t, u_t, t) dt + M(X_T, T)