\r\n" );
document.write( "\r\n" );
document.write( "Given three lines, there are 4 circles which are tangent to all\r\n" );
document.write( "three lines. There are three excircles and one inscribed circle\r\n" );
document.write( "inside the triangle. Here they are:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "You only want the little red circle in the triangle, not the\r\n" );
document.write( "3 excircles. However, we can't tell which of the four is the\r\n" );
document.write( "inscribed circle. So we have to find them all.\r\n" );
document.write( "\r\n" );
document.write( "Let the center of the circle be (h,k), and the radius r. Then the\r\n" );
document.write( "equation of the circle is (x-h)² + (y-k)² = r²\r\n" );
document.write( "\r\n" );
document.write( "We use the formula for perpendicular distance d \r\n" );
document.write( "\r\n" );
document.write( "from the point whose coordinates are (x1,y1)\r\n" );
document.write( "\r\n" );
document.write( "to the line whose equation is \r\n" );
document.write( "\r\n" );
document.write( "Ax + By + C = 0 \r\n" );
document.write( "\r\n" );
document.write( "That is given by this formula:\r\n" );
document.write( "\r\n" );
document.write( "d =
\r\n" );
document.write( "\r\n" );
document.write( "The perpendicular distances from the center to the three lines\r\n" );
document.write( "are all equal, since they are all three radii.\r\n" );
document.write( "\r\n" );
document.write( "So we find all three distances from the center (h,k) to the \r\n" );
document.write( "three lines and we have:\r\n" );
document.write( "\r\n" );
document.write( "We get 0 on the right side of the equations of the \r\n" );
document.write( "three lines\r\n" );
document.write( "\r\n" );
document.write( "3x+y=5, x-3y=1, and x+3y=-7 \r\n" );
document.write( "\r\n" );
document.write( "3x+y-5=0, x-3y-1=0, x+3y+7=0\r\n" );
document.write( "\r\n" );
document.write( "Substituting in the formula above\r\n" );
document.write( "\r\n" );
document.write( "r =
=
=
\r\n" );
document.write( "\r\n" );
document.write( "r =
=
=
\r\n" );
document.write( "\r\n" );
document.write( "So we have this system of equations:\r\n" );
document.write( "\r\n" );
document.write( "
=
\r\n" );
document.write( "
=
\r\n" );
document.write( "\r\n" );
document.write( "We multiply them both by √10 \r\n" );
document.write( "\r\n" );
document.write( "|3h + k - 5| = |h - 3k - 1|\r\n" );
document.write( "|h - 3k - 1| = |h + 3k + 7|\r\n" );
document.write( "\r\n" );
document.write( "There are four solutions to this system. Here are the four systems\r\n" );
document.write( "\r\n" );
document.write( "
,
,
,
\r\n" );
document.write( "\r\n" );
document.write( "Those simplify to\r\n" );
document.write( "\r\n" );
document.write( "
,
,
,
\r\n" );
document.write( "\r\n" );
document.write( "Their solutions are\r\n" );
document.write( "\r\n" );
document.write( "(
,-4/3), (-3,
), (
,
), (-3,-9)\r\n" );
document.write( "\r\n" );
document.write( "To find the radii, we substitute each of those in:\r\n" );
document.write( "\r\n" );
document.write( "r =
\r\n" );
document.write( "\r\n" );
document.write( "I'll just find the radius of the small red circle since that's\r\n" );
document.write( "the only one you were asked to find.\r\n" );
document.write( "\r\n" );
document.write( "It is the circle with the center (
,
).\r\n" );
document.write( " \r\n" );
document.write( "r =
\r\n" );
document.write( "\r\n" );
document.write( "r =
\r\n" );
document.write( "\r\n" );
document.write( "Multiply top and bottom by 6\r\n" );
document.write( "\r\n" );
document.write( "r =
\r\n" );
document.write( "\r\n" );
document.write( "r =
\r\n" );
document.write( "\r\n" );
document.write( "r =
\r\n" );
document.write( "\r\n" );
document.write( "r² =
\r\n" );
document.write( "\r\n" );
document.write( "r² =
\r\n" );
document.write( "\r\n" );
document.write( "Substituting in \r\n" );
document.write( "\r\n" );
document.write( "(x-h)² + (y-k)² = r²\r\n" );
document.write( "\r\n" );
document.write( "(x-
)² + (y-(
))² =
\r\n" );
document.write( "\r\n" );
document.write( "(x-
)² + (y+
)² =
\r\n" );
document.write( "\r\n" );
document.write( "Or you can multiply that out and simplify it in general form\r\n" );
document.write( "and get:\r\n" );
document.write( "\r\n" );
document.write( "360x² + 360y² - 600x + 960y + 361 = 0\r\n" );
document.write( "\r\n" );
document.write( "It doesn't come out very nice but it's correct.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( "