{{ 'ml-label-loading-course' | message }}
{{ toc.name }}
{{ toc.signature }}
{{ tocHeader }} {{ 'ml-btn-view-details' | message }}
{{ tocSubheader }}
{{ 'ml-toc-proceed-mlc' | message }}
{{ 'ml-toc-proceed-tbs' | message }}
Lesson
Exercises
Recommended
Tests
An error ocurred, try again later!
Chapter {{ article.chapter.number }}
{{ article.number }}. 

{{ article.displayTitle }}

{{ article.intro.summary }}
Show less Show more expand_more
{{ ability.description }} {{ ability.displayTitle }}
Lesson Settings & Tools
{{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }}
{{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }}
{{ 'ml-lesson-time-estimation' | message }}
This lesson explores linear functions by reviewing concepts such as slope and functions. Following that will be a discussion about the classification of variables. Additionally, real-world problems will be solved to provide a comprehensive understanding of such functions.

Catch-Up and Review

Here are a few recommended readings before getting started with this lesson.

Challenge

Using Linear Functions to Analyze Computer Temperatures

Vincenzo and Magdalena are two friends eager to explore the world of gaming and programming. They are developing their own mobile game by coding and testing together. As part of their development process, they are monitoring the temperature of their computers. The diagram shows how the temperature of each changes over time.

a Find and interpret the slopes and the intercepts of the lines.
b For each graph, write a linear function that relates to
Discussion

Linear Function

A linear function is a function with a constant rate of change. A linear function can be represented by a linear equation in two variables. Graphically, a linear function is a nonvertical line.

Using that line, the rate of change can be determined by finding the horizontal change and the vertical change between any two points on the line. Any function whose graph is not a straight line cannot be linear.
Discussion

Nonlinear Function

A nonlinear function is a function that does not have a constant rate of change. In other words, a nonlinear function is a function whose graph is not a straight line. Instead, the graph may take the form of any curve other than a straight line.
The functions above are all examples of nonlinear functions since their rate of change vary.
Example

Randomly Placed Characters in The Game

Vincenzo and Magdalena have planned for two characters in their upcoming mobile game. When the game begins, these characters will be positioned at random points within the game environment. Let the points where these characters are located be and
Graph that locates points M and N on a coordinate plane
Is every line that passes through points and necessarily a linear function?

Hint

What is the condition for being a function? What happens if the coordinates of and are the same.

Solution

Recall that a function is a relation in which each input is assigned to exactly one output. Now, consider the case where and have the same coordinate, for example
In such a case, when the input is set to there will be two separate outputs, namely and This contradicts the definition of a function. Therefore, a line that passes through points with the same coordinate is not a function.
A function whose graphs passes through M and N
However, if the points have different coordinates, there is always a function through those points.
Pop Quiz

Identifying Functions From Graphs

Analyze the given graph and determine whether it represents a function. If it is a function then determine if it is a linear function or a nonlinear function.

random relations
Discussion

Numerical Data

Numerical data, also called quantitative data, is measurable data expressed using numbers. Some examples of numerical data are age, height, and weight of a person. Consider the following personal information.

Person Age Weight Shoe Size Number of Siblings Eye Color
Dejen Blue
Madge Green
Yulia Brown

A person's age, weight, shoe size, and number of siblings are examples of numerical data. In contrast, a person's eye color cannot be expressed in numbers and is an example of categorical data. Additionally, numerical data can be either discrete data that can only take specific values or continuous data that can take any value within an interval.

Data Numerical? Type
Age Yes Continous
Weight Yes Continous
Shoe Size Yes Discrete
Number of Siblings Yes Discrete
Eye Color No Non-applicable
Discussion

Continuous Quantity

A quantity that can take any value within a given interval is a continuous quantity. Such quantities not limited to specific, separate values, and they can be measured very precisely. Length, time, temperature, weight, and age are examples of continuous quantities.
Each point on the number line corresponds to a specific age, and the line itself represents the possible ages. A person's age can be any real number, depending on the precision of the measurement. For example, using whole years, this person was years old. However, with more precise measurements, their age could be expressed as years, years and months, and even years and days.
Discussion

Discrete Quantity

