Function Basics
Hey students! š Welcome to one of the most important topics in pre-calculus - functions! Think of functions as the building blocks of advanced mathematics. By the end of this lesson, you'll understand what functions are, how to identify their domains and ranges, and how to use function notation like a pro. Functions are everywhere around us - from calculating your phone bill to predicting the weather - so mastering this concept will give you superpowers in math and real life! š
What is a Function?
A function is like a special machine that takes an input, processes it according to a specific rule, and produces exactly one output. Imagine a vending machine: you put in money (input), press a button (the rule), and get exactly one snack (output). The key word here is "exactly one" - for every input, there's only one possible output.
Mathematically, we can define a function as a relation between two sets where each element from the first set (called the domain) is paired with exactly one element from the second set (called the range). If we have a function $f$ that maps from set $A$ to set $B$, we write $f(a) = b$, which means "function $f$ maps input $a$ to output $b$."
Let's look at some real-world examples! š± Your phone's battery percentage is a function of time - at any given moment, your phone has exactly one battery level. The cost of filling up your car's gas tank is a function of gas prices and your tank size. Even your height is a function of your age (though it levels off after you stop growing)!
Here's a simple mathematical example: $f(x) = 2x + 3$. This function takes any number $x$, multiplies it by 2, then adds 3. If we input $x = 5$, we get $f(5) = 2(5) + 3 = 13$. Notice how we get exactly one output for this input!
Understanding Relations vs Functions
Not all relationships between numbers are functions! A relation is simply any connection between inputs and outputs, but a function is a special type of relation with that "exactly one output" rule.
Think about the relationship between people and their birthdays. Each person has exactly one birthday, so "birthday" is a function of "person." But what about the relationship between birthdays and people? Multiple people can share the same birthday, so "person" is not a function of "birthday" - one input (a specific date) can have multiple outputs (different people).
Here's a mathematical way to test if a relation is a function: use the Vertical Line Test! If you can draw any vertical line through a graph and it touches the curve at more than one point, then it's not a function. Why? Because that would mean one input ($x$-value) has multiple outputs ($y$-values), which violates our function rule.
For example, the equation $x^2 + y^2 = 25$ represents a circle with radius 5. If you draw a vertical line at $x = 3$, it intersects the circle at two points: $(3, 4)$ and $(3, -4)$. Since the input $x = 3$ gives us two different outputs, this relation is not a function.
Function Notation and Evaluation
Function notation is like a mathematical shorthand that makes working with functions much cleaner! Instead of writing "the function that takes $x$ and outputs $2x + 3$," we simply write $f(x) = 2x + 3$. The letter $f$ is the name of our function, and $x$ is our input variable.
We can use any letter to name our functions: $g(x)$, $h(t)$, $P(n)$, or even $\text{Cost}(t)$ for real-world applications. The variable inside the parentheses tells us what we're inputting into the function.
Let's practice evaluation! If $f(x) = x^2 - 4x + 1$, then:
- $f(3) = (3)^2 - 4(3) + 1 = 9 - 12 + 1 = -2$
- $f(-1) = (-1)^2 - 4(-1) + 1 = 1 + 4 + 1 = 6$
- $f(a) = a^2 - 4a + 1$ (we can even substitute variables!)
Here's a fun real-world example: Let's say the temperature in Fahrenheit as a function of Celsius is $F(C) = \frac{9}{5}C + 32$. If it's 25°C outside, then $F(25) = \frac{9}{5}(25) + 32 = 45 + 32 = 77°F$. Pretty cool how functions help us convert between units! š”ļø
Domain and Range
The domain of a function is the set of all possible input values that make sense for that function. Think of it as "What can I put into this function machine?" The range is the set of all possible output values - "What can come out of this machine?"
Let's explore different scenarios that affect domain:
Fraction Functions: For $f(x) = \frac{1}{x-3}$, we can't let $x = 3$ because that would make the denominator zero, and division by zero is undefined! So the domain is all real numbers except $x = 3$, which we write as $(-\infty, 3) \cup (3, \infty)$.
Square Root Functions: For $g(x) = \sqrt{x-2}$, we need the expression under the square root to be non-negative (you can't take the square root of a negative number in the real number system). So $x - 2 \geq 0$, which means $x \geq 2$. The domain is $[2, \infty)$.
Real-World Constraints: If $h(t)$ represents the height of a ball thrown upward after $t$ seconds, the domain might be restricted to $t \geq 0$ (time can't be negative) and the ball eventually hits the ground, so there's an upper limit too.
For range, we need to think about what outputs are actually possible. For $f(x) = x^2$, the domain is all real numbers, but the range is $[0, \infty)$ because squares are always non-negative. For $f(x) = \sin(x)$, the range is $[-1, 1]$ because sine values oscillate between -1 and 1.
Working with Function Graphs
Graphs are powerful tools for understanding functions visually! š The $x$-axis represents our domain (inputs), and the $y$-axis represents our range (outputs). Every point $(x, y)$ on the graph tells us that when we input $x$ into our function, we get output $y$.
Some key features to look for in function graphs:
- Intercepts: Where the graph crosses the axes
- Increasing/Decreasing: Where the function goes up or down as we move left to right
- Maximum/Minimum points: The highest or lowest points on the graph
- Symmetry: Some functions have special symmetrical properties
For instance, the graph of $f(x) = x^2$ is a parabola that opens upward. It has a minimum point at $(0, 0)$, and it's symmetric about the $y$-axis. This tells us the range is $[0, \infty)$ and helps us visualize how the function behaves.
Conclusion
Functions are fundamental mathematical tools that describe relationships where each input produces exactly one output. We've learned to distinguish functions from general relations using the vertical line test, master function notation for clean mathematical communication, and identify domains and ranges by considering mathematical restrictions and real-world constraints. Whether you're converting temperatures, calculating costs, or analyzing data, functions provide the mathematical framework for understanding how one quantity depends on another.
Study Notes
⢠Function Definition: A relation where each input has exactly one output; written as $f(x) = $ expression
⢠Vertical Line Test: If any vertical line intersects a graph more than once, it's not a function
⢠Function Notation: $f(x)$ means "function $f$ applied to input $x$"
⢠Function Evaluation: Substitute the input value for the variable: if $f(x) = 2x + 1$, then $f(3) = 2(3) + 1 = 7$
⢠Domain: Set of all valid input values (x-values)
⢠Range: Set of all possible output values (y-values)
⢠Domain Restrictions: Division by zero, negative square roots, logarithms of non-positive numbers
⢠Interval Notation: Use parentheses ( ) for non-inclusive, brackets [ ] for inclusive endpoints
⢠Common Domains:
- Linear functions: all real numbers $(-\infty, \infty)$
- $f(x) = \frac{1}{x}$: all real numbers except $x = 0$
- $f(x) = \sqrt{x}$: $[0, \infty)$
⢠Function vs Relation: All functions are relations, but not all relations are functions
