Maths doubt, JEE

What is the difference between a relation and a function? Why are not all relations functions?

Answer: A relation from to is any set of ordered pairs with in and in . A function is a relation in which every element of appears in exactly one pair. A relation that leaves out an element of , or pairs one element with two outputs, is not a function.

By Sunil Kumar. Updated 26 November 2026.

Why

With and : is a function; is not, because 1 has two images and 2 has none.

Vertical line test: a graph is a function of when no vertical line cuts it more than once. So the circle is a relation but not a function; the parabola is a function, while is not.

If has elements and has : number of relations , number of functions .

Exam tip

Every function is a relation, not the reverse. A hyperbola is a function (); is not.

Previous year questions on this

More maths doubts