There are two circles that go through the coordinates (1,3) and (2,4) and are tangent to the y-axis. Let $a$ and $b$ be the radius of those circles, what is the value of $a\cdot b$?
My approach:
The question already tells that there are only two circles that attend to these demands. I made a system of 2 equations using the circle equations:
$(x-x_0)^2+(y-y_0)^2=r^2$
Putting those coordinates from the question, it becomes a system:
$(1-x_0)^2+(3-y_0)^2=r^2$
$(2-x_0)^2+(4-y_0)^2=r^2$
Resolving this system by computating the squares and subtracting one from another, I get:
$x_0+y_0=5$
But this gives all the origins that go through those coordinates including the ones that pass through the y-axis. I would like to know if the approach is correct, or else what am I missing.
By trial and error, I could find that those 2 circles are centered at $(1,4)$ and $(5,0)$, which give the respective radius of $1$ and $5$, thus the answer is $a\cdot b = 5$. However, is there another method of solving this?
You've set this up correctly, but you haven't used the fact that the circle is tangent to the $y$-axis. When the circle is tangent to the $y$-axis, the left-most or right-most point of the circle will be on the $y$-axis. In other words, $(0,y_0)$ must be a point on the circle. Putting this together with what you already have, you get:
\begin{align} (1-x_0)^2+(3-y_0)^2&=r^2\\ (2-x_0)^2+(4-y_0)^2&=r^2\\ (0-x_0)^2+(y_0-y_0)^2&=r^2. \end{align}
Expanding everything, we get \begin{align} 1-2x_0+x_0^2+9-6y_0+y_0^2&=r^2\\ 4-4x_0+x_0^2+16-8y_0+y_0^2&=r^2\\ x_0^2&=r^2 \end{align}
Substituting the third equation into the first two gives \begin{align} 1-2x_0+x_0^2+9-6y_0+y_0^2&=x_0^2\\ 4-4x_0+x_0^2+16-8y_0+y_0^2&=x_0^2 \end{align}
Simplifying, we get \begin{align} 1-2x_0+9-6y_0+y_0^2&=0\\ 4-4x_0+16-8y_0+y_0^2&=0 \end{align}
Solving each equation for $x_0$ we get, \begin{align} \frac{1}{2}(1+9-6y_0+y_0^2)&=x_0\\ \frac{1}{4}(4+16-8y_0+y_0^2)&=x_0 \end{align}
Since both equations equal each $x_0$, the LHSs are equal to each other and we get $$ \frac{1}{2}(1+9-6y_0+y_0^2)=\frac{1}{4}(4+16-8y_0+y_0^2). $$ Can you take it from here?