A discrete quantity is a quantity that can only take distinct, separate values in an interval. There are no values between these distinct values. The number of students in a class, the number of tickets for a concert, and the number of goals scored in a soccer match are examples of discrete quantities. These values are countable and typically represented by integers or whole numbers.
Note that the value of the quantity can only be specific amounts such as or as buying a fraction of the ticket is not an option. Although discrete quantities are often restricted to whole numbers, there are exceptions. Depending on the context, discrete quantities can take values from a set like
Example

Identifying Variables in Game Development

In the process of developing their mobile game, Vincenzo and Magdalena find it necessary to analyze certain numerical data related to user interactions within the game. After some brainstorming, they identify several variables for consideration.
Classify these variables as either continuous or discrete.

Hint

A continuous quantity can take any value in a certain interval. A discrete quantity can only take distinct values, so there is a gap between possible values.

Solution

To determine if a variable is continuous or discrete, check if there is a gap between possible values. Analyze each given variable separately to reach an answer.

Variable

The number of levels is typically counted in whole numbers. It cannot take a real number value, so it is discrete.

Variable

The time it takes for a player to complete a level can be any real number. Time can be measured with high precision, including fractions of seconds. Therefore, is continuous.

Variable

A player's score can typically take whole numbers. Scores are limited to whole numbers, so it is discrete.

Variable

The speed at which the character moves can be measured on a continuous scale. That is, it can take any real value, including fractions. Therefore, is continuous.

Summary

In conclusion, discrete variables take on distinct values, often whole numbers. Continuous variables, on the other hand, can take any value within a given interval.

Variable Can it take all values in a certain interval? Type
No Discrete
Yes Continuous
No Discrete
Yes Continuous
Discussion

Continuous Domain

A function is said to have a continuous domain when the independent variable of the function is a continuous quantity. The graph of such a function is typically a curve or a line. Consider the graph of the function, which shows the relationship between a person's age and weight.

The domain of this function consist of all real numbers from to indicating that the function has a continuous domain.
Discussion

Discrete Domain

A function is said to have a discrete domain when the independent variable of the function is a discrete quantity. A function of this type can be identified by its graph, which is composed of any number of unconnected points. Consider the function that models the costs of concert tickets, specifically for and tickets.

The domain of this function is the set of integers from to indicating that the function has a discrete domain.
Example

Modeling In-Game Spending with Linear Functions

Vincenzo and Magdalena are continuing the development of their own mobile game. In their game, players start with virtual coins and spend coins per day on in-game activities.

a Write a function to represent the amount of coins a player has left days after starting the game.
b Make a table to find the remaining number of coins for a player after and days from starting the game.
c Graph the function. Does the function have a continuous domain or a discrete domain?

Answer

a Function:
b Table:
Days, Number of coins,
c Graph:

The function have a discrete domain.

Hint

a The number of coins a player has can be expressed as a linear function. Use the slope-intercept form to write the function.
b Substitute the number of days into the function from Part A.
c Draw a coordinate plane where the horizontal axis represents the number of days and the vertical axis represents the remaining number of coins.

Solution

a Recall that a player starts with coins and they can spend coins each day. This refers to a decrease at a constant rate. Therefore, the number of coins a player has can be expressed as a linear function of the number of days the game has been played The slope-intercept form can be used to write that function.
In this form, is the slope and is the intercept. In this case, the initial amount of virtual coins is so The spending rate is coins per day, so the slope is because the coins are decreasing. Therefore, the linear function is as follows.
b Make a table of values for the function written in Part A.
Days Number of Coins

How about finding the remaining number of coins for a player after and days from starting the game? Try substituting the values of days into the formula and evaluate.

Days Number of Coins

Great work so far!

c The function can be graphed using the table created in Part B.
Days Number of Coins

Plot the ordered pairs on a coordinate plane where the axis represents the number of days and the axis represents the remaining number of coins.

Since the function has a discrete domain, the points are not connected with a straight line. There are missing points in this graph. When other points are included, the graph of the function will be as follows.

Example

Modeling Battery Consumption with Linear Functions

As part of their development process, Vincenzo and Magdalena monitor the battery power consumption of a test laptop.

