Chap 1 SP2024
Chap 1 SP2024
Chap 1 SP2024
1 NYU SPS
Chapter 1: Functions
Spring 2024
Example (Plotting Points on Two Dimensional coordinate
System)
Plot the following ordered pairs on two dimensional coordinate
system
(0, 0), (5, 3), (0, 4), (−4, 2), (−5, 0), (−5, −3), , (0, −4), (3, −2)
Example (Plotting Points on Two Dimensional coordinate
System)
6 y
5
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Solution:
n o
a. The Domain D is 4, −4, 2, 10
n o
b. The Range R is 9, 3, −5
Definition (Function)
A function is a set of order pairs in which each x-coordinate has
exactly one y-coordinate.
Example (Function)
Is the relation
n o
(4, 9), (−4, 9), (2, 3), (10, −5)
also a function?
Solution: Since each element of the domain is paired with only
one element of the range, it is a Function.
Remark (Characteristics of a Function)
1. Each element in the domain must be matched with an
element in the range.
2. Some elements in the range may not be matched with any
element in the domain.
3. Two or more elements in the domain may be matched with
the same element in the range.
4. An element in the domain cannot be matched with two
different elements in the range.
Definition (Four Ways to Represent a Function)
1. Verbally by a sentence that describes how the input
variable is related to the output variable.
2. Numerically by a table or a list of ordered pairs that
matches input values with output values
3. Graphically by points in a coordinate plane in which the
horizontal positions represent the input values (x − axis) and
the vertical positions represent the output values (y -axis)
4. Algebraically by an equation in two variables
Definition (Vertical Line Test)
If a vertical line can be drawn so that it intersects a graph more
than once, the graph is not the graph of a function.(If no such
vertical line can be drawn, the graph is that of a function.).
Example (Vertical Line Test for Functions)
6 y
5
4
3
2
y = 3x + 2
1
x
−4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: Since the vertical line intersects the graph of the equation of the
straight line y = 3x + 2 at exactly one point , it is a function
Example (Vertical Line Test for Functions)
6 y
5
4
3
2 y = x2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: This is a function since the vertical line intersects the graph of
the equation y = x 2 at exactly one point .
Example (Vertical Line Test for Functions)
y
2
y2 = x
1
x
1 2 3 4 5 6
−1
−2
Figure: The red vertical line intersects the graph of y 2 = x more than
once namely at (4, 2) and (4, −2). In others words the input 4 has two
outputs 2 and -2. Thus is not a function
Example (Vertical Line Test for Functions)
6 y
5
4
3
2 x =3
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: This is not a function since the vertical line intersects the graph
of the vertical line x = 3 at an infinit number of points.
Remark (Vertical Line Test)
Since the graph of a linear equation is a line, all linear equations
are functions, except those whose graph is a vertical line.
Thus, all linear equations are functions except those of the form
x = c, which are vertical lines
Example (Function)
Which of the following equations are functions?
a. y = 2x is a Function
b. y = −3x − 1 is a Function
c. y = 8 is a Function, which is a horizontal line
c. x = − is Not a Function, which is a vertical line line
Notation (Function Notation)
The variable y is a function of the variable x. For each value
of x , there is only one value of y . Thus, we say the variable x
is thethe independent variable because any value in the
domain can be assigned to x. The variable y is the the
dependent variable because its value depends on x.
We often use letters such as f, g, and h to name functions.
For example, the symbol f (x) means function of x and is read
“f of x.” This notation is called Function Notation.
We can use function notation to write the equation
f (x + 3) = (x + 3)2 − 3(x + 3) + 1 = 4x 2 − 6x + 1
= x 2 + 6x + 9 − 3x − 9 + 1 = x 2 + 3x + 1
Exercise (Evaluating a function)
Let h 6= 0
1. Determine g (x + h) where g (x) = −3x + 2
2. Determine f (x + h) where f (x) = −2x 2 + 1
Example (Finding an Equation of a Function)
Express the relationship 2n + 6p = 12 as a function p = f (n), if
possible.
Solution: We need to solve for the variable p. That is
2n + 6p = 12
−2n = −2n subtract −2n from both sides and
6p = 12 − 2n
6p 12 − 2n
= Divide both sides by 6 and simplify.
6 6
12 2n 1
p = − =2− n
6 6 3
Therefore we write
1
p = f (n) = 2 − n
3
Definition (Graphs of Equations)
A relationship between two quantities is always expressed as
an equation in two variables. For example, y = 7 − 3x is an
equation in x and y.
An ordered pair (a, b) is a solution or solution point of an
equation in x and y when the substitutions x = a and y = b
result in a true statement .
The graph of an equation is the set of all points that are
solutions of the equation.
Example (Graphs of Equations)
Determine whether (a) (2, 13) and (b) (−1, −3) lie on the graph
of y = 10x − 7
Solution:
(a)
y = 10x − 7
?
13 = 10(2) − 7
13 = 13 X
y = 10x − 7
?
−3 = 10(−1) − 7
−3 6= −17
The point (−3, −1) does not lie on the graph of y = 10x − 7
because it is not a solution point of the equation y = 10x − 7
Procedure (The Point-Plotting Method of Graphing)
1. When possible, isolate one of the variables.
2. Construct a table of values showing several solution points.
3. Plot these points in a rectangular coordinate system.
4. Connect the points with a smooth curve or line.
Example (The Point-Plotting Method of Graphing)
Graph the equation y = |x|
Solution: We need to set up a table of values (solution points)
x y = |x| (x, y )
0 |0| = 0 (0,0)
−1 | − 1| = 1 (-1,1)
1 |1| = 1 (1,1)
−2 | − 2| = 2 (-2,2)
2 |2| = 2 (2,2)
−3 | − 3| = 3 (-3,3)
3 |3| = 3 (3,3)
Example (The Point-Plotting Method of Graphing)
y = |x|
6 y
5
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
f (x + h) − f (x)
h
is called a Difference Quotient of the function f .
Example (Difference Quotient)
Compute the difference quotient for f (x) = −7x + 3.
Solution: Let h 6= 0
Step 1 Compute f (x + h) = −7(x + h) + 3 = −7x − 7h + 3
Step 2 Compute the difference
f (x + h) − f (x) −7h
=
h h
= −7
Example (Difference Quotient)
Compute the difference quotient for f (x) = −3x 2 + 4.
Solution: Let h 6= 0
Step 1 Compute
Figure: It follows from the graph Df = [0, ∞) and Rf = [0, ∞). The
square root function is defined only on positive real numbers.
Example (Finding Domain and Range Graphically)
6 y
5
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
2x − 6 ≥ 0
2x ≥ 6
2x 6
≥
2 2
x≥ 3
h
D = 3, ∞
Example (Finding the Domain of a function algebraically)
√
y = 2x − 6
6 y
5
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
h
Figure: It follows from the graph Df = 3, ∞ and Rf = [0, ∞).
Example (Finding the Domain of a function algebraically)
Determine the domain of the function defined by the equation
1
y = x 2 −3x+2 .
Solution: The domain of this function are those real numbers
satisfying the condition x 2 − 3x + 2 6= 0. We instead solve the
quadratic equation x 2 − 3x + 2 = 0.
x 2 − 3x + 2 = (x − 1)(x − 2) = 0
x −1 = 0 or x − 2 = 0
x =1 = or x =2 Thus the domain is
D = {x|x 6= 1 and x 6= 2}
= (−∞, 1) ∪ (1, 2) ∪ (2, ∞)
√
x−1
What is the domain of x 2 −3x+2
?
Definition (Piecewise functions)
A piecewise function is a function in which more than one
formula is used to define the output. Each formula has its own
domain, and the domain of the function is the union of all these
smaller domains. We notate this idea like this:
formula 1
if x is in domain 1
f (x) = formula 2 if x is in domain 2
formula 3 if x is in domain 3
Figure: It follows from the graph that the domain is (−∞, ∞) and range
is [0, ∞)
Example (Graph of a Piecewise Function)
(
1−x if x ≤ 0,
f (x) =
6 y x2 if x > 0
5
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: It follows from the graph that the domain is (−∞, ∞) and range
is (0, ∞)
Definition (The zeros of a function)
The zeros of a function y = f (x) are the x-values for which
f (x) = 0.
Example (The zeros of a function)
Find the zeros of the quadratic function f (x) = x 2 − 3x + 2
Solution: We solve for x :
f (x) = 0
2
x − 3x + 2 = 0
(x − 1)(x − 2) = 0
x −1=0 or x −2=0
x =1 or x =2
.
Example (Zeros of a Rational Function)
2−4
Find the zeros the function h(x) = xx 2 +1 algebraically.
Solution: That is we solve for x the equation:
h(x) = 0
x2 −4
2
= 0
x +1
x2 − 4 = 0
(x − 2)(x + 2) = 0
x −2=0 or x +2=0
x =2 or x =2
.
Example (Zeros of a Cubic function)
Find the zeros of the polynomial function f (x) = x 3 − 4x.
Solution: That is we solve for x the equation by using a
factorization
f (x) = 0
3
x − 4x = x(x 2 − 4)
x(x − 2)(x + 2) = 0
x = 0 or x =2 or x = −2
The zeros of the function f are 0, −2 and 2 which means that the
graph of f crosses the x- axis at the points (−2, 0), (0, 0) and
(2, 0) .
Example (Zeros of a Cubic function)
6 y
5
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: The function increasing on both intervals (−∞, −1) and (1, ∞)
and decreasing on the interval (−1, 1).
Example (Increasing, Decreasing, and Constant Function)
6 y
5
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: The secant line passing through the points (−2, −2) and (−1, 2)
has slope (rate) equal to 4.
Example (Average Rate of Change as Average Speed)
The distance s (in feet) a moving car is from a stoplight is given
by the function
√
s(t) = 20 x 3
f (−x) = f (x)
f (−x) = −f (x)
Figure: Odd function. The red piece is symmetric to the blue piece with
respect to the origin.
Example (Even Function)
The function defined by the equation y = g (x) = x 2 + 1 is even.
Solution: First the domain of the function is all reals. That is
Df = (−∞, ∞)
g (−x) = (−x)2 + 1
= x2 + 1
= g (x)
Hence the function is even and the graph of g has a symmetry with
respect to the y -axis
Example (Graph of an Even Function)
6 y
5
g (x) = x 2 + 1
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: Even function. The points (1, 2) and (−1, 2) are symmetric with
respect to the y -axis
Library of some common functions
f (x) = mx + b
f (x) = c
f (x) = x
Figure: The graph of identity function with domain (−∞, ∞) and range
(−∞, ∞)
Definition (The squaring function)
The graph of the squaring function
f (x) = x 2
Figure: The graph of squaring function with domain (−∞, ∞) and range
[0, ∞)
Definition (The cubic function)
The graph of the cubic function
f (x) = x 3
Figure: The graph of cubic function with domain (−∞, ∞) and range
(−∞, ∞)
Definition (The square root Function)
The graph of the square root function
√
f (x) = x
Figure: The graph of the square root function with domain [0, ∞) and
range [0, ∞)
Definition (The reciprocal Function)
The graph of the reciprocal function
1
f (x) =
x
is a curve with the characteristics below
The domain of the function is (−∞, 0) ∪ (0, ∞).
The range of the function is (−∞, 0) ∪ (0, ∞).
The function is odd.
The graph does not have any intercepts.
The graph is decreasing on the intervals (−∞, 0) and (0, ∞).
The graph is symmetric with respect to the origin
Example (The reciprocal Function)
6 y
5 1
f (x) = x
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
f f (x)
(d) (x) := , g (x) 6= 0
g g (x)
2x + 3
= 2
, x 2 + 4x + 4 6= 0
x + 4x + 4
Therefore the Domain of gf (x) will be all real numbers except
those x 2 + 4x + 4 = 0. That is we need to solve the equation
x 2 + 4x + 4 = 0 is equivalent to (x + 2)2 = 0
x + 2 = 0 is equivalent to x = −2
Thus
D f = (−∞, −2) ∪ (−2, ∞)
9
Definition (Composition of Two Functions)
The composition of the function f with the function g is
(f ◦ g )(x) := f (g (x))
(f ◦ g )(x) := f (g (x))
= 2g (x) + 3
= 2(x 2 + 1) + 1
= 2x 2 + 2 + 3
= 2x 2 + 5
(g ◦ f )(x) := g (f (x)) = (f (x))2 + 1 = (2x + 3)2 + 1
= (2x)2 + 2(2x)(3) + 32 + 1 = 4x 2 + 12x + 10
(g ◦ f )(x) := g (f (x))
= (f (x))2 + 1
= (2x + 3)2 + 1
= (2x)2 + 2(2x)(3) + 32 + 1
= 4x 2 + 12x + 10
(f ◦ g )(x) := f (g (x))
g (x) − 3
= , x 6= 0 and g (x) + 2 6= 0
g (x) + 2
1
−3 1
= x1 , x 6= 0 and + 2 6= 0
x +2
x
x( x1 − 3) 1
= 1
, x 6= 0 and x 6= −
x( x + 2) 2
1 − 3x 1
= , x 6= 0 and x 6= −
1 + 2x 2
(f ◦ g )(x) = (1 − 4x)27
= (g (x))27
= f (g (x))
Definition (Inverse Function)
Let f and g be two functions such that
and
Figure: The graph of the inverse function g (x) is symmetric to the graph
of f(x) with respect to the dashed line y = x.
Example (Graphs of Inverse Functions)
6 y
1 5
g (x) = 2 (x + 3)
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5
−2 f (x) = 2x − 3
−3
−4
−5
−6
Figure: The graphs of f and g are reflections of each other in the line
y = x. So, f and g are inverse functions of each other.
Example (Graphs of Inverse Functions)
6 y
5
f (x) = x 2, x ≥0
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 √
−2 g (x) = x
−3
−4
−5
−6
Figure: The graphs of f and g are reflections of each other in the line
y = x. So, f and g are inverse functions of each other.
Definition (one-to-one function)
A one-to-one function is a function in which each output value
corresponds to exactly one input value. Algebraically means that
If f (x) = f (y ), then x = y
Figure: f is one-to-one on its domain (−∞, ∞) since its graph passes the
horizontal line test.
Example (Horizontal Line Test for one-to-one Function)
6 y
5
f (x) = x 3 − x + 1
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
Figure: The horizontal line intersects the graph of f more than once, so
it’s not one- to- one on its domain (−∞, ∞)
Definition
A function f has an inverse function if and only if f is one-to-one.
Figure: Because f√is one-to-one over its entire domain, it has an inverse
function g (x) = 3 x with a domain all reals
Example (Horizontal Line Test for Inverse Functions)
6 y
5
f (x) = x 2
4
3
2
1
x
−6 −5 −4 −3 −2 −1
−1 1 2 3 4 5 6
−2
−3
−4
−5
−6
5−x
f (x) =
3x + 2
5−x
y =
3x + 2
5−y
x =
3y + 2
x(3y + 2) = 5 − y
3xy + 2x = 5−y
3xy + y = 5 − 2x
y (3x + 1) = 5 − 2x
5 − 2x
y =
3x + 1
Example (Finding an Inverse Function )
5 − 2x
y =
3x + 1
5 − 2x
f −1 (x) =
3x + 1
THANK YOU FOR YOUR ATTENTION!