Relationship Functions and Graphs-6
Relationship Functions and Graphs-6
A relation is a set of ordered pairs (x, y), where x represents the input
(domain), and y represents the output (range).
A function is a special type of relation where each input has exactly one
output.
Example of a Relation
This is a relation, but not a function because the input "1" has two different
outputs (2 and 5).
Example of a Function
Domain
Range
Example
Domain = {0, 1, 2}
Range = {2, 4, 6}
Image
Example
The image of 2 is 5.
The image of 3 is 7.
The codomain is all the possible output values a function or relation could
produce, even if not all of them are used. Think of it as a set of all potential
results.
For example
N. B. Even if we only get outputs like {2, 3, 4}, the codomain remains the
entire set {2, 3, 4, 5}.
Codomain is what could come out based on the rule of the function.
Identifying Functions
A relation is a function if each input (x-value) is paired with only one output
(y-value).
Example 1
Relation: {(1,2),(2,3),(3,4)}
Each input is paired with only one output. Therefore, this is a function.
Example 2
Relation:{(1,2),(2,3),(1,4)}
Since the input “1” is paired with two different outputs (2 and 4), this is not a
function.
Identifying Functions from Arrow Diagrams
Example 1
1→4,2→5,3→6
Example 2
1→4,2→5,1→6
Since “1” maps to both “4” and “6”, this is not a function.
Identifying Functions from Graphs
Example 1:
A straight line like y=2x+1 is a function because any vertical line will touch it
only once.
Example 2:
A circle is not a function because a vertical line can touch it at two points.
Practice Exercises
Domain: {1, 2, 3}
Codomain: {4, 5, 6}
Mappings:
1→4
2→5
3→4
Functional Notation
Examples
If f (x)=2x+3,
f (2)=2(2)+3=4+3=7
So,
f(2)=7.
Another Example
If g (x)=x^2 −5,
To find g(4):
g(4)=4 ^2 −5=16−5=11
So,
𝑔(4)=11.
Interpreting Functional Notation
f (x) = y
In a function,
For example, if
Evaluating Expressions
f(0)=3(0)−4=−4
Given
Solving equations
𝑓(x)=9.
Practice Exercises
a) 𝑓(3)
1. If f(x)=x ^2 +4x, find:
b) 𝑓(−1)
f(x)=mx+c
Where:
m is the slope (rate of change), c is the y-intercept (the point where the
graph crosses the y-axis) and (x,y) are the coordinates. This formula is also
called slope formula.
A positive slope means the line rises, while a negative slope means it falls.
y-Intercept
The y-intercept, c is where the graph crosses the y-axis, at point (0, c).
Example
A line passes through the points (-2,-4)and (-5,5). Find the equation of the
line in all three forms listed above.
Standard Form
Example
https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:forms-of-
linear-equations/x2f8bb11595b61c86:graphing-slope-intercept-equations/v/
graphing-a-line-in-slope-intercept-form
Video
https://www.google.com/search?client=ms-android-samsung-
rvo1&sca_esv=01c9daa3c61022a2&sxsrf=ADLYWIKvFoeA-
_nhsZh5XQWdcFkf8bl-
BQ:1737015542745&q=how+to+graph+a+linear+function+from+poi
nt+slope+form&udm=7&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8n
bOJfsBGGB5IQQO6L3J9LTkYkTMsFy3KExiuH6ofP-
3bcPvQ9RRuncHQuh0oGOglfbb6CiHPjeRbPZ8WEBhXg4BHN5-
OiYbYcriqk_WWrYh471B9dTSvXeyu-
VHPZmZs_rsD6NE4PDaUQhHtNixPHEzaGuW7m9Y3TjtTxM65BNx2OX&s
a=X&ved=2ahUKEwi47ZOT5_mKAxXqSzABHXiiNn0QtKgLegQIEhAB&bi
w=384&bih=723&dpr=2.81#fpstate=ive&vld=cid:b4fa8400,vid:SWf7I
sLH6Oo,st:0
Exercises
1. Sal finds the equation of a line that passes through (-3,6) and (6,0) in
point-slope, slope-intercept, and standard form. Can you write what
she did?
Intercepts
To find the intercepts of the graph of a linear function, you can use both
graphical and algebraic methods:
1. Algebraic Method
y=mx+c
Where:
m is the slope.
c is the y-intercept.
(0,b).
Example:
y=2(0)+3=3
Example:
0=2x+3
2x=−3
x=− 3/2
(-3/2,0)
Graphical Method
y-Intercept
To find the y-intercept, look at where the line crosses the y-axis. This is the
point (0,c).
x-Intercept
To identify the x-intercept, look at where the line crosses the x-axis. This is
the point (x,0).
Over to you
The gradient (slope) of a line describes its steepness and direction. When
dealing with parallel and perpendicular lines, their gradients have specific
relationships:
Parallel Lines
Two lines are parallel if they have the same gradient. If the gradient of one
line is
Since both have the same gradient, the lines are parallel.
Perpendicular Lines
Example:
Over to you
The length of a line segment is also known as the distance between two
points.
The midpoint of a line segment is the point that is exactly halfway between
the endpoints.
The midpoint splits the line segment into two equal parts.
Formulas
Given two points (x1,y1) and(x2, y2), find the distance between them and
the point equidistant between them using the following formulas.
Exercise
There are three types of systems of linear equations in two variables, and
three types of solutions.
. The point where the two lines intersect is the only solution.
An inconsistent system has no solution. Notice that the two lines are
parallel and will never intersect.
A dependent system has infinitely many solutions. The lines are coincident.
They are the same line, so every coordinate pair on the line is a solution to
both equations.
Solving Simultaneous Equations Graphically (Independent System)
1. Write the system of equations in slope-intercept form (if they are not
already):
𝑦=mx+c, where
Example:
*Use the slope to determine other points. The slope tells you how much
The y-intercept is (0,1) and the slope is 2, so from (0,1), move up 2 units and
right 1 unit to plot the next point, (1,3).
Repeat the same process for the second equation. Find the y-intercept and
use the slope to plot more points.
Example for
𝑦= −x+4:
The y-intercept is (0,4) and the slope is -1, so from (0,4), move down 1 unit
and right 1 unit to plot the next point,
(1,3).
equations. The coordinates of this point are the values of 𝑥 and 𝑦 that satisfy
The point where the two lines intersect is the solution to the system of
both equations.
Note : We can also use the table of values or substitution to find points on
the line
3𝑥 > 4 +5
3𝑥 > 9
𝑥 >9/3
x>3
{x: x>3}
This means “the set of all 𝑥 such that 𝑥 is greater than 3.”
Number Line
Step 2: Use an open circle for more than and less than and closed circles for
more than or equal to and less than or equal to
Step 3: Shade the region to the right for more than and to the left for less
than
Step 5: Use arrows at the ends of the shaded line to show the solution
extends infinitely in that direction
Graph Representation
For 𝑥>a, shade the region to the right of the boundary line.
For 𝑥<a, shade the region to the left of the boundary line.
Identify the boundary points for each inequality.
Eg. {1≤x<5}
For x≥1: Use a solid vertical line at x = 1 and for x<5: Use a dashed
vertical line at
Shade the region between the two boundary lines.
Over to you
a. Solve for 𝑥
1. Solve and represent 2x−5<1:
a. Solve for 𝑥
2. Solve and represent 4x+7≥15:
(f∘g)(x)=f(g(x))
How It Works?
Example
Given
f(g(x))=f(2x+1)
=(2x+1) ^2 +3
Expanding,
4x^2 +4x+1+3
=4x^2+4x+4
Therefore,
(f∘g)(x)=4x^2 +4x+4
(g∘f)(x),
g(f(x))=g(x^2 +3)
=2(x^2 +3)+1
=2x^2 +6+1
=2x^2 +7
Therefore,
(g∘f)(x)=2x^2 +7
Example
Note:
Exercise
Graph of a Quadratic Function
.
The y-intercept is the point at which the parabola crosses the y -axis. The
x-intercepts are the points at which the parabola crosses the x -axis. If
they exist, the x-intercepts represent the zeros, or roots, of the quadratic
function, the values of x at which y=0
To graph a Quadratic function you need to identify the vertex (the minimum
or maximum point on the parabola), determine the axis of symmetry (the
vertical line passing through the vertex), find a few additional points on the
graph by plugging in x-values, and then connect the points with a smooth
curve to form the parabola; the shape of the parabola depends on the sign of
the leading coefficient in the quadratic equation, indicating whether it opens
upwards or downwards.
Standard form:
To find the y-coordinate, substitute this x-value back into the function.
The axis of symmetry is a vertical line that passes through the vertex, with
the equation x = -b / (2a).
Choose a few x-values on either side of the vertex and substitute them into
the function to find the corresponding y-values.
Example