Notes 3
Notes 3
(f g)(x) = f (x)g(x)
f f (x)
(x) =
g g(x)
as long as both function values, f (x) and g(x), are well-defined, and the corresponding arithmetic operations
on them are valid.
The main issue is that we need to be careful with the domains of these functions.
• In the case of (f + g)(x) or (f g)(x), the input value x must be in both the domain of f and the domain
of g in order to have well-defined function values to be added or to multiplied. Hence the domain of
f + g, or f g, is
{x : x is is the domain of f and x is also in the domain of g}
f (x)
• For g(x) to be well-defined, f (x) and g(x) have to be well-defined, and g(x) has to be non-zero. Hence
f
the domain of the function g is
In addition to arithmetic operations, one can also connect two “input-output machines” (functions) to
form a new function, called the composition of f and g and denoted by the notation f ◦ g, which is defined
by
(f ◦ g)(x) = f (g(x))
g f
x g(x) f(g(x))
Obviously, we need g(x) to be well-defined first, and then g(x) to be in the domain of f in order to have
a well-defined function value f (g(x)). Hence the domain of f ◦ g is given by
12
3.1. BASIC OPERATIONS ON FUNCTIONS MATH1013 Calculus IB
Some basic functions can simply be built by applying these basic operations to the constant functions
and the linear function f (x) = x. For examples,
Remark
• A rational function is the quotient of two polynomials, i.e., a function of the form
an xn + an−1 xn−1 + · · · + a1 x + a0
R(x) =
bm xm + bm−1 xm−1 + · · · + b1 x + b0
13
3.1. BASIC OPERATIONS ON FUNCTIONS MATH1013 Calculus IB
1 x+1
Example 3. Let f (x) = and g(x) = . Find f ◦ f , f ◦ g and g ◦ f .
x x−2
1 1 ?
(f ◦ f )(x) = f (f (x)) = f = 1 =x
x x
Finally, we have
1
+1
1 x
(g ◦ f )(x) = g(f (x)) = g = 1
x x −2
with domain determined by the condition
1
x 6= 0 and − 2 6= 0
x
i.e., x 6= 0, 21 .
Remark If the answer to the function g ◦ f above is given in the “simplified form”, such as
1
x +1 1+x
(g ◦ f )(x) = 1 = ,
x −2 1 − 2x
it should be understood that there is actually a domain restriction x 6= 0, 12 hidden in this formula.
√
Example 4. Let f (x) = x2 − 3, g(x) = x − 1. Find the function (i) f ◦ g, and (ii) g ◦ f .
Note that the domain of f is (−∞, ∞), and the domain of g is [1, ∞) from the requirement x − 1 ≥ 0,
√
since ⋆ is a well-defined real number if and only if ⋆ ≥ 0.
√ √
(i) (f ◦ g)(x) = f (g(x)) = f ( x − 1) = ( x − 1)2 − 3, with domain given by x ≥ 1.
Similarly, (f ◦ g)(x) is not exactly the same as the function h(x) = x − 4 since their domains are
different.
p p
(ii) (g ◦ f )(x) = g(f (x)) = g(x2 − 3) = (x2 − 3) − 1 = (x − 2)(x + 2).
The domain is determined by the condition (x − 2)(x + 2) ≥ 0.
By working with the sign line of (x − 2)(x + 2), the domain of g ◦ f can be found as (−∞, −2] ∪ [2, ∞).
14
3.2. FUNCTIONS WITH CERTAIN SPECIAL PROPERTIES MATH1013 Calculus IB
√
Remark Recall that for any positive even number n, the radical expression n b denotes the positive root
√
of the equation xn = b. For example, 4 16 = 2 since 24 = 16. No such root exists if b is negative, e.g.,
√4
−16 does not exist as a real number since x4 ≥ 0 > −16 for any real number x, i.e., x4 = −16 has no real
solution.
When n is a positive odd number, the equation xn = b has a unique real root for any given real number
√ √ √
b, which is also denoted by n b. For examples, 3 8 = 2 since 23 = 8, and 3 −8 = −2 since (−2)3 = −8.
√ 1
Recall that a radical expression can also be expressed in terms of exponent notation; e.g., n x = x n for
any positive integer n.
√
The relation between the power function y = xn and the n-th root function y = n x will be discussed in
more detail later when we deal with the concept of inverse function.
Remark The composition of more than two functions can also be defined accordingly. For example, the
composition f ◦ g ◦ h is defined by
(f ◦ g ◦ h)(x) = f (g(h(x))) .
It is easy to see also that f ◦ g ◦ h = f ◦ (g ◦ h) = (f ◦ g) ◦ h. What is the domain of this function?
x2 + 1
Exercise Consider f (x) = 2x − 1, g(x) = . Find the following functions, and determine their
x
domains.
(a) f (g(x)) (b) g(f (x)) (c) (f ◦ g ◦ f )(x) = f (g(f (x)))
Example 5.
y
25 100
y
x
20
50
3
x
15
0
x
10 -x x
-x3
-50
5 y = x2 y = x2 -x
-100
0
x
-4 -2 0 2 4 -4 -2 0 2 4
15
3.2. FUNCTIONS WITH CERTAIN SPECIAL PROPERTIES MATH1013 Calculus IB
1
(iii) y = |x| is an even function (iv) y = is an odd function
x
1
since f (−x) = | − x| = |x| = f (x) since f (−x) = = −f (x)
−x
y
y = |x| 10
y
5 y = 1/x
0 x
-5
x
-10
-6 -4 -2 0 2 4 6
graph is symmetric w.r.t. the y-axis graph is symmetric w.r.t. the origin
• Periodic Functions
A function f (x) is periodic if there is a number T 6= 0 such that f (x+ T ) = f (x) for all x in the domain.
The smallest such T > 0, if it exists, is called the (fundamental) period of the periodic function.
Note that the graph of a periodic function does not change, if it is shifted to the left, or to the right,
by a distance equal to the period (or an integral multiple of the period).
In particular, any function f defined on the interval [a, b) can be extended to a periodic function defined
on the entire real line: just keep shifting the graph by a distance of b − a.
y = f(x)
a b a b
Example 6. Given a function f (x) = x defined for 0 ≤ x ≤ 1. Extend f (x) to the whole real line as an
even periodic function of period 2.
y y y
1 1 1
1 x 1 x x
-1 -3 -2 -1 1 2 3
(
x if 0 ≤ x ≤ 1,
Example 7. Given a function f (x) = defined on the interval 0 ≤ x ≤ 2.
−x + 2 if 1 ≤ x ≤ 2
Extend f (x) to the whole real line as an odd periodic function of period 4.
y y y
1 1 1
2 x -2 2 x -2 x
-6 -4 2 4 6
16
3.3. TRANSFORMATIONS OF GRAPHS MATH1013 Calculus IB
Example 8.
3
20 y=x 20 y = -x3
10 10
0 x 0 x
-10 -10
-20 -20
-30 -30
-3 -2 -1 0 1 2 3 -3 -2 -1 0 1 2 3
Just a matter of whether the graph is rising/dropping when travelling along the positive x-direction.
Or by simple arithmetic, x32 > x31 whenever x2 > x1 , and hence x3 is an increasing function.
Example 9. Linear Demand and Supply
Here we follow the tradition of Economists when plotting the demand or supply function; i.e., using the
vertical axis as the domain axis (unit price P of the product).
Price per Unit
P
Linear Supply
17
3.3. TRANSFORMATIONS OF GRAPHS MATH1013 Calculus IB
y
y = f (x)
y = f (x − 2)
f (x−2)
x
x−2 x
Example 10 Given the graph of y = x2 , sketch the graph of y = −2(x + 1)2 − 2 by using suitable
transformations of graphs.
Consider the following sequence of transformations:
9 9 y
y
8 8
7 7
2
6 y=x 6
5 5
4 4
y = x2 3 3
2 2
↓
1 1
y = −x2 0 0
↓
x x
-1 -1
y = −2x2 -2 -2
↓ -3 -3
y = −2(x + 1)2 -4 -4
↓ -5 -5
-6 -6
y = −2(x + 1)2 − 2
-7 -7
-8 -8
-9 -9
-5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5
18
3.3. TRANSFORMATIONS OF GRAPHS MATH1013 Calculus IB
b b
Thus the vertex of its graph is given by the coordinate point (− 2a , c − 4a ), which is the lowest point on the
graph if a > 0, and highest point on the graph if a < 0.
b
The graph is symmetric with respect to the vertical line x = − 2a , the axis of symmetry.
√
Example 11 Consider the function defined by f (x) = x. Compare the graph of y = f (x) with the graphs
of y = 3f (x), y = 13 f (x), y = f (3x), and y = f ( x3 ) respectively.
19