Introduction to Functions
Summary
This chapter introduces one of the most important concepts in mathematics: functions. Students will learn to distinguish between relations and functions, understand function notation, and work with domain and range. The chapter explores how to evaluate functions, identify independent and dependent variables, and introduces various types of functions including continuous, discrete, piecewise, step, and absolute value functions. Students will also learn about parent functions and function transformations including translations and reflections.
Concepts Covered
This chapter covers the following 16 concepts from the learning graph:
- Function
- Domain
- Range
- Function Notation
- Evaluating Functions
- Vertical Line Test
- Continuous Function
- Piecewise Function
- Step Function
- Absolute Value Function
- Parent Function
- Function Transformation
- Translation
- Reflection
- Linear Function
- Quadratic Function
Prerequisites
This chapter builds on concepts from:
- Chapter 1: Foundations of Algebra
- Chapter 2: Number Systems and Properties
- Chapter 5: Factoring Polynomials
- Chapter 6: Solving Linear Equations
What is a Function?
Welcome to Chapter 8!
Welcome to functions—one of the grandest ideas in all of mathematics! Think of a function as a trustworthy machine where every unique input gives exactly one output. Let's figure this out together!
A function is one of the most fundamental concepts in algebra and all of mathematics. At its core, a function is a special kind of relationship between two sets of numbers where each input value corresponds to exactly one output value. Think of a function like a machine: you put in a number, the machine processes it according to a specific rule, and you get exactly one number out.
In everyday life, we encounter functions constantly. When you buy items at a store, the total cost is a function of how many items you purchase. When you drive a car at constant speed, the distance traveled is a function of time. When you set your thermostat, the temperature in your room changes as a function of time.
Relations vs. Functions
Before we dive deeper into functions, it's important to understand the broader concept of a relation. A relation is any set of ordered pairs \((x, y)\). For example:
- The relation \(\{(1, 2), (2, 4), (3, 6), (4, 8)\}\) pairs each \(x\)-value with its double
- The relation \(\{(1, 1), (1, 2), (2, 3), (3, 5)\}\) has the \(x\)-value 1 paired with two different \(y\)-values
A function is a special type of relation where each input (called the domain value or \(x\)-value) is paired with exactly one output (called the range value or \(y\)-value). Using this definition:
- The first relation above IS a function (each \(x\)-value appears only once)
- The second relation IS NOT a function (\(x = 1\) is paired with both 1 and 2)
Diagram: Relation vs. Function Comparison Diagram
Run Relation vs. Function Comparison Diagram Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |
The Vertical Line Test
One of the most useful tools for determining whether a graph represents a function is the vertical line test. This simple visual test states: if you can draw a vertical line anywhere on the graph that intersects the curve at more than one point, then the graph does not represent a function.
Why does this work? Remember that a function requires each input (\(x\)-value) to have exactly one output (\(y\)-value). A vertical line represents a single \(x\)-value. If that vertical line crosses the graph twice, it means that single \(x\)-value has two different \(y\)-values, violating the definition of a function.
Diagram: Vertical Line Test Interactive MicroSim
Run Vertical Line Test Interactive MicroSim Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
Function Notation
Mathematicians use a special notation to represent functions efficiently. Instead of always writing "let \(y\) equal some expression in terms of \(x\)," we use function notation.
Parentheses Don't Always Mean Multiply
In function notation, \(f(x)\) means "the function \(f\) evaluated at input \(x\)," not \(f\) times \(x\)! Treat the name \(f\) as a label for the machine, never a number to distribute.
The standard form is: \(f(x)\)
This is read as "f of x" and means "the function \(f\) evaluated at \(x\)" or simply "the output when \(x\) is the input."
For example, if \(f(x) = 2x + 3\), then:
- \(f(1) = 2(1) + 3 = 5\)
- \(f(0) = 2(0) + 3 = 3\)
- \(f(-2) = 2(-2) + 3 = -1\)
The letter \(f\) is commonly used for functions, but we can use other letters too: \(g(x)\), \(h(x)\), \(P(t)\), \(C(n)\), etc. The choice of letter often relates to what the function represents (C for cost, P for population, h for height, etc.).
Key Components of Function Notation
When we write \(f(x) = 2x + 3\):
- \(f\) is the name of the function
- \(x\) is the input variable (also called the independent variable)
- \(f(x)\) is the output (also called the dependent variable because its value depends on \(x\))
- \(2x + 3\) is the rule that tells us how to calculate the output from the input
| Notation | Meaning | Example |
|---|---|---|
| \(f(x)\) | The output of function \(f\) when input is \(x\) | \(f(3)\) means "evaluate \(f\) at \(x=3\)" |
| \(f(2) = 7\) | When the input is 2, the output is 7 | If \(f(x) = 3x + 1\), then \(f(2) = 7\) |
| \(f(a+b)\) | Evaluate function at the input \(a+b\) | \(f(1+2) = f(3)\) |
| \(g(x)\) | A different function named \(g\) | \(g(x) = x^2\) is different from \(f(x) = 2x\) |
Evaluating Functions
Evaluating a function means finding the output value for a specific input value. The process is straightforward:
- Start with the function rule
- Substitute the given input value for every occurrence of the variable
- Simplify using order of operations
Let's look at several examples with the function \(f(x) = x^2 - 3x + 2\):
-
Evaluate \(f(4)\): \(f(4) = (4)^2 - 3(4) + 2 = 16 - 12 + 2 = 6\)
-
Evaluate \(f(-1)\): \(f(-1) = (-1)^2 - 3(-1) + 2 = 1 + 3 + 2 = 6\)
-
Evaluate \(f(0)\): \(f(0) = (0)^2 - 3(0) + 2 = 0 - 0 + 2 = 2\)
Notice that different inputs can produce the same output (\(f(4) = f(-1) = 6\)). This is perfectly fine for functions—the rule is that each input must have exactly one output, not that each output must come from exactly one input.
We can also evaluate functions with algebraic expressions as inputs:
-
Evaluate \(f(2a)\): \(f(2a) = (2a)^2 - 3(2a) + 2 = 4a^2 - 6a + 2\)
-
Evaluate \(f(x+1)\): \(f(x+1) = (x+1)^2 - 3(x+1) + 2 = x^2 + 2x + 1 - 3x - 3 + 2 = x^2 - x\)
Diagram: Function Evaluation Practice MicroSim
Run Function Evaluation Practice MicroSim Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
Domain and Range
Two of the most important characteristics of any function are its domain and range.
The domain of a function is the complete set of all possible input values (\(x\)-values) for which the function is defined. Think of the domain as "what you're allowed to put into the function."
The range of a function is the complete set of all possible output values (\(y\)-values) that the function can produce. Think of the range as "what you can get out of the function."
Inputs and Outputs
Domain is the set of everything that goes in, while range is everything that comes out. When looking for domain restrictions in algebra, keep an eye out for division by zero and square roots of negative numbers!
Determining Domain
For many basic functions, the domain is "all real numbers" (written as \(\mathbb{R}\) or in interval notation as \((-\infty, \infty)\)). However, some functions have restrictions on their domains:
Division restrictions: Functions cannot have zero in the denominator.
- For \(f(x) = \frac{1}{x}\), the domain is all real numbers except \(x = 0\)
- In interval notation: \((-\infty, 0) \cup (0, \infty)\)
Square root restrictions: For real-valued functions, we cannot take the square root of negative numbers.
- For \(f(x) = \sqrt{x}\), the domain is \(x \geq 0\)
- In interval notation: \([0, \infty)\)
Combined restrictions: Some functions have multiple restrictions.
- For \(f(x) = \frac{\sqrt{x-2}}{x-3}\), we need \(x \geq 2\) (for the square root) AND \(x \neq 3\) (for the denominator)
- Domain: \([2, 3) \cup (3, \infty)\)
Determining Range
Finding the range can be more challenging than finding the domain. Common strategies include:
- Graphing the function and observing what \(y\)-values are attained
- Analyzing the function algebraically to find minimum/maximum values
- Testing boundary values to see limiting behavior
For example:
- \(f(x) = x^2\) has domain: all real numbers and range: \([0, \infty)\) (outputs are never negative)
- \(f(x) = \sqrt{x}\) has domain: \([0, \infty)\) and range: \([0, \infty)\)
- \(f(x) = |x|\) has domain: all real numbers and range: \([0, \infty)\)
Diagram: Domain and Range Interactive Visualizer
Run Domain and Range Interactive Visualizer Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
Types of Functions
Functions come in many varieties, each with distinct characteristics and behaviors. Understanding different function types helps us model real-world situations and solve problems more effectively.
Continuous Functions
A continuous function is one where the graph has no breaks, holes, or jumps. You can draw the entire graph without lifting your pencil from the paper. Most of the functions you'll work with in Algebra I are continuous, including:
- Linear functions: \(f(x) = mx + b\)
- Quadratic functions: \(f(x) = ax^2 + bx + c\)
- Polynomial functions in general
Continuous functions are smooth and predictable. If you know the function values at two points, you can be confident the function takes on every value in between.
Discrete Functions
In contrast, some functions are defined only at specific, separate input values. These are called discrete functions. Real-world examples include:
- The cost of mailing a package based on weight (jumps at each ounce)
- Your age in years (jumps on each birthday)
- The number of students in a class (can only be whole numbers)
Discrete functions often appear as isolated points on a graph rather than connected curves.
Piecewise Functions
A piecewise function is defined by different rules for different parts of its domain. The function literally has different "pieces." These are written with curly braces:
Piecewise Function Example
This means: - When \(x\) is negative, use the rule \(f(x) = x + 2\) - When \(x\) is zero or positive, use the rule \(f(x) = x^2\)
To evaluate a piecewise function:
- Determine which piece of the domain your input falls into
- Use the corresponding rule for that piece
- Calculate the output
For our example:
- \(f(-3) = -3 + 2 = -1\) (using first piece since \(-3 < 0\))
- \(f(0) = 0^2 = 0\) (using second piece since \(0 \geq 0\))
- \(f(2) = 2^2 = 4\) (using second piece since \(2 \geq 0\))
Diagram: Piecewise Function Interactive Grapher
Run Piecewise Function Interactive Grapher Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | |
Step Functions
A step function is a special type of piecewise function where each piece is a constant value. The graph looks like a series of horizontal line segments or "steps." Step functions model situations where values change suddenly at certain points:
- Postage costs (increases at each ounce)
- Parking fees (increases at each hour)
- Tax brackets (changes at income thresholds)
The most famous step function is the greatest integer function (also called the floor function), denoted \(f(x) = \lfloor x \rfloor\). This function outputs the greatest integer less than or equal to \(x\):
- \(\lfloor 3.7 \rfloor = 3\)
- \(\lfloor -1.5 \rfloor = -2\)
- \(\lfloor 5 \rfloor = 5\)
Absolute Value Function
The absolute value function is defined as:
\(f(x) = |x|\)
Recall that absolute value measures the distance from zero, so it always produces non-negative outputs:
- \(|5| = 5\)
- \(|-5| = 5\)
- \(|0| = 0\)
The graph of \(y = |x|\) forms a distinctive V-shape, with the vertex at the origin. The function decreases for \(x < 0\) and increases for \(x \geq 0\).
The absolute value function can be written as a piecewise function:
Absolute value functions are useful for modeling situations involving distance, error, or deviation from a target value.
Parent Functions
A parent function is the simplest form of a family of functions. It's the "basic" version before any transformations are applied. Understanding parent functions helps you quickly recognize and graph related functions.
Learn the Basic Shapes
Parent functions are your algebraic templates! Once you memorize the V-shape of \(|x|\) or the parabola of \(x^2\), graphing any shifted or reflected version becomes simple.
Here are the key parent functions you should know:
| Function Family | Parent Function | Graph Shape | Domain | Range |
|---|---|---|---|---|
| Linear | \(f(x) = x\) | Straight line through origin (slope 1) | All real numbers | All real numbers |
| Quadratic | \(f(x) = x^2\) | Parabola opening upward, vertex at origin | All real numbers | \([0, \infty)\) |
| Absolute Value | $f(x) = | x | $ | V-shape, vertex at origin |
| Square Root | \(f(x) = \sqrt{x}\) | Half of a sideways parabola | \([0, \infty)\) | \([0, \infty)\) |
| Cubic | \(f(x) = x^3\) | S-shaped curve through origin | All real numbers | All real numbers |
| Reciprocal | \(f(x) = \frac{1}{x}\) | Two curved branches (hyperbola) | \(x \neq 0\) | \(y \neq 0\) |
Diagram: Parent Functions Reference Gallery
Run Parent Functions Reference Gallery Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
Function Transformations
Function transformations allow us to take a parent function and modify its graph in predictable ways. The four basic types of transformations are:
- Translations (shifts up/down or left/right)
- Reflections (flips across an axis)
- Vertical stretches/compressions (makes graph taller or shorter)
- Horizontal stretches/compressions (makes graph wider or narrower)
Understanding transformations lets you graph complex functions quickly by starting with a parent function and applying transformations step by step.
Translations
Translations shift the graph without changing its shape. There are two types:
Vertical translations: Adding a constant \(k\) to the function shifts the graph vertically.
- \(g(x) = f(x) + k\) shifts the graph up by \(k\) units if \(k > 0\)
- \(g(x) = f(x) - k\) shifts the graph down by \(k\) units if \(k > 0\)
Horizontal translations: Replacing \(x\) with \((x - h)\) shifts the graph horizontally.
- \(g(x) = f(x - h)\) shifts the graph right by \(h\) units if \(h > 0\)
- \(g(x) = f(x + h)\) shifts the graph left by \(h\) units if \(h > 0\)
Important: Horizontal shifts can be counterintuitive! \(f(x - 3)\) shifts right by 3, not left.
Watch Out for Horizontal Shifts
Inside the parentheses, horizontal shifts move in the opposite direction of the sign: \((x - 3)\) shifts right by 3! Don't let that trick you—with a little practice, it quickly becomes second nature.
Examples with the parent function \(f(x) = x^2\):
- \(g(x) = x^2 + 4\) shifts the parabola up 4 units (vertex moves from \((0,0)\) to \((0,4)\))
- \(g(x) = x^2 - 2\) shifts the parabola down 2 units (vertex moves from \((0,0)\) to \((0,-2)\))
- \(g(x) = (x - 3)^2\) shifts the parabola right 3 units (vertex moves from \((0,0)\) to \((3,0)\))
- \(g(x) = (x + 1)^2\) shifts the parabola left 1 unit (vertex moves from \((0,0)\) to \((-1,0)\))
- \(g(x) = (x - 2)^2 + 3\) combines both: right 2 units and up 3 units (vertex at \((2,3)\))
Reflections
Reflections flip the graph across an axis, creating a mirror image.
Reflection across the \(x\)-axis: Multiply the entire function by \(-1\).
- \(g(x) = -f(x)\) reflects the graph across the \(x\)-axis
- Every point \((x, y)\) becomes \((x, -y)\)
Reflection across the \(y\)-axis: Replace \(x\) with \(-x\).
- \(g(x) = f(-x)\) reflects the graph across the \(y\)-axis
- Every point \((x, y)\) becomes \((-x, y)\)
Examples:
- \(g(x) = -x^2\) reflects the parabola \(f(x) = x^2\) across the \(x\)-axis (opens downward instead of upward)
- \(g(x) = |-x|\) reflects the absolute value function across the \(y\)-axis (but it looks the same due to symmetry!)
- \(g(x) = -|x|\) reflects the absolute value function across the \(x\)-axis (creates an upside-down V)
Diagram: Function Transformations Interactive Explorer
Run Function Transformations Interactive Explorer Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
Linear and Quadratic Functions Preview
While we'll explore these function families in much greater detail in later chapters, it's helpful to introduce them here as important examples of functions you'll work with frequently.
Linear Functions
A linear function has the form:
\(f(x) = mx + b\)
where:
- \(m\) is the slope (rate of change)
- \(b\) is the \(y\)-intercept (where the graph crosses the \(y\)-axis)
The graph of a linear function is always a straight line. Linear functions model situations with constant rates of change:
- Distance traveled at constant speed
- Total cost when price per item is fixed
- Temperature conversion (Fahrenheit to Celsius)
Key characteristics of linear functions:
- Domain: All real numbers
- Range: All real numbers (unless \(m = 0\), then range is just \(\{b\}\))
- Continuous
- One \(x\)-intercept (unless the line is horizontal)
- Constant rate of change (slope)
Quadratic Functions
A quadratic function has the form:
\(f(x) = ax^2 + bx + c\)
where:
- \(a\) determines whether the parabola opens up (\(a > 0\)) or down (\(a < 0\))
- \(b\) affects the position of the vertex
- \(c\) is the \(y\)-intercept
The graph of a quadratic function is a parabola (U-shaped curve). Quadratic functions model many real-world phenomena:
- Projectile motion (height of a thrown ball over time)
- Area problems
- Profit/revenue in business
- Suspension bridge cables
Key characteristics of quadratic functions:
- Domain: All real numbers
- Range: Depends on whether parabola opens up or down
- Continuous
- Has a vertex (maximum or minimum point)
- Symmetric across vertical line through vertex
- Can have 0, 1, or 2 \(x\)-intercepts
We'll explore both of these important function types in much greater depth in Chapters 9 and 11.
Real-World Applications of Functions
Functions are not just abstract mathematical concepts—they model countless real-world relationships. Here are some examples:
Functions Model Our World
Whenever one quantity determines another, a function is at work. Identifying which variable is independent and which is dependent is the key to setting up any real-world model!
Economics and Business:
- Cost functions: \(C(n) = 50 + 3n\) (total cost for \(n\) items with fixed cost $50 and variable cost $3 per item)
- Revenue functions: \(R(n) = 15n\) (revenue from selling \(n\) items at $15 each)
- Profit functions: \(P(n) = R(n) - C(n)\) (profit is revenue minus cost)
Science:
- Temperature conversion: \(C(F) = \frac{5}{9}(F - 32)\) (Celsius as a function of Fahrenheit)
- Distance: \(d(t) = 60t\) (distance traveled at 60 mph for \(t\) hours)
- Free fall: \(h(t) = -16t^2 + v_0 t + h_0\) (height of object dropped or thrown)
Everyday Life:
- Cell phone plans: Piecewise function with different rates for different usage tiers
- Taxi fares: Step function based on distance
- Tax calculations: Piecewise function with tax brackets
Understanding functions empowers you to model these situations mathematically, make predictions, and solve practical problems.
Diagram: Real-World Function Modeling Interactive Scenarios
Run Real-World Function Modeling Interactive Scenarios Fullscreen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
Summary
In this chapter, you've been introduced to functions, one of the most powerful concepts in all of mathematics. Let's recap the key ideas:
Core Concepts:
- A function is a special relation where each input has exactly one output
- The vertical line test determines if a graph represents a function
- Function notation \(f(x)\) provides a compact way to represent and evaluate functions
- The domain is the set of all possible inputs; the range is the set of all possible outputs
Function Types:
- Continuous functions have graphs with no breaks
- Piecewise functions use different rules for different parts of the domain
- Step functions are piecewise functions with constant pieces
- Absolute value functions measure distance from zero, creating V-shaped graphs
Important Function Families:
- Parent functions are the simplest forms of function families (like \(f(x) = x^2\) for quadratics)
- Linear functions have constant rates of change and straight-line graphs
- Quadratic functions create parabolic graphs and model many natural phenomena
Transformations:
- Translations shift graphs vertically (\(f(x) + k\)) or horizontally (\(f(x-h)\))
- Reflections flip graphs across axes
Functions provide a powerful framework for modeling relationships in the real world, from business applications to scientific phenomena. As you continue through Algebra I, you'll deepen your understanding of specific function types and develop expertise in using functions to solve complex problems.
In the next chapter, we'll explore graphing in detail and focus extensively on linear functions—their properties, representations, and applications.
You Conquered Functions!
Sensational job! You can now read function notation, find domains and ranges, and transform parent graphs across the coordinate plane. You have laid the bedrock for all advanced mathematics!