1 Linear functions

Any function of the form y = f ( x ) = a x + b where a and b are constants is called a linear function. The constant a is called the coefficient of x , and b is referred to as the constant term.

Key Point 6

All linear functions can be written in the form:

f ( x ) = a x + b

where a and b are constants.

For example, f ( x ) = 3 x + 2 , g ( x ) = 1 2 x 7 , h ( x ) = 3 x + 2 3 and k ( x ) = 2 x are all linear functions.

The graph of a linear function is always a straight line. Such a graph can be plotted by finding just two distinct points and joining these with a straight line.

Example 10

Plot the graph of the linear function y = f ( x ) = 4 x + 3 .

Solution

We start by finding two points. For example if we choose x = 0 , then y = f ( 0 ) = 3 , i.e. the first point has coordinates ( 0 , 3 ) . Secondly, suppose we choose x = 5 , then y = f ( 5 ) = 23 . The second point is ( 5 , 23 ) . These two points are then plotted and then joined by a straight line as shown in the following diagram.

No alt text was set. Please request alt text from the person who provided you with this resource.

Example 11

Plot graphs of the three linear functions y = 4 x 3 , y = 4 x , and y = 4 x + 5 , for 2 x 2 .

Solution

For each function it is necessary to find two points on the line.

For y = 4 x 3 , suppose for the first point we choose x = 0 , so that y = 3 . For the second point, let x = 2 so that y = 5 . So, the points ( 0 , 3 ) and ( 2 , 5 ) can be plotted and joined. This is shown in the following diagram.

No alt text was set. Please request alt text from the person who provided you with this resource.

For y = 4 x we find the points ( 0 , 0 ) and ( 2 , 8 ) . Similarly for y = 4 x + 5 we find points ( 0 , 5 ) and ( 2 , 13 ) . The corresponding lines are also shown in the figure.

Task!

Refer to Example 11. Comment upon the effect of changing the value of the constant term of the linear function.

As the constant term is varied, the line moves up or down the page always remaining parallel to its initial position.

The value of the constant term is also known as the vertical or y -axis intercept because this is the value of y where the line cuts the y axis.

Task!

State the vertical intercept of each of the following lines:

  1. y = 3 x + 3 ,
  2. y = 1 2 x 1 3 ,
  3. y = 1 3 x ,
  4. y = 5 x .

In each case you need to identify the constant term:

  1. 3,
  2. 1 3 ,
  3. 1,
  4. 0
Example 12

Plot graphs of the lines y = 3 x + 3 , y = 5 x + 3 and y = 2 x + 3 .

Solution

Note that all three lines have the same constant term, that is 3. So all three lines pass through ( 0 , 3 ) , the vertical intercept. A further point has been calculated for each of the lines and their graphs are shown in the following diagram.

No alt text was set. Please request alt text from the person who provided you with this resource.

Note from the graphs in Example 12 that as the coefficient of x is changed the gradient of the graph changes. The coefficient of x gives the gradient or slope of the line. In general, for the line y = a x + b a positive value of a produces a graph which slopes upwards from left to right. A negative value of a produces a graph which slopes downwards from left to right. If a is zero the line is horizontal, that is its gradient is zero. These properties are summarised in the next figure.

Figure 24 :

{ The gradient of a line $y=ax+b$ depends upon the value of $a$.}

Key Point 7

Linear Equation

In the linear function f ( x ) = a x + b , a is the gradient and b is the vertical intercept.

Task!

State the gradients of the following lines:

  1. y = 7 x + 2
  2. y = 1 3 x + 4
  3. y = x + 2 3

In each case the coefficient of x must be examined:

  1. 7,
  2. 1 3 ,
  3. 1 3
Task!

Which of the following lines has the steepest gradient ?

  1. y = 17 x + 4 5 ,
  2. y = 9 x 2 ,
  3. y = 1 3 x + 4 .

(b) because the three gradients are

  1. 17 5   
  2. 9  
  3. 1 3
Exercises
  1. State the general form of the equation of a straight line explaining the role of each of the terms in your answer.
  2. State which of the following functions will have straight line graphs.

    (a) f ( x ) = 3 x 3 , (b) f ( x ) = x 1 2 , (c) f ( x ) = 1 x , (d) f ( x ) = 13 , (e) f ( x ) = 2 x .

  3. For each of the following, identify the gradient and vertical intercept.
    1. f ( x ) = 2 x + 1 ,
    2. f ( x ) = 3 ,
    3. f ( x ) = 2 x ,
    4. f ( x ) = 7 17 x ,
    5. f ( x ) = m x + c .
  1. e.g. y = a x + b . x is the independent variable, y is the dependent variable, a is the gradient and b is the vertical intercept.

  2. (a), (d) and (e) will have straight line graphs.

    1. gradient = 2, vertical intercept =1,
    2. 0 , 3 ,
    3. 2 , 0 ,
    4. 17 , 7 ,
    5. m , c .