The table shows the percentage, in decimal form, of battery power remaining hours after the laptop is turned on.

Hours,
Power Remaining,
a Write and graph a linear function in point-slope form that relates the percentage of power remaining to the number of hours
b Interpret the slope, intercept, and intercept in this context.
c After how many hours is the battery power at

Answer

a Function:

Graph:

b See solution.
c hours

Hint

a First, use the given points to calculate the slope. Then, identify the intercept.
b Recall the meaning of and in the context of the problem.
c Use the function obtained in Part A.

Solution

a Take a look at the given table. It is asked to write a linear function that relates to in point-slope form.
Hours,
Power Remaining,
Recall that functions written in point-slope form follow a specific format.
In this form, is the slope and is a point on the line. Start by identifying the slope using two points from the given table. Substitute, for example, the points and into the slope formula and calculate
Simplify right-hand side
The slope of the line is Considering the given table, the function passes through the point Now that the slope and a point is known, the function can be written.
Finally, plot the given points on a coordinate plane and draw a line that passes through them. The graph of the function is a solid line because the function has a continuous domain.
b Using the graph drawn in Part A, the slope and intercepts of the line can be determined. The line intersects the axis at while it intersects the axis at because each unit on the axis is in length. To confirm it, substitute for in the equation of the line and solve the equation for
Solve for
The line does, in fact, intersect the axis at
As found in Part A and shown on the above graph, the slope of the line is It is negative because the power remaining decreases in time.
Therefore, the slope indicates that the power decreases by per hour. Note that the intercept is
The intercept indicates that the battery power is at when the laptop is turned on. The intercept is It indicates that the battery lasts hours, which can also be rewritten as follows.
Rewrite
The battery lasts hours and minutes.
c The function rule can be used to find the number of hours it will take to get percent of battery power.
Since the variable represents the power remaining in decimal form, must be written as a decimal first.
Now substitute into the function and solve it for
Solve for
Therefore, after hours the battery power will be at percent.
Closure

Making Conclusions About Two Linear Functions

Finally, the challenge presented at the beginning of the lesson will be solved. In the challenge, Vincenzo and Magdalena are monitoring the temperatures of their computers which tend to increase while running applications.

It is helpful to answer the questions by recalling the concepts and rules presented throughout the lesson.

a Find and interpret the intercept and the slope of each line.
b For each graph, write a linear function that relates to

Answer

a Table:
Vincenzo's Computer Magdalena's Computer
intercept
The initial temperature of the computer is The initial temperature of the computer is
Slope
Its temperature increases by per hour. Its temperature increases by per hour.
b Vincenzo's Computer:
Magdalena's Computer:

Hint

a Identify the point where each line intersect the axis. For each line, identify two points on the line and substitute them into the Slope Formula to find its slope.
b Use the slope-intercept form to write the functions.

Solution

a The intercept of a line is the value where the line crosses the axis.

The intercept of the blue line is and the intercept of the red line is Note that the axis represents the temperature in Celsius degrees. Since the time is zero at those points, the intercepts represent the initial temperatures of the computers.

Vincenzo's Computer Magdalena's Computer
intercept
The initial temperature of the computer is The initial temperature of the computer is
Now the slope of each line will be found. The Slope Formula can be used to find the slopes.
It is necessary to determine one more point on each line in order to use the formula.

The blue line passes through the points and while the red line passes through the points and Substitute these points into the Slope Formula.

Blue Line Red Line
Points and and
Evaluate

In this context, the slope of the functions indicate how quickly the temperature of a computer rises within an hour.

Vincenzo's Computer Magdalena's Computer
Slope
Its temperature increases by per hour. Its temperature increases by per hour.

Magdalena's computer temperature increases faster than Vincenzo's when both are running the applications. Note also that both functions have continuous domains as the inputs can take any value.

b The slope and the intercept of the lines are found in Part A.
Blue Line Red Line
intercept
Slope
Using these values, the equation of each line can be written in slope-intercept form.
In this form, is the slope and is the intercept.
Blue Line Red Line
intercept
Slope
Equation

The blue line corresponds to Vincenzo's computer temperature, whereas the red line corresponds to Magdalena's computer temperature.

Loading content