Introduction to Mathematical Functions
Introduction to Functions
What is a Function?
Think of a function as a simple machine. You put something in, and you get something out. For any specific input, this machine will always give you the exact same, single output. It's a consistent rule that connects inputs to outputs.
For every input, there is exactly one output.
For example, a machine that adds 3 to any number you give it is a function. If you put in 2, you get 5. Every single time you put in 2, you will get 5. You'll never put in 2 and get 8. That's what makes it a function. A single, predictable output for each input.
function
noun
A mathematical rule that assigns to each input exactly one output.
Speaking the Language of Functions
Instead of writing "a rule that takes a number and squares it," we use a shorthand called function notation. It looks like this:
Here's how to read it:
- is the name of the function. We could also call it or or even something descriptive like Area.
- holds the input variable. In this case, it's .
- represents the output of the function when the input is . We often say "f of x".
If we write , it just means that the output value, , is determined by the function acting on the input .
Let's define our "add 3" function from before. We can write its rule like this:
To find the output for an input of 2, we replace with 2:
For an input of 10, we get:
Here's a quick look at some inputs and outputs for this function:
| Input (x) | Rule: f(x) = x + 3 | Output (f(x)) |
|---|---|---|
| -1 | f(-1) = -1 + 3 | 2 |
| 0 | f(0) = 0 + 3 | 3 |
| 5 | f(5) = 5 + 3 | 8 |
| 20 | f(20) = 20 + 3 | 23 |
Domain and Range
Every function has two important sets of values associated with it: its domain and its range.
domain
noun
The set of all possible input values for a function.
Think of the domain as all the things you're allowed to put into the function machine. For our simple function , we can put in any number we can think of, so its domain is all real numbers.
range
noun
The set of all possible output values of a function.
The range is all the possible results that can come out of the machine. For , the range is also all real numbers, because for any number you want as an output, you can find an input that produces it.
However, the domain and range aren't always "all real numbers." Consider the function .
The domain is still all real numbers, because you can square any number. But what about the range? If you square any number (positive or negative), the result is always positive or zero. You can't get a negative number. So, the range of is all non-negative numbers ().
Let's review the key terms we've just covered.
Time to check your understanding.
Which statement best describes a function in mathematics?
Given the function , what is the value of ?
Functions are a fundamental concept in mathematics. Understanding them as a clear rule connecting inputs to unique outputs is the first step to mastering more advanced topics.