{{ toc.name }}
{{ toc.signature }}
{{ toc.name }} {{ 'ml-btn-view-details' | message }}
{{ stepNode.name }}
{{ 'ml-toc-proceed' | message }}
Lesson
Exercises
Recommended
Tests
An error ocurred, try again later!
Chapter {{ article.chapter.number }}
{{ article.number }}. 

{{ article.displayTitle }}

{{ article.intro.summary }}
{{ 'ml-btn-show-less' | message }} {{ 'ml-btn-show-more' | message }} expand_more
{{ 'ml-heading-abilities-covered' | message }}
{{ ability.description }} {{ ability.displayTitle }}
{{ 'ml-heading-lesson-settings' | message }}
{{ 'ml-lesson-show-solutions' | message }}
{{ 'ml-lesson-show-hints' | message }}
{{ 'ml-lesson-number-slides' | message : article.intro.bblockCount}}
{{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount}}
{{ 'ml-lesson-time-estimation' | message }}
Once a relation is known to be a function, it is handy to write it in a way that directly gives essential information such as the independent and dependent variables. This is where function notation comes to the rescue. This lesson will explore some applications of function notation and how this way of representing functions helps combine different functions.

Catch-Up and Review

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

Explore

Evaluating Functions at Another Function

As with algebraic expressions, functions can also be evaluated at a specific input. In the following applet, drag a function into each empty box to explore the outputs obtained when a function is evaluated at another function.
Applet to evaluate a function at another function
It can be seen that which suggests that the order does not affect the result. Is it always true? Is it true for and

Discussion

Representing Functions Using Function Notation

There are different ways to represent a function — using tables of values, mapping diagrams, graphs, and equations. However, aside from these, one of the most common ways is using function notation.

Discussion

Evaluating Functions and Finding a Certain Input

In the same way that an expression can be evaluated at a particular value, functions can also be evaluated at a specific input. Furthermore, it is also possible to determine the input that produces a specific output.

When modeling real-life scenarios with functions, in addition to knowing how to evaluate the function and determine a particular input, it is essential to know how to interpret the results obtained.

Example

Modeling With Functions

For the last few days of the long holiday, Izabella and Emily visited a city they did not know. Before returning home, they went into a souvenir shop where all the souvenirs were priced the same. After picking out some gifts and just before paying, Emily found a gift card in her purse.

A 3 dollars gift card

The function represents the cost, in dollars, of buying souvenirs with a gift card.

a How much will the girls pay if they buy ten souvenirs?
b How many souvenirs can the girls buy with

Hint

a To find the cost of ten souvenirs, evaluate the given function at Substitute for into the given function. The input represents the number of souvenirs bought and the output represents the cost.
b Find the value of for which the output is Substitute for and solve the resulting equation for

Solution

a Based on the given information, finding how much will the girls pay for buying ten souvenirs is equivalent to finding This can be done by substituting for into the function rule and simplifying the right-hand side.
The statement shows that when the input is the output is In this context, it means that the girls will pay for ten souvenirs.
b In this context, gives the cost of buying souvenirs. Therefore, asking how many souvenirs the girls can buy with is the same as asking for which value of the output of is equal to
To find such value of in the function rule, substitute for and solve the resulting equation for
Solve for
As shown, the output is when In other words, the girls can buy souvenirs with

Pop Quiz

Evaluating Different Functions

Evaluate the given function at the given input.

Random functions that need to be evaluated at random inputs

Discussion

Combining Functions

Two functions and can be combined into a sum, a difference, a product, or a quotient through the following formulas.
However, apart from these four operations, two functions can also be combined into a composition.

Concept

Composite Function

A composite function, or a composition of functions, combines two or more functions, which produces a new function. In a composition, the outputs produced by one function are the inputs of the other function. The composition of the functions and is denoted as or
Given four different functions, the composition of two/three of them is found.
Performing the composition of two functions is similar to evaluating one function into the other. For example, let and To find the variable in must be substituted with
Substitute for and evaluate
Note that makes sense only when the outputs of belong to the domain of Also, be aware that the composition of functions is not commutative — that is, in general, This can be checked with the same two functions.
Two machines simulating the composition of two functions. The functions used are f(x)=2x+1 and g(x)=x-5. The order of the composition can be set. Any input between -100 and 100 is accepted.
Just as changing the order of the machines in a factory could alter the final product, changing the order in which the functions are applied could produce different outputs. For example, here and are different values.

