Graphs of Linear Functions
Functions can be represented by graphs. When graphed, linear functions become straight lines, with their direction and position determined by the slope and y-intercept.
Characteristics of the Graph
The graph of a linear function is a straight line, with its direction and position determined by the slope and y-intercept . Understanding slope and y-intercept will enable you to draw graphs of linear functions freely.
Slope and Y-intercept
The slope , as its name suggests, represents how steep the line is and corresponds to in . The y-intercept represents the y-coordinate of the point where the line intersects the y-axis and corresponds to in .
It's quickest to understand these by seeing and manipulating them, so use the graph below to change each value and see how the shape of the graph changes. This will help you understand instantly.
Did you understand? Changing the slope alters the steepness of the graph, with a positive slope resulting in an upward-sloping line and a negative slope resulting in a downward-sloping line . The y-intercept represents the y-coordinate of the intersection point with the y-axis, so changing the y-intercept moves the graph up or down .
Also, when the slope is 2, the graph becomes parallel to the gray line . In other words, graphs with the same slope are parallel to each other .
- The graph of a linear function is a straight line .
- The direction and position of the line are determined by the slope and y-intercept .
- The slope represents how steep the line is and corresponds to in . A positive slope results in an upward-sloping line, while a negative slope results in a downward-sloping line.
- The y-intercept represents the y-coordinate of the intersection point with the y-axis and corresponds to in .
Slope and Rate of Change
Let's consider the slope in more depth. Have you seen the road sign on the right? This sign indicates a steep gradient, where 10% means the road rises 10m for every 100m traveled horizontally.
What Does a Slope of 2 Mean?
The example in the sign showed a 10% (0.1) gradient, but let's consider what a slope of 2 means.
For example, let's say we have a linear function with a slope of 2 and a y-intercept of 2, as shown in the graph below. This linear function intersects the y-axis at point because the y-intercept is 2, and passes through point because when . Since , increases by 2 times the increase in . This 2 times comes from the slope .
What happens when we increase by 10? What about when we increase it by 100? That's right. No matter how much we increase , always increases by 2 times .
In the case of a linear function, always increases at a constant rate relative to the increase in , and this rate is called the slope .
So... have you noticed? That's right. The rate of change and the slope refer to the same thing. And because the slope/rate of change is constant, the graph becomes a straight line.
Relationship Between the Domains of Two Variables
There may be restrictions on or in a linear function . In fact, in the real world, it's rare for variable values to be allowed without limit, isn't it?
For example, we drew a graph above to represent the relationship between temperature and the number of cold drinks sold . represents temperature, but is a value like (°C) possible? The hottest place on Earth is Death Valley in the United States, with a record high temperature of about 53.3°C in 2024. Or, while below freezing might be possible, if (°C), then (drinks), meaning the store would somehow be giving away drinks...
Since is determined by , when the domain of is set, the range of is also determined. Use the graph below to move the domain of (minimum and maximum values) and the slope, and see how the range of changes.
Finding the Equation of a Linear Function
So far, we've started with an equation and then drawn its graph or found its domain and range. Next, let's look at how to find the equation from a graph.
Reading from the Graph
Try to find the equation from the linear function graph below.
Since it's a linear function, we need to find and in . Also, remember that from the properties of a straight line, we can draw a line if we know the coordinates of two points.
First, if we can find the y-coordinate of the y-intercept (point A), we can directly find in , so we read the coordinates of the y-intercept. Next, we look for a point B on the line with integer coordinates and read its coordinates from the graph. Finally, we calculate the slope from the increase in and from point A to point B.
With this, we know the slope ( ) and y-intercept ( ), allowing us to find the linear function equation .
Finding from Conditions Other than Graphs
Look at the following problems:
is a linear function of where:
- The graph is a straight line passing through the point with a slope of .
- The rate of change is , and when .
- when , and increases by when increases by .
- The graph is a straight line passing through the point and parallel to the graph of .
- The graph is a straight line passing through two points and .
- when , and when .
As you can see, there are various patterns of problems where we need to find the equation of a linear function from information other than a graph, but essentially, we just need to find the slope and y-intercept in . In determining the equation of a linear function, the unknowns to be solved are and .
For problems 1-4, we can (almost) directly find either the slope or y-intercept , so there's only one unknown left. Therefore, we can solve for the remaining unknown by substituting the given and values to create one equation.
On the other hand, in problems 5 and 6, we can't directly know the slope and y-intercept . In this case, since there are two unknowns left, we can solve them using the simultaneous equations we learned in the previous unit. (If we can create as many equations as there are unknowns, we can find the solutions for all unknowns.)