Sign In
| 20 Theory slides |
| 12 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.
A function is a relation in which each input is assigned to exactly one output. The set of all possible inputs is called the domain of the function and the set of all possible outputs is called the range. If x represents the inputs and y the outputs of a function, it is often said that y is a function of x
or that y depends on x.
y = f(x)
Determining Whether a Relation Is a Function | |
---|---|
If represented as | Use |
a set of coordinates or a table of values | a mapping diagram |
a graph in the coordinate plane | the vertical line test |
Start by writing all the inputs of the relation in a column. The inputs are the first components of each pair if the relation is given as a set of coordinates. {( 4,3),( 0,-5),( -3,3),( 8,0),( 4,-5)} Notice that the number 4 is an input for two different points. In the mapping diagram, it is written only once because multiple arrows can be drawn from it. Therefore, the inputs for the given relation are 4, 0, -3, and 8.
If the relation is given as a vertical table, the inputs are the values in the first column.
Write all the outputs in a second column. When the relation is given as a set of coordinates, the outputs are the second components of each pair. {(4, 3),(0, -5),(-3, 3),(8, 0),(4, -5)} The number - 5 is an output for two different pairs. In the mapping diagram, it is written only once because multiple arrows can be drawn to it. For the given relation, the outputs are 3, -5, and 0.
If the relation is given as a vertical table, the outputs are the values in the second column.
Draw an arrow from each input to its corresponding output.
Check if there are multiple arrows with the same starting input. In other words, identify inputs that have multiple outputs.
Here, the input 4 has two different outputs, 3 and -5. By definition, for a relation to be a function, every input must be assigned to exactly one output. As such, the given relation is not a function.
Kevin's teacher Maya is organizing a class trip to the Aquatic Wonders World Aquarium. She examines the aquarium's website and observes the number of visitors recorded over the past week.
Day, x | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
Number of Visitors, N | 1300 | 1500 | 1800 | 1300 | 1900 | 2500 | 1900 |
The numbers in the first row represent the days of the week, with the number 1 indicating Monday.
Now each element in the first column can be connected to its corresponding element in the second column with an arrow.
Notice that the same number of visitors appears on certain days, but there are no two visitor counts on a single day. In other words, each input is assigned to exactly one output. Therefore, this relation is a function.
The vertical line test is a graphical method to determine whether a given relation is a function. For example, consider the following relations.
Relation I | Relation II | Relation III |
---|---|---|
(y - 2)(y + 1) = x | y=x(x+1)(x-2) | |c|c|c|c|c|c|c|c| x & -2.25 & -1.75 & -1 & -1 & 0 & 1 & 2 y & -2 & 0 & 2 & -1 & 1 & -0.75 & 0.5 |
Draw the relation on the coordinate plane. The first two relations can be drawn using a graphing calculator or other mathematical software.
Draw vertical lines at different places through the coordinate plane. If one of the lines intersects the graph more than once, the relation is not a function. Conversely, if no vertical line cuts the graph more than once, the relation is a function.
Notice that l_3 cuts the first graph at two different points. The line m_2 also passes through two different points. This means that neither Relation I nor Relation III is a function. However, all of the vertical lines drawn over Relation II only intersect the graph one time at most. Because of this, Relation II is a function.
Keep in mind that before stating whether a relation is a function, the vertical lines drawn have to cover the entire domain to ensure that no vertical line cuts the graph more than once.
If a relation is not a function, it is because there are multiple y-values corresponding to the same x-value. Therefore, the graph of such relation would show at least two points directly above the other.
Points with the same x-value belong to the same vertical line.
Maya and her students are about to start their visit. Their journey begins with a short seminar that gives cool facts about the aquarium. During the presentation, a graph that shows the fish population over the past 8 months was presented.
However, on the screen in front of Kevin, the axes were positioned in reverse. Consider the shape of the graph. It appears quite different.
Use the vertical line test to determine whether the graphs represent functions.
The following applet displays a relation as a set of ordered pairs, a group of coordinate points in the coordinate plane, or a curve in the coordinate plane. Determine whether the relation is a function or not.
Function notation is a special way to write functions that explicitly shows that y is a function of x — in other words, that y depends on x. Function notation is symbolically expressed as y=f(x) and read y equals f of x.
Equations that are functions can be written using function notation.
ccc
Equation & & Function Notation [1ex]
y=-5x+4 & & f(x) = -5x+4
Notice that y has been replaced by f(x). In function notation, x represents an element of the domain and f(x) represents the element of the range that corresponds to x. When written in function notation, the expression that describes how to convert an input into an output — the right-hand side expression — is called the function rule.
Besides f, other letters such as g or h can be used to name the function. Similarly, letters other than x can name the independent variable.
To interpret an equation given in function notation, it is necessary to understand what both sides of f(x)=k mean. For example, consider the following equation. f( 3) = 12 Here, f( 3) denotes that the function's input is x= 3 and that 12 is the output corresponding to this input. f( 3) = 12 ⇓ The output offwhenx= 3 is 12. Now, consider a different scenario. Let w(t)=200t be a function that describes the number of words Kevin reads in t minutes. The following statements are true for this function. w(4) and w(t)=900 Here, w(4) is the number of words that Kevin reads in 4 minutes and can be found by evaluating the function for t=4. However, the input is not a particular number in the second statement. In such cases, the statement can be interpreted as a question. w(t)=900 ⇓ For which value oft is the output equal to900? Based on the context, the second statement asks how many minutes it takes Kevin to read 900 words. To find this value of t, the equation w(t)=900 has to be solved for t.
The domain of a function is the set of all x-values, called inputs, for which the function is defined. As an example, consider the following functions. f(x) & = 3x [0.2cm] g(x) & = sqrt(x) [0.3em] h(x) & = 1/x Their domains can be written by analyzing the definition of each function.
Function | Analysis | Domain |
---|---|---|
f(x) = 3x | Multiplying by 3 is defined for all real numbers. | All real numbers |
g(x) = sqrt(x) | Square roots are not defined for negative numbers. | All non-negative numbers — that is, x≥ 0 |
h(x) = 1/x | Dividing by zero is undefined. | All real numbers except 0 — that is, x≠ 0 |
The range of a function is the set of all y-values, called outputs, of the function. The range depends on both the domain and the function itself. For example, consider the following functions and their defined domains.
Function | Domain |
---|---|
f(x)=2x | All integers |
g(x)=x^2 | All real numbers |
h(x)=4 | All real numbers |
The ranges of each function can be determined by analyzing the definition of each function along with the given domains.
Function | Domain | Analysis | Range |
---|---|---|---|
f(x) = 2x | All integers | The function takes any integer input and produces an output that is an even number, as each input is multiplied by 2. | All even numbers |
g(x) = x^2 | All real numbers | The function takes any real number input and produces an output that is a non-negative number, as each input is squared. | All non-negative numbers. That is, y≥ 0 |
h(x) = 4 | All real numbers | The function takes any real number input and sends it to 4. | Only the number 4. That is, the range is {4} |
Kevin, feeling thirsty after the seminar, buys water from a nearby vending machine. There are six types of products sold in the vending machine: orange juice, water, chocolate, donuts, sandwiches, and pizza.
Notice that the buttons on the vending machine are labeled with the first letters of the food items. When a button is pressed, the machine will give the corresponding food.
Is it a function? Yes
Range: {Chocolate, Donut, Orange Juice, Pizza, Sandwich, Water}
Now each element in the first column can be connected with an arrow to its corresponding element in the second column.
Notice that each element of the input set is paired with exactly one element of the output set, so this is one-to-one mapping. Therefore, this relation is a function. This conclusion makes sense because it is not logical that pressing a button would result in two different snacks being dispensed.
When sorted in alphabetical order, the domain and range of the function can be written as follows. Domain: &{C,D,O,P,S,W } [0.8em] Range: & { l Chocolate,Donut,Orange Juice, Pizza,Sandwich,Water }
Maya and her students start their tour of the aquarium with a visit to the famous dolphins. The students excitedly gather around the dolphin exhibit and watch the playful animals swimming in the water.
The guide shares interesting facts about these intelligent creatures, capturing the students' attention and sparking their curiosity about the animals in the aquarium. Kevin notes this information as a set of ordered pairs. K = {(1.9,120),(2.3,138),(2.5,140),(2,138) } Here, every pair of numbers represents the length of a dolphin in meters and its weight in kilograms. For example, the pair (2,138) indicates that a dolphin is 2 meters long and weighs 138 kilograms.
{(1.9,120),(2.3,138),(2.5,140),(2,138) } It is stated that the first coordinates indicate the lengths of dolphins, while the second coordinates represent their weights. This means that the x-axis corresponds to length and the y-axis corresponds to weight. The points can now be plotted.
One way to understand functions is to think of functions as machines. Inputs are like raw materials that go through the processing stage of the function. Outputs are the final product. In this applet, four preset inputs are available. The machine specifically processes numbers between -100 and 100 as materials. Try plugging in a few values and see the outcomes!
In the context of functions, the input is often referred to as the independent variable because it can be chosen arbitrarily from the domain. Conversely, the output is called the dependent variable because its value depends on the value of the independent variable. For instance, if the price of oranges is $ 2.50 per pound, the total cost is determined by the product of the unit price and the weight in pounds. ccccc Cost & & Unit Price & & Weight [0.4em] y & = & 2.50 & * & x
As shown, the total cost of oranges depends on how many pounds of fruit are purchased. Therefore, the cost of oranges y is the dependent variable and the number of pounds purchased x is the independent variable.The dolphin trainer claims that the dolphin in front of him eats 15 kilograms of fish per day.
Graph:
Independent Variable: & d Dependent Variable: & k Therefore, the total amount of fish eaten by the dolphin k can be written as a function of d. It will be equal to the product of 15 and the number of days d. Equation k = 15 d This equation can also be expressed using function notation. In this case, it would be appropriate to use the notation k(d) as it shows that k is a function of d. Function Notation k(d) = 15d Next, make a table of values to help graph the function. For example, evaluate the function when d is 1, 3, 5, and 7.
d | 15d | k |
---|---|---|
1 | k=15( 1) | 15 |
3 | k=15( 3) | 45 |
5 | k=15( 5) | 75 |
7 | k=15( 7) | 105 |
Now plot the ordered pairs ( d, k) as points in a coordinate plane.
Finally, connect the points with a line. Note that negative numbers have no meaning in the context of the problem, so the graph will only be in the first quadrant.
Use the function from Part A to complete the table.
Side Length | 2 | 5 | 8 | |
---|---|---|---|---|
Perimeter | 32 | 36 |
Use the function from Part C to complete the table.
Side Length | 1 | 5 | 6 | |
---|---|---|---|---|
Area | 16 | 36 |
We will write a function for the perimeter of a square. Recall that the perimeter of a square is the sum of its side lengths. If we let s be the side length of the square, then the perimeter of the square will be 4 times s. P(s) = 4s In this function, the independent variable is the side length s and the dependent variable is the perimeter P(s).
Let's use the function P(s) = 4s to complete the table.
Side Length | 2 | 5 | 8 | |
---|---|---|---|---|
Perimeter | 32 | 36 |
To find the perimeter of a square with a side length of 2 units, we substitute 2 for s into the perimeter function.
We will follow the same procedure to determine P(5).
Finally, we need to find the side length of a square whose perimeter is 36. Let's substitute 36 for P(s) and solve for s.
Now we can fill in the table!
Side Length | 2 | 5 | 8 | 9 |
---|---|---|---|---|
Perimeter | 8 | 20 | 28 | 36 |
We need to submit these numbers in ascending order. Let's list them in order. 8,9,20
We will write a function for the area of a square. Recall that the area of a square is its side length squared. If the side length of a square is s, then the area of the square will be s^2.
A(s) = s^2
In this function, the independent variable is the side length s and the dependent variable is the area A(s).
Just like we did in Part B, let's complete the table for the function A(s)=s^2.
Side Length | 1 | 5 | 6 | |
---|---|---|---|---|
Area | 16 | 36 |
To find the area of a square with a side length of 1 unit, we substitute 1 for s into the area function.
Now let's substitute 5 for s to find the area of a square with a side length of 5 units.
Finally, we need to find the side length of a square whose area is 16 square units. Let's substitute 36 for A(s) and solve for s.
We can ignore the negative solution here because length cannot be negative. We now have all the missing numbers!
Side Length | 1 | 4 | 5 | 6 |
---|---|---|---|---|
Area | 1 | 16 | 25 | 36 |
We need to submit these numbers in ascending order, so let's order our values. 1,4,25
Now we can use the points from the tables in the previous parts to draw the graphs of the functions.
We can see that both graphs start from the origin, so Statement IV is true. IV. Both graphs pass through the origin. ✓ Notice also that the graph of the perimeter is a line, but the graph of the area is a curve. This indicates that the perimeter is a linear function of the square's side length, while the area is a non-linear function of the side length. Statement III is also true! rl III. & The graph of the second function is & non-linear. ✓ Since it is a non-linear function, the area function does not have a constant rate of change. It increase more and more rapidly the as the value of s increases.
The rate of change varies across the graph. We know from this that statement II is false. cl II.& The second function has a constant & rate of change. * Lastly, let's find the slope of the first function.
We can see that the function has a constant rate of change between any pair of its points and that this rate of change is equal to 4. Statement I is also correct. rl I.& The graph of the first function is a & straight line with a slope of 4. ✓ As a result, Statements I, III, and IV are true.
Let's draw the graphs of the functions.
First Function | Second Function |
---|---|
P(s) = 4s | A(s) = s^2 |
The domains of both functions consist of non-negative real numbers because lengths cannot be negative. Similarly, their ranges are also all non-negative real numbers.
P(s) = 4s | A(s) = s^2 | |
---|---|---|
Domain | s ≥ 0 | |
Range | P(s) ≥ 0 | A(s)≥ 0 |
Let's keep these values in mind as we draw the functions, starting with P(s)=4s. We are given four points in the table from Part B. (2,8), (5,20), (8,28), and(9,36) In our coordinate plane, the x-axis will represent the independent variables, while the y-axis will represent the dependent variables. Let's plot the points and connect them.
Now we will graph A(s)=s^2 by plotting the points found in Part C. (1,1), (4,16), (5,25), and(6,36) We can plot the points and draw a curve through the points.
Let's see these graphs on the same plane.