Does a in y=ax^2+bx+c have to be positive?

no, it can be any real number.