All functions are relations, but not all relations are functions. A function is a relation that for each input, there is only one output.
EXPLANATION;
Functions are relations that have only one output for any unique input. To tell whether a graphed relation defines a function, you can use the vertical line test.