Lect 3. Functions With Graphs
Lect 3. Functions With Graphs
1) Vertical Line Test (for function or 2) Horizontal line & Range : The range of a function
not)A function means: for every input x is all possible y-values the graph [Link] you draw a
there is only one output [Link] vertical horizontal line at some y-level, and it touches the
line test checks this: If you draw a graph → that y is in the [Link] set of all these y
vertical line anywhere (like =1x=1, =2x= values = [Link]:=2y=x2: lowest y is 0, and
2, etc.), the line should cut the graph at graph goes upward forever. So range = [0,∞)[0,
at most one [Link] it cuts in two or ∞).Horizontal lines below 0 never touch, lines above
more places → not a 0 always touch.
[Link]:=2y=x2 (a parabola):
any vertical line hits it once → ✅ a
[Link] 2+2=1x2+y2=1: vertical
line (say =0x=0) hits at two points → ❌
not a function. 3) Onto function (Surjective)
Function is onto if its range covers all possible y-values
(the entire codomain).
Graphically: every horizontal line you draw should cut
the graph somewhere.
Example:=f(x)=x (straight line). Every horizontal line
touches → onto.
Example:=2f(x)=x2. Horizontal lines below =0y=0 never
touch → not onto (if codomain = all real numbers).
• 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) =
3 sin x
−3 x < −2
32 x −2 ≤ x < 0
7. f (x) = −x 0 ≤ x < 1
2 1≤3
0 3<x
——————————————————–
(