f(x) "f(x) = ...You are watching: What is input and output math " is the classic means of composing a function.And over there are other ways, together you will see!

## Input, Relationship, Output

We will certainly see countless ways come think around functions, but there are always three key parts:

The input The relationship The output

But we are not going come look at certain functions ...... Rather we will look at the basic idea of a function.

## Names

First, the is helpful to give a function a name.

The most common name is "f", yet we can have various other names prefer "g" ... Or even "marmalade" if us want.

But let"s use "f": We speak "f that x equals x squared"

what goes into the role is put inside clip () after ~ the surname of the function:

So f(x) shows us the duty is called "f", and also "x" go in

And we usually see what a duty does v the input:

f(x) = x2 shows us that function "f" take away "x" and squares it.

Example: through f(x) = x2:

an intake of 4 i do not care an output of 16.

In truth we can write f(4) = 16.

## The "x" is just a Place-Holder!

Don"t acquire too concerned about "x", the is just there to present us where the input goes and also what happens to it.

It could be anything!

So this function:

f(x) = 1 - x + x2

Is the same duty as:

f(q) = 1 - q + q2 h(A) = 1 - A + A2 w(θ) = 1 - θ + θ2

The change (x, q, A, etc) is simply there so we recognize where to placed the values:

f(2) = 1 - 2 + 22 = 3

## Sometimes there is No function Name

Sometimes a role has no name, and also we check out something like:

y = x2

But over there is still:

an intake (x) a relationship (squaring) and also an calculation (y)

## Relating

At the peak we stated that a role was like a machine. However a duty doesn"t really have actually belts or cogs or any kind of moving components - and also it doesn"t actually damage what we put right into it!

A duty relates an input to an output.

Saying "f(4) = 16" is choose saying 4 is somehow pertained to 16. Or 4 → 16 Example: this tree grows 20 centimeter every year, so the elevation of the tree is related come its period using the role h:

h(age) = period × 20

So, if the age is 10 years, the elevation is:

h(10) = 10 × 20 = 200 cm

Here are some example values:

period h(age) = period × 20
0 0
1 20
3.2 64
15 300
... ...

## What species of things Do attributes Process?

"Numbers" appears an evident answer, however ...

 ... Which numbers? For example, the tree-height role h(age) = age×20 renders no sense for an er less than zero. ... It could additionally be letter ("A"→"B"), or ID codes ("A6309"→"Pass") or stranger things.

So we require something an ext powerful, and also that is whereby sets come in: ### A set is a arsenal of things.

Here space some examples:

collection of even numbers: ..., -4, -2, 0, 2, 4, ... Collection of clothes: "hat","shirt",... Collection of element numbers: 2, 3, 5, 7, 11, 13, 17, ... Hopeful multiples the 3 the are much less than 10: 3, 6, 9

Each individual thing in the set (such as "4" or "hat") is called a member, or element.

So, a function takes elements the a set, and gives earlier elements that a set.

## A duty is Special

But a duty has special rules:

It should work because that every feasible input value and also it has only one relationship because that each input value

This deserve to be said in one definition: ### Formal an interpretation of a Function

A duty relates each element that a setwith specifically one aspect of another set(possibly the exact same set).

## The Two necessary Things!

 1 "...each element..." method that every aspect in X is regarded some facet in Y. We say that the function covers X (relates every aspect of it). (But some aspects of Y might not be related to at all, i m sorry is fine.)
 2 "...exactly one..." way that a role is single valued. It will certainly not give earlier 2 or more results for the exact same input. So "f(2) = 7 or 9" is no right!
 "One-to-many" is not allowed, yet "many-to-one" is allowed:  (one-to-many) (many-to-one) This is NOT ok in a function But this is yes sir in a function

When a connection does not follow those 2 rules climate it is not a function ... It is tho a relationship, simply not a function.

### Example: The relationship x → x2 Could additionally be created as a table:

X: x Y: x2
3 9
1 1
0 0
4 16
-4 16
... ...

It is a function, because:

Every aspect in X is concerned Y No aspect in X has actually two or much more relationships

So it complies with the rules.

(Notice exactly how both 4 and also -4 relate come 16, i m sorry is allowed.)

### Example: This partnership is not a function: It is a relationship, however it is not a function, because that these reasons:

