Solveeit Logo

Question

Question: How do you find an equation of line containing the given pair of points \[\left( 2,4 \right)\] and \...

How do you find an equation of line containing the given pair of points (2,4)\left( 2,4 \right) and (6,6)\left( 6,6 \right)?

Explanation

Solution

In this problem, we have to find the equation of a line with given two points. We have two points in this problem, so we can use the two points form to find the equation of the line. We can also find the equation using the slope intercept form, by finding the slope using two points and substituting any one of the points in the equation to get a line equation.

Complete step by step solution:
We know that the two points form is,
yy1y2y1=xx1x2x1\dfrac{y-{{y}_{1}}}{{{y}_{2}}-{{y}_{1}}}=\dfrac{x-{{x}_{1}}}{{{x}_{2}}-{{x}_{1}}}
We know that the given two points are,
(x1,y1)\left( {{x}_{1}},{{y}_{1}} \right)=(2,4)\left( 2,4 \right) and (x2,y2)\left( {{x}_{2}},{{y}_{2}} \right)=(6,6)\left( 6,6 \right).
We can substitute the above points in the formula, we get
y464=x262\Rightarrow \dfrac{y-4}{6-4}=\dfrac{x-2}{6-2}
Now we can simplify the above step,
y42=x24\Rightarrow \dfrac{y-4}{2}=\dfrac{x-2}{4}
Now we can cross multiply the above step, we get

& \Rightarrow 4\left( y-4 \right)=2\left( x-2 \right) \\\ & \Rightarrow 4y-16=2x-4 \\\ & \Rightarrow 4y=2x+12 \\\ \end{aligned}$$ We can now divide the above step by 2 on both sides, we get $$\Rightarrow y=\dfrac{1}{2}x+3$$ Therefore, the required equation is $$y=\dfrac{1}{2}x+3$$. **Note:** We can also find the equation by using slope intercept form. We know that the slope intercept form of the line is, $$y=mx+c$$ ……. (1) Where, m is the slope and c is the y-intercept. We have two points, $$\left( {{x}_{1}},{{y}_{1}} \right)$$=$$\left( 2,4 \right)$$ and $$\left( {{x}_{2}},{{y}_{2}} \right)$$=$$\left( 6,6 \right)$$. Slope, m = $$\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}=\dfrac{6-4}{6-2}=\dfrac{1}{2}$$ . We can substitute in equation (1), we get $$y=\dfrac{1}{2}x+c$$ We can now substitute the x and y value from any of the two points to get the y-intercept. We can take the point $$\left( 2,4 \right)$$ $$\begin{aligned} & \Rightarrow 4=\dfrac{1}{2}\left( 2 \right)+c \\\ & \Rightarrow c=3 \\\ \end{aligned}$$ The y-intercept is 3 and the slope is $$\dfrac{1}{2}$$. Therefore, the required equation is $$y=\dfrac{1}{2}x+3$$.