For a quadratic function f(x)=ax2+bx+c, if the graph of y=f(x) has its vertex at (3,−5) and passes through the point (1,3), what is the value of a?
2
1
-1
-2