Lecture # 5
Lecture # 5
Naila Amir
MATH- 101 (SEECS, NUST)
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 −𝑓(𝑥).
2𝑓 𝑥 = 2 𝑥 4𝑓 𝑥 = 4 𝑥
yy
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?
𝑓 𝑥 = 𝑥
yyy
1 1
𝑓 𝑥 = 𝑥
2 2
x
xx
1
1
𝑓 𝑥 = 𝑥
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
𝑓 𝑥 = 𝑥
xx
−𝑓 𝑥 = −
𝑥
x x
The graph 𝑓(−𝑥) is a reflection about the 𝑦 −axis of the graph of 𝑓(𝑥).
Summary
𝑎 𝑓 𝑥 − + 𝑘
horizontal translation by
𝑓 + 𝑔, 𝑓 – 𝑔, 𝑓𝑔, 𝑓/𝑔
1
• (𝑓 − 𝑔)(𝑥) = 𝑓(𝑥) − 𝑔(𝑥) = − 𝑥 Domain*𝑥|𝑥 ≥ 0 and 𝑥 ≠ 2+
𝑥−2
Solution: (a)
𝑥
• 𝑓𝑔 𝑥 = 𝑓 𝑥 𝑔 𝑥 = Domain 𝑥 𝑥 ≥ 0 and 𝑥 ≠ 2
𝑥−2
𝑓 𝑓(𝑥) 1
• (𝑥) = = Domain*𝑥|𝑥 > 0 and 𝑥 ≠ 2+
𝑔 𝑔(𝑥) (𝑥−2) 𝑥
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.
– Suppose 𝑓(𝑥) = 𝑥 and 𝑔(𝑥) = 𝑥2 + 1.
– We may define a function as:
𝑥 = 𝑓∘𝑔 𝑥 =𝑓 𝑔 𝑥 = 𝑓 𝑥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 “take the square root.”
– 𝑔 is the rule “square, then add 1.”
– 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.
(b) 𝑔 ∘ 𝑓 𝑥 = 𝑔 𝑓 𝑥 =𝑔 𝑥 = 2− 𝑥
For 𝑥 to be defined, we must have 𝑥 ≥ 0. For 2 − 𝑥 to be
defined, we must have 2 – 𝑥 ≥ 0, that is 𝑥 ≤ 2, or x ≤ 4. Thus, we
have: 0 ≤ x ≤ 4. So, the domain of g ◦ f is the closed interval [0, 4].
Practice: Compute part (c) and (d).