Contents / Algebra / Functions & Graphs
Chapter 5
Functions & Graphs
Function notation, domain and range, linear and quadratic graphs, transformations, and inverses.
Introduction
Function notation, domain and range, linear and quadratic graphs, transformations, and inverses.
A function is a special kind of relation: it pairs every input with exactly one output. This "exactly one" rule is what makes functions predictable and powerful for modeling the real world.
Functions appear as formulas, graphs, tables, and verbal descriptions. Once you understand the definition you can decide whether any given relation qualifies as a function and can use function notation fluently.
5.1Precise Definition
Definition 5.1 (Function). A function from a set (the domain) to a set is a rule that assigns to each element in exactly one element in .
No input may have two different outputs. Two different inputs may share the same output.
Intuition. A function is a machine with a strict rule: drop in one number, get exactly one number out. No arguing, no choices.
Vending machines are functions (one button → one item); a "choose any snack for $1" machine would not be.
Example 5.2. Is " is the square of " a function? Pick any input, say . Squaring gives exactly one output, . There is no way to get a second value, so every input has a unique output: it is a function, namely .
Solution.
- Is " is a square root of " a function? Pick . Both and satisfy , so the single input has two outputs. That breaks the one-output rule, so it is not a function. (Sanity check: this failure happens for every , since a positive number always has two real square roots.)
5.2The Vertical Line Test
Proposition 5.3 (Vertical line test). For graphs in the coordinate plane: if any vertical line crosses the graph more than once, the graph does not represent a function.
Proof. A vertical line at a fixed would intersect two points with the same but different 's, violating the one-output rule.∎
Intuition. Imagine a vertical stick sliding across the graph. If it ever touches the curve in two places at once, that x has two y's and is not a function.
Circles, most sideways parabolas, and figure-eights all fail the test.
Example 5.4. Does pass? Fix any vertical line, say . The only point of the graph on that line is , because forces . No matter which vertical line you pick, it meets the curve at most once, so is a function.
Solution.
- Does pass? Take the vertical line . Points on the graph with satisfy , i.e. or , so the line hits the sideways parabola at both and . Two hits means one maps to two 's, so fails the test and is not a function. (Sanity check: this matches the earlier "square root" relation, since solving for gives .)
5.3Function Notation
Notation (Function notation). names the output of the function named when the input is . It is read " of ", and it does not mean multiplication.
Evaluating: replace every occurrence of the input variable with the given number and simplify.
Intuition. f is the name of the recipe. The parentheses hold the ingredient you are feeding it.
f(3) asks "what does the recipe give when I use 3?"
Example 5.5. Let f(x) = 2x² − 5x + 1.
Solution.
- f(2) = 2(4) − 5(2) + 1 = 8 − 10 + 1 = −1.
- f(−1) = 2(1) − 5(−1) + 1 = 2 + 5 + 1 = 8.
5.4Everyday and Mathematical Examples
- Area of a square: A(s) = s² (one side → one area).
- Temperature conversion: C(F) = (F − 32) × 5/9.
- Cost of buying n apples at $0.50 each: C(n) = 0.50n (plus any fixed fee).
- The rule "the output is the input plus 3" is the function f(x) = x + 3.
Intuition. Many real quantities depend on exactly one other quantity in a rule-like way; that dependence is a function.
Once named, the function can be used, composed, graphed, and studied without rewriting the rule every time.
Example 5.6. The cost of a taxi ride that charges $2.50 per mile is the function C(m) = 2.5m. C(4) = $10 for a 4-mile ride. Different distances give different costs; each distance gives exactly one cost.
- Thinking f(x) means f multiplied by x: It is function application, not multiplication.
- Believing that every relation is a function: Many are not (circles, one-to-many tables).
- Forgetting that two inputs can map to the same output: Functions are allowed to be many-to-one; they are forbidden only from being one-to-many.
- Confusing domain with range: Domain = inputs you may feed in; range = outputs that actually come out.
- Assuming the vertical line test applies only to continuous curves: It applies to any graph, including discrete points.
The domain of a function is the set of all input values for which the function rule produces a real number output. It is the "legal input list."
Knowing the domain is essential before graphing, finding range, or composing functions. Many common mistakes in algebra come from forgetting domain restrictions.
5.5Definition and Importance
Definition 5.7 (Domain). For a function , the domain is
Values that produce division by zero, negative numbers under even roots, or other undefined operations are excluded.
Intuition. The domain is the menu of ingredients the recipe accepts. Some ingredients (like negative numbers for square roots) make the recipe blow up.
You must know what you are allowed to plug in before you start cooking.
Example 5.8. Find the domain of .
Solution.
- Ask where the rule could fail to give a real number. The only danger is dividing by zero.
- Set the denominator to zero: . That input is illegal.
- Every other real number is fine, so the domain is all reals except , written .
- Sanity check: and are perfectly defined, but is not, matching the exclusion.
5.6Finding the Domain of Rational Functions
Proposition 5.9 (Domain of a rational function). For a rational function , exclude every real root of the denominator, that is, every solution of
If the numerator and denominator share a common factor, the simplified function has a hole rather than a vertical asymptote at that root, but the original expression is still undefined there; the value is excluded from the domain either way.
Intuition. The bottom of a fraction is a "no-fly zone" when it hits zero.
Canceling a factor removes the asymptote but the original function still had a hole at that x.
Example 5.10. Find the domain of .
Solution.
- Set the denominator to zero and solve: or . Both are excluded from the domain.
- Notice the numerator and denominator share the factor : for .
- The cancellation turns into a hole (removable) rather than an asymptote, but is still excluded because the original expression is there. The uncanceled factor leaves a genuine vertical asymptote at .
- Domain: all reals except and , i.e. .
- Sanity check: plugging into the original gives (undefined) and gives (undefined), so both exclusions are real.
5.7Domain of Square Root and Even Root Functions
Proposition 5.11 (Domain of an even root). For , or any even root, require
Solve that inequality; its solution set is the domain.
Intuition. You cannot take the even root of a negative number in real numbers; the inside must be "non-negative or zero."
The graph of a square root function lives only where the inside expression is on or above the x-axis.
Example 5.12. Find the domain of .
Solution.
- The radicand (the expression under the root) must be non-negative: .
- Solve the inequality. Subtract : . Divide by and flip the inequality (dividing by a negative reverses it): .
- Domain: . The endpoint is included because is defined.
- Sanity check: (valid), (valid), but is not real, so is correctly excluded.
5.8Combined Restrictions
When a function contains both rational and radical parts (or other restrictions), intersect all the individual domain conditions.
Write the most restrictive set that satisfies every requirement at once.
Intuition. Each dangerous part (denominator, even root, logarithm argument, etc.) writes its own "keep out" sign. The final domain obeys every sign.
Example 5.13. Find the domain of .
Solution.
- Step 1 (radical condition): the radicand must be non-negative, .
- Step 2 (denominator condition): the denominator must be nonzero, .
- Step 3 (intersect): keep the that satisfy both conditions at once. From we punch out , giving .
- Sanity check: gives (valid), gives (valid), but fails the root and divides by zero, so both are correctly excluded.
- Including a value that zeros a denominator: Even if the graph has a hole, that x is not in the domain of the given expression.
- Forgetting to solve the inequality for even roots: Simply writing "x ≥ 0" when the radicand is more complicated loses points.
- Intersecting instead of unioning restrictions: All conditions must be satisfied simultaneously (intersection).
- Assuming polynomials have restricted domains: Unless context says otherwise, polynomial domains are all reals.
- Confusing domain of the function with the x-intercepts: Intercepts are where output is zero; domain is where input is allowed.
The range of a function is the set of all output values that are actually produced as the input runs through the entire domain.
While the domain is about legal inputs, the range is about the numbers that come out the other end. For many functions the range is a proper subset of the real numbers.
5.9Definition
Definition 5.14 (Range). If , the range is
the image of the domain under the function rule.
Intuition. If the domain is the list of ingredients you may use, the range is the list of actual dishes the recipe can produce.
Some recipes can make any flavor; others can only make sweet things.
Example 5.15. Find the range of (domain: all reals).
Solution.
- A square is never negative, so every output satisfies . No negative number can ever come out.
- Is every non-negative number actually reached? For any , choosing gives , so yes, every is hit.
- Range: . Note this is a proper subset of the reals even though the domain is all of — domain and range need not match.
- Sanity check: and appear, but never does, matching .
5.10Finding the Range from the Rule or Graph
Method 5.16 (Finding the range). Any of three methods will do:
- Graph the function and project onto the y-axis: the covered -values are the range.
- Solve for in terms of , and find for which a real exists. This is the domain of the inverse.
- Use calculus, or completing the square, to find minimum and maximum values for polynomials and quadratics.
Intuition. The graph is a "shadow" on the y-axis when light shines from the side; the lit part is the range.
Inverting the rule turns "outputs" back into "inputs" for the inverse function.
Example 5.17. Find the range of by completing the square.
Solution.
- Take half of the -coefficient () and square it (). Add and subtract it: .
- The squared part is and equals at its smallest, when . So the smallest output is , attained at the vertex .
- Since the parabola opens upward (), outputs grow without bound above the minimum, so every value is achieved.
- Range: .
- Sanity check: (the minimum) and , consistent with the range.
5.11Range from Common Function Families
Summary (Ranges of the common families).
- Linear (non-constant): all reals.
- Quadratic with : .
- Absolute value: .
- Rational such as : all reals except , or whatever the horizontal asymptote value is.
- Square root: , adjusted by any vertical shift.
Intuition. Each family has a characteristic "footprint" on the y-axis.
Once you know the family and its vertex or asymptotes you can read the range quickly.
Example 5.18 ((absolute value family):). . The absolute-value part is with minimum at , so the smallest output is and outputs increase without bound above it. Range: . Sanity check: (the floor) and .
Example 5.19 ((rational family):). . The parent produces every value except (it has horizontal asymptote ). Adding shifts every output up by , so the excluded value shifts from to . Range: all reals except , i.e. . Sanity check: no real solves (that needs , impossible), confirming is missing.
5.12Restricted Domains and Their Effect on Range
When the domain itself is restricted (by context or by previous domain work), the range is the image of only that restricted set.
A function may have a smaller range when its domain is a small interval.
Intuition. If you only allow the machine to be fed numbers from 0 to 10, it may only be able to produce outputs from 5 to 30 even if with all reals it could produce more.
Example 5.20. Find the range of on the restricted domain .
Solution.
- Do not just plug in the endpoints — the extremes can occur in the interior. Locate the vertex: , which lies inside , giving the minimum .
- The maximum on a closed interval occurs at whichever endpoint is farther from the vertex. Here and , so the maximum is at .
- Because is continuous, it takes every value between its min and max on the interval. Range: .
- Sanity check: had we naively used only the endpoints we would have gotten and missed the values below down to produced near .
- Confusing range with domain: Domain = inputs; range = outputs.
- Assuming every function has range all reals: Quadratics, square roots, and many rationals do not.
- Forgetting the effect of horizontal asymptotes: They often (but not always) indicate a value missing from the range.
- Reporting the range of the simplified expression instead of the original: Holes or asymptotes from the original still affect the range of outputs.
- Including y-values that are only approached but never reached: Asymptotes are not attained.
The graph of a function f is the set of all points (x, f(x)) in the plane as x runs through the domain.
The visual picture instantly reveals domain, range, intercepts, increasing/decreasing behavior, symmetry, asymptotes, and many other properties that are hard to see from the algebraic rule alone.
5.13Plotting Points and the Definition
To plot the graph, choose convenient x-values in the domain, compute f(x), and mark the point (x, f(x)).
Connect the points with a smooth curve when the function is continuous, or leave as discrete points when it is not.
Intuition. Each input x gets its own "height" f(x). Plotting all those heights gives the picture of the rule.
The graph is the "skyline" produced by the function's heights.
Example 5.21. For , when , , point ; , , point ; , , point .
Solution.
- The points lie on the line .
5.14Key Features Visible on the Graph
- x-intercepts: where the graph crosses the x-axis (solve f(x) = 0).
- y-intercept: where the graph crosses the y-axis (the point (0, f(0)), if 0 is in the domain).
- Domain: the projection of the graph onto the x-axis (all x for which there is a point).
- Range: the projection of the graph onto the y-axis (all y-values that are hit).
Intuition. Intercepts are where the skyline meets the ground (x-axis) or the upright pole at x = 0.
Domain and range are the "shadows" the graph casts on the two axes when light shines from the side or above.
Example 5.22. The graph of has -intercepts at , -intercept at , domain all reals, range .
5.15Increasing, Decreasing, and Extrema
Definition 5.23 (Increasing and decreasing). On an interval, is increasing if
(the graph rises), and decreasing if
(the graph falls).
Local max/min are peaks and valleys visible on the graph.
Intuition. Walking right on the x-axis, if your height is always getting bigger you are on an increasing part.
A local max is the top of a hill; after it you start going down for a while.
Example 5.24. is increasing on and decreasing on . The global maximum is at the vertex .
5.16Asymptotes and Holes
Definition 5.25 (Asymptotes and holes).
- Vertical asymptote: the graph shoots to as approaches a finite value, usually an uncancelled zero of a denominator.
- Horizontal or oblique asymptote: the graph approaches a line as .
- Hole: an isolated missing point, where a cancelled factor made the original expression undefined.
Intuition. Vertical asymptote: a "wall" the graph never crosses but gets infinitely tall or deep beside it.
Hole: a single missing dot; the graph jumps over that one forbidden x but is otherwise fine nearby.
Example 5.26. has vertical asymptote and horizontal asymptote . The graph never touches but gets arbitrarily close as .
- Plotting (f(x), x) instead of (x, f(x)): x is always the horizontal coordinate.
- Assuming the graph is defined everywhere: Check domain first; gaps or asymptotes may exist.
- Connecting discrete points with a curve when the function is not continuous: Step functions and rational functions with holes must not be connected.
- Misidentifying asymptotes: Horizontal asymptotes are about end behavior as x → ∞; vertical are about blow-ups at finite x.
- Forgetting to use open/closed circles at endpoints or holes: The circles communicate exactly which points are included.
A linear function produces a straight-line graph and has the algebraic form f(x) = mx + b, where m is the slope (constant rate of change) and b is the y-intercept.
Linear functions are the simplest non-constant functions and the foundation for understanding all other functions through transformations.
5.17Definition and Slope-Intercept Form
Definition 5.27 (Linear function). A linear function is a degree-one polynomial
whose slope is the constant rate of change
When m > 0 the function is increasing; m < 0 decreasing; m = 0 constant.
Intuition. Every time x increases by 1, y increases by exactly m (the slope).
b is where the line crosses the y-axis when you start at x = 0.
Example 5.28. f(x) = 2x − 1. When x increases by 1, f increases by 2. f(0) = −1, so y-intercept −1. Graph is a line rising 2 for every 1 right.
5.18Finding the Equation from Two Points or Slope and Intercept
Method 5.29 (Finding the equation of a line).
- Given the slope and a point : write , then convert to slope-intercept form if you want it.
- Given two points: first compute
then use either point to find .
Intuition. Two points determine a unique straight line (unless vertical).
Slope tells the tilt; one point anchors the line in the plane.
Example 5.30. Points (1, 4) and (3, 10).
Solution.
- m = (10 − 4)/(3 − 1) = 6/2 = 3.
- Using (1, 4): 4 = 3(1) + b → b = 1.
- f(x) = 3x + 1.
5.19Special Cases: Horizontal and Vertical Lines
Horizontal: f(x) = b (slope 0, constant function, passes vertical line test).
Vertical: x = k (undefined slope, fails vertical line test, not a function).
Intuition. A horizontal line is perfectly flat; y never changes no matter how far you walk in x.
A vertical line is a wall; for one x you would need every y, which a function cannot do.
Example 5.31. f(x) = 5 is the horizontal line y = 5. Every input gives the same output 5. It is a (very boring) function.
5.20Real-World Linear Functions
Constant speed, constant cost per unit, temperature scales, etc. are linear.
The slope has units: miles per hour, dollars per item, degrees per minute, etc.
Intuition. Linear functions describe steady, no-surprise change.
"For every extra mile I drive, the cost goes up exactly the same amount."
Example 5.32. A phone plan costs $20 per month plus $0.10 per text. f(t) = 0.10t + 20. After 150 texts the bill is 0.10*150 + 20 = $35.
- Confusing slope with y-intercept: m is the tilt; b is the starting height.
- Using (y2 − y1)/(x1 − x2): The denominator must be in the same order as the numerator (consistent points).
- Thinking every straight line is the graph of a function: Vertical lines are not.
- Forgetting units when interpreting slope: "3" by itself is meaningless; "3 meters per second" tells the story.
- Plotting only one point and the slope without a second point: Always plot the intercept and at least one more point obtained from the slope.
A quadratic function is a polynomial of degree exactly two: f(x) = ax² + bx + c, a ≠ 0.
Its graph is a parabola, one of the most important curves in mathematics and physics. Parabolas describe projectile paths, satellite dishes, suspension bridges, and the shape of many data relationships.
5.21Standard Form and Direction
Definition 5.33 (Quadratic function). A quadratic function is a polynomial of degree exactly two,
and its graph is a parabola.
The sign of a tells whether the parabola opens upward (a > 0, has minimum) or downward (a < 0, has maximum).
The magnitude |a| controls width: |a| > 1 narrows, 0 < |a| < 1 widens relative to y = x².
Intuition. The x² term is the "bowl maker." Positive a makes a right-side-up bowl; negative makes an upside-down bowl.
Steeper bowls (large |a|) change fast; wide bowls change slowly.
Example 5.34. f(x) = −2x² + 8 has a = −2 < 0 so opens down, narrower than y = −x².
5.22Vertex and Axis of Symmetry
The vertex is the turning point of the parabola, its minimum or its maximum.
Theorem 5.35 (Vertex and axis of symmetry). The vertex of sits at
and the axis of symmetry is the vertical line .
Intuition. The vertex is the bottom or top of the bowl; everything is symmetric left and right of it.
The axis is the mirror line down the middle of the parabola.
Example 5.36. f(x) = x² − 4x + 3.
Solution.
- x = 4/2 = 2.
- f(2) = 4 − 8 + 3 = −1.
- Vertex (2, −1), axis x = 2.
5.23Intercepts
Proposition 5.37 (Intercepts of a parabola). The y-intercept is always , found by plugging in .
The x-intercepts are the solutions of , found by the quadratic formula or by factoring; the number of real x-intercepts equals the number of real roots, so , or .
Intuition. The y-intercept is where the bowl crosses the upright pole at x = 0.
The x-intercepts are where the bowl touches or crosses the ground (y = 0).
Example 5.38. f(x) = x² − 5x + 6 has y-intercept 6.
Solution.
- Roots of x² − 5x + 6 = 0 → (x − 2)(x − 3) = 0, x = 2, 3. Two x-intercepts.
5.24Transformations of y = x²
Definition 5.39 (Vertex form). The vertex form of a quadratic is
whose vertex is at . The shifts the parabola left or right — right when is positive; stretches, compresses and reflects it; and shifts it up or down.
Intuition. Start with the basic bowl y = x² sitting at (0,0).
Move the bottom to (h, k), then stretch or flip it.
Example 5.40. f(x) = −(x − 4)² + 1 has vertex (4, 1), opens down, same width as y = x².
- Using −b/a instead of −b/(2a) for the vertex x: Forgets the 2 in the denominator.
- Thinking every parabola crosses the x-axis twice: Many have zero or one (tangent) intercept.
- Confusing vertex form shift direction: (x − 3) moves the graph right 3, not left.
- Forgetting that affects both direction and width: the sign of sets the direction and sets the width. For example opens upward (positive) and is narrow (); opens downward and is wide.
- Plotting only the vertex and intercepts without checking another point: Always verify the shape with one more point.
A piecewise function uses different rules on different parts of its domain. It is written with a large left brace and lists each piece together with the interval on which it applies.
Piecewise definitions let us express functions that behave differently in different regions, such as absolute value, step functions, and many real tax or shipping cost schedules.
5.25Definition and Notation
Definition 5.41 (Piecewise function). A piecewise function is defined by cases,
each expression paired with the interval on which it applies.
The conditions partition the domain (or at least cover it without overlap except possibly at endpoints).
Intuition. The function is like a choose-your-own-adventure book: depending on which interval your x lands in, you follow a different rule.
The brace is the "menu" that tells you which page to turn to.
Example 5.42. The absolute value function is the piecewise function
Solution.
- f(x) = x if x ≥ 0
−x if x < 0
5.26Evaluating Piecewise Functions
Method 5.43 (Evaluating a piecewise function). To evaluate :
- Determine which condition satisfies.
- Use only the corresponding expression.
- Ignore all the other pieces.
Intuition. You only follow the rule for the "room" your input number is in.
Crossing from one room to another may change which formula you use.
Example 5.44. f(x) = 3x if x < 1, x + 1 if x ≥ 1.
Solution.
- f(−2) uses first piece: 3(−2) = −6.
- f(4) uses second piece: 4 + 1 = 5.
5.27Graphing Piecewise Functions
Method 5.45 (Graphing a piecewise function).
- Graph each piece only on the interval where its rule applies.
- Use open circles at endpoints that are not included, and closed circles at included endpoints.
- Do not connect two pieces unless the definition and the limits agree at the junction.
Intuition. Each piece is a "guest" that is only allowed to sit in its assigned chairs (the interval).
The circles are like "reserved" or "open" signs at the boundary seats.
Example 5.46. f(x) = x if x ≤ 1, 3 if x > 1.
Solution.
- Graph the line y = x up to and including (1,1), then a horizontal ray y = 3 starting just after x = 1 (open circle at (1,3) because f(1) = 1, not 3).
5.28Continuity and Differentiability at Junctions
A piecewise function may have corners or jumps even when each piece is smooth.
Definition 5.47 (Continuity at a junction). A piecewise function is continuous at a junction if
It is differentiable at only if the left and right derivatives also match.
Intuition. Continuity means the pieces meet without a jump; you can draw the whole graph without lifting the pencil at the join.
A corner (like |x|) is continuous but has no single tangent line at the corner.
Example 5.48 ((checking continuity at a junction):). Let if and if . Is continuous at the junction ?
Solution.
- Step 1 (left limit): as use the first piece, .
- Step 2 (right limit): as use the second piece, .
- Step 3 (value): (the piece owns the endpoint).
- All three equal , so is continuous at . (Had the second piece been , the right limit would be and the graph would jump.)
Example 5.49 ((continuity vs. differentiability):). is continuous everywhere — the two pieces and both approach at the junction, matching , so there is no jump. But it is not differentiable at : the left piece has slope and the right piece has slope , and , so there is no single tangent line at the corner.
- Evaluating with the wrong piece: Always check the condition for the specific input value; do not average or blend pieces.
- Graphing a piece outside its interval: The rule is invalid elsewhere.
- Using closed circles when the piece definition uses < or >: Match the inequality in the definition.
- Assuming piecewise functions are always discontinuous: Many are continuous (e.g. |x|).
- Forgetting that the pieces must cover the whole intended domain: Gaps mean the function is not defined there.
Transformations let us take the graph of a known parent function and quickly produce the graph of a new related function by shifting, stretching, compressing, or flipping it. Instead of plotting point by point every time, we apply a small number of rules to move or resize the entire graph.
Mastering transformations is essential for understanding families of functions (quadratics, exponentials, absolute value, etc.) and for graphing without a calculator. The general form is .
5.29Horizontal and Vertical Shifts
Proposition 5.50 (Shifts). Replacing the input with shifts the graph units to the right if , and to the left if . Adding a constant outside the function, as in , moves the graph up by , or down if is negative. Together,
sends every point of the original graph to .
Shifts do not change the shape, only the position.
Intuition. Imagine the parent graph is drawn on a transparency. Sliding the sheet right by 3 moves every point right 3; that is a horizontal shift.
Adding to the output value lifts the whole picture straight up.
Example 5.51. Start with . Then is the parabola shifted right 2 units and up 3. The vertex moves from to . All other points move the same amount.
Example 5.52. For , shifts left 4 and down 1. The corner is now at .
5.30Stretches, Compressions, and Reflections
Proposition 5.53 (Stretches, compressions and reflections). Multiplying the output by a constant produces a vertical stretch when , and a compression when ; if the graph is also reflected over the x-axis.
Replacing with , as in , produces a horizontal stretch or compression by the factor ; if we also get a reflection over the y-axis.
Reflections flip the graph like a mirror: over x-axis, over y-axis. These preserve distances but reverse orientation.
Intuition. Vertical stretch by 2 makes the graph twice as tall (skinny or tall V or U). Compression by 1/2 squashes it toward the x-axis.
Horizontal scaling is the counterintuitive one: a larger squeezes the graph sideways toward the -axis (compression by ), while a small spreads it out.
Example 5.54. From , stretches vertically by 2 and reflects over x-axis. The parabola opens downward and is narrower.
Example 5.55. for gives , which compresses the V horizontally by factor 1/2 (steeper sides).
5.31Combining Multiple Transformations
When several transformations are combined, the order matters.
Method 5.56 (Applying several transformations). Write the function as , identify , , , , and then work from the inside out:
- Horizontal scaling and reflection (the inside).
- Horizontal shift (the ).
- Vertical scaling and reflection (the ).
- Vertical shift (the ).
Write the function in the form and apply changes from inside out. Always identify first.
Intuition. Think of the function as a recipe. Do the inside changes (what you feed in) before the outside changes (what comes out).
Horizontal moves happen before you stretch vertically; otherwise the amounts get distorted.
Example 5.57. Transform into .
Solution. : horizontal compression by 1/2. : shift right 1. : vertical stretch by 3 and reflect over x-axis. : shift up 4.
The domain becomes , range .□
Example 5.58. Start with . Apply: reflect over y-axis, shift left 1, stretch vertically by 1/2, shift down 2.
Solution.
- Result: .
- Reversing horizontal shift direction: is right, not left. The sign inside is opposite the direction you expect.
- Confusing vertical and horizontal scales: is always vertical (multiplies y). The inside is horizontal.
- Forgetting that order inside vs outside matters: Doing the vertical stretch before the horizontal shift changes the visual result.
- Ignoring the sign of or : Negative always flips vertically; negative flips horizontally.
- Assuming stretches always make things bigger: A factor between 0 and 1 compresses.
- Losing track of the parent function: Always start from the basic shape before layering transformations.
Even and odd functions are classified by their symmetry.
Even functions are symmetric about the y-axis: the left and right sides are mirror images.
Odd functions are symmetric about the origin: rotating the graph 180 degrees around (0,0) leaves it unchanged.
These symmetries simplify integrals, Fourier analysis, and many algebraic manipulations.
5.32Even Functions
Definition 5.59 (Even function). A function is even when
for every in the domain.
Examples: , , , and the constant functions.
Intuition. Even: the function does not care about the sign of the input; only how far you are from zero matters.
If you walk the same distance left or right of center you get the same height.
Example 5.60. Test whether is even.
Solution.
- Replace with : .
- Simplify. Since (an even power kills the sign), .
- Because for every , the function is even. Its graph is a single U-shaped bowl (sitting 3 units up) that is a mirror image across the -axis.
- Sanity check: and agree, as an even function requires.
5.33Odd Functions
Definition 5.61 (Odd function). A function is odd when
for every in the domain.
Examples: , , and , the identity.
Note that the zero function is both even and odd.
Intuition. Odd: going the same distance in the opposite direction flips the sign of the output.
The graph looks the same after a 180-degree spin around the origin.
Example 5.62. Test whether is odd.
Solution.
- Compute .
- Factor out : .
- Since for every , the function is odd.
- Sanity check: and , exactly the sign-flip an odd function demands.
5.34Symmetry on the Graph
Proposition 5.63 (Symmetry of even and odd graphs). An even function has reflection symmetry across the y-axis. An odd function has point symmetry — rotational symmetry of order two — about the origin.
These visual tests are quick ways to classify a graph without algebra.
Intuition. Y-axis mirror: left half is the flip of the right half (even).
Origin spin: every point has a matching point directly opposite through the center (odd).
Example 5.64. The graph of y = x^2 is a mirror image across the y-axis. The graph of y = x^3 looks the same after rotating the paper 180 degrees around (0,0).
5.35Neither or Both
Most functions are neither even nor odd.
A function can be both only if f(x) = 0 for all x (the zero function).
To test algebraically, compute f(−x) and compare with f(x) and −f(x).
Intuition. "Neither" is the default; the function has no special left-right or origin symmetry.
Only the flat zero line at height 0 satisfies both mirror and spin symmetries at once.
Example 5.65. f(x) = x + 1.
Solution.
- f(−x) = −x + 1, which equals neither f(x) = x + 1 nor −f(x) = −x − 1.
- Hence neither.
- Forgetting the domain must be symmetric about 0: Even/odd definitions require that if x is in the domain then −x is too.
- Checking only at one point: Must hold for all x (or a general x).
- Confusing even with "even degree polynomial": A polynomial of even degree can be odd (e.g. x^4 is even function; x^3 is odd function of odd degree).
- Assuming |x| is odd: |−x| = |x|, so even.
- Thinking constants other than zero are odd: A nonzero constant c satisfies f(−x) = c = f(x) so even, not odd.
An inverse function undoes what the original function does. If takes an input and produces , then the inverse takes that and returns the original . In symbols, and .
Not every function has an inverse. Only functions that are one-to-one (different inputs always produce different outputs) are invertible. Inverses are powerful for solving equations and for understanding the symmetry between a function and its "reverse."
5.36Definition and Notation
Definition 5.66 (Inverse function). An inverse function satisfies both composition identities on the appropriate domains:
The superscript means "inverse," not "reciprocal." The reciprocal of would be written .
The inverse is itself a function only when the original is one-to-one.
Intuition. Think of as a machine that converts input to output. The inverse machine runs the conversion backward.
If turns 4 into 12, the inverse must turn 12 back into 4.
Example 5.67. Let . Then . The inverse must satisfy .
Solution.
- Solving by swapping and solving gives .
- Check: .
5.37One-to-One Functions and the Horizontal Line Test
Definition 5.68 (One-to-one function). A function is one-to-one (injective) when
equivalently, no two distinct inputs share the same output.
Proposition 5.69 (Horizontal line test). If you can draw any horizontal line that intersects the graph of more than once, then is not one-to-one and has no inverse.
Many common functions fail this (e.g., , , on all reals) unless we restrict their domains.
Intuition. One-to-one is like each output has exactly one "owner" input. If two people have the same phone number in the directory, you cannot look up who called from the number alone.
The horizontal line test is a quick visual: crossing the same height more than once means duplicate outputs.
Example 5.70. on all reals fails the test (horizontal line crosses at and ).
Solution.
- Restrict domain to and it becomes one-to-one; the inverse is the square-root function (principal branch).
5.38Finding the Inverse Algebraically
Method 5.71 (Finding an inverse algebraically).
- Replace with .
- Swap and .
- Solve the equation for .
- Replace with .
Always state the domain of the inverse (it is the range of the original). Check by composing both ways.
For more complicated functions the algebra may produce a quadratic or require care with signs and restrictions.
Intuition. Swapping x and y literally exchanges the roles of input and output.
Solving for the new y is "undoing" the original recipe step by step.
Example 5.72. Find the inverse of .
Solution.
- Set .
- Swap: .
- Multiply both sides by : .
- .
- Collect y terms: .
- .
- .
- Thus , with domain (the value that would have been the original range restriction point).
Example 5.73. For , swap and solve: , , . So .
5.39Graphs and Properties of Inverses
Theorem 5.74 (Graph of an inverse). The graph of is the reflection of the graph of across the line
so every point on becomes on the inverse.
Consequently, the domain of equals the range of , and the range of equals the domain of . If is increasing, so is ; if decreasing, so is its inverse.
Intuition. Reflection over y = x is like turning the paper over the diagonal so that x and y labels swap places.
The "input becomes output" picture is literally mirrored.
Example 5.75. The graph of is a line through with slope 2. Its inverse is a line through with slope . Reflecting the first line over swaps the intercepts and the slope becomes its reciprocal.
- Writing : This is the reciprocal, not the inverse (except for the special case f(x) = 1/x).
- Forgetting to swap x and y before solving: You end up with the original function again.
- Ignoring domain restrictions: The inverse formula may be defined more widely than the actual inverse; restrict to the range of the original.
- Assuming every function has an inverse: Quadratics, cubics without domain restriction, periodic functions, and constant functions do not.
- Not checking the composition: Always verify and with a number or symbolically.
- Confusing the graph reflection: Reflection is over y = x, not over an axis.
- Losing the order when solving complex expressions: Multiply by denominators before collecting like terms with the new y.