Relation and Function
Relation and Function
(Project Guide)
ACKNOWLEDGEMENT
UJJWAL GUPTA
Relations And Functions Introduction
“Relations and Functions” are the most important topics in algebra. Relations
and functions – these are the two different words having different meanings
mathematically. You might get confused about their difference. Before we go
deeper, let’s understand the difference between both with a simple example.
The relation shows the relationship between INPUT and OUTPUT. Whereas, a
function is a relation which derives one OUTPUT for each given INPUT.
Note: All functions are relations, but not all relations are functions.
.diagram...
In this section, you will find the basics of the topic – definition of functions
and relations, special functions, different types of relations and some of the
solved examples.
Functions
A function is a relation which describes that there should be only one output
for each input (or) we can say that a special kind of relation (a set of ordered
pairs), which follows a rule i.e., every X-value should be associated with only
one y-value is called a function.
For example:
Let us also look at the definition of Domain and Range of a function.
Domain: It is a collection of the first values in the ordered pair (Set of all
input (x) values).
Range: It is a collection of the second values in the ordered pair (Set of
all output (y) values).
Example:
In the relation, {(-2, 3), {4, 5), (6, -5), (-2, 3)},
Note: Don’t consider duplicates while writing the domain and range and also
write it in increasing order.
Types of Functions
CONSTANT FUNCTION
f(x) = 0
f(x) = 1
f(x) = π
f(x) = 3
f(x) = −0.3412454
f(x) equal to any other real number you can think about.
One of the interesting things about a constant function is that we can input
any real number we want for x, and we can instantly know the value of the
function at that x without using any calculations.
IDENTITY FUNCTION
f(a) = a ∀ a ∈ R
Where a is the element of set R.
For example, f(2) = 2 is an identity function.
In set theory, when a function is described as a particular kind of binary
relation, the identity function is given by the identity relation or diagonal of A,
where A is a set.
LINEAR FUNCTION
y = f(x) = a + bx
A linear function has one independent variable and one dependent variable.
The independent variable is x and the dependent variable is y.
2. Plot them
y = 25 + 5x
Let x = 1
Then
y = 25 + 5(1) = 30
let x = 3
Then
y = 25 + 5(3) = 40
X Y=|x|
-2 2
-1 1
0 0
1 1
2 2
INVERSE FUNCTION
Example: {(-2, 1), (4, 3), (7, -3)}, usually written in set notation form with curly
brackets.
Relation Representation
There are other ways too to write the relation, apart from set notation such
as through tables, plotting it on XY- axis or through mapping diagram.
Types of Relations
Empty Relations
Universal Relations
Identity Relations
Inverse Relations
Reflexive Relations
Symmetric Relations
Transitive Relations
For example, if there are 100 mangoes in the fruit basket. There’s no
possibility of finding a relation R of getting any apple in the basket. So, R is
Void as it has 100 mangoes and no apples.
UNIVERSAL RELATIONS
IDENTITY RELATIONS
For Example,
When we throw a dice, the total number of possible outcomes is 36. I.e (1, 1)
(1, 2), (1, 3)…..(6, 6). From these, if we consider the relation (1, 1), (2, 2),
INVERSE RELATIONS
REFLEXIVE RELATIONS
An example of a reflexive relation is the relation "is equal to" on the set of
real numbers, since every real number is equal to itself. A reflexive relation is
said to have the reflexive property or is said to possess reflexivity.
SYMMETRIC RELATION
TRANSITIVE RELATIONS
Transitive relations are binary relations defined on a set such that if the first
element is related to the second element, and the second element is related
to the third element of the set, then the first element must be related to the
third element.
Relations are defined as sets of ordered pairs. Ordered pairs are values that go
together. This means that if one value is used, the other must be present.
Here is an example: If (4,8) is an ordered pair, then it implies that if the first
element is 4 the other is designated as 8. A relation may have more than one
output.
On the other hand, a function is a relation where one x-element (or the output)
has one Y-element (or the input associated with it).
However, if you were to take the height of a particular person over the years, the
height would be a function of age. This is because a person would have only one
value of height at any point in life.
2. A Semester in School
A student may have different grades for different subjects. Therefore, there is a
relation between the student and his grades.
However, in a single class, the tutor assigns each student a grade depending on
the performance of that particular subject. There can never be a student with
two grades in a single subject.
3. Temperature and Location
A location may have varying temperatures according to the time of the day and
weather. This may repeat itself over the years as long as the conditions are
similar to those of the last time. That can be said to be a relation.
However, the temperature can also be a function of time. At any one time, there
can only be one temperature reading for a location.
The cash won from buying a lottery scratchcard may differ for two or more
tickets. Therefore, you cannot say for sure how much you are likely to make by
scratching several tickets.
Besides, a single ticket may be eligible for more than one draw where it loses
both, wins one, or both. This is a classic example of a relation.