Example: Finding equation of line passing through two given points
Hi Aidan - do you remember the general equation of a straight line y = mx + c ?
m = gradient (slope) of line c = y intercept
EXAMPLE:
If a straight line has gradient 3 and cuts the Y axis at -4 then equation of this line is:
y = 3x - 4
Your question doesn't give the slope of the line nor the y intercept so we have to use another form of the general equation of a straight line: y - y1 = m(x - x1) where m = gradient = rise/run and (x1, y1) are
co-ordinates of a point line passes through ( you can choose either point)
EXAMPLE:
If a straight line passes through points (2,-1) and (-2,7) then equation of line is given by:
y - y1 = m(x - x1) where (x1,y1) = (2,-1) and m = rise/run (height of step/width of step)
Therefore m = (y2 - y1)/(x2 - x1)
= (7 - -1)/(-2 - 2)
= 8/-4
= -2
We know x1 = 2 and y1 = -1
Substituting values of m = -2, x1 = 2 and y1 = -1 into general equation gives:
y - -1 = -2(x - 2)
y + 1 = -2x + 4
y = -2x + 3
To prove that we are correct we can substitute co-ordinates of second point (-2,7) into equation and show that LHS = RHS
7 = -2(-2) + 3
7 = 4 + 3
7 = 7
So y = -2x + 3 is the equation of the straight line
Note using y = mx + c this line intersects the Y axis at 3
Hope this example helps you to answer two parts of your question:
1) Gradient of straight line 2) Equation of straight line
Log in tomorrow for examples to help you work out the other parts of the question.
trying to find the slope, mid point, equation, distance, parallel equation, and perpendicular equation of points (-1,4) and (1,8)