Notes - Functions 1
Notes - Functions 1
x y(= x + 2)
input value output value
(i) Mapping
X 1
Y 2
Z 3
Relation
W
1
X
Y 2
Z 3
Function
(iii) Coordinates
3 (2, 3)
(-4, 1) 1
-4 2 x
(iv) Equations
y2 = x Relation
y = x2 Function
(v) Graph
y y
y1
y1
x1 x2 x1
x x
y2
Vertical line test: if a vertical line can be drawn that intersects a curve in at least
two points, then the curve is not the graph of a function of x. When no such vertical
line can be drawn, the curve is the graph of a function of x.
f(x)
Output
The output f(x) is the same as y. Since y = x + 2, we can also write f(x) = y = x + 2 or
more simply f(x) = x + 2
To find f(3), which is the output corresponding to the input 3, we replace each x in f(x) =
x + 2 by 3: f (3) = 3 + 2 = 5
Outputs are also called function values.
Variable that represents input values (domain) is called independent variable. Variable
that represents output values (range) is called dependent variable. In equation y = x + 2,
x is the independent variable and y is the dependent variable, where y is a function of x.
Example:
2 if x 1
Determine whether y 0 if x 1 represent a function or not?
2 if x 1
y
2- o
1 x
*Case-defined function
-2- o
*Hollow dot: the point is not included in the graph.
Function where domain is all real numbers and range is { –2, 0, 2 }
y=2x
x
y=3x+1
TYPES OF FUNCTIONS
POLYNOMIAL FUNCTION
Example: 2x2y + xy2z + 4xz2 – 10 has three variables (x, y dan z). The degree of the
polynomial is 4 (1 + 2 + 1 = 4, where term xy2z has the highest degree).
CONSTANT FUNCTION
Monomial of degree 0
y = f(x) = 20
20
y = f(x) = a + bx
a, b are real numbers and b 0
Example:
Sketch the graph for y = f(x) = –1 + 2x
(3, 5)
(1, 1)
-1
SLOPE OF A LINE
To measure the steepness of a line, we use the notion a slope. For example, as the x-
coordinate increases from 2 to 4, the y-coordinate increases from 1 to 5. The average rate
of change of y with respect to x is the ratio
y
𝑐ℎ𝑎𝑛𝑔𝑒 𝑖𝑛 𝑦 𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 𝑐ℎ𝑎𝑛𝑔𝑒 5−1 4
= ℎ𝑜𝑟𝑖𝑧𝑜𝑛𝑡𝑎𝑙 𝑐ℎ𝑎𝑛𝑔𝑒 = 4−2 = 2 =2
𝑐ℎ𝑎𝑛𝑔𝑒 𝑖𝑛 𝑥
(4, 5)
(2, 1)
The ratio of 2 means that for each 1-unit increase in x, there is a 2-unit increase in y.
Example:
Find the slope of the straight line that passes through (–3, 2) and (2, –1).
y 2 y1 1 2 2 (1) 3
b
x 2 x1 2 (3) 32 5
(2, 3)
b = (2 – 2)/(3 – 2) = 0/1 = 0
horizontal
(2, 2) (3, 2)
Point-slope form
y y1
b
x x1
y y1 b( x x1 )
Example:
Find an equation of the line that has the slope 2 and passes through (1, –3).
y – y1 = b(x – x1)
y – (–3) = 2(x – 1)
y+3 = 2x – 2
y = 2x – 5
Can also be rewritten as 2x – y – 5 = 0
Parallel Lines are two lines that have the same slope, where
b1 = b2
Perpendicular Lines are two lines with slopes b1 and b2 perpendicular to each other only
if b1 x b2 = –1
Parallel Perpendicular
Example :
Find the equation of the line that passes through (1, –2) and parallel to y = 3 + 2x. .
b1 = b2 = b = 2
y – y1 = b(x – x1)
y – (–2) = 2(x – 1)
y + 2 = 2x – 2
y = –4 + 2x
y – y1 = b(x – x1)
y (2) = 1/2(x – 1)
y + 2 = (–1/2)x + 1/2
y = (–1/2)x – 3/2
INTERSECTION OF LINES
Example:
Get the intersection point for these lines y = x + 1 and y = –2x + 4
x + 1 = –2x + 4
3x = 3
x=1
When x = 1, y = x + 1 or y = –2x + 4
y=1+1=2 y = –2(1) + 4 = 2
y = -2x + 4
(1, 2)
y=x+1
An equation relating price per unit of product and corresponding quantity demanded (in
units) is called a demand equation. p = D(q) p as a function of q
Its graph is called a demand curve.
An equation relating price per unit of product and corresponding quantity supplied (in
units) is called a supply equation. p = S(q) p as a function of q
Its graph is called a supply curve.
p p
Example:
Suppose the demand per week for a product is 100 units when the price is RM 58 per unit
and 200 units at RM51 each. Determine the demand equation assuming that it is linear.
q = 100 when p = 58
q = 200 when p = 51
(q, p) coordinates are (100, 58) and (200, 51)