Sign In
| 15 Theory slides |
| 10 Exercises - Grade E - A |
| Each lesson is meant to take 1-2 classroom sessions |
Here are a few recommended readings before getting started with this lesson.
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 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.
What is the condition for being a function? What happens if the x-coordinates of M and N are the same.
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.
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 | 15 | 43.4 | 6 | 0 | Blue |
Madge | 16 | 56.7 | 7 | 3 | Green |
Yulia | 20 | 64.8 | 7.5 | 1 | 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 |
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.
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.
The number of levels is typically counted in whole numbers. It cannot take a real number value, so it is discrete.
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, T is continuous.
A player's score can typically take whole numbers. Scores are limited to whole numbers, so it is discrete.
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, V is continuous.
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 |
---|---|---|
L | No | Discrete |
T | Yes | Continuous |
S | No | Discrete |
V | Yes | Continuous |
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.
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 0, 1, 2, 3, and 4 tickets.
Vincenzo and Magdalena are continuing the development of their own mobile game. In their game, players start with 100 virtual coins and spend 5 coins per day on in-game activities.
Days, x | Number of coins, y |
---|---|
2 | 90 |
4 | 80 |
6 | 70 |
8 | 60 |
10 | 50 |
The function have a discrete domain.
Days x | -5x+100 | Number of Coins y |
---|---|---|
2 | ||
4 | ||
6 | ||
8 | ||
10 |
How about finding the remaining number of coins for a player after 2, 4, 6, 8, and 10 days from starting the game? Try substituting the values of days into the formula and evaluate.
Days x | -5x+100 | Number of Coins y |
---|---|---|
2 | -5(2)+100 | 90 |
4 | -5(4)+100 | 80 |
6 | -5(6)+100 | 70 |
8 | -5(8)+100 | 60 |
10 | -5(10)+100 | 50 |
Great work so far!
Days x | Number of Coins y |
---|---|
2 | 90 |
4 | 80 |
6 | 70 |
8 | 60 |
10 | 50 |
Plot the ordered pairs (x,y) on a coordinate plane where the x-axis represents the number of days and the y-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.
As part of their development process, Vincenzo and Magdalena monitor the battery power consumption of a test laptop.
The table shows the percentage, y in decimal form, of battery power remaining x hours after the laptop is turned on.
Hours, x | 0 | 2 | 3 |
---|---|---|---|
Power Remaining, y | 1.0 | 0.4 | 0.1 |
Graph:
Hours, x | 0 | 2 | 3 |
---|---|---|---|
Power Remaining, y | 1.0 | 0.4 | 0.1 |
y=0
Subtract term
LHS/(-0.3)=RHS/(-0.3)
ba=b⋅(-10)a⋅(-10)
Add fractions
Rewrite 3+31 as 331
Rearrange equation
Rewrite 331 h as 3 h+31 h
1 h=60 min
b1⋅a=ba
Calculate quotient
Rewrite 3 h+20 min as 3 h and 20 min
y=0.25
Subtract term
LHS/(-0.3)=RHS/(-0.3)
Calculate quotient
LHS+3=RHS+3
Rearrange equation
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.
Vincenzo's Computer | Magdalena's Computer | |
---|---|---|
y-intercept | 32 | 24 |
The initial temperature of the computer is 32∘C. | The initial temperature of the computer is 24∘C. | |
Slope | 6 | 8 |
Its temperature increases by 6∘C per hour. | Its temperature increases by 8∘C per hour. |
The y-intercept of the blue line is 32 and the y-intercept of the red line is 24. Note that the y-axis represents the temperature in Celsius degrees. Since the time is zero at those points, the y-intercepts represent the initial temperatures of the computers.
Vincenzo's Computer | Magdalena's Computer | |
---|---|---|
y-intercept | 32 | 24 |
The initial temperature of the computer is 32∘C. | The initial temperature of the computer is 24∘C. |
The blue line passes through the points (0,32) and (4,56), while the red line passes through the points (0,24) and (1,32). Substitute these points into the Slope Formula.
Blue Line | Red Line | |
---|---|---|
Points | (0,32) and (4,56) | (0,24) and (1,32) |
m=x2−x1y2−y1 | 4−056−32 | 1−032−24 |
Evaluate | 424=6 | 18=8 |
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 | 6 | 8 |
Its temperature increases by 6∘C per hour. | Its temperature increases by 8∘C 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.
Blue Line | Red Line | |
---|---|---|
y-intercept | 32 | 24 |
Slope | 6 | 8 |
Blue Line | Red Line | |
---|---|---|
y-intercept | 32 | 24 |
Slope | 6 | 8 |
Equation | y=6x+32 | y=8x+24 |
The blue line corresponds to Vincenzo's computer temperature, whereas the red line corresponds to Magdalena's computer temperature.
Tadeo is saving money for a vacation. He already has $300. He plans to save an additional $75 per month.
What is the graph of the function?
We are asked to write a linear function that represents Tadeo's savings y in dollars for any number of months x. We need to write it in slope-intercept form. y= mx+ b For an equation in this form, m is the slope and b is the y-intercept. We will find the slope and the y-intercept one at time. Let's start by recalling that the definition of the slope of a linear function can be written in terms of rise and run. m=rise/run In this case, his savings increase by $ 75 for each month. Therefore, the rise, or change in y, is 75 and the run, or change in x, is 1. We can substitute these values into the formula for the slope to calculate m. m=75/1= 75 Next, we will find the y-intercept which is the amount of money at the beginning. Since Tadeo has already $300, we can say that b= 300. Now that we have the slope and the y-intercept we can write our final equation. y= 75x+ 300
We will graph the function we wrote in Part A.
Tadeo's Savings y = 75x + 300
First we will determine the domain of the function. In this context, the independent variable, representing the number of months, is restricted to whole numbers. This restriction stems from the lack of information about the regularity of her savings — whether they occur consistently on a weekly or daily basis. Whole numbers ensure a meaningful representation of Tadeo's savings over discrete months.
Tadeo's Savings: & y = 75x + 300 Domain: & Whole numbers
The function has a discrete domain. Now we substitute some whole number values for x and find the corresponding values of y. These x- and y-values will create a set of ordered pairs.
x | 75x-300 | y | (x,y) |
---|---|---|---|
0 | 75( 0)+300 | 300 | ( 0, 300) |
1 | 75( 1)+300 | 375 | ( 1, 375) |
2 | 75( 2)+300 | 450 | ( 2, 450) |
3 | 75( 3)+300 | 525 | ( 3, 525) |
4 | 75( 4)+300 | 600 | ( 4, 600) |
Now we will graph the ordered pairs from the table. We will not connect the points with a line because its domain is discrete.
This matches the graph in C.
Store A offers packages with comic books with a poster. All comic books in a pack have the same price, and each poster costs the same.
We are asked to write a linear function that represents the cost y of a package containing any number of comic books x. It will be in the slope-intercept form. y= mx+ b For an equation in this form, m is the slope and b is the y-intercept. We need the slope and the y-intercept of our function. We can do this by using any two points lying on the function's graph. Let's identify two points from the given information. A poster is given in each scenario, so we can consider the cost of a poster as a constant, which we will address later.
Given Information | Point (x,y) |
---|---|
1 poster and 4 comics cost $ 10.50. | ( 4, 10.50) |
1 poster and 12 comics cost $ 16.50. | ( 12, 16.50) |
Now we can use the obtained points to calculate the slope of our function, m. We will start by substituting the points into the Slope Formula.
In our function, a slope of 0.75 means that if we buy 1 more comic book, we will pay $ 0.75 more. Now that we know the slope, we can write a partial version of the equation. y= 0.75x+ b To complete the equation we also need to determine the y-intercept, b. Since we know that the given points will satisfy the equation, we can substitute one of them into the equation to solve for b. Let's use ( 4, 10.50).
A y-intercept of 7.50 means that a poster costs $ 7.50. We can now complete the equation. y=0.75x+ 7.50 ⇔ y = 0.75x+7.5
We are given that Store B has the same comic book price as Store A, and the poster costs $8.50. We want to determine which store has the better deal. Let's start by recalling the equation of the linear function obtained in Part A. Store A y = 0.75x+ 7.5 For Store A, the price per comic book is $ 0.75, so is the price in Store B. However, the price of a poster is $ 8.50. Therefore, the function that models the cost of a package containing x number of comics will be as follows. Store B y =0.75x+ 8.5 Note that at both stores the price of each comic book is the same, but in the second store the poster costs $ 8.50, which is greater than $ 7.50. 8.50 > 7.50 Since each package contains the poster, it will always cost more in Store B. This means that Store A has the better deal.
A linear function is a function of the following form. y=mx+b As the name suggests, the graph of a linear function is a line.
The domain of a linear function is all real numbers unless otherwise stated. Domain of a Linear Function - ∞ < x < ∞ The solution to a linear function is an ordered pair ( x, y) that makes the function equation true. y=m x+b There are infinitely many real numbers in its domain. This means that there are infinitely many x-values, and corresponding y-values, that satisfy the equation.
As a result, there is always an infinite number of solutions to the equation. Linear Function: & y=m x+b Number of Solutions:& Infinitely many We can also think of it in a different way. A linear function consists of infinitely many points. Each of these points is a solution. Then there are infinitely many solutions to the function. Therefore, the answer is B.
The cost to rent a bike from two different companies is shown, where x is the time in hours and y is the total cost.
We are given costs from two different companies to rent a bike. We are asked to determine which company should we use if we want to rent a bike for 7 hours. First, let's analyze the cost Company A offers.
The costs of renting a bike from this company are represented with a graph. Let's find its slope and y-intercept so that we can write the equation of the graph.
We can see that this graph passes through the origin, and therefore the y-intercept is equal to 0. The slope of the line is 4, which is the rate of change between the points ( 2, 8) and ( 3, 12). m=12- 8/3- 2 = 4 Now we can write an equation in slope-intercept form which will relate the total cost y for renting a bike and the time in hours x.
Slope-Intercept Form: y=mx+b | ||
---|---|---|
y= 4x+ 0 | y = 4x |
Now to find the cost for renting a bike for 7 hours, we will substitute x=7 into this equation.
We found that it costs 28 dollars to rent a bike for 7 hours for Company A. Now let's check out the other company.
We are given the costs for renting bikes from Company B in a table. Let's try to find a pattern in this table.
We can see that as the rent time increases by 1 hour, total cost increases by 3 dollars. If we were to plot the points in this table, they would form a line with a slope of 3. Note also that if we subtract 3 from 9, we get 6, which we can interpret it as a fixed cost or initial fee. Then, the following equation represents the table. y = 3x+ 6 We can use this function to calculate the cost for renting a bike for 7 hours.
We found that it costs 27 dollars to rent a bike from Company B for 7 hour, which is less than the cost of renting a bike in Company A. 7Hours Rental Cost ccc CompanyA && CompanyB 28 & > & 27 Therefore, it is more economical to choose Company B to rent a bike for 7 hours.