Examples on how to find the equations of lines given their graphs. Examples and exercises are presented along with their detailed solutions and answers.
These following are reviews of formulas for slopes and equations of lines and are therefore used to solve the examples below.
Example 1 Graph of line with points
Find the equation of the line whose graph is shown below and write it in slope intercept form.
Solution to Example 1
Let use two points (2,2) and (3,4) from the graph to find the slope m of the line whose graph is shown above
m=4−23−2=2
We know at least a point and the slope, the equation of the line in point slope form is given by
y−2=2(x−2)
In point slope form the equation is written as
y=2x−2
Example 2 Graph of line given run and rise
Find the equation of the line whose graph, including the rise and run, is shown below.
Solution to Example 2
The slope of the line whose graph is shown above is given by
m=riserun=ΔyΔx=22=1
The y intercept is the point (0,−3/2)
The equation of the line in slope intercept form is given by
y=x−3/2
Example 3 Graph of line given run and fall
Find the equation, in slope intercept form, of the line whose graph, including the fall and run, is shown below.
Solution to Example 3
The slope of the line whose graph is shown above is given by
m=fallrun=ΔyΔx=−4.53=−1.5
Given a point (1,−5) and the slope of the line, we use the point slope form of the equation of the line
y−(−5)=−1.5(x−1)
In slope intercept form, the equation of the above graph is written as
y=−1.5x−3.5
Example 4 Graph of horizontal line
Find the equation of the horizontal line whose graph is shown below.
Solution to Example 4
The equation of the horizontal line through the point (0,−3) is given by
y=−3
Example 5 Graph of vertical line
Find the equation of the vertical line whose graph is shown below.
Solution to Example 5
The equation of the vertical line through the point (2,0) is given by
x=2
Example 6 Graph of perpendicular line
Find the slope intercept form of the equation of line L2 that is perpendicular to line L1 as shown below.
Solution to Example 6
We need to find the slope m2 of line L2 which is perpendicular to line L1 with slope m1 given by
m1=2−02−(−4)=13
L1 and L2 are perpendicular and therefore
m1⋅m2=−1
Solve the above for m2
m2=−1/m1=−1/(1/3)=−3
The equation of line L1 in point slope form is given by
y−0=−3(x−(−4))
and in slope intercept form is given by
y=−3x−12
Find the equations of the lines L1, L2, L3 and L4 such that L2 is parallel to L1, L3 is perpendicular to L1 and L4 is a horizontal line.
Answers to the Above Exercises