One of the $x$-intercepts of the function $f(x)=ax^2-3x+1$ is at $x=-1$. Determine $a$ and the other $x$-intercept.
I happen to know that $a=-4$ and the other $x$-intercept is at $x=\frac{1}{4}$ but I don't know how to get there. I tried substituting $x=-1$ into the quadratic formula.
$$ -1=\frac{-(-3) \pm \sqrt{(-3)^2-4a}}{2a} $$
Solving for $a$ I managed to come up with $a=-\frac {5}{2}$ by some convoluted process but obviously that doesn't work.
How do I properly solve for $a$, taking into account the known root of $x$?
One approach is given in comment by Winther, here is another,
$ax^2+bx+c=0$ has two roots $r_1$ and $r_2$ then $$r_1+r_2=\frac{-b}{a}$$ and $$r_1r_2=\frac{c}{a}$$