You are on page 1of 3

Function

Function : A special relationship where each input has a single output. It is often written as
"f(x)" where x is the input value.
Example: f(x) = x/2 ("f of x equals x divided by 2")
It is a function because each input "x" has a single output "x/2":
• f(2) = 1
• f(16) = 8
• f(−10) = −5

Domain,Range,Codomain:
The domain is all the values that go into a function, and the range is all the values that come
out.
What can go into a function is called the Domain
What may possibly come out of a function is called the Codomain
What actually comes out of a function is called the Range

Example: a simple function like f(x) = x2 can have the domain (what goes in) of just the counting
numbers {1,2,3,...}, and the range will then be the set {1,4,9,...}

Constant function : a constant function is a function whose (output) value is the same for every
input value. For example 𝑓(𝑥) = 4 is a constant function.
Piecewise Functions: A piecewise function is one which is defined not by a single function,
but by two or more.

A piecewise function is a function where more than one formula is used to define the output.
Each formula has its own domain, and the domain of the function is the union of all of these
smaller domains.

Example: A Doctor's fee is based on the length of time.

• Up to 6 minutes costs $50


• Over 6 and up to 15 minutes costs $80
• Over 15 minutes costs $80 plus $5 per minute above 15 minutes
• Which we can write like this:

You visit for 12 minutes, what is the fee?


You visit for 20 minutes, what is the fee?
Again
And this is how we write it:

You might also like