A linear function is a function that can be written in the form:
\(y=ax+b, a \ne 0\)
We can represent linear functions in three different forms of linear equations:
Each of these three forms gives us different useful information about the graph of a linear function, such as its slope, intercepts, etc.
The graph of a linear function is a straight line, representing the linear relationship between the independent and dependent variables.
The slope of a line is a value (often represented as \(m\)) that measures the steepness and direction of a line.
Generally, the slope of a line is defined as:
\(m=\frac{change \ in \ y}{change \ in \ x}\),
also known colloquially as \(m=\frac{rise}{run}\), where rise is the distance between the ycoordinates of two points on the line and run is the distance between the xcoordinates of the same two points.
(Image: http://plaza.ufl.edu/youngdj/slopes/training2.htm)
Note: even though the word "rise" is commonly used, the numerator of the slope can also be a negative value!
We can use the following formula to calculate the slope of a line, given two points \((x_1,y_1)\) and \((x_2,y_2)\) located on the line:
\(m=\frac{y_2y_1}{x_2x_1}\)
There are several ways we can graph linear functions, depending on what information about a function is given. We take a look at some of the techniques we can use below, including:
In the case where we are given two points on the line instead of its equation, we can follow two steps to sketch the function:
Solution:
1. We first plot the points \(A(2,1)\) and \(B(4,3)\) on the xyplane:

2. Finally, we draw the line that goes through or connects both the points: 
Recall that we have an xintercept/yintercept at the point where a line intersects the xaxis/yaxis. This means that an xintercept will have a ycoordinate equaling 0: \((x,0)\). Likewise, a yintercept will have an xcoordinate equaling 0: \((0,y)\).
When we are given the equation of a line in standard form: \(Ax+By=C\), we can substitute in \(x=0\) and \(y=0\) and find the xintercept and yintercept respectively, giving us two points we can use to graph the rest of the line. Then, we can use the same steps from the previous section "Using two points", to graph the line.
Solution:
1. We first find the xintercept of the line by setting y equals to 0, then solve for x:
\(4x+2(0)=8\)
\(\Rightarrow 4x=8\)
\(\Rightarrow\)\(\ x=2\)
So, the xintercept of the line is at the point \((2,0)\).
2. Then, we find the yintercept of the line by setting x equals to 0, then solve for y:
\(4(0)+2y=8\)
\(\Rightarrow 2y=8\)
\(\Rightarrow\)\(\ y=4\)
So, the yintercept of the line is at the point \((0,4)\).
3. We plot both intercepts on the xyplane: 
2. Finally, we draw the line that goes through both the points: 
When we are given the equation of a line in point slope form: \(yy_0=m(xx_0)\), we can extract information about a point located on the line and the slope of the line. Specifically, we can use the following steps:
Solution:
1. We can extract information about a point and the slope of this line, giving us the point \((5,2)\) and the slope \(m=\frac{2}{3}\).
2. From the slope \(m=\frac{2}{3}\), we know we have \(rise=2\) and \(run=3\). So, to find another point on the line, we can either:
Note: Both of the points we found are on the line we are sketching.
3. Next, we plot the point from the equation and the point we found in step 2 on the xyplane: 
Alternative Step 3: We can first plot the point \((5,2)\), then use the "rise/run" technique to find the second point directly from the graph (move 2 units down and 3 units right or 2 units up and 3 units left). 
4. Finally, we draw the line that goes through or connects both the points:
In the slopeintercept form of a linear equation: \(y=mx+b\):
Once we identify these two pieces of information from the equation, we can use the same steps from the previous section 'Using a point and the slope' to graph the line.
Solution:
1. From the equation, we can determine that the slope of the line is \(m=3\) and the yintercept is at \((0,2)\).
2. From the slope \(m=3=\frac{3}{1}\), we know we have \(rise=3\) and \(run=1\). So, to find another point on the line, we add \(3\) to the ycoordinate of \((0,2)\) and add \(1\) to the xcoordinate of \((0,2)\) to get the point \((1,5)\)
3. Plot the yintercept and the point we found in the previous step on the xyplane:
4. Finally, we draw the line that goes through both the points: