document.write( "Question 1205414: If the solutions for the two equations below are the same, find the maximum value of k, if:\r
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "\n" ); document.write( "Here are the two equations:
\n" ); document.write( "\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #842187 by Edwin McCravy(20060)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "\"system%28%28x%2B2%29%5E2%2B%28y-5%29%5E2=4%2C-4x%2By=k%29\"\r\n" );
document.write( "\"y=4x%2Bk\"\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "That's a circle with center (-2,5) and radius 2 intersecting a line with\r\n" );
document.write( "slope 4 and y-intercept k. So, k, the y-intercept of the line will be the\r\n" );
document.write( "largest when the line is as far to the left of the circle and still intersects\r\n" );
document.write( "the circle.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "That's when the line is tangent to the circle on the left side. That's also \r\n" );
document.write( "when the distance from the line to the center is the radius 2.\r\n" );
document.write( "\r\n" );
document.write( "We use the point-to-line distance formula:\r\n" );
document.write( "\r\n" );
document.write( "We get 0 on the right side of the line's equation:\r\n" );
document.write( "\r\n" );
document.write( "\"4x-y%2Bk=0\"\r\n" );
document.write( "\r\n" );
document.write( "Perpendicular distance from the point (x1,y1)\r\n" );
document.write( "to the line Ax+By+C=0 is\r\n" );
document.write( "\r\n" );
document.write( "\"d\"\"%22%22=%22%22\"\"abs%28Ax%5B1%5D%2BBy%5B1%5D%2BC%29%2Fsqrt%28A%5E2%2BB%5E2%29\"\r\n" );
document.write( "\r\n" );
document.write( "\"2\"\"%22%22=%22%22\"\"abs%284%28-2%29-5%2Bk%29%2Fsqrt%284%5E2%2B%28-1%29%5E2%29\"\r\n" );
document.write( "\r\n" );
document.write( "\"2\"\"%22%22=%22%22\"\"abs%28-8-5%2Bk%29%2Fsqrt%2816%2B1%29\"\r\n" );
document.write( "\r\n" );
document.write( "\"2\"\"%22%22=%22%22\"\"abs%28-13%2Bk%29%2Fsqrt%2817%29\"\r\n" );
document.write( "\r\n" );
document.write( "\"2sqrt%2817%29\"\"%22%22=%22%22\"\"abs%28-13%2Bk%29\"\r\n" );
document.write( "\r\n" );
document.write( "\"-13%2Bk\"\"%22%22=%22%22\"\"%22%22+%2B-+2sqrt%2817%29\"\r\n" );
document.write( "\"k\"\"%22%22=%22%22\"\"13+%2B-+2sqrt%2817%29\"\r\n" );
document.write( "We want k to be a maximum so we use the + sign.\r\n" );
document.write( "\r\n" );
document.write( "\"k\"\"%22%22=%22%22\"\"13+%2B+2sqrt%2817%29\" approximately 21.24621125.\r\n" );
document.write( "\r\n" );
document.write( "Oh darn, I just realized that x and y had to be integers. Instead of\r\n" );
document.write( "starting over it looks like the nearest integer x could be -4. So we have\r\n" );
document.write( "to move the line a tiny bit right.\r\n" );
document.write( "\r\n" );
document.write( "So, we plug -4 for x in the circle equation:\r\n" );
document.write( "\r\n" );
document.write( "\"%28-4%2B2%29%5E2%2B%28y-5%29%5E2=4\"\r\n" );
document.write( "\"%28-2%29%5E2%2B%28y-5%29%5E2=4\"\r\n" );
document.write( "\"4+%2B+%28y-5%29%5E2=4\"\r\n" );
document.write( "\"%28y-5%29%5E2=0\"\r\n" );
document.write( "\"y=5\"\r\n" );
document.write( "\r\n" );
document.write( "So (-4,5) is the nearest point to the point of tangency that\r\n" );
document.write( "has both coordinates integers.\r\n" );
document.write( "So the line y=4x+k should go through (-4,5), moving it a tiny\r\n" );
document.write( "bit right.\r\n" );
document.write( "\r\n" );
document.write( "\"y=4x%2Bk\"\r\n" );
document.write( "\"5=4%28-4%29%2Bk\"\r\n" );
document.write( "\"5=-16%2Bk\"\r\n" );
document.write( "\"21=k\"\r\n" );
document.write( "\r\n" );
document.write( "So the answer is 21.\r\n" );
document.write( " \r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );