Answer on Question #53016 – Math – Analytic Geometry
Find the distance between the lines x + 2 y = 6 x + 2y = 6 x + 2 y = 6 and 2 x + 4 y = − 9 2x + 4y = -9 2 x + 4 y = − 9 .
Solution
Method 1
Lines x + 2 y = 6 x + 2y = 6 x + 2 y = 6 and 2 x + 4 y = − 9 2x + 4y = -9 2 x + 4 y = − 9 are parallel, because relation between coefficients of two lines
1 2 = 2 4 ≠ 6 − 9 \frac{1}{2} = \frac{2}{4} \neq \frac{6}{-9} 2 1 = 4 2 = − 9 6
holds true.
Rewrite equation of 2 x + 4 y = − 9 2x + 4y = -9 2 x + 4 y = − 9 in the following form: 2 x + 4 y + 9 = 0 2x + 4y + 9 = 0 2 x + 4 y + 9 = 0 , where a = 2 , b = 4 , c = 9 a = 2, b = 4, c = 9 a = 2 , b = 4 , c = 9 .
Take a point on the first line x + 2 y = 6 x + 2y = 6 x + 2 y = 6 , let's say (0,3). Using the formula for distance d d d from a point (0,3) to line 2 x + 4 y + 9 = 0 2x + 4y + 9 = 0 2 x + 4 y + 9 = 0 obtain
d = ∣ a x 0 + b y 0 + c ∣ a 2 + b 2 = ∣ 2 ⋅ 0 + 4 ⋅ 3 + 9 ∣ 2 2 + 4 2 = 21 20 = 21 20 20 = 21 5 10 ≈ 4.7. d = \frac{|ax_0 + by_0 + c|}{\sqrt{a^2 + b^2}} = \frac{|2 \cdot 0 + 4 \cdot 3 + 9|}{\sqrt{2^2 + 4^2}} = \frac{21}{\sqrt{20}} = \frac{21\sqrt{20}}{20} = \frac{21\sqrt{5}}{10} \approx 4.7. d = a 2 + b 2 ∣ a x 0 + b y 0 + c ∣ = 2 2 + 4 2 ∣2 ⋅ 0 + 4 ⋅ 3 + 9∣ = 20 21 = 20 21 20 = 10 21 5 ≈ 4.7. Method 2
The distance between two lines is defined to be the perpendicular distance between them. The slope of the above two lines is − 1 2 -\frac{1}{2} − 2 1 , and the perpendicular line has a slope of 2. The reason is the fact that the product of slopes for two perpendicular lines equals − 1 -1 − 1 .
Thus, perpendicular passing through both lines has an equation y = 2 x + c y = 2x + c y = 2 x + c .
Take a point on the first line x + 2 y = 6 x + 2y = 6 x + 2 y = 6 , let's say (0,3). From this point we can find coefficient c c c in a perpendicular line y = 2 x + c y = 2x + c y = 2 x + c passing thought this point
3 = 2 ∗ 0 + c 3 = 2 * 0 + c 3 = 2 ∗ 0 + c c = 3 c = 3 c = 3
Find the intersection point of perpendicular line y = 2 x + 3 y = 2x + 3 y = 2 x + 3 and line
2 x + 4 y = − 9 2x + 4y = -9 2 x + 4 y = − 9 { y = 2 x + 3 2 x + 4 y = − 9 \left\{ \begin{array}{l}
y = 2x + 3 \\
2x + 4y = -9
\end{array} \right. { y = 2 x + 3 2 x + 4 y = − 9 { y = 2 x + 3 2 x + 4 ( 2 x + 3 ) = − 9 { y = 2 x + 3 2 x + 8 x + 12 = − 9 { y = 2 x + 3 10 x = − 21 { y = 2 x + 3 x = − 2.1 { y = 7.2 x = − 2.1 \begin{array}{l}
\left\{
\begin{array}{c}
y = 2x + 3 \\
2x + 4(2x + 3) = -9
\end{array}
\right. \\
\left\{
\begin{array}{c}
y = 2x + 3 \\
2x + 8x + 12 = -9
\end{array}
\right. \\
\left\{
\begin{array}{l}
y = 2x + 3 \\
10x = -21
\end{array}
\right. \\
\left\{
\begin{array}{l}
y = 2x + 3 \\
x = -2.1
\end{array}
\right. \\
\left\{
\begin{array}{l}
y = 7.2 \\
x = -2.1
\end{array}
\right.
\end{array} { y = 2 x + 3 2 x + 4 ( 2 x + 3 ) = − 9 { y = 2 x + 3 2 x + 8 x + 12 = − 9 { y = 2 x + 3 10 x = − 21 { y = 2 x + 3 x = − 2.1 { y = 7.2 x = − 2.1
Now, we have two points on both lines ( (0,3) and (-2.1,7.2) ). Also both of them lie on the perpendicular line. We can use the formula for the distance between these points:
d = ( x 1 − x 2 ) 2 + ( y 1 − y 2 ) 2 d = \sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2} d = ( x 1 − x 2 ) 2 + ( y 1 − y 2 ) 2 d = ( 0 + 2.1 ) 2 + ( 3 − 7.2 ) 2 = 4.41 + 17.64 = 22.05 ≈ 4.7 d = \sqrt{(0 + 2.1)^2 + (3 - 7.2)^2} = \sqrt{4.41 + 17.64} = \sqrt{22.05} \approx 4.7 d = ( 0 + 2.1 ) 2 + ( 3 − 7.2 ) 2 = 4.41 + 17.64 = 22.05 ≈ 4.7 Method 3
We can also choose the other way to find distance between two parallel lines.
If equations of parallel lines are a x + b y + c = 0 ax + by + c = 0 a x + b y + c = 0 and a x + b y + c 1 = 0 ax + by + c_1 = 0 a x + b y + c 1 = 0 , then the perpendicular distance between them is given by
d = ∣ c − c 1 ∣ a 2 + b 2 d = \frac{|c - c_1|}{\sqrt{a^2 + b^2}} d = a 2 + b 2 ∣ c − c 1 ∣
First rewrite equations of two given lines so that coefficients of x x x and y y y are the same in equations of two lines. For given lines it can be done as
2 x + 4 y − 12 = 0 2x + 4y - 12 = 0 2 x + 4 y − 12 = 0 2 x + 4 y + 9 = 0 2x + 4y + 9 = 0 2 x + 4 y + 9 = 0
Then, using the formula given,
d = ∣ − 12 − 9 ∣ 2 2 + 4 2 = 21 20 = 21 20 20 ≈ 4.7 d = \frac{|-12 - 9|}{\sqrt{2^2 + 4^2}} = \frac{21}{\sqrt{20}} = \frac{21\sqrt{20}}{20} \approx 4.7 d = 2 2 + 4 2 ∣ − 12 − 9∣ = 20 21 = 20 21 20 ≈ 4.7
Answer: 4.7
www.AssignmentExpert.com