Before revision: We develop a simple and general method that transforms (non-linear) PDEs to ODEs .
After revision: We overcome a major obstacle in mathematical optimization. In so doing, we provide a smooth solution to the HJB PDE without assuming the differentiability of the value function .