Factor ax^2+a