Math60Lecture10_FunctionsandInequalities

Download Report

Transcript Math60Lecture10_FunctionsandInequalities

Relations and Functions
A relation is a correspondence between two sets. If x and y are two elements in
these sets and if a relation exists between x and y, then x corresponds to y, or y
depends on x.
Example:
x
y
Hours Studying in
Math Lab
2
Score on Math Test
3
4
4
5
6
6
7
60 70 70 80 85 85 95 90
Hours Studying in Math Lab
Score on Math Test
100
90
80
70
60
50
40
30
20
10
0
0
2
4
Score on Math Test
6
8
The set of x-coordinates {2,3,4,4,5,6,6,7} corresponds to the set of y coordinates
{60,70,70,80,85,85,95,90}
The set of distinct x-coordinates is called the domain of the relation. This is the set
of all possible x values specified for a given relation.
The set of all distinct y values corresponding to the x-coordinates is called the range.
In the example above,
Domain = {2,3,4,5,6,7} Range = {60,70,80,85,85,95,90}
Input x
FUNCTIONS
Function
f(x)
Output y
A function, f, is like a machine that receives as input a number, x, from the domain,
manipulates it, and outputs the value, y.
The function is simply the process that x goes through to become y. This “machine” has 2
restrictions:
1. It only accepts numbers from the domain of the function.
2.
For each input, there is exactly one output (which may be repeated for different inputs).
“OFFICIAL” DEFINITION OF A FUNCTION:
Let X and Y be two nonempty sets. A function from X into Y is a relation that
associates with each element of X, exactly one element of Y.
However, an element of Y may have more than one elements of x associated with it.
That is, for each ordered pair (x,y), there is exactly one y value for each x, but
there may be multiple x values for each y. The variable x is called the
independent variable (also sometimes called the argument of the function), and the
variable y is called dependent variable (also sometimes called the image of the
function.)
Analogy: In the x-y “relation”-ship, the x’s are the wives and the y’s are the
husbands. A husband is allowed to have two or more wives, but each wife(x) is only
allowed 1 husband(y).
Hours Studying in Math Lab
Score on Math Test
100
90
80
70
60
50
40
30
20
10
0
This relation is not a function
because there are two
different y-coordinates for the
x-coordinate, 4, and also for
the x-coordinate, 6.
0
2
4
6
Score on Math Test
8
Example:
Given the relation {(-2,-3),(2,3),(-1,2),(-3,4),(3,4)}
Is this relation a function?_______________
(does any one x-value have more than one corresponding y value?)
What is the domain? -3,-2, -1, 2, 3
What is the range? -3, 2, 3, 4
4
-3, 4
3, 4
3
2, 3
2
-1, 2
1, 2
1
0
-4
-2
-1
0
2
x-axis4
-3
-2, -3
-4
y-axis
-2
Example:
Given the relation {(-4,4),(-2,2),(0,0),(-2,-2)}
Is this relation a function?_______________
(does any one x-value have more than one corresponding y value?)
What is the domain?___________________
What is the range?______________________
Example
Consider the equation for the line segment:
y = 2x – 5, where the domain is {x|1 ≤ x ≤ 6}
8
Is this equation a function?
7
6
Notice that for any x, you can only get one answer for y.
5
(E.g. when x =1, then y = 2(1) – 5= -3.)
4
Therefore the equation is a function.
3
Functional notation for this equation would be
2
f(x) = 2x – 5
1
Just replace the y with f(x). Note: This is stated “f of x”,
0
It does not mean f times x, though it looks like that.
-1
0
1
2
3
4
5
6
7
-1
What is the range?
-2
Since this is a straight line, we need only check y values
-3
at endpoints of domain. The y values do not fluctuate
-4
between these endpoints. The y values are also called
This figure is a line segment with endpoints
function values, so they are often referred to as f(x),
(1,-3) and (6,7).
which means the value of the function at x
(not f times x).
The endpoints of the domain are 1 and 6.
f(1) = the value of the function (what is y?) when x = 2
= 2(1) – 5 = -3
f(6) = the value of the function (what is y?) when x = 6
= 2(6) – 5 = 7
So the range is {y|-3 ≤ y ≤ 7}
Example
Find the range of the function given by the equation
f(x) = -3x + 2 if the domain is {-4,-2,0,2,4}.
Recall domain means possible x-values.
f(x) = -3x + 2
-4
-2
0
2
4
The ordered pairs that belong to this
function are graphed to the right.
They are:
{(-4,14), (-2,8), (0,2),(2,-4),(4,-10)}
Range means possible y values, so
Range = {-10,-4,2,8,14}
YOU TRY PROBLEM 3 ON P.300
12
-4, 14
14
8
2
-4
-10
8
-2, 8
4
-6
-4
-2
00, 2
0
-4
y-axis
x
f(x) 16= -3x + 2
x-axis
2
4
2, -4
-8
-12
-16
4, -10
6
5.6 Graphing Inequalities
Remember graphing inequalities that have only one variable?
x+2 <7
x + 2-2 < 7-2
x<5
Graphing inequalities with two variables is like graphing a line,
but we shade in the area that has all possible solutions.
Example 1:
y > -3x - 2
3x + y > -2
12
10
8
6
Get y by itself.
y > -3x - 2
Pretend this is a linear equation:
y = -3x - 2
-10
From this we know
the y-intercept is (0 ,-2 )
The slope is m = -3
-8
-6
-4
4
2
0
-2 -2 0
-4
-6
-8
2
4
6
8
10
-10
-12
-14
-16
Now since this is a strict inequality ( > ), the solution area does not include
the set of points that lie on the line y= -3x – 2. So to denote that, we make the line
be dashed to show that the solution set does not include the line. For the inequality
y> -3x -2, the solution set will include all points that lie ABOVE the line. For then at
any one x-coordinate on the line, the corresponding y-coordinate of the inequality
will be greater that the y-coordinate on the line.
Graph 2x + 3y ≤ 6
Get y by itself to put in slope-intercept form.
2x + 3y ≤ 6
3y ≤ -2x + 6
y ≤ -⅔ x + 2
y-intercept is (0, 2)
slope is -⅔
y≤-⅔x + 2
5
4
-3, 4
3
y
2
0, 2
1
0
-4
-3
-2
-1
3, 0
0
-1
x
1
2
3
4
Graph x – 3y < 2
Be careful not to ASSUME what the graph will look like. Just because you
initially see a “LESS THAN” sign, does not necessarily mean the solution set will
lie in the lower-half plane.
Get y by itself to put in slope-intercept form.
x  3y  2
 3y  x  2
 3y  x 2


3 3 3
WAIT! Remember t o SWITCH the inequality when dividing by a negative number.
 3y  x 2


3 3 3
y
1
2
x
3
3
UGH! This linear equality has an ugly y-intercept. It is not easy to graph.
Why don’t we make our graph so that each tick mark represents ⅓ of a unit?