Lecture Notes by Dr. Abdul Rauf Nizami
Lecture Notes by Dr. Abdul Rauf Nizami
Instructor: M. Zeeshan
Spring 2020
2
• The set X is called the domain of f and the set Y is called the codomain
of f .
Note.
1. Domains and ranges of all our functions will be subsets of real numbers.
Geometric Approach.
• Vertical Line Test: Every vertical line intersects the graph of a function
f exactly at one point.
• If a horizontal line intersecting the graph meets the y-axis at the point
y, then y belongs to the range of f . The set of all such y points form
the range of f .
Example 1. Sketch the function f (x) = x2 and find its domain and range.
Check wether it is one/onto or not.
Functions and Graphs 3
Solution.
Step 1. (Graph)
Graph of f (x) = x2
Step 2. (Domain and Range)
Range: Since all the horizontal lines that cut the graph lie on and above the
x-axis, the range(f ) = [0, +∞).
One-One: Since each horizontal line that lies above the x-axis intersects the
graph at TWO points, f is not one-to-one.
Onto: Since the lines that lie below the x-axis do not intersect the graph, f
is not onto.
————————-Solution Ends——————————–
Example 2. Sketch the function f (x) = x3 and find its domain and range.
Check wether it is one/onto or not.
Solution.
Step 1. (Graph)
Graph of f (x) = x3
4 Functions and Graphs
Range: Since all the horizontal lines intersect the graph, the range(f ) = R.
One-One: Since each horizontal line intersects the graph exactly at one point,
f is one-to-one.
————————-Solution Ends——————————–
Some Basic Functions.
Example: y = 2
Example: f (x) = x
Functions and Graphs 5
Graph: The graph of a linear function is always a straight line with slope
a (the coefficient of x).
Example:
f (x) = 2x − 3
y = x2 y = −x2
y = x2 − 2x − 1 y = −x2 + 2x + 1
P (x)
5. Rational Function. A function of the form f (x) = Q(x) , where P (x) and
Q(x) are polynomials, is called the rational function.
6 Functions and Graphs
1 1
f (x) = x f (x) = x2
√
6. Square Root Function. A function of the form f (x) = x is called the
root function.
√ √
f (x) = x f (x) = x−1
f (x) = ex f (x) = ex + 10
f (x) = x f (x) = x2
f (x) = x3 f (x) = x4
f (x) = x5 f (x) = x6
9. Sine Function. A function of the form f (x) = sin x is called the sine
function.
8 Functions and Graphs
1
f (x) = cos x f (x) = 2 cos x
11. Tangent Function. A function of the form f (x) = tan x is called the
tangent function.
f (x) = tan x
12. Piecewise-Defined Function. A function is represented by different for-
mulas for different parts of its domain.
Example 1.
Functions and Graphs 9
−1 x<0
f (x) =
1 0≤x
Example 2.
−x x<0
f (x) =
x 0≤x
Example 3.
−1 x < −1
−x −1 ≤ x < 0
f (x) =
x2 0≤x<1
2 1≤x
Translations.
Upward :
• Example:
f (x) = x2 f (x) = x2 + 2
Downward :
• Example:
f (x) = x2 f (x) = x2 − 2
On the Left:
• New Equation: y = f (x + c)
• Example:
• New Equation: y = f (x − c)
• Example:
Vertical Stretch:
• Example:
• Example:
1
f (x) = cos(x) f (x) = 2 cos(x)
Horizontal Compress:
• Example:
• Example:
Symmetries.
• About the y-axis: The graph of y = f (x) is symmetric about the y-axis
if and only if replacing x by −x in it produces an equivalent equation.
y = x2
• About the Origin: The graph of y = f (x) is symmetric about the origin
if and only if replacing x by −x and y by −y in it produces an equivalent
equation.
14 Functions and Graphs
y = x3
——————————————————–
Practice Problems
Plot the following functions by hand and by MAPLE.
1. f (x) = 2x + 3
2. f (x) = −x2 + 1
3. f (x) = −x3
4. f (x) = |x + 1|
2
5. f (x) = − x−3
6. f (x) = 3sin x
−3 x < −2
23 x −2 ≤ x < 0
7. f (x) = −x 0 ≤ x < 1
2 1≤3
0 3<x
——————————————————–
Book: calculus and analytical geometry by Thomas and Finney 9th edition