The equation of the line passing through points (0,1) and (2,2) will be y = ( 1 / 2) x + 1
What is an equation of the line?
An equation of the line is defined as a linear equation having a degree of one. The equation of the line contains two variables x and y. And the third parameter is the slope of the line which represents the elevation of the line.
The general form of the equation of the line:-
y = mx + c
m = slope
c = y-intercept
Slope = ( y₂ - y₁ ) / ( x₂ - x₁ )
Slope= 2-1 / 2-0 = 1 /2
Now pick one of the points and put in for y and x use (2,2).
2= 1/2(2) +b
2=1 + b
2-1 =1-1 +b subtract 1 from each side
1 = b This is your y-intercept
The equation will be written as:-
y = ( 1 / 2) x + 1