Функції як відображення множин

Illustrated · 1 min

Functions and Relations

Relations are just rules that give one or more output for any given input.

You might recall that this is similar to functions which give one output for any input. Functions are a type of relation, but they specifically only produce 11 output.

Functions are a subset of relations.

Image source: by Alex Federspiel

Function Example

1 input put into a function will give 1 output.

One input gives one output.

Image source: by Alex Federspiel

An example of a function is y=2xy=2x If you put in the input x=1\color{#8925ae}{x=1}, you receive the output: y=2xy=2(1)y=2\begin{align} y&=2x\\ y&=2({\color{#8925ae}{1}})\\ y&=2 \end{align}

Plugging x = 1 into y = 2x gives y = 2.

Image source: by Alex Federspiel

Relation Example

1 input into a relation will give 1 or more outputs.

One input gives one or more outputs.

Image source: by Alex Federspiel

An example of a relation would be y2=xy^2=x If you put in x=4\color{#8925ae}{x=4}, you receive the outputs: y2=xy2=4y=±4y=2 or −2\begin{align} y^2&=x\\ y^2&=\color{#8925ae}{4}\\ y&=\pm\sqrt{4}\\ y&=2\text{ or }-2 \end{align} We see yy can either be 22 or −2-2. Both will make 44 when squared. So this has multiple outputs.

Plugging x = 4 into y^2 = x gives y = 2 and y = -2.

Image source: by Alex Federspiel

Video · + 1 min read

(Video) Introduction to Functions

by mathman1024

This video by mathman1024 explains the basics of functions.

Summary\large{\text{Summary}}

A relation is a set or collection of ordered pairs. Here's an example: {(2,3),(4,1),(0,1),(2,−2),(−1,5)}\{(2,3),(4,1),(0,1),(2,-2),(-1,5)\}

The individual ordered pairs are the objects from each set.

Sometimes when we put a bunch of ordered pairs together, we get a pattern that creates a graph.

A graph of y^2 = x.

This graph is made up of an infinite number of ordered pairs.

Made using Desmos

This equation graphed above is: y2=xy^2=x. We can define y=x2y=x^2 as a relation. Its inputs and outputs are a collection of ordered pairs. The domain is all of its xx values, and the range is all of its yy values.

It is also important to explain how functions tie in to this. A function is a just a subset, or type, of a relation. A function only has one output for any input. In other words, for every xx-value you put into a function, it returns only one yy-value.

Relations on the other hand, don't care. Given any input, they can have one or more outputs. In other words, for every xx-value you put into a function, it returns one or more yy-values.

Looking at the graph, when x=4x=4 there are two possible yy-values: y=2y=2 and y=−2y=-2. This tells us the graph is of a relation.

Graph of y^2 = x showing the input x = 4 gives two outputs.

Made using Desmos

We can tell the graphed equation is not a function is because it fails the vertical line test. It does, however, pass the horizontal line test.

Illustrated · 1 min

Relations

There are a few ways of defining mathematical relations, and some are more complicated than others. Here is a simplified definition: Relations are relationships between sets of values. They map inputs to outputs. For our purposes, think of relations as mappings between the domain and the codomain.

One of the most important things to remember is that relations can map a given input to multiple outputs. Because of this, relations are not quite functions, because functions map each input to exactly one output. In other words, the set of all functions is a subset of the set of all relations - functions are always relations, but relations are not always functions.

Relations: At least one output per input. A subset of relations are Functions, which have exactly one output per input.

Image source: Caroline Kulczycky

Relations can be represented in a variety of ways: graphs, set mappings, ordered pairs, tables, etc. For example, say we have a relation that maps xx to yy if x<yx<y (the "less than" relation). Here are a few ordered pairs that are part of the relation: (1,2)(2,5)(2,6)(100,10000)(1, 2)\\ (2, 5)\\ (2, 6)\\ (100, 10000)

The first number is always less than the second number here! Also, notice that this relation maps can map inputs to multiple outputs, which distinguishes it from a function. For example, take a look at (2,5)(2, 5) and (2,6).(2, 6). These are examples of how this relation maps an input of 22 outputs greater than 2.2. There are actually infinitely many of these outputs!

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems