Question
Question: How do you write an equation of a line given point \(\left( -4,-2 \right)\) and \(\left( 4,0 \right)...
How do you write an equation of a line given point (−4,−2) and (4,0)?
Solution
To write an equation of a line passing through the given points first we need to find the slope of the line by using the formula x2−x1y2−y1. Then by using the general equation formula of line (y−y2)=(x2−x1y2−y1)(x−x2) we will get the desired answer.
Complete step by step answer:
We have been given the points (−4,−2) and (4,0).
We have to write the equation of a line passing through the given points.
Now, we know that the slope of a line passing through the points (x1,y1) and (x2,y2) is given by the formula x2−x1y2−y1.
Now, we have x1=−4,y1=−2,x2=4,y2=0
Now, substituting the values in the formula we will get
⇒4−(−4)0−(−2)
Now, simplifying the above obtained equation we will get
⇒4+40+2⇒82⇒41
Now, we know that the equation of the line passing through the given points is given by (y−y2)=(x2−x1y2−y1)(x−x2).
Substituting the values we will get
⇒(y−0)=41(x−4)
Now, simplifying the above obtained equation we will get
⇒y=41x−1
Hence above is the required equation of the line.
Note: The equation of slope-intercept form of the line is given as y=mx+c, where m is the slope of the line and c is the y-intercept of the line. Alternatively we can use the formula x−x1y−y1=x1−x2y1−y2 to find the equation of a line passing through the points (x1,y1) and (x2,y2) without finding the slope of the line.