Solve for a f(x)=ax^2