Question 163807
<pre><font size = 4 color = "indigo"><b>
Let's graph the line:

{{{drawing(400,400, -5,5,-5,5, graph(400,400,-5,5,-5,5,(-7/24)x-1/2) )}}}
 
We can draw two possible circles that touch that line and also the two
axes, a great big one and a tiny one: 

{{{drawing(400,400, -5,5,-5,5, graph(400,400,-5,5,-5,5,(-7/24)x-1/2),
circle(-2,-2,2), circle(-3/14,-3/14,3/14) )}}}

So we expect two solutions, both in quadrant 3.  

Let the radius of the circle be r, In either case the circle's center
will then be (-r,-r). 

If any circle with radius r in quadrant 3 touches both axes then 
the points (-r,0) and (0,-r) are the points where the
circle touches the axes, and the circle has center (-r,-r), and 
thus the equation of the circle is

{{{(x+r)^2 + (y+r)^2=r^2}}}

This can be seen by drawing in these two radii,
since they are also the coordinates of the center (-r,-r)
(I'll just do it with the big circle.):

{{{drawing(400,400, -5,5,-5,5, graph(400,400,-5,5,-5,5,(-7/24)x-1/2),
circle(-2,-2,2), circle(-3/14,-3/14,3/14), line(-2,0,-2,-2),line(-2,-2,0,-2),locate(-3.5,-2,"(-r,-r)") )}}}

Now if we draw a third radius touching the line:

{{{drawing(400,400, -5,5,-5,5, graph(400,400,-5,5,-5,5,(-7/24)x-1/2),
circle(-2,-2,2), circle(-3/14,-3/14,3/14), line(-2,0,-2,-2),line(-2,-2,0,-2),line(-1.44,-.08,-2,-2),locate(-3.5,-2,"(-r,-r)") )}}}

We know that the distance from a point 
{{{matrix(1,5, "(", x[0],  ",", y[0],  ")")}}} to a
line {{{Ax+By+C=0}}} is found by this equation:

{{{d=(abs(Ax[0]+By[0]+C))/sqrt(A^2+B^2)}}}

So the distance from the line {{{7x +24y +12 = 0}}}

to the center (-r,-r) must also be equal to the radius r,
of the circle

So substituting 

{{{d=(abs(Ax[0]+By[0]+C))/sqrt(A^2+B^2)}}}
{{{r=(abs(7(-r)+24(-r)+12))/sqrt(7^2+24^2)}}}
{{{r=(abs(-7r-24r+12))/sqrt(49+576)}}}
{{{r=(abs(-31r+12))/sqrt(625)}}}
{{{r=(abs(-31r+12))/25}}}

Squaring both sides

{{{r^2=(-31r+12)^2/625}}}

{{{625r^2=(-31r+12)^2}}}
{{{625r^2=(-31r+12)(-31r+12)}}}
{{{625r^2=961r^2-744r+144}}}
{{{0=336r^2-744r+144}}}
{{{336r^2-744r+144=0}}}
Dividing through by 24
{{{14r^2-31r+6}}}
{{{(r-2)(14r-3)=0}}}
{{{matrix(3,3,    r-2=0 ,  "," , 14r-3=0 , r=2 , "," ,  14r=3 , " ", " ", r=3/14)}}}   

So the big circle has radius 2 and its equation becomes

{{{(x-r)^2+(y-r)^2=r^2}}}
{{{(x-2)^2+(y-2)^2=2^2}}}
{{{(x-2)^2+(y-2)^2=4}}}

And the little circle has radius 3/14 and its equation becomes

{{{(x-r)^2+(y-r)^2=r^2}}}
{{{(x-3/14)^2+(y-3/14)^2=(3/14)^2}}}
{{{(x-3/14)^2+(y-3/14)^2=9/196}}}

--------------------------

2." what is the equation of the circle who passes 
through the points (1,4),(7,5),(1,8)?"

Use the general equation of a circle:

{{{x^2+y^2+Dx+Ey+F=0}}}

Substitute the point (x,y) = (1,4)

{{{(1)^2+(4)^2+D(1)+E(4)+F=0}}}
{{{1+16+D+4E+F=0}}}
{{{17+D+4E+F=0}}}
{{{D+4E+F=-17}}}

Substitute the point (x,y) = (7,5)

{{{(7)^2+(5)^2+D(7)+E(5)+F=0}}}
{{{49+25+7D+5E+F=0}}}
{{{74+7D+5E+F=0}}}
{{{7D+5E+F=-74}}}

Substitute the point (x,y) = (1,8)

{{{(1)^2+(8)^2+D(1)+E(8)+F=0}}}
{{{1+64+D+8E+F=0}}}
{{{65+D+8E+F=0}}}
{{{D+8E+F=-65}}}

Now we have a system of three equations in three
unknowns:

{{{system(D+4E+F=-17,7D+5E+F=-74,D+8E+F=-65)}}}

This has solution:

{{{matrix(1,5, D=-15/2 , "," , E=-12, "," , F=77/2)}}}

So the equation of the circle:

{{{x^2+y^2+Dx+Ey+F=0}}} becomes

{{{x^2+y^2-(15/2)x+(-12)y+(77/2)=0}}}

Multiplying through by 2:

{{{2x^2+2y^2-15x-24y+77=0}}}

-----------------------------------

3."what is the equation of the circle who has its centre 
on the line {{{x + y = 1 }}}and passes through the origin 
and the point (4,2)?"

We'll draw the line and mark the point (4,2):

{{{drawing(400,400,-2,10,-9,3, graph(400,400,-2,10,-9,3,1-x),
locate(4,2.5,"(4,2)") )}}}  

Now since the circle must go through (0,0) and (4,2),
the line segment joining these two points must be a 
chord of the circle.  So we'll draw it.

{{{drawing(400,400,-2,10,-9,3, graph(400,400,-2,10,-9,3,1-x),
locate(4,2.5,"(4,2)"),
line(0,0,4,2) )}}} 

Now the perpendicular bisector of a chord must pass through
the center of the circle, so let's get the equation of the
perpendicular bisector of that chord from (0,0) to (4,2).

First we need its slope.  So we find the slope of the chord,
take its reciprocal with the opposite sign.

Slope of the chord:

{{{m=(y[2]-y[1])/(x[2]-y[1])}}}
{{{m=(2-0)/(4-0)}}}
{{{m=2/4}}}
{{{m=1/2}}}

So the slope of its perpendicular bisector is {{{-2/1}}} or {{{-2}}}.

The perpendicular bisector must also go through the midpoint of
the chord, so we use the midpoint formula:

{{{M=(matrix(1,3    ,  (x[1]+x[2])/2 , "," , (y[1]+y[2])/2   ))}}}

{{{M=(matrix(1,3    ,  (0+4)/2 , "," , (0+2)/2   ))}}}

{{{M=(matrix(1,3    ,  2 , "," , 1   ))}}}

So we find the equation of the perpendicular bisector of the
chord.  It has slope = m = {{{-2}}} and it goes through (2,1).
So we use the point-slope formula:

{{{y-y[1]=m(x-x[1])}}}

{{{y-1=-2(x-2)}}}
{{{y-1=-2x+4}}}
{{{y=-2x+5}}}

So we'll draw this perpendicular bisector of the chord:

{{{drawing(400,400,-2,10,-9,3, graph(400,400,-2,10,-9,3,1-x),
locate(4,2.5,"(4,2)"),
line(0,0,4,2), graph(400,400,-2,10,-9,3,-2x+5))}}} 

Where they intersect must be the center of the required
circle, so we solve the system of their equations:

{{{system(x+y=1,y=-2x+5)}}}

Solving that system we get (x,y) = (4,-3).

So the center of the circle is (4,-3).

{{{drawing(400,400,-2,10,-9,3, graph(400,400,-2,10,-9,3,1-x),
locate(4,2.5,"(4,2)"), locate(4.3,-3,"(4,-3)"),
line(0,0,4,2), graph(400,400,-2,10,-9,3,-2x+5) )}}} 

and we can sketch in the circle:

{{{drawing(400,400,-2,10,-9,3, graph(400,400,-2,10,-9,3,1-x),
locate(4,2.5,"(4,2)"), locate(4.3,-3,"(4,-3)"),
line(0,0,4,2), graph(400,400,-2,10,-9,3,-2x+5), circle(4,-3,5) )}}}

We have its center (4,-3).
Now we must find its radius, which is the
distance from the center (4,-3) to the point (4,2).

{{{drawing(400,400,-2,10,-9,3, graph(400,400,-2,10,-9,3,1-x),
locate(4,2.5,"(4,2)"),line(4,-3,4,2),
line(0,0,4,2), graph(400,400,-2,10,-9,3,-2x+5), circle(4,-3,5) )}}} 


Using the distance formula:

{{{d=sqrt((x[2]-x[1])^2+(y[2]-y[1])^2)}}}

{{{d=sqrt((4-4)^2+(2-(-3))^2)}}}

{{{d=sqrt((0)^2+(2+3))^2)}}}
{{{d=sqrt(0+5^2)}}}
{{{d=sqrt(25)}}}
{{{d=5}}}

So the radius is 5 and the center is (4,-3),
so the equation is

{{{(x-h)^2+(y-k)^2=r^2}}}
{{{(x-4)^2+(y-(-3))^2=(5)^2}}}
{{{(x-4)^2+(y+3)^2=25}}}

Edwin</pre>