which one of these equations represents a quadrtic function

y=3x+2
y=3x^3 +2
y=3x
y=3x^2+2

y=3x^2+2