Lecture # 5 (Functions)
Lecture # 5 (Functions)
Analytical
Geometry
(MATH- 101)
Instructor: Dr. Naila Amir ([email protected])
Transformation of Graphs
▪ Book: Thomas Calculus (14th Edition) by George B. Thomas, Maurice D. Weir, Joel R. Hass, Frank R. Giordano
▪ Chapter: 1 (1.1, 1.2, 1.3)
Scaling Graphs
Scaling a graph of a function
▪ Scaling is a non-rigid translation in which the size and shape of the graph of a function is changed.
▪ To scale the graph of a function we stretch or compress it, vertically or horizontally. This is
accomplished by multiplying the function 𝑓, or the independent variable 𝑥, by an appropriate
constant.
▪ A vertical scaling multiplies/divides every 𝑦 − coordinate by a constant while leaving the
𝑥 −coordinate unchanged.
▪ A horizontal scaling multiplies/divides every 𝑥 − coordinate by a constant while leaving the
𝑦 −coordinate unchanged.
Reflection a graph of a function
▪ A translation in which the graph of a function is mirrored about an axis.
▪ Reflections are just a special case of the scaling.
▪ To reflect about the 𝑦 −axis, multiply every 𝑥 by −1 to get −𝑥.
▪ To reflect about the 𝑥 −axis, multiply 𝑓(𝑥) by −1 to get −𝑓(𝑥).
Vertical and Horizontal Scaling and Reflection
2 f (x ) = 2 x 4 f (x ) = 4 x
yy
f (x ) = x
y
x
− − − −
x
− − − − x
− − − −
−
−
−
−
−
−
−
−
−
−
−
−
The graph 𝑎 𝑓(𝑥), where 𝑎 > 1, is the graph of 𝑓(𝑥) but vertically
stretched by a factor of “𝑎”.
What if the value of 𝒂 was positive but less than 1?
f (x ) = x
yyy
f (x ) =
1 1
x
2 2
x
xx
− − − −
f (x ) =
−
− −
− −
− −
−
1
1
−
−
− x
−
−
−
4 4
−
−
−
−
−
−
The graph 𝑎𝑓(𝑥), where 0 < 𝑎 < 1, is the graph of 𝑓(𝑥) but vertically
compressed by a factor of 𝑎.
What if the value of 𝒂 was negative?
yy
f (x ) = x
xx
− − −
− −
−
−
−
−
−
−
−
− f (x ) = − x−
−
y
y
x x
−
− −
− −
− −
−
−−
−
−
−
−
−
−
The graph 𝑓(−𝑥) is a reflection about the 𝑦 −axis of the graph of 𝑓(𝑥).
Summary
If 𝑎 > 1, then vertical stretch by a factor of 𝑎.
a f (x − h ) + k
horizontal translation by ℎ Note: We always perform reflections before
vertical and horizontal translations
Summary:
Example: Using Graphing Calculator
Consider the square root function:
𝑦 = 𝑓 𝑥 = 𝑥,
and then
• Stretch it by 2 units in the 𝑦 −direction, i.e., consider
2𝑓 𝑥 = 2 𝑥.
• Shift it left 1 units, i.e., 2𝑓(𝑥 + 1) = 2 𝑥 + 1 and
• Shift it up 1 units, i.e., 2𝑓 𝑥 + 1 + 1 = 2 𝑥 + 1 + 1.
https://www.desmos.com/calculator/26hwvdgfdp
Combining
Functions
Combining Functions
There exist different ways to combine functions to make new
functions:
• Arithmetic Combinations of Functions that includes Sums,
Differences, Products and Quotients.
• Composition of Functions.
Arithmetic Combinations of Functions
• Two functions 𝑓 and 𝑔 can be combined to form new functions
𝑓 + 𝑔, 𝑓 – 𝑔, 𝑓𝑔, 𝑓/𝑔
in a manner similar to the way we add, subtract, multiply, and divide real
numbers.
Sum of Functions
We define the function 𝑓 + 𝑔 by:
Function Domain
1. (𝑓 + 𝑔)(𝑥) = 𝑓(𝑥) + 𝑔(𝑥) 𝐴∩𝐵
2. 𝑓 − 𝑔 𝑥 = 𝑓 𝑥 − 𝑔 𝑥 𝐴∩𝐵
3. 𝑓. 𝑔 𝑥 = 𝑓 𝑥 𝑔 𝑥 𝐴∩𝐵
𝑓 𝑓 𝑥 𝑥 ∈ 𝐴 ∩ 𝐵|𝑔(𝑥) ≠ 0
4. 𝑥 =
𝑔 𝑔 𝑥
Example: Combinations of Functions
1
Let 𝑓(𝑥) = and 𝑔(𝑥) = 𝑥
𝑥−2
1
• (𝑓 − 𝑔)(𝑥) = 𝑓(𝑥) − 𝑔(𝑥) = − 𝑥 Domain{𝑥|𝑥 ≥ 0 and 𝑥 ≠ 2}
𝑥−2
Solution: (a)
𝑥
• 𝑓. 𝑔 𝑥 = 𝑓 𝑥 𝑔 𝑥 = Domain 𝑥 𝑥 ≥ 0 and 𝑥 ≠ 2
𝑥−2
𝑓 𝑓(𝑥) 1
• (𝑥) = = Domain{𝑥|𝑥 > 0 and 𝑥 ≠ 2}
𝑔 𝑔(𝑥) (𝑥−2) 𝑥
1 3
• 𝑓−𝑔 4 =𝑓 4 −𝑔 4 = − 4= − .
4−2 2
1
• 𝑓𝑔 4 = 𝑓 4 𝑔 4 = 4 = 1.
4−2
𝑓 𝑓 4 1 1
• 4 = = = .
𝑔 𝑔 4 4−2 4 4
Practice: Combinations of Functions
Note:
• It doesn't matter if we combine and then evaluate or if we evaluate and then combine.
• In each of the above problems, the domain is all real numbers with the exception of the division. The domain in the
division combination is all real numbers except for 1 and -1.
Composition of Functions
Now, let’s consider a very important way of combining two functions to get a new function.
ℎ 𝑥 = 𝑓∘𝑔 𝑥 =𝑓 𝑔 𝑥 = 𝑓 𝑥2 + 1 = 𝑥 2 + 1.
• The function ℎ is made up of the functions 𝑓 and 𝑔 in an interesting way: Given a number 𝑥,
we first apply to it the function 𝑔, then apply 𝑓 to the result.
Composition of Functions
• In this case,
• ℎ is the rule “square, then add 1, then take the square root.”
• In other words, we get the rule ℎ by applying the rule 𝑔 and then the rule 𝑓.
Composition of Functions
• In general, given any two functions 𝑓 and 𝑔, we start with a number 𝑥 in the domain of 𝑔 and
find its image 𝑔(𝑥). If this number 𝑔(𝑥) is in the domain of 𝑓, we can then calculate the value of
𝑓(𝑔(𝑥)).
• The result is a new function ℎ(𝑥) = 𝑓(𝑔(𝑥)) obtained by substituting 𝑔 into 𝑓. It is called the
composition (or composite) of 𝑓 and 𝑔 and is denoted by 𝑓 ◦ 𝑔 (“𝑓 composed with 𝑔”).
• The domain of 𝑓 ◦ 𝑔 is the set of all 𝑥 in the domain of 𝑔 such that 𝑔(𝑥) is in the domain of 𝑓.
In other words, (𝑓 ◦ 𝑔)(𝑥) is defined whenever both 𝑔(𝑥) and 𝑓(𝑔(𝑥)) are defined.
Example: Composition of Functions
Let 𝑓(𝑥) = 𝑥2 and 𝑔(𝑥) = 𝑥 – 3.