C2_Functions(1)
C2_Functions(1)
Chapter 2: Functions
(a ± b)2 = a2 ± 2ab + b2
(a + b)3 = a3 + 3a2 b + 3ab2 + b3
(a − b)3 = a3 − 3a2 b + 3ab2 − b3
a2 − b2 = (a + b) (a − b)
a3 + b3 = (a + b) a2 − ab + b2
a3 − b3 = (a − b) a2 + ab + b2
1 √
Next are some formulas for powers. Recall that if n is even, then a n = n
a is defined only
when a ≥ 0.
a0 = 1 a1 = a
m √
an = n
am a−p = 1/ap
ap · aq = ap+q ap /aq = ap−q
ap · bp = (ab)p ap /bp = (a/b)p
(ap )q = apq
2-1
Chapter 2: Functions 2-2
Rationalization
f (x) − f (a)
1. , where f (x) = x3 ;
x−a
g(a + h) − g(a) 1
2. , where g(x) = √ .
h x+1
Chapter 2: Functions 2-3
Solution. 1.
f (x) − f (a) x3 − a3
=
x−a x−a
(x − a)(x2 + ax + a2 )
=
x−a
= x2 + ax + a2
2.
1 1
√ −√
f (a + h) − f (a) a+h+1 a +1
=
h √ h√ √ √
a+1− a+h+1 a+1+ a+h+1
= √ √ ·√ √
h· a+h+1· a+1 a+1+ a+h+1
(a + 1) − (a + h + 1)
= √ √ √ √
h · a + h + 1 · a + 1( a + 1 + a + h + 1)
−h
= √ √ √ √
h · a + h + 1 · a + 1( a + 1 + a + h + 1)
−1
= √ √ √ √
a + h + 1 · a + 1( a + 1 + a + h + 1)
Chapter 2: Functions 2-4
Remark. The expression of the last line is “simpler” than that of the first one from
the point of view of taking limit h → 0. It will be more apparent when we discuss
derivatives in calculus later.
2.3 Functions
Rf = {f (a) : a ∈ A},
We will focus on functions whose domain and codomain are subsets of real numbers. Let
us recall the notations for certain subsets of real numbers:
f (0) = −1 ⇒ −1 ∈ Rf .
Chapter 2: Functions 2-5
f (2) = 3 ⇒ 3 ∈ Rf .
However, −2 ∈
/ Rf . It is because for any x ∈ Df = R,
f (x) = x2 − 1 ≥ 0 − 1 = −1
Implied domain
If a function f (x) is given by an expression without specifying its domain, then its domain
will be assumed to be the largest subset of R such that the expression is defined. This
domain is called the implied domain or natural domain.
1. log(x2 − 3x − 10)
x−3
2. √
4
3−x
Chapter 2: Functions 2-6
3. (x + 2)5/3
1 1
4. f (x) − g(x), where f (x) = and g(x) = .
1+x 1−x
Operations on Functions
Df ±g = Df ∩ Dg
Df g = Df ∩ Dg
Df /g = (Df ∩ Dg ) \ {x ∈ Dg : g(x) = 0}
Dg◦f = {x ∈ Df : f (x) ∈ Dg }
1. Find (f ◦ f )(3).
2.
(g ◦ f )(x) = g(f (x)) = g(x2 − x).
For this to be defined, we need x2 − x ∈ Dg = (2, ∞). Hence,
x2 − x > 2
⇒ x2 − x − 2 > 0
⇒ (x − 2)(x + 1) > 0
⇒ x>2 or x < −1.
Similarly, f (x) is said to be decreasing (or strictly decreasing) on I, if f (a) ≥ f (b) (or
f (a) > f (b)) for any a < b on I.
Chapter 2: Functions 2-8
Definition 1. If f (−x) = f (x) for any x ∈ Df , then f (x) is called an even function.
Power functions
f (x) = xa
Chapter 2: Functions 2-9
Definition 2. A piecewise function is defined by more than one formula, with each individ-
ual formula defined on a subset of the domain.
Example 7. f : R → R is defined by
(
1, if x < 0
f (x) =
2x, if x ≥ 0.
Example 8. f : R → R is defined by
x + 1, if x > 0,
f (x) = 0, if x = 0,
−1,
if x < 0.
is a piecewise function.
Example 9. Graph (
2x + 3, if x < 1,
h(x) =
−2x2 + 11x − 12, if x ≥ 1.
Chapter 2: Functions 2-11
p
−11 ± 112 − 4(−2)(−12)
x=
2(−2)
√
−11 ± 25
=
−4
3
= or 4
2
(
x, if x ≥ 0,
|x| =
−x, if x < 0.
Chapter 2: Functions 2-13
Proposition 1. For x, y ∈ R,
|x| ≥ 0√ |x| = | − x|
|x| = x2 |x|2 = x2
x |x|
|xy| = |x||y| =
y |y|
|x + y| ≤ |x| + |y|
1. |2x − 3| ≤ 7
2. |3x + 2| > 4
Solution. 1.
|2x − 3| ≤ 7
⇒ −7 ≤ 2x − 3 ≤ 7
⇒ −4 ≤ 2x ≤ 10
⇒ −2 ≤ x ≤ 5
2.
|3x + 2| > 4
⇒ 3x + 2 > 4 or 3x + 2 < −4
⇒ 3x > 2 or 3x < −6
⇒ x > 23 or x < −2
Case I. If x ≥ 2, then x − 2 ≥ 0, x + 2 ≥ 0.
f (x) = |x − 2| + |x + 2|
= (x − 2) + (x + 2)
= 2x
Chapter 2: Functions 2-14
f (x) = |x − 2| + |x + 2|
= −(x − 2) + (x + 2)
=4
f (x) = |x − 2| + |x + 2|
= −(x − 2) − (x + 2)
= −2x
Hence,
2x,
if x ≥ 2,
f (x) = 4, if − 2 ≤ x < 2,
−2x,
if x < −2.
2.5 Inequality
Solution.
4x2 − 12x + 5 ≥ 0
(2x − 1)(2x − 5) ≥ 0
∴ x ≤ 12 or x ≥ 52
Chapter 2: Functions 2-15
■
2x − 1
Example 13. <1
x+1
Wrong Approach!
2x − 1
<1
x+1
Multiply both sides by x + 1 (⊕) ⇒ 2x − 1 < x + 1 ⇒ x < 2.
Why is the above approach wrong? It is because if x + 1 < 0, the step (⊕) reverses the
inequality.
Correct approach 1.
2x − 1
<1
x+1
Correct approach 2.
2x − 1
<1
x+1
2x − 1
−1 <0
x+1
2x − 1 − (x + 1)
<0
x+1
x−2
<0
x+1
Consider 3 cases:
∴ −1 < x < 2.
r
4 3
Example 14. Find the implied domain of f (x) = x− − 2.
x
Solution.
3
Need g(x) = x − −2 ≥0
2
x
x − 3 − 2x
≥0
x
(x − 3)(x + 1)
≥0
x
Remark. One may also determine the sign on each interval by testing with a point on that
interval:
For example,
3
g(−2) = (−2) − − 2 = − 52 < 0 ⇒ x − 3
x −2<0 on (−∞, −1)
−2
3
g − 21 = − 21 − 1 − 2 = 72 > 0 ⇒ x − 3
x −2>0 on (−1, 0)
−2
Given
• reflect the graph in the x−axis for f (x) < 0, discarding what was there
• reflect the graph for x ≥ 0 in the y−axis, keeping what was there