linear quadratic method for RBC(Economics)