Extra

Parts of a Composition
Explore the parts of a composition by moving the magnifying glass.
Three sets labeled as A, B, and C respectively. Set A is the domain of g and has x inside; Set B is the range of g and also the domain of f. It has g(x) inside it; Set C is the range of f and has f(g(x)) inside; A bendy arrow points from A to B representing the function g; A bendy arrow points from B to C representing the function f; A bendy arrow points from A to C representing the composite function f(g(x)).

Example

Applying Discounts Through Compositions of Functions

Izabella and Emily are shopping for pants. Both girls have a discount coupon for the store. After choosing a pair of pants each, they discovered that the pants are off the marked price. The girls could not agree which order of discount would save them more money, so the cashier allowed them to apply the discounts in whichever order they wanted.

Two pairs of pants. One of them is marked for 31 dollars. Also, a 3 dollars discount coupon is shown.

The function represents the effect of applying only the coupon to the marked price, while represents the effect of applying only the store's sale discount to the marked price. In both functions, represents the marked price.

a Write a function that represents how much Izabella will pay if she uses the coupon first and then applies the store's sale discount.
Izabella chose a pair of pants whose marked price was How much did she pay for them?
b Write a function that represents how much Emily will pay if she uses the store's discount first and then applies the coupon.
If Emily paid the same amount as Izabella, what was the marked price of the pants Emily bought?
c Which of them saved more money?

Hint

a Applying the coupon first means to apply to the marked price. Then, must be applied to the resulting output. Therefore, is equal to To find how much Izabella paid, evaluate
b This time, apply the store's discount first — that is, start by applying to the marked price. Then, apply to the resulting output. In other words, equals To determine the marked price, equate to the amount paid by Izabella. Then, solve the resulting equation for
c Compare the total amount paid by each girl and the marked price of the chosen pair of pants.

Solution

a Since Izabella decided to apply the coupon first, the function will be applied first to the marked price.
tagged price: x; applying the coupon: f(x)
The store's sale discount will be applied to the resulting output. This means that will be applied to the previous output.
tagged price: x; applying the coupon: f(x); applying the store's discount: g(f(x))
Therefore, the composition of and represents the cost that Izabella will pay, based on her decision. This means that To find this composition, in substitute for
Izabella chose a pair of pants with a marked price of To find how much she paid for them, evaluate at
Substitute for and evaluate
Consequently, Izabella paid for the pair of pants she chose.
b Emily decided to apply the discounts in the opposite order — that is, she chose to apply the store's sale discount first. For her purchase, the function will be applied to the marked price.
tagged price: x; applying the store's discount: g(x)
Next, the coupon will be applied. Therefore, the function will be applied to the previous output.
tagged price: x; applying the store's discount: g(x); applying the coupon: f(g(x))
Consequently, the composition of and represents the cost that Emily will pay, based on the order she of discounts she chose — To calculate this composition, evaluate at
Emily paid the same amount as Izabella, which means that Emily paid To determine the original cost of the pair of pants that Emily chose, substitute for and solve the resulting equation for
Solve for
In conclusion, the marked price of the pants Emily chose was
c To determine who saved more money, it would help to organize the results obtained in a table.
Marked Price Amount Paid
Izabella's Pants
Emily's Pants
As shown, both girls paid the same amount of money, but the pair of pants that Emily chose was more expensive. As such, Emily saved more money from the discounts. In fact, if Izabella had applied the discounts as Emily did, she could have paid for the same pair of pants.
In contrast, if Emily had applied the discounts as Izabella did, she would have paid Regardless of who applied the discounts better, both girls got a big discount on their purchase and went home happy.

Closure

A Special Case of Compositions of Functions

As shown, the composition of functions is not commutative, implying that, in general, However, for those functions that do commute, there is a special case. Consider, for example, the following pair of functions.
For these two functions, start by finding
Substitute for and simplify
Simplify right-hand side

Next, perform the composition in the opposite order, that is,
Substitute for and simplify
Simplify right-hand side

As can be seen, both compositions resulted in the same function.
The important thing here is not the fact that the functions commute but that the result of the composition is simply the original input. In such cases, the functions are said to be inverses of each other. For more information, read about the inverse of a function.