Linear Functions and Their Graphs
Video Lesson
Ready to check your understanding?
Take the short multiple-choice test. If you need more help, review the written lesson and worked examples below.
You can pause, replay or use the written lesson below to review at any time.
Written Lesson
A linear function is a function whose graph is a straight line. Many linear functions are written in the form y = mx + c. In this form, m tells us the gradient, or steepness, of the line, and c tells us where the line crosses the y-axis. This point is called the y-intercept.
What you will learn
- Recognise a linear function
- Identify the general form y = mx + c
- Explain the meaning of m and c
- Identify c as the y-intercept
- Recognise horizontal, vertical, and sloping straight lines
- Make a table of values for a linear function
- Draw the graph of a linear function from a table of values
Key Vocabulary
| Term | Meaning |
|---|---|
| Linear function | A function whose graph is a straight line. |
| Gradient | The steepness of a line. In y = mx + c, the gradient is m. |
| y-intercept | The point where the graph crosses the y-axis. |
| c | In y = mx + c, c is the y-intercept. |
| Horizontal line | A line written in the form y = c. The value of y is constant. |
| Vertical line | A line written in the form x = k. The value of x is constant. |
Key Ideas
- A linear function has a straight-line graph.
- The general form of a linear function is y = mx + c.
- m is the gradient. It tells how steep the line is.
- c is the y-intercept. It tells where the line crosses the y-axis.
- The y-intercept occurs when x = 0.
- To draw a linear graph, make a table of values, plot the points, and join them with a straight line.
The Form y = mx + c
The common form of a linear function is:
y = mx + c
In this equation:
- m is the gradient.
- c is the y-intercept.
The y-intercept is the point where the line crosses the y-axis. At this point, the value of x is always 0. So the y-intercept is usually written as the point (0, c).
Important: In y = mx + c, the graph crosses the y-axis at (0, c).
Graph Showing c as the y-intercept
In the graph above, the equation is y = x + 2. This matches the form y = mx + c, where:
- m = 1, so the gradient is 1.
- c = 2, so the y-intercept is 2.
- The graph crosses the y-axis at (0, 2).
Finding c from an Equation
To find c, look for the constant term in the equation y = mx + c.
| Equation | Gradient m | y-intercept c | Point where graph crosses y-axis |
|---|---|---|---|
| y = 2x + 3 | 2 | 3 | (0, 3) |
| y = -x + 4 | -1 | 4 | (0, 4) |
| y = 5x - 6 | 5 | -6 | (0, -6) |
| y = x | 1 | 0 | (0, 0) |
Types of Straight Lines
| Type of Line | Form | Example | Description |
|---|---|---|---|
| Sloping line | y = mx + c | y = 2x - 6 | The line rises or falls as x changes. |
| Horizontal line | y = c | y = 4 | The value of y is always the same. |
| Vertical line | x = k | x = 3 | The value of x is always the same. |
Important: A vertical line such as x = 3 is a straight line, but it is not a function of x because one input has many outputs.
Diagrams of Different Straight Lines
How to Draw a Linear Function
To draw the graph of a linear function, use a table of values.
- Choose some values of x.
- Substitute each value of x into the equation.
- Find the matching values of y.
- Write the results as ordered pairs (x, y).
- Plot the points on a coordinate grid.
- Join the points with a straight line.
Worked Examples
Example 1: Identify m and c in y = 3x + 5.
- Compare y = 3x + 5 with y = mx + c.
- The coefficient of x is 3, so m = 3.
- The constant term is 5, so c = 5.
- The graph crosses the y-axis at (0, 5).
Answer: m = 3, c = 5, and the y-intercept is (0, 5).
Example 2: Make a table of values for y = 2x - 6 when x = 0, 1, 3.
| x | Substitution | y | Ordered Pair |
|---|---|---|---|
| 0 | y = 2(0) - 6 | -6 | (0, -6) |
| 1 | y = 2(1) - 6 | -4 | (1, -4) |
| 3 | y = 2(3) - 6 | 0 | (3, 0) |
Answer: The points are (0, -6), (1, -4), and (3, 0).
Example 3: State the y-intercept of y = 2x - 6.
- The equation is in the form y = mx + c.
- In y = 2x - 6, the value of c is -6.
- So the graph crosses the y-axis at (0, -6).
Answer: The y-intercept is (0, -6).
Example 4: What kind of line is y = 4?
- There is no x term.
- This means y is always 4.
- The graph is a horizontal line crossing the y-axis at (0, 4).
Answer: y = 4 is a horizontal line.
Example 5: What kind of line is x = 3?
- The equation says that x is always 3.
- The graph is a vertical line through x = 3.
- This line is not a function of x because one input has many outputs.
Answer: x = 3 is a vertical line.
Recognising Linear and Non-Linear Functions
| Equation | Linear? | Reason |
|---|---|---|
| y = 3x + 1 | Yes | It is in the form y = mx + c. |
| y = -2x + 5 | Yes | It has only the first power of x. |
| y = x² + 1 | No | It contains x², so the graph is not a straight line. |
| y = 4 | Yes | It is a horizontal straight line. |
| x = 3 | Straight line, but not a function of x | It is vertical and fails the vertical line test. |
Common Mistakes
- Mistake 1: Thinking c is the x-intercept. It is not. c is the y-intercept.
- Mistake 2: Forgetting that the y-intercept occurs when x = 0.
- Mistake 3: Thinking y = 4 is a vertical line. It is horizontal because y stays the same.
- Mistake 4: Thinking x = 3 is a horizontal line. It is vertical because x stays the same.
- Mistake 5: Plotting points incorrectly by reversing x and y.
- Mistake 6: Joining points with a curve instead of a straight line.
Multiple Choice Questions
1. In y = mx + c, what does c represent?
- The gradient
- The x-intercept
- The y-intercept
- The highest point
Answer: C. c is the y-intercept.
2. What is the y-intercept of y = 4x - 7?
- 4
- -7
- 7
- 0
Answer: B. The y-intercept is -7, so the graph crosses the y-axis at (0, -7).
3. Which equation has a y-intercept of 5?
- y = 5x + 1
- y = 2x + 5
- y = x - 5
- x = 5
Answer: B. In y = 2x + 5, c = 5.
4. What type of line is y = -2?
- Vertical line
- Horizontal line
- Curved line
- No graph
Answer: B. y = -2 is horizontal because y is always -2.
Practice Questions
- Write the general form of a linear function.
- In y = mx + c, what does m represent?
- In y = mx + c, what does c represent?
- State the gradient and y-intercept of y = 4x - 7.
- State the y-intercept of y = 2x + 3.
- Make a table of values for y = x + 2 when x = 0, 1, 2.
- What type of line is x = 3?
- What type of line is y = -2?
- State whether y = x² + 3 is linear or non-linear.
- Explain how to draw the graph of a linear function from a table of values.
Answers
- y = mx + c
- m represents the gradient.
- c represents the y-intercept.
- Gradient = 4, y-intercept = -7. The graph crosses the y-axis at (0, -7).
- The y-intercept is 3. The graph crosses the y-axis at (0, 3).
-
Ordered pairs: (0, 2), (1, 3), (2, 4).x 0 1 2 y = x + 2 2 3 4 - x = 3 is a vertical line.
- y = -2 is a horizontal line.
- y = x² + 3 is non-linear because it contains x².
- Choose values of x, calculate the matching y-values, plot the ordered pairs, and join the points with a straight line.
Lesson Summary
- A linear function has a straight-line graph.
- The general form of a linear function is y = mx + c.
- m is the gradient.
- c is the y-intercept.
- The y-intercept occurs where the graph crosses the y-axis.
- The y-intercept has coordinates (0, c).
- y = c is a horizontal line.
- x = k is a vertical line.
- A vertical line is not a function of x.
- To draw a linear graph, make a table of values, plot the points, and join them with a straight line.
Finished reviewing the lesson?
Take the multiple-choice test to check your understanding and complete this lesson.
What would you like to do next?
Try the first lesson of another course, or unlock every lesson for US$49 for one full year.