Are all functions mappings between sets

algebra-precalculusdefinitionelementary-set-theoryfunctions

I am trying to better understand what a function is.

I often see diagrams with two ovals with a bunch of lines between them, and I believe these represent sets, but I don't know if there's an official name for this, nor if this is how all functions behave.

Would it be accurate to say that a set is just a collection of objects without duplicates, and that a function is a mapping between "input" objects of one set and "output" objects of another set, such that each input is related to exactly one output object?

Best Answer

Your explanation of functions is clear and correct.

A function has three ingredients: Domain, Range,and Assignment.

Domain is the set of inputs, Range is the set of outputs and assignment is a formula or table which tells you what goes to what.

And as you mentioned we do not want to send the same input to two different outputs.

We can have graphs,tables, definitions, or any other way to represent functions. Examples of real world functions are social security numbers assigned to people, birthdays, age, and so fort.