worth "3" in X has actually no relation in Y worth "4" in X has actually no relationship in Y value "5" is associated to much more than one value in Y

(But the fact that "6" in Y has no connection does not matter) ## Vertical heat Test

On a graph, the idea that single valued way that no upright line ever before crosses much more than one value.

If that crosses much more than once that is still a valid curve, yet is not a function.

Some varieties of functions have stricter rules, to find out much more you can read Injective, Surjective and also Bijective

## Infinitely Many

My examples have simply a couple of values, yet functions usually occupational on sets through infinitely countless elements.

### Example: y = x3

The output set "Y" is likewise all the real Numbers

We can"t present ALL the values, so below are simply a couple of examples:

X: x Y: x3
-2 -8
-0.1 -0.001
0 0
1.1 1.331
3 27
and so on... and for this reason on...

## Domain, Codomain and also Range

In our instances above

the set "X" is referred to as the Domain, the set "Y" is dubbed the Codomain, and also the set of facets that get pointed to in Y (the really values produced by the function) is called the Range.

We have a special page on Domain, range and Codomain if you desire to understand more.

## So plenty of Names!

Functions have actually been supplied in mathematics for a an extremely long time, and also lots of different names and also ways that writing functions have come about.

Here room some usual terms you have to get familiar with: ### Example: z = 2u3:

"u" could be dubbed the "independent variable" "z" could be dubbed the "dependent variable" (it depends on the worth of u)

### Example: f(4) = 16:

"4" could be referred to as the "argument" "16" can be dubbed the "value that the function"

### Example: h(year) = 20 × year: h() is the duty "year" can be referred to as the "argument", or the "variable" a fixed value prefer "20" can be called a parameter

We often call a function "f(x)" as soon as in truth the role is yes, really "f"

## Ordered Pairs

And below is another method to think about functions:

Write the input and output that a role as an "ordered pair", such together (4,16).

They are dubbed ordered pairs because the input always comes first, and also the output second:

(input, output)

So that looks like this:

( x, f(x) )

Example:

(4,16) means that the role takes in "4" and also gives out "16"

### Set of notified Pairs

A role can then be characterized as a set of ordered pairs:

Example: (2,4), (3,5), (7,3) is a duty that says

"2 is concerned 4", "3 is regarded 5" and "7 is connected 3".

the domain is 2,3,7 (the intake values) and also the range is 4,5,3 (the output values)

But the role has to it is in single valued, so we additionally say

"if it consists of (a, b) and (a, c), then b must equal c"

Which is simply a way of saying that an intake of "a" cannot produce two various results.

Example: (2,4), (2,5), (7,3) is not a duty because 2,4 and 2,5 way that 2 can be pertained to 4 or 5.

In various other words that is not a function because it is not single valued ### A benefit of ordered Pairs

We can graph them...

... Since they are also coordinates!

So a collection of collaborates is also a duty (if they monitor the rules above, that is)

## A duty Can it is in in Pieces

We can create functions the behave differently depending upon the intake value

### Example: A role with 2 pieces:

as soon as x is much less than 0, it provides 5, once x is 0 or more it provides x2
-3 Here room some example values: x y 5 -1 5 0 0 2 4 4 16 ... ...

Read much more at Piecewise Functions.

## Explicit vs Implicit

One last topic: the state "explicit" and also "implicit".

Explicit is once the role shows us just how to go straight from x to y, together as:

y = x3 − 3

When we know x, we can uncover y

That is the classic y = f(x) stylethat we often work with.

Implicit is once it is not given straight such as:

x2 − 3xy + y3 = 0

When we know x, just how do we find y?

It might be hard (or impossible!) to go directly from x come y.

See more: Where Is The Daycare In Pokemon Alpha Sapphire, Pokémon Day Care

"Implicit" comes from "implied", in other words presented indirectly.

## Conclusion

a function relates inputs to outputs a function takes aspects from a collection (the domain) and relates them to elements in a set (the codomain). Every the outputs (the yes, really values associated to) room together dubbed the range a role is a special form of relationship where: every element in the domain is included, and also any intake produces only one output (not this or that) an input and its equivalent output are together called an ordered pair therefore a duty can additionally be seen as a set of bespeak pairs
5571, 5572, 535, 5207, 5301, 1173, 7281, 533, 8414, 8430
Injective, Surjective and also Bijective Domain, selection and Codomain advent to set Sets Index