📈 Introduction to Functions
Functions are like magical math machines! Put a number in, get a number out. Discover how functions transform values and describe relationships.
🎰 What is a Function?
A function is a special relationship where each input has exactly one output. Think of it as a machine that takes an input, performs an operation, and gives you an output!
The Function Machine 🎰
Input → [Function Machine] → Output
For example: $f(x) = 2x + 1$
- Input: $x = 3$ → Machine: $2(3) + 1$ → Output: $7$ ✨
- Input: $x = 5$ → Machine: $2(5) + 1$ → Output: $11$ ✨
Each input gives exactly ONE output!
📝 Function Notation
We write functions using special notation: $f(x)$ means "function $f$ of $x$"
Reading Function Notation
$f(x) = 3x - 2$ means:
- $f$ is the name of the function
- $x$ is the input variable
- $3x - 2$ is the rule (what the machine does)
Example: Find $f(4)$
$$f(4) = 3(4) - 2 = 12 - 2 = 10$$
🔄 Evaluating Functions
To evaluate a function means to find the output when you know the input!
Step-by-Step Example
Given $g(x) = x^2 + 5$, find $g(3)$:
Step 1: Replace every $x$ with $3$
$g(3) = (3)^2 + 5$
Step 2: Calculate
$$g(3) = 9 + 5 = 14$$ ✨
📊 Domain and Range
Every function has a domain (possible inputs) and a range (possible outputs).
Understanding Domain and Range
- Domain: All the $x$-values you can put into the function
- Range: All the $y$-values you can get out of the function
Example: For $f(x) = x + 3$
- Domain: All real numbers (you can input any number!)
- Range: All real numbers (you can get any output!)
📈 Graphing Functions
We can visualize functions by plotting points on a coordinate plane!
Creating a Function Table
For $f(x) = 2x - 1$:
| $x$ (Input) | $f(x)$ (Output) |
|---|---|
| 0 | -1 |
| 1 | 1 |
| 2 | 3 |
| 3 | 5 |
Plot these points $(x, f(x))$ and connect them to see the graph! 📊
🌟 Real-Life Applications
- 💰 Shopping: $C(n) = 5n$ (Cost = $5 per item)
- 🚗 Travel: $D(t) = 60t$ (Distance = 60 mph × time)
- 🌡️ Temperature: $F(C) = \frac{9}{5}C + 32$ (Celsius to Fahrenheit)
- 📱 Phone Plans: $P(m) = 20 + 0.10m$ ($20 base + $0.10 per minute)