document.write( "Question 1181250: Given triangle OAB with vertices O(0, 0), A(5, 2), and B(a, b), let AP and BQ be the perpendiculars dropped from A and B to their opposite sides of triangle OAB ( a not equal to 0, b not equal to 0). Find the constants a and b when the orthocenter of triangle OAB is H(3, 1). \r
\n" ); document.write( "\n" ); document.write( "P.S. Please show full solution, ty.
\n" ); document.write( "

Algebra.Com's Answer #811167 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "The orthocenter of a triangle is the point of intersection of the three altitudes of the triangle. The problem will be solved making repeated use of the equations of perpendicular lines.

\n" ); document.write( "We have O(0,0) and A(5,2), so the equation of the line containing side OA is y=(2/5)x.

\n" ); document.write( "Altitude BQ passes through P(3,1) and is perpendicular to OA, which has slope 2/5; so the line containing altitude BQ has slope -5/2. Algebra shows BQ is contained in the line y=(-5/2)x+17/2.

\n" ); document.write( "Altitude AP passes through A(5,2) and H(3,1); easy algebra shows AP is contained in the line y=(1/2)x-1/2, which has slope 1/2.

\n" ); document.write( "Side OB passes through (0,0) and is perpendicular to AP, so its slope is -2; the equation of side OB is then y=-2x.

\n" ); document.write( "Point B is the intersection of altitude BQ and side OB:

\n" ); document.write( "\"-2x+=+%28-5%2F2%29x%2B17%2F2\"
\n" ); document.write( "\"%281%2F2%29x+=+17%2F2\"
\n" ); document.write( "\"x+=+17\"

\n" ); document.write( "\"y+=+-2x+=+-2%2817%29=-34\"

\n" ); document.write( "ANSWER: B(17,-34)

\n" ); document.write( "To confirm our method and our calculations, we can show that the altitude from O to side AB gives an equation for the line containing side AB that gives us the same coordinates for B.

\n" ); document.write( "The slope of the altitude from O is 1/3, so the slope of AB is -3.
\n" ); document.write( "AB with a slope of -3 and passing through A(5,2) gives the equation y=-3x+17 for the line containing side AB.
\n" ); document.write( "Substitution verifies that (17,-34) is on that line.

\n" ); document.write( "
\n" ); document.write( "
\n" );