text
stringlengths
0
66.2k
The slope of AD is m_AD = (d_y - r)/(d_x - r)
Equation of AD: y - r = m_AD (x - r)
Expressed as:
y = [(d_y - r)/(d_x - r)](x - r) + r
The distance from O₁(r -5,0) to this line must be5.
Using the distance formula:
| [(d_y - r)/(d_x - r)]( (r -5) - r ) - 0 + r | / sqrt( [ (d_y - r)/(d_x - r) ]² +1 ) =5
Simplify numerator:
[(d_y - r)/(d_x - r)](-5) + r = [ -5(d_y - r) + r(d_x - r) ] / (d_x - r )
Denominator:
sqrt( [ (d_y - r)^2 + (d_x - r)^2 ] / (d_x - r)^2 ) ) = sqrt( (d_x - r)^2 + (d_y - r)^2 ) / |d_x - r|
Thus, the distance is:
| [ -5(d_y - r) + r(d_x - r) ] / (d_x - r) | / [ sqrt( (d_x - r)^2 + (d_y - r)^2 ) / |d_x - r| ) ]
Simplify:
| -5(d_y - r) + r(d_x - r) | / sqrt( (d_x - r)^2 + (d_y - r)^2 ) =5
Similarly, the numerator is | r(d_x - r) -5(d_y - r) | = | r d_x - r² -5 d_y +5r |.
Denominator is sqrt( (d_x - r)^2 + (d_y - r)^2 ).
Let me denote numerator as N1 = | r d_x - r² -5 d_y +5r |,
Denominator D1 = sqrt( (d_x - r)^2 + (d_y - r)^2 )
Thus, N1 / D1 =5 → N1 =5 D1.
Similarly, compute the distance from O₂(0, r -6) to line AD and set it equal to6.
Following similar steps:
The distance from O₂(0, r -6) to AD:
Using the same line equation for AD,
distance = | [(d_y - r)/(d_x - r)](0 - r) - (r -6) + r | / sqrt( [ (d_y - r)/(d_x - r) ]² +1 )
Wait, let me recompute:
The line AD equation is y = m(x - r) + r, where m = (d_y - r)/(d_x - r).
The distance from point (0, r -6) to this line is:
|m*(0 - r) - (r -6) + r| / sqrt(m² +1 )
Wait, general formula for distance from (x0,y0) to line ax + by +c =0 is |ax0 + by0 +c| / sqrt(a² + b²). Let me rewrite the line AD in standard form.
Line AD: y = [(d_y - r)/(d_x - r)](x - r) + r
Bring all terms to left:
y - [(d_y - r)/(d_x - r)](x - r) - r =0
Multiply through by (d_x - r) to eliminate denominator:
(y)(d_x - r) - (d_y - r)(x - r) - r(d_x - r) =0
Expand:
y d_x - y r - d_y x + d_y r + r x - r² - r d_x + r² =0
Simplify terms:
- d_y x + y d_x + r x - y r + d_y r - r d_x =0
Hmm, this is getting complicated. Let me use the standard distance formula.
Alternatively, using the point-to-line distance formula:
For line AD: ax + by +c =0,
distance from (0, r-6) is |a*0 + b*(r -6) +c| / sqrt(a² + b²)
But I need the coefficients a, b, c of line AD.
Alternatively, let me use the earlier expression:
The distance is | [ m*(-r) - (r -6) + r ] | / sqrt(m² +1 )
Wait, let me use the point-slope form:
The line AD can be written as:
y = m(x - r) + r,
where m = (d_y - r)/(d_x - r)