Basics of Linear Functions

What exactly is a function, how do linear functions differ from other functions, and what are the characteristics of linear functions?


What is a Function?

For example, let's say we have data on the number of cold drinks sold and the temperature for a certain store from June 1st to 11th. What kind of relationship might exist between the temperature and the number of sales?

Example) Number of cold drinks sold and temperature

Linear Function Table

If we plot this data on a graph with the vertical axis representing the number of sales and the horizontal axis representing the temperature, we can see that as the temperature rises, the number of sales also increases. If we could collect more detailed data, the number of points would increase. Try moving the blue slider on the graph below to the right to increase the number of points.

As we increase the number of points infinitely, we can see that they form a straight line. This straight line formed by connecting these infinite points represents the relationship between temperature and the number of sales.

When we denote the temperature as xx and the number of sales as yy , this relationship can be expressed mathematically as y=5x+10y = 5x + 10 . By doing this, we can represent a relationship where the number of sales yy is determined when the temperature xx is set.

An equation that represents a relationship where the value of one variable is determined when the value of another variable is set is called a function .

What is a Linear Function?

Definition

When we express a function represented by a straight line like the one above in a general form, it becomes:

y=ax+by = ax + b

(where aa and bb are constants). This type of function is called a linear function .

The term "linear" means that the degree of xx is 1. Functions where the degree of xx is 2 are called quadratic functions, and those where the degree of xx is 3 are called cubic functions.

Move the slider on the graph below to see the shapes of the graphs when xx is to the first, second, and third power. This will help you understand why we distinguish functions by their degree. The difference in shape means that the nature of the relationship between xx and yy is also different, so we give them different names to make them easier to distinguish.

Rate of Change

Let's consider a linear function y=2x+1y=2x+1 . If we express the relationship between xx and yy in a table, it would look like this:

Linear Function Table

From this table, we can see that yy changes twice as much as xx . The rate of change represents how much yy changes in relation to the increase or decrease in xx , and it's calculated by dividing the increase in yy by the increase in xx . In this table, yy increases by 2 when xx increases by 1, so the rate of change is 2.

RateofChange=IncreaseinyIncreaseinxRate of Change = \frac{Increase in y}{Increase in x}

At this stage, you might not be able to imagine how the rate of change is used. When we draw the graph of a linear function later, you'll see how the rate of change is used, so don't worry and let's move on.

  • A linear function is generally expressed in the form y=ax+by = ax + b . ( aa and bb are constants)
  • The rate of change represents how much yy changes in relation to the increase in xx , and it's calculated by dividing the increase in yy by the increase in xx .