Skip to Main Content

Math help from the Learning Centre

This guide provides useful resources for a wide variety of math topics. It is targeted at students enrolled in a math course or any other Centennial course that requires math knowledge and skills.

Definitions

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:

  • Standard form: \(Ax+By=C\)  or  \(Ax+By-C=0\), where \(A,B,C\) are integers
  • Slope-intercept form: \(y=mx+b\) 
  • Slope-point form: \(y-y_0=m(x-x_0)\) 

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.

File:Linear Function Graph.svg

Slope

The slope of a line is a value (often represented as \(m\)) that measures the steepness and direction of a line. 

  • If the slope is positive (\(m>0\)), the line increases going from left to right.
  • If the slope is negative (\(m<0\)), the line decreases going from left to right. 
  • If the slope is zero (\(m=0\)), the line is a horizontal 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 y-coordinates of two points on the line and run is the distance between the x-coordinates 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_2-y_1}{x_2-x_1}\)

Graphing Linear Functions

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:

  • Using two points
  • Using intercepts
  • Using a point and the slope
  • Slope-Intercept method

Using two points

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:

  1. Plot the two points on the xy-plane.
  2. Using a ruler or straight edge, sketch a line that goes through/connects the two points.
Example: Graph the line containing the points \(A(-2,-1)\) and \(B(4,3)\).

Solution:

1. We first plot the points \(A(-2,-1)\) and \(B(4,3)\) on the xy-plane:

2. Finally, we draw the line that goes through or connects both the points:

 

Drag the points \(P\) and \(Q\) and observe how the equation of the line changes. Note: The equation is in slope-intercept form.

Using intercepts

Recall that we have an x-intercept/y-intercept at the point where a line intersects the x-axis/y-axis. This means that an x-intercept will have a y-coordinate equaling 0: \((x,0)\). Likewise, a y-intercept will have an x-coordinate 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 x-intercept and y-intercept 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.

Example: Graph the line with the equation \(4x+2y=8\).

Solution:

1. We first find the x-intercept 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 x-intercept of the line is at the point \((2,0)\).

2. Then, we find the y-intercept 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 y-intercept of the line is at the point \((0,4)\).

3. We plot both intercepts on the xy-plane:

2. Finally, we draw the line that goes through both the points:

Change the sliders for \(a\) and \(b\) or drag the points \(P\) and \(Q\).

Using a point and the slope

When we are given the equation of a line in point slope form: \(y-y_0=m(x-x_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:

  1. Identify information about a point and the slope of the line from the equation: the slope equals \(m\), \((x_0,y_0)\) is a point on the line.
  2. Using the known point and the slope, determine another point on the line by using the "rise" and "run" values of the slope and the known point.
  3. Plot the two points on the xy-plane.
  4. Using a ruler or straight edge, sketch a line that goes through/connects the two points.
Example: Sketch the line with the equation \(y+2=\frac{-2}{3}(x-5)\).

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:

  • add \(-2\) to the y-coordinate of \((5,-2)\) and add \(3\) to the x-coordinate of \((5,-2)\) to get the point \((8,-4)\), or
  • subtract \(-2\) from the y-coordinate of \((5,-2)\) and subtract \(3\) to the x-coordinate of \((5,-2)\) to get the point \((2,0)\)

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 xy-plane:

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:

Use the slider to adjust the value of the slope, \(m\), and drag the point \(P\). Observe the changes in the line.

Slope-Intercept method

In the slope-intercept form of a linear equation: \(y=mx+b\):

  • \(m\) is the slope of the line, and
  • \(b\) is the y-coordinate of the y-intercept of the line, i.e. the y-intercept is at \((0,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. 

Example: Graph the line \(y=3x+2\).

Solution:

1. From the equation, we can determine that the slope of the line is \(m=3\) and the y-intercept 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 y-coordinate of \((0,2)\) and add \(1\) to the x-coordinate of \((0,2)\) to get the point \((1,5)\)

3. Plot the y-intercept and the point we found in the previous step on the xy-plane:

4. Finally, we draw the line that goes through both the points:

Adjust the sliders for \(b\) and \(m\) and see how it affects the graph.

chat loading...