Long, long ago, in a galaxy far, far away...., oops, wrong story ;-)
Once upon a time, there was a city that was surrounded by a circular wall. It had two entrances, one on the North end, and one on the south. Gary lived in a house that was three miles directly north of the north gate, and Thomas lived in a house 9 miles directly east of the south gate. They could barely see each other past the curve of the wall around the city. What is the radius of the wall?
Long ago, I had a final in a thermodynamics class. One particular problem on the exam ended up having a trick to it that I did not see, so I did it the hard way. If you saw the trick, it was fairly simple to do, but if not, it turned into a triple integral. I ended up solving it and getting the correct answer, but the professor marked it wrong because he couldn't figure out how I did it. I had to take him to the head of the math department and explain what I had done to him in order to get credit for the problem.
I have seen a lot of problems that I worked my tail off to solve and then someone says "why didn't you just do...." DOH. Hindsight is most always 20/20. I applaud you for getting it regardless of how. I am sure that now that you know there is another way, you will find it fairly easily. (BTW, I did it the hard way first ;-))
Consider the circular wall of the city and denote by
N: the north gate
S: the south gate
G: the house of Gary, 3 miles north of N
T: the house of Thomas, 9 miles east of S
Since they can barely see each other, the line GT connecting the houses must be a tangent to the circle (wall).
Let C be the point where this tangent GT touches the circle.
Then TC=TS=9. Let GC=x, and NS=d ( the diameter of the circle).
I will use the notation a^b to mean a to the power b.
From the orthogonal triangle GST we get GT^2 = GS^2 + ST^2 or
(9+x)^2 = (d+3)^2 + 9^2 (eq. 1).
Consider now the power of the point G with respect to the circle.
This gives GN*GS = GC^2 or 3*(d+3) = x^2, from which we get
d+3 = (x^2)/3. Substitute this into (eq. 1) to get:
(9+x)^2 = (x^4)/9 + 9^2.
After some trivial algebra we get x^4 - 9x^2 -9*18x = 0, and dividing by x we further get x^3 - 9x - 9*18 = 0.
This is a third degree equation with integer coefficients. If it happens to have an integer root, this root will be a divisor of the constant term 9*18.
So, with a calculator, we can start experimenting and we may be lucky! And indeed in this case x=6 is a root.
Now we can go back to 3*(d+3) = x^2 and easily find d = 9, and the radius of the wall will be 4.5 miles.
This is the line from your explanation that brought a dope slap to my forehead:
"Then TC=TS=9"
Using the (obvious once you see it) fact that the distance from Thomas' house to the tangent point is 9, I got an equivalent 3rd degree polynomial, which I would factor by guessing at the answer, then confirming that it is a root of the equation.
I just reread the problem and I would have gotten it with my approach, but I drew the initial picture wrong. Never going to get the right answer with the wrong picture...
I did fire up some log dormant neurons yesterday, though.