已知A=ax^2+x-1,B=3x^2-2x+1(a为常数).