Linear functions and their graphs

A function of the form

f(x)=ax+b\boxed{f(x)=a x+b}

is called a linear function. The letters aa and bb are fixed numbers and are called coefficients. Here are some examples

Linear functions are quite simple. The input is multiplied by the number aa, and then the number bb is added. If the input is squared, or the root of the input is taken, or it is divided by the input then these functions are not linear. So, all these functions are not linear:

But sometimes we can simplify the function equation and get a linear function:

Finding the xx-intercepts, yy-intercepts and intersection points of linear functions is straight forward.

Exercise 1

Consider the functions f(x)=2x+1f(x)=2x+1 and g(x)=6x4g(x)=6x-4. Determine the xx- and yy- intercepts of ff, and the point of intersection between the graphs of ff and gg.

Solution

yy-intercept: y=f(0)=20+1=1y=f(0)=2\cdot 0+1=\underline{1} xx-intercept: Find xx with

f(x)=02x+1=02x=1x=12\begin{array}{lll} f(x) &=& 0\\ 2x+1 &=& 0\\ 2x &=& -1\\ x &=& \underline{-\frac{1}{2}} \end{array}

intersection point: Find xx with

f(x)=g(x)2x+1=6x45=4xx=1.25\begin{array}{lll} f(x) &=& g(x)\\ 2x+1 &=& 6x-4\\ 5 &=& 4x\\ x &=& 1.25 \end{array}

To find the yy-coordinate, we can use ff or gg. We take ff:

y=f(1.25)=21.25+1=3.5y=f(1.25)=2\cdot 1.25+1 = 3.5

Thus, the point of intersection has the coordinates P(1.253.5)\underline{P(1.25\vert 3.5)}.

The graph of a linear function is a straight line

It is also straight forward to find the graph of a linear function using the table of values. It is always a straight line:

Exercise 2

Use a table of values to determine the graph of the functions f(x)=2x+3f(x)=2x+3 and g(x)=0.5x1g(x)=0.5x-1. Draw the graphs into the same coordinate system.

Solutionxy=2x+321110315\begin{array}{r|l} x & y=2x+3\\\hline -2 &-1\\ -1 & 1\\ 0 & 3\\ 1 & 5\\ \end{array}xy=0.5x12211.50110.52030.5\begin{array}{r|l} x & y=0.5x-1\\\hline -2 &-2\\ -1 & -1.5\\ 0 & -1\\ 1 & -0.5\\ 2 & 0\\ 3 & 0.5\\ \end{array}

In the exercise above we have seen that the graph was a straight line. Indeed, this is true for every linear function:

Theorem 1

The graph of a linear function is a straight line.

Now, it is clear that the straight line will look different depending on the exact coefficients aa and bb. But how exactly? This is explained in the next section.