π€ What Is a Function?
A function is a relationship where each input has exactly one output.
In math terms: a function f maps every element in the domain to exactly one value in the range.
Example: f(x) = x + 2
If x = 3, then f(3) = 3 + 2 = 5
π§ Real-Life Analogy
Think of a function like a vending machine:
- You press a specific button (input)
- You get one snack (output)
- Each button gives only one snack β that's what makes it a function
π Domain and Range
Domain: The set of all possible inputs (x-values)
Range: The set of all possible outputs (f(x) or y-values)
Example: f(x) = βx β Domain: x β₯ 0, Range: y β₯ 0
π Function Notation
- Instead of using y = ..., we write f(x) = ...
- Example: f(x) = 2x + 3
- g(x) = xΒ² is read as "g of x equals x squared"
β How to Evaluate Functions
Just plug in a value for x.
Example: f(x) = 3x - 1. Find f(4):
f(4) = 3(4) - 1 = 12 - 1 = 11
π§© Types of Functions
- Linear: f(x) = mx + b (straight line)
- Quadratic: f(x) = axΒ² + bx + c (parabola)
- Cubic: f(x) = axΒ³ + bxΒ² + cx + d
- Exponential: f(x) = aΒ·b^x
- Absolute Value: f(x) = |x|
- Square Root: f(x) = βx
- Rational: f(x) = 1/x or similar
- Step / Greatest Integer: f(x) = βxβ
π Graphing Functions
Each function has a unique graph:
- Linear β straight line
- Quadratic β parabola (U-shape)
- Exponential β curves that grow rapidly
Use a table of values or graphing calculator to sketch graphs.
π Inverse Functions
An inverse function undoes the original function.
If f(x) = 2x + 1, then fβ»ΒΉ(x) = (x - 1)/2
Only functions that are one-to-one (pass the horizontal line test) have inverses that are also functions.
𧬠Composite Functions
These are functions inside functions. Written as (f β g)(x) = f(g(x))
Example: f(x) = xΒ², g(x) = x + 3 β f(g(x)) = (x + 3)Β²
π’ Piecewise Functions
These are functions defined by different expressions depending on the input value.
f(x) = {
x + 2 if x < 0
xΒ² if x β₯ 0
}
Useful for modeling situations with different rules in different intervals.
π Vertical Line Test
A graph represents a function if a vertical line crosses it at most once at any point.
π§ Common Function Questions
- Is this relation a function?
- Whatβs the domain and range?
- Evaluate f(2)
- What kind of function is this?
- Graph f(x) = 1/x
- Find the inverse of f(x)
- Compose two functions
π Practice Problems
- f(x) = 2x + 5. Find f(3)
- What is the domain of f(x) = 1/(x - 2)?
- Is the graph of f(x) = xΒ² a function? Why?
- If f(x) = xΒ² and g(x) = x + 1, find f(g(2))
- Graph f(x) = |x - 3|