Week 2.1E Functions
Week 2.1E Functions
y = f (x) = x2 − x + 1, where f : R → R
The x in y = f (x) is called the independent variable, while y is called the dependent variable.
Definition 2. Consider a function f : X → Y .
• The domain Df of f is the set on which f is defined: Df = X.
• The range Rf [or Wf ] of f is the set of all the values f can obtain: Rf = {f (x) | x ∈ Df }.
Definition 3. The graph of a function f : X → Y is the set of all ordered pairs
Graph(f ) = x, f (x) x ∈ X
1
The graph of a function Not the graph of a function.
Solution:
(a) This expression is defined when
3 + 2t ≥ 0 and 3t − 7 ̸= 0
We have
3 + 2t ≥ ⇐⇒ t ≥ − 32 , and 3t − 7 ̸= 0 ⇐⇒ t ̸= 7
3
Thus Df = − 32 , 37 ∪ 73 , ∞
We have
0 ≤ 2 − |x + 1| ⇐⇒ |x + 1| ≤ 2 ⇐⇒ −2 ≤ x + 1 ≤ 2 ⇐⇒ −3 ≤ x ≤ 1
Thus Df = [−3, 1]
2
To determine the range, we will do it step-by-step:
Expression Range
x+1 R
|x + 1| [0, ∞)
−|x + 1| (−∞, 0]
2 − |x + 1| (−∞, 2]
p √
2 − |x + 1| 0, 2
p √
3 + 2 − |x + 1| 3, 2 + 3
√
So, Rf = 3, 2 + 3
Solution:
(a) This expression is defined when
x − x2 ≥ 0 and 3x − 1 ̸= 0
We have
x − x2 = x(1 − x) ≥ 0
With a number line, we find the solution set is [0, 1]. This, together with x ̸= 31 , gives
Dg = 0, 13 ∪ 31 , 1
3
2 Even and odd functions
Definition 10. Consider a function f with domain Df .
• We say that f is even when f (−x) = f (x) for all x ∈ Df .
• We say that f is odd when f (−x) = −f (x) for all x ∈ Df .
Visually even functions are symmetric around the origin. If one rotates the graph of an odd function
by 180◦ around the origin, then we will get the same graph.
Even function Odd function
Example 11. Determine which of the following functions are even, odd, or neither even nor odd.
(a) f (x) = 2x2 − 1 (b) f (x) = x3 + x
(c) f (x) = x2 + 2x + 1 (d) f (x) = x x2 − 1 − x3
Solution:
(a) Since 2(−x)2 − 1 = 2x2 − 1, it is an even function.
(b) Since (−x)3 + (−x) = −x3 − x, it is an odd function.
(c) This function is neither odd nor even:
f (−1) = 0, f (1) = 4, −f (1) = −4; =⇒ f (−1) ̸= f (1) and f (−1) ̸= −f (1)
1 3 4
4
Definition 14. An interval I is open if it contains no boundary points. An interval is closed if
it contains all boundary points.
For any a, b ∈ R, with a < b,
Example 15. For f (x) = |x + 1|, determine on which open intervals f is increasing and decreasing.
Solution: We have
−x − 1 as x < −1
f (x) =
x + 1 as x ≥ −1
We can make a sketch to see where it increases and decreases. Alternatively, we could argue it
algebraically as follows. If x ∈ (−∞, −1), then
x1 < x2 =⇒ −x1 > −x2 =⇒ −x1 − 1 > −x2 − 1 =⇒ f (x1 ) > f (x2 )
Exercise 16. On which open intervals is f (x) = |x + 3| − |2x + 1| increasing and decreasing?