Quarry School

College Algebra: crash course

about 7 h 35 min to listen17 units133 lessons117 questions to try

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

Every unit, and under it every lesson. A unit's own crash course adds the unit's quick checks.

1 Functions and function notation

about 42 min10 lessonsOpen the unit's crash course

1.1 A function gives one answer to each input

Open the full lesson

The rule

A relation is a set of ordered pairs (input, output).

It is a function when every input in its domain has exactly one output. The range is the set of outputs it produces.

How

  1. Name what you are starting with; that quantity is the input.
  2. Name what you want to find; that quantity is the output.
  3. Inspect every input and its assigned outputs.
  4. Accept shared outputs. Reject an input with two different outputs.
  5. List distinct inputs as the domain and distinct outputs as the range.

Worked example

Worked example

Function or not from ordered pairs

OpenStax problem

Decide whether each relation gives one output per input.
(a) {(1, 2), (2, 4), (3, 6), (4, 8), (5, 10)}
(b) {(1, 3), (2, 5), (1, 7)}

What it asks. For each list, does one input have two different outputs? Also list the first relation’s allowed inputs and actual outputs.

Show the steps and the answer

The plan. Read the first number in each pair as input. Compare pairs with the same input, then collect distinct first and second numbers.

12345246810function
In (a), each input sends one arrow.
12357not a function
Two arrows leave input 1 for different outputs.
  1. Plan. Read the first number in each pair as input. Compare pairs with the same input, then collect distinct first and second numbers.
  2. In (1, 3), 1 is the input and 3 is its output.
  3. In list (b), find both pairs whose first number is 1.
  1. For (a), each of the inputs 1, 2, 3, 4 and 5 has one paired output.The first coordinate is the input, and none has conflicting outputs.
  2. Collect the domain {1, 2, 3, 4, 5} and the range {2, 4, 6, 8, 10}.Domain lists accepted inputs; range lists produced outputs.
  3. For (b), input 1 pairs with both 3 and 7.A function cannot give two different answers for the same input.
Answer
  • (a) function.
  • Domain: {1, 2, 3, 4, 5}.
  • Range: {2, 4, 6, 8, 10}.
  • (b) Not a function. Input 1 has outputs 3 and 7.
Double-check In (a), the instruction 'double the input' gives the listed output every time. In (b), asking for the output at 1 leaves two competing answers.

The trap

Checking for repeated outputs instead of conflicting inputs. Two arrows arriving together are allowed; two arrows leaving one input for different answers are not.

1.2 Read function notation as an instruction

about 3 minOpen the full lesson

The rule

y=f(x): f is the function name, x is the input, and y or f(x) is the output.

Evaluate means find an output. Solve means find the input or inputs producing a specified output.

How

  1. Identify the function name and what its input and output represent.
  2. Read everything inside the parentheses as the entire input.
  3. For evaluate, apply the rule to that input.
  4. For solve, require the rule's output to equal the given value.
  5. Include units when the quantities have units.

Worked example

Worked example

Evaluating and solving with a rental-cost function

A kayak rental shop charges according to C(h) = 15 + 9h, where h is the number of hours rented and C(h) is the total cost in dollars.
(a) Evaluate C(4) and say what it means.
(b) Solve C(h) = 69 and say what it means.
(c) Write C(h + 1) as an expression in h.

Show the steps and the answer
input hours rented, houtput cost C(h) ($)233451669↓ evaluate: input given, read the output below it
Values of C(h) = 15 + 9h at h = 2, 4 and 6 hours: $33, $51 and $69.
  1. Name the parts: the function is C, the input h is time in hours, and the output C(h) is cost in dollars.In y = f(x), the letter outside the parentheses names the function, the letter inside is the input, and f(x) is the output. Units come from what each quantity measures.
  2. (a) Substitute 4 for h: C(4)=15+9(4)=15+36=51.Evaluate means find the output. The number inside the parentheses is the input, so h = 4 is fed into the rule.
  3. (a) Interpret: C(4)=51 dollars, so renting for 4 hours costs $51.The output carries the output's units, which are dollars.
  4. (b) Set the rule equal to the given output: 15+9h=69.Solve means find the input that produces a given output. Here the output C(h) is 69, so the rule must equal 69.
  5. (b) Subtract 15 from both sides: 9h=54. Then divide by 9: h=6.Undoing the operations in reverse order isolates the input.
  6. (b) Interpret: h=6 hours, so a $69 bill means the kayak was rented for 6 hours.The answer to a solve question is an input, so it carries the input's units, which are hours.
  7. (c) Replace every h in the rule with the whole input (h + 1): C(h+1)=15+9(h+1).Everything inside the parentheses is the entire input. Writing (h + 1) in place of h keeps that input together.
  8. (c) Simplify: 15+9h+9=9h+24.Distribute the 9 to both terms of the input, then combine the constants.
Answer
(a) C(4) = 51: a 4-hour rental costs $51. (b) h = 6: a $69 rental lasted 6 hours. (c) C(h + 1) = 9h + 24 dollars, the cost of renting one hour longer than h hours.
Double-check (a) 9 × 4 = 36 and 36 + 15 = 51. (b) Substituting h = 6 gives C(6) = 15 + 54 = 69, which matches the given output. (c) Test with h = 3. Then C(h + 1) = C(4) = 51, and 9(3) + 24 = 27 + 24 = 51. Both agree.

Work to write

  1. C is the function, h = hours rented (input), C(h) = cost in dollars (output)
  2. C(4) = 15 + 9(4) = 51
  3. C(4) = 51 dollars: 4 hours costs $51
  4. 15 + 9h = 69
  5. 9h = 54
  6. h = 6 hours
  7. C(h + 1) = 15 + 9(h + 1) = 9h + 24

The trap

Reading f(x) as f times x. A function name identifies a rule rather than a number being multiplied.

1.3 Evaluate a formula

about 5 minOpen the full lesson

The rule

To evaluate a formula, replace every input variable with the whole stated input in parentheses, then calculate or expand.

The value or expression you obtain is the output.

How

  1. Say what the question asks. Evaluate f(2) means the input is 2; find its output. It does not ask which input produces 2.
  2. Copy the formula, replacing every input letter with the given input in parentheses.
  3. For a number, do powers first, then multiplication, then addition and subtraction. For an expression, multiply out parentheses before collecting like terms.
  4. Check by putting a numerical input into both the starting recipe and the expanded expression. Matching results can catch an expansion error.

Worked example

Worked example

Evaluate g(-2) and g(k - 2) for a function machine

A function machine named g accepts any real number as its input x and produces the output
g(x) = 3x2 - 8x + 6.
In words, the recipe is: square the input and multiply by 3, subtract 8 times the input, then add 6.
(a) Evaluate g(-2).
(b) Evaluate g(k - 2), where k stands for any real number. Write the output as an expanded expression in k with like terms collected.

Show the steps and the answer
  1. Say what each part asks. In (a) the input is the number -2; find its output. In (b) the input is the whole expression k-2; find its output, which will be an expression in k.g(-2) names the output of the machine when -2 goes in. It does not ask which input produces an output of -2, so there is no equation to solve: we substitute and calculate.
  2. For (a), copy the recipe with (-2) in place of every x: g(-2)=3(-2)2-8(-2)+6.The input letter x appears twice, and each one must be replaced. Parentheses keep the negative sign attached to the input, so the square acts on the whole number -2, sign included.
  3. Do the power first: (-2)2=(-2)(-2)=4, so g(-2)=3(4)-8(-2)+6.Powers come before multiplication. A negative number times itself is positive, so the square is 4. Without the parentheses, -22 would mean -(22) = -4, which is not the square of the input.
  4. Multiply next: 3(4)=12 and 8(-2)=-16, so g(-2)=12-(-16)+6. Then add and subtract: 12+16+6=34.Multiplication comes before addition and subtraction, and subtracting -16 is the same as adding 16. The number 34 is the output for the input -2.
  5. For (b), copy the recipe with (k - 2) in place of every x: g(k-2)=3(k-2)2-8(k-2)+6.The whole input k - 2 replaces x, so it goes in parentheses in both places. This is not g(k) - 2: that would subtract 2 from the output, while here 2 is subtracted from the input before the machine works on it.
  6. Multiply out the square: (k-2)2=(k-2)(k-2)=k2-2k-2k+4=k2-4k+4.The power is still handled first, and for an expression that means multiplying out the parentheses. Squaring multiplies the binomial by itself, which produces the middle term -4k; (k - 2)2 is not k2 - 4 and not k2 + 4.
  7. Distribute the 3 and the -8: 3(k2-4k+4)=3k2-12k+12 and -8(k-2)=-8k+16. So g(k-2)=3k2-12k+12-8k+16+6.A number in front of parentheses multiplies every term inside. The -8 multiplies the -2 too, and a negative times a negative gives +16.
  8. Collect like terms: -12k-8k=-20k and 12+16+6=34, so g(k-2)=3k2-20k+34.Only terms with the same power of k can be combined. Nothing more can be simplified, so this expression is the output for the input k - 2.
  9. Check (b) with a number, say k=3. Starting recipe: the input is 3-2=1, and g(1)=3(1)2-8(1)+6=3-8+6=1. Expanded expression: 3(3)2-20(3)+34=27-60+34=1.The recipe and the expanded expression must give the same output for every value of k, so a numerical input can catch an expansion error. Here both give 1. A slip such as -8(k - 2) = -8k - 16 would have produced 3k2 - 20k + 2, which gives -31 at k = 3 and would not match.
Answer
(a)g(-2)=34.(b)g(k-2)=3k2-20k+34.
Double-check Part (a) is a special case of part (b): when k = 0, the input k - 2 equals -2. The expanded expression gives 3(0)2 - 20(0) + 34 = 34, the same as g(-2) from part (a). One more input tests the terms that contain k: for k = 1 the input is -1; the recipe gives g(-1) = 3(-1)2 - 8(-1) + 6 = 3 + 8 + 6 = 17, and the expanded expression gives 3(1)2 - 20(1) + 34 = 3 - 20 + 34 = 17. The results match each time.

Work to write

  1. g(-2)=3(-2)2-8(-2)+6
  2. g(-2) = 3(4) - 8(-2) + 6 = 12 + 16 + 6 = 34
  3. g(k-2)=3(k-2)2-8(k-2)+6
  4. (k-2)2=k2-4k+4
  5. g(k-2)=3k2-12k+12-8k+16+6
  6. g(k-2)=3k2-20k+34
  7. Check with k = 3: g(1) = 3 - 8 + 6 = 1 and 3(3)2 - 20(3) + 34 = 27 - 60 + 34 = 1

The trap

Losing the middle term when squaring a sum. Write (a + h)(a + h) and keep all four products before combining the two ah terms.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Protect a negative input

Let r(x) = 3x − 7. Evaluate r(−4). This means use −4 as the input and find the output.

What it asks. Use each stated input to find its output from the named formula.

Show the steps and the answer

The plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.

−18−12−60−7lands on −19
Subtracting 7 from −12 lands at −19.
  1. Plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.
  2. Every input slot receives the complete input, including its sign.
  3. Square a negative input in parentheses: (−2)2 = 4. A constant recipe gives the same output for every input.
  4. Keep separate requested outputs on separate answer lines.
  1. r(−4)=3(−4)−7.The whole negative input replaces x.
  2. r(−4)=−12−7.A positive times a negative is negative.
  3. r(−4)=−19.Starting at −12 and subtracting 7 moves seven more places left.
Answer
r(−4)=−19
Double-check Undo the recipe on the output: −19 + 7 = −12, then −12 ÷ 3 = −4, the given input.

1.4 The difference quotient: average rate of change

about 6 minOpen the full lesson

The rule

Difference quotient: f(x+h)−f(x)h, with h≠0 and both inputs in the domain.

Read it: f of x plus h, minus f of x, all over h. The starting input can also be named a: f(a+h)−f(a)h.

How

  1. Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.
  2. Multiply out. A square has the middle term: (x + h)2 = x2 + 2xh + h2. A number in front multiplies every piece.
  3. Subtract f(x) in parentheses, then reverse every sign in that subtracted group.
  4. In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.
  5. Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.
  6. Write the simplified answer and h ≠ 0. Both starting and ending inputs must still be allowed. Check with chosen numbers.

Worked example

Worked example

Average rate of change of a raised bed's area

A community garden is building rectangular raised beds. A bed that is x meters wide is made 4 meters longer than twice its width, so it is 2x + 4 meters long and its area, in square meters, is
A(x) = x(2x + 4) = 2x2 + 4x, for x > 0.
The figure graphs A(x) for widths up to 4 meters and marks the points (1, 6) and (3, 30).
(a) Find the difference quotient A(x+h)−A(x)h, where h is a change in the width, and simplify it. State the conditions on x and h.
(b) Use your answer to (a) to find the average rate of change of the area as the width grows from 1 meter to 3 meters. Give the units and say what the number means.

(1, 6)(3, 30)24515253545
The raised bed's area A(x) = 2x2 + 4x, in square meters, plotted against its width x, in meters.
Show the steps and the answer
  1. Write A(x+h) by replacing every x in 2x2+4x with the whole (x+h): A(x+h)=2(x+h)2+4(x+h). Write A(x)=2x2+4x separately.The difference quotient compares the area at the ending width x + h with the area at the starting width x. Every x must be replaced, including the one in 4x, and the parentheses keep the 2 and the 4 attached to the whole new input.
  2. Multiply out. (x+h)2=x2+2xh +h2, so 2(x+h)2=2x2+4xh +2h2, and 4(x+h)=4x+4h. Together: A(x+h)=2x2+4xh +2h2+4x+4h.Squaring a sum produces the middle term 2xh; writing only x2 + h2 would lose it. A number in front multiplies every piece in its parentheses, so the 2 reaches all three terms of the square and the 4 reaches both x and h.
  3. Subtract A(x) in parentheses, then reverse every sign in that group: A(x+h)−A(x)=2x2+4xh +2h2+4x+4h−(2x2+4x)=2x2+4xh +2h2+4x+4h−2x2−4x.The minus sign applies to all of A(x), so both 2x2 and 4x become negative, not just the first term.
  4. Combine like terms: 2x2−2x2=0 and 4x−4x=0, so A(x+h)−A(x)=4xh +2h2+4h.Every term without h must cancel: if h were 0, the two widths would be equal and the change in area would be 0. Nothing without h is left, so the expansion, the copied terms and the signs are consistent.
  5. Factor h from the entire numerator and cancel it with the h in the denominator: A(x+h)−A(x)h=4xh+2h2+4hh=h(4x+2h+4)h=4x+2h+4.h is a factor of every term, so it is a shared factor of the whole numerator and the denominator. Because h ≠ 0, hh = 1. Cancelling h from only one term would be wrong.
  6. State the result with its conditions: A(x+h)−A(x)h=4x+2h+4, where h≠0, x > 0 and x+h>0.The quotient divides by h, so h cannot be 0, and the simplified expression no longer shows that, so the condition must be written. A bed exists only with a positive width, so both the starting width x and the ending width x + h must be in the domain x > 0.
  7. For (b), the width starts at 1 m and ends at 3 m, so x = 1 and h = 3 − 1 = 2. Both widths are positive and h ≠ 0. Substitute: 4(1)+2(2)+4=4+4+4=12.In the difference quotient, x is the starting input and h is the change in the input, so the ending width is x + h = 3. Using h = 3 would describe a change from 1 m to 4 m.
  8. Attach units and interpret: 12 square meters per meter. As the width grows from 1 m to 3 m, the area increases on average by 12 square meters for each extra meter of width, a total of 2×12=24 square meters.Area is measured in square meters and width in meters, so the rate is square meters per meter. Multiplying the average rate by the 2 m change in width gives the total change in area.
Answer
(a) A(x+h)−A(x)h = 4x + 2h + 4, with h ≠ 0, x > 0 and x + h > 0. (b) 12 square meters per meter: from a width of 1 m to a width of 3 m, the bed's area grows on average by 12 square meters for each additional meter of width.
Double-check Compute (b) directly from A(x) = 2x2 + 4x: A(1) = 2(1)2 + 4(1) = 6 and A(3) = 2(3)2 + 4(3) = 18 + 12 = 30, matching the marked points. So A(3)−A(1)3−1 = 30−62 = 242 = 12. ✓ The dimensions agree too: a 1 m by 6 m bed has area 6, and a 3 m by 10 m bed has area 30. Test the general formula with other numbers, x = 2 and h = −1 (ending width 1 m, still allowed): A(2) = 8 + 8 = 16, so A(1)−A(2)−1 = 6−16−1 = −10−1 = 10, and 4(2) + 2(−1) + 4 = 8 − 2 + 4 = 10. ✓

Work to write

  1. A(x + h) = 2(x + h)2 + 4(x + h) = 2x2 + 4xh + 2h2 + 4x + 4h
  2. A(x + h) − A(x) = 2x2 + 4xh + 2h2 + 4x + 4h − (2x2 + 4x) = 4xh + 2h2 + 4h
  3. A(x+h)−A(x)h=h(4x+2h+4)h=4x+2h+4
  4. h ≠ 0, x > 0, x + h > 0
  5. (b) x = 1, h = 2: 4(1) + 2(2) + 4 = 12
  6. 12 square meters per meter: on average the area grows by 12 square meters for each extra meter of width from 1 m to 3 m

The trap

Subtracting only the first term of the starting output. Keep −(f(x)) as one group, then change every sign inside.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

DQ rung 4: a square

For s(x) = x2, simplify s(x+h)−s(x)h, with h ≠ 0. This asks for the average output change per input step.

What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

Show the steps and the answer

The plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.

(1, 1)(2, 4)2−22468
y = x2, solid, beside y = 3x − 2, dashed.
  1. Plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.
  2. Every input variable receives the whole sum in parentheses.
  3. A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
  4. Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
  1. s(x+h)=(x+h)2=x2+2xh +h2.Multiply two whole copies of x + h. The cross products xh and hx add to 2xh.
  2. s(x+h)−s(x)=x2+2xh +h2−x2=2xh +h2.The starting output x2 is subtracted from the ending output, so x2 − x2 cancels to zero.
  3. 2xh +h2=h(2x+h).Both 2xh and h2 contain h: they are h × 2x and h × h.
  4. h(2x+h)h=2x+h,h≠0.Cancel the common factor h multiplying the entire numerator, retaining the nonzero restriction.
Answer
2x + h, with h ≠ 0.
Double-check At x = 1 and h = 1, s(1) = 1 and s(2) = 4. Directly the quotient is 4−(1)1 = 3. The expression 2x + h also gives 3.

1.5 Solve when the output is given

about 7 minOpen the full lesson

The rule

To solve f(x)=k, set the function's formula equal to k and find every allowed input x.

Zero product rule: AB =0 means A=0 or B=0, or both.

How

  1. Say the question in words. Solve h(p) = 3 means the output is 3; find every input p that produces it.
  2. Replace the function notation with its formula, keeping the requested output on the other side.
  3. For a linear equation, undo addition or subtraction and then undo multiplication or division, doing each operation to both sides.
  4. For a quadratic that factors, subtract the requested output from both sides so one side is zero.
  5. Rewrite the quadratic as a product of factors. Set each factor equal to zero using the zero product rule.
  6. Solve each smaller equation and keep every permitted input.
  7. Substitute each answer into the original function. Each checked output must equal the requested output.

Worked example

Worked example

Solving f(x) = k for a graphed quadratic: two answers, then one

The function f accepts any real number x as its input and produces the output
f(x) = x2 + 2x - 5.
Its graph, shown in the figure, is a parabola that opens upward. The lowest point of the graph (the vertex) is (-1, -6), and the graph crosses the y-axis at (0, -5).
(a) Solve f(x) = 10. Give every input that works.
(b) Solve f(x) = -6, and use the graph to explain how many solutions each part has.

(-1, -6)(0, -5)−6−4−224−8−44812
The upward-opening parabola y = f(x) = x2 + 2x - 5, with its vertex (-1, -6) and its y-intercept (0, -5)…
Show the steps and the answer
  1. (a) Say the question in words. Solve f(x)=10 means the output is 10; find every input x that f turns into 10.The output is known and the inputs are unknown, so we work backward from the output instead of evaluating f at a given number. The word every reminds us that more than one input may work.
  2. Replace f(x) with its formula, keeping the requested output on the other side: x2+2x-5=10.f(x) is a name for the expression x2 + 2x - 5, so the inputs that make f(x) equal 10 are exactly the inputs that make that expression equal 10.
  3. Choose the method. The equation contains x2, so it is quadratic, not linear. Subtract 10 from both sides: x2+2x-5-10=10-10, so x2+2x-15=0.Undoing addition and multiplication cannot isolate x when x appears both squared and to the first power. The zero product rule needs one side to be 0, and doing the same subtraction to both sides keeps the equation balanced.
  4. Rewrite the left side as a product. Look for two numbers that multiply to -15 and add to 2: 5 and -3 work, since 5×(-3)=-15 and 5+(-3)=2. The equation becomes (x+5)(x-3)=0.For any numbers p and q, (x + p)(x + q) = x2 + (p + q)x + pq, so p and q must add to the x-coefficient and multiply to the constant. Expanding confirms the factoring: (x + 5)(x - 3) = x2 - 3x + 5x - 15 = x2 + 2x - 15.
  5. Set each factor equal to zero: x+5=0 or x-3=0.By the zero product rule, a product equals 0 only when at least one of its factors is 0, so every solution must make x + 5 or x - 3 equal to zero.
  6. Solve each smaller equation. Subtract 5 from both sides of x+5=0 to get x=-5; add 3 to both sides of x-3=0 to get x=3. Keep both answers.Each factor equation is linear, so one inverse operation done to both sides isolates x. The function accepts every real number as input, so neither answer is ruled out.
  7. Check each answer in the original function: f(-5)=(-5)2+2(-5)-5=25-10-5=10 and f(3)=32+2(3)-5=9+6-5=10. Both outputs equal 10.Substituting into the original formula, not into a rearranged line, catches any slip made while moving terms or factoring. Each checked output must equal the requested output, 10.
  8. (b) Say the question in words: solve f(x)=-6 means the output is -6; find every input x that produces it. Replace f(x) with its formula: x2+2x-5=-6.The method does not depend on which output is requested: the formula goes on one side and the requested output stays on the other.
  9. Subtract the requested output, -6, from both sides. Subtracting -6 means adding 6: x2+2x-5+6=-6+6, so x2+2x+1=0.The equation is quadratic, so one side must be 0 before the zero product rule can be used. Subtracting a negative number is the same as adding its opposite.
  10. Rewrite the left side as a product. The two numbers must multiply to 1 and add to 2, so they are 1 and 1. The equation becomes (x+1)(x+1)=0.Expanding confirms it: (x + 1)(x + 1) = x2 + x + x + 1 = x2 + 2x + 1. The two factors are identical, so this quadratic is a perfect square, (x + 1)2.
  11. Set each factor equal to zero: x+1=0 or x+1=0. Both equations are the same; subtracting 1 from both sides gives the single answer x=-1.AB = 0 means A = 0 or B = 0, or both. Here A and B are the same factor, so they are zero together at x = -1, and no other input makes either factor zero. The input -1 is a real number, so it is permitted.
  12. Check in the original function: f(-1)=(-1)2+2(-1)-5=1-2-5=-6, the requested output.Substitution into the original formula confirms that -1 really produces the output -6.
  13. Explain the counts with the graph. The output -6 is the y-coordinate of the vertex (-1,-6), the lowest point of the parabola. The horizontal line y=10 lies above the vertex and crosses the parabola twice, at (-5,10) and (3, 10), so part (a) has two solutions. The horizontal line y=-6 touches the parabola only at the vertex, so part (b) has one solution.Each solution of f(x) = k is the x-coordinate of a point on the graph at height k, so the number of solutions equals the number of points where the horizontal line y = k meets the graph.
Answer
  • (a) x = -5 or x = 3
  • both inputs produce the output 10. (b) x = -1 is the only solution. The output 10 is above the lowest output of f, so the graph reaches height 10 at two points, (-5, 10) and (3, 10)
  • the output -6 is the height of the vertex (-1, -6), the only point of the graph at that height.
Double-check Substitute each answer into f(x) = x2 + 2x - 5: f(-5) = 25 - 10 - 5 = 10, f(3) = 9 + 6 - 5 = 10 and f(-1) = 1 - 2 - 5 = -6, so every answer gives its requested output. Graph check: a parabola is symmetric about the vertical line through its vertex, here x = -1, so two inputs with the same output must be equally far from -1. The answers -5 and 3 are each 4 units from -1, and their average is -5+32 = -1. The single answer to (b) is the vertex's own x-coordinate, as the lowest output must be.

Work to write

  1. (a)x2+2x-5=10
  2. x2+2x-15=0
  3. (x + 5)(x - 3) = 0
  4. x + 5 = 0 or x - 3 = 0
  5. x = -5 or x = 3
  6. f(-5) = 25 - 10 - 5 = 10 and f(3) = 9 + 6 - 5 = 10
  7. (b)x2+2x-5=-6
  8. x2+2x+1=0
  9. (x + 1)(x + 1) = 0
  10. x + 1 = 0, so x = -1 is the only solution
  11. f(-1) = 1 - 2 - 5 = -6
  12. -6 is the height of the vertex (-1, -6), so the line y = -6 meets the graph once, while the line y = 10 meets it twice

The trap

Treating a requested output as an input. In h(p) = 3, set the formula equal to 3; do not evaluate h(3).

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Factoring rung 3: opposite signs

Factor x2 − x − 6. A missing written coefficient before x means the coefficient is −1.

What it asks. Rewrite the same sum as multiplied factors. Do not change its value.

Show the steps and the answer

The plan. Identify the constant and middle coefficient. List integer factor pairs of the constant, check their sums and signs, and write the pair in parentheses. Multiply the factors back to check.

2+(−3)=−1

2×(−3)=−6

(x+2)(x−3)=x2−x−6

  1. Plan. Identify the constant and middle coefficient. List integer factor pairs of the constant, check their sums and signs, and write the pair in parentheses. Multiply the factors back to check.
  2. The two constant numbers must multiply to the last term.
  3. Their sum must equal the coefficient of the middle term.
  4. Check the signs, then multiply all four term pairs back.
  1. The desired sum is −1 and the desired product is −6.Read the middle coefficient and constant with their signs.
  2. A negative product needs opposite signs. Choose 2 and −3.2 × (−3) = −6 and 2 + (−3) = −1.
  3. x2−x−6=(x+2)(x−3).Adding −3 is written as subtracting 3.
Answer
x2−x−6=(x+2)(x−3)
Double-check Expand: (x + 2)(x − 3) = x2 − 3x + 2x − 6 = x2 − x − 6. The negative middle coefficient is preserved.

1.6 Turn an equation into a function when possible

about 6 minOpen the full lesson

The rule

Choose the input and output.

An explicit rule gives the output alone in terms of the input.
An implicit rule keeps them mixed in an equation. Function status requires exactly one output for each allowed input.

How

  1. Name the input letter and the requested output letter.
  2. Undo addition or subtraction around the output, doing the same operation to both sides.
  3. Divide every remaining term by the output's nonzero coefficient.
  4. For a cubed output, take its unique real cube root. For a squared output, keep both signs and test an input where they differ.
  5. Write the output alone as f(input) when possible, and check a pair in the equation you started with.
  6. If the equation stays mixed, remember that an awkward formula alone does not disprove a function.

Worked example

Worked example

Solving x2 - 4y = 12 for y, then for x

The equation x2 - 4y = 12 relates two real variables, x and y. The figure shows its graph, a parabola whose lowest point is (0, -3) and which passes through the points (-4, 1), (2, -2) and (4, 1).
(a) Use x as the input and y as the output. Solve the equation for y, write the result as f(x), and check one pair in the original equation.
(b) Now use y as the input and x as the output. Solve the equation for x and decide whether x is a function of y. Use the points (-4, 1) and (4, 1) to support your answer.

(-4, 1)(4, 1)(2, -2)(0, -3)−6−4−2246−4−2246
The graph of x2 - 4y = 12, which is the parabola y = x24 - 3 with lowest point (0, -3).
Show the steps and the answer
  1. Part (a). Name the input and the output. The input is x and the requested output is y. The rule x2-4y=12 is implicit, because x and y are mixed on the same side.The question asks for y in terms of x, so y must end up alone. Isolating it turns the implicit rule into an explicit one.
  2. Undo the addition around the output term. The left side is x2 added to the output term -4y, so subtract x2 from both sides. x2-4y-x2=12-x2 gives -4y=12-x2.Doing the same operation to both sides keeps the equation true, and it leaves only the output term on the left.
  3. Divide every remaining term by the coefficient -4. y=12-4-x2-4=-3+x24, so y=x24-3.The coefficient of y is -4. It is not zero, so dividing by it is allowed. Both the 12 and the x2 must be divided, and dividing by a negative number changes the sign of each term.
  4. Check the power on the output. y appears only to the first power and is not squared or cubed, so no root step is needed.Squaring x, dividing by 4 and subtracting 3 each produce exactly one number, so every real x gives exactly one y.
  5. Write the output alone as a function. f(x)=x24-3, for every real x. Check the pair x=2. f(2)=224-3=1-3=-2, and in the starting equation 22-4(-2)=4+8=12.An explicit rule with exactly one output for each allowed input is a function, so y is a function of x. Checking (2, -2) in the original equation, not in our own rearrangement, catches any sign or division slip.
  6. Part (b). Swap the roles. The input is now y and the requested output is x.The same equation can be read in either direction. Whether it gives a function depends on which letter is the output.
  7. Undo the subtraction around the output term. 4y is subtracted from x2, so add 4y to both sides. x2-4y+4y=12+4y gives x2=4y+12. The coefficient of x2 is 1, so dividing by it changes nothing.Adding 4y to both sides keeps the equation balanced and leaves the output term alone on the left. Dividing every term by 1 leaves each term unchanged.
  8. The output is squared, so keep both signs. x=4y+12 or x=-4y+12, which can be written x=±4y+12. Real outputs need 4y+12≥0, so the allowed inputs are y≥-3.A number and its opposite have the same square, so both signs satisfy x2 = 4y + 12. Keeping only one sign would quietly drop solutions of the original equation.
  9. Test an input where the two signs differ. y=-3 will not work, because 4(-3)+12=0 and both signs give x=0. Use y=1 instead. 4(1)+12=16, so x=16=4 or x=-16=-4.The two formulas give different outputs only when the number under the root is positive, so the test input must make 4y + 12 greater than 0.
  10. Check both pairs in the starting equation. 42-4(1)=16-4=12 and (-4)2-4(1)=16-4=12, so both (4, 1) and (-4,1) are genuine solutions.The test only counts if both outputs really satisfy the original equation, not just the rearranged one.
  11. Conclude. The allowed input y=1 has two outputs, x=4 and x=-4, so x is not a function of y and no single f(y) gives x. On the graph, the horizontal line y=1 meets the parabola at (-4,1) and (4, 1).A function needs exactly one output for each allowed input, so one input with two checked outputs is enough to fail. The verdict rests on these two outputs, not on the two-sign formula merely looking awkward.
Answer
(a) y = f(x) = x24 - 3 for every real x, so y is a function of x. (b) x = 4y+12 or x = -4y+12 for y ≥ -3. The input y = 1 gives both x = 4 and x = -4, so x is not a function of y.
Double-check Try another input in (a). f(-4) = (-4)24 - 3 = 164 - 3 = 1, and (-4)2 - 4(1) = 16 - 4 = 12, so (-4, 1) satisfies the original equation. Also f(0) = -3 and 02 - 4(-3) = 12, which gives the lowest point (0, -3). On the graph, every vertical line meets the parabola exactly once, which gives one y for each x as in (a). The horizontal line y = 1 meets it twice, at (-4, 1) and (4, 1), which gives two x-values for one y as in (b).

Work to write

  1. Part (a): input x, output y
  2. -4y=12-x2
  3. y=12-4-x2-4=x24-3
  4. f(x) = x24 - 3, for every real x
  5. Check (2, -2): 22 - 4(-2) = 4 + 8 = 12
  6. Part (b): input y, output x, so x2 = 4y + 12
  7. x = 4y+12 or x = -4y+12
  8. y = 1: x = 4 or x = -4, and 42 - 4(1) = 12, (-4)2 - 4(1) = 12
  9. y = 1 has two outputs, so x is not a function of y

The trap

Discarding the negative square-root solution when the original equation permits it. A root expression chooses one branch; a squared equation may include both.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Remove several copies of the input

Write 3n + p = 11 as p = f(n).

What it asks. Isolate p after removing three copies of n.

Show the steps and the answer

The plan. Subtract the entire known contribution 3n.

3n + p − 3n = 11 − 3n, so p = 11 − 3n.

  1. Plan. Subtract the entire known contribution 3n.
  2. 3n is one complete term.
  3. Subtract 3n from each side.
  1. 3n+p−3n=11−3n, so p=11−3n.Subtracting the same known contribution preserves equality and leaves p alone.
Answer
p=f(n)=11−3n
Double-check At n = 2, p = 5. The original left side is 6 + 5 = 11.

1.7 Evaluate and solve from tables and graphs

about 4 minOpen the full lesson

The rule

Evaluate g(3): input 3 is given; read its output.

Solve g(n)=6: output 6 is given; find every input paired with it. A point (x, y) on a function graph means y=f(x).

How

  1. Translate the question into either given input, find output, or given output, find inputs.
  2. In a table, stay in the same column when moving between its input and output rows.
  3. On a graph, locate the given input on the horizontal axis or the given output on the vertical axis.
  4. For evaluation, move vertically to the graph and read the height. For solving, search across the given height and read every horizontal position.
  5. Check each answer against its original column or point. Do not invent values between isolated data points.

Worked example

Worked example

Evaluate and solve from a shuttle's passenger table

A city shuttle makes seven stops on its morning loop, numbered s = 1 through s = 7. The function P gives the number of passengers on board, P(s), just after the shuttle pulls away from stop s. The table lists every value of P:

s (stop number): 1, 2, 3, 4, 5, 6, 7
P(s) (passengers): 8, 14, 21, 14, 11, 14, 9

(a) Evaluate P(5) and say what it means.
(b) Solve P(s) = 14 and say what it means.
(c) Solve P(s) = 17.

input stop number, soutput passengers on board, P(s)1821432141451161479
A table of 7 values of passengers on board, P(s), for stop number, s from 1 to 7.
Show the steps and the answer
input stop number, soutput passengers on board, P(s)1821432141451161479↓ evaluate: input given, read the output below it
Table of P for the shuttle loop.
  1. Translate part (a). In P(5) the number inside the parentheses is the input. This is 'given input, find output': the stop number s=5 is given and the passenger count is wanted.In function notation the value inside the parentheses is always the input, and P(5) names the output paired with it.
  2. Find 5 in the s row of the table. Stay in that same column, move down to the P(s) row and read the entry, which is 11. So P(5)=11.Each column of the table is one input-output pair. The output for s = 5 is the entry directly below it, not an entry from a neighboring column.
  3. Interpret: P(5)=11 means that just after the shuttle pulls away from stop 5, 11 passengers are on board.The input is a stop number and the output is a number of passengers, so the meaning names the stop and the count in the words of the problem.
  4. Translate part (b). In P(s)=14 the number 14 is a value of P. This is 'given output, find inputs': the passenger count 14 is given and every stop number s with that count is wanted.The equation sets the output P(s) equal to 14 and leaves the input s unknown. It is not P(14), which would treat 14 as an input, and there is no stop 14.
  5. Scan the entire P(s) row: 8, 14, 21, 14, 11, 14, 9. The value 14 appears three times. Move up each of those three columns to the s row to get s=2,s=4 and s=6.Solving means finding every input paired with the given output. A function can give the same output for different inputs, so the search cannot stop at the first 14.
  6. Interpret: P(s)=14 when s=2,s=4 or s=6. The shuttle carries 14 passengers just after leaving stop 2, just after leaving stop 4 and just after leaving stop 6.Each solution is an input, which here is a stop number, and the equation says the output 14 occurs at each of those stops.
  7. Translate part (c). P(s)=17 is again 'given output, find inputs'. Scan the entire P(s) row: 8, 14, 21, 14, 11, 14, 9. No entry is 17.The table lists every value of P, so a stop is a solution only if 17 appears in its column.
  8. Do not estimate an input between s=2 (14 passengers) and s=3 (21 passengers), such as s=2.5. Conclude that P(s)=17 has no solution.P is defined only at the stop numbers 1 through 7. There is no stop between stop 2 and stop 3, so there is no input there and no output to read. A value invented between isolated data points is not data the table contains.
Answer
(a) P(5) = 11: just after the shuttle leaves stop 5, 11 passengers are on board. (b) s = 2, s = 4 or s = 6: the shuttle carries 14 passengers just after leaving each of stops 2, 4 and 6. (c) No solution: 17 is not an output anywhere in the table, and P has no inputs between the listed stop numbers.
Double-check Return to each column. In column s = 5 the P(s) entry is 11, which matches P(5) = 11. In columns s = 2, s = 4 and s = 6 each entry is 14, so P(2) = P(4) = P(6) = 14. The other columns hold 8 (s = 1), 21 (s = 3), 11 (s = 5) and 9 (s = 7), and none of these is 14, so no solution of P(s) = 14 was missed. No column holds 17, which confirms that P(s) = 17 has no solution.

Work to write

  1. P(5) = 11
  2. Just after the shuttle leaves stop 5, 11 passengers are on board.
  3. P(s) = 14 when s = 2, s = 4 or s = 6
  4. The shuttle carries 14 passengers just after leaving stops 2, 4 and 6.
  5. P(s) = 17 has no solution, because 17 is not an output in the table and there is no stop between the listed stops.

The trap

Reading only the first matching output when solving. Scan the whole table or the whole horizontal level of the graph before writing the solution set.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Evaluate a graph input

For the curve s(x) = x2, evaluate s(−2), meaning read the output height at input −2.

What it asks. Read the square curve’s height at input −2.

Show the steps and the answer

The plan. Keep x = −2 while moving vertically to the curve, then read y.

(−2, 4)−22−2246810
Input −2 lies left of zero, but its output lies above zero.
  1. Plan. Keep x = −2 while moving vertically to the curve, then read y.
  2. −2 is left of the origin.
  3. The point there is (−2, 4).
  1. Start at −2 on the horizontal axis and move vertically to the curve at (−2,4).The input stays −2 during a vertical move.
  2. Read the height 4, so s(−2)=4.The vertical coordinate is the output.
Answer
s(−2)=4.
Double-check The rule gives (−2)2 = (−2) × (−2) = 4, agreeing with the graph.

1.8 One-to-one means each output identifies one input

about 5 minOpen the full lesson

The rule

A one-to-one function gives different outputs to different inputs.

Equivalently, each value in its range comes from exactly one input. Check function status first, then check for shared outputs.

How

  1. State the domain and the direction of the rule.
  2. Confirm that each input has one output.
  3. Search for two different inputs with the same output. One such pair proves the function is not one-to-one.
  4. If claiming one-to-one, explain why every output the function actually produces recovers exactly one allowed input. A few sample pairs alone do not prove it for an infinite domain.

Worked example

Worked example

Swim meet: does each output identify one input?

At a swim meet, six swimmers race 100 meters, one in each of lanes 1 through 6. The function F gives the official finishing time F(L), in seconds, of the swimmer in lane L. The results board, shown in the figure, lists every value of F:

L (lane): 1, 2, 3, 4, 5, 6
F(L) (seconds): 61.84, 59.37, 58.06, 60.12, 58.06, 62.49

(a) Is F a function? Is F one-to-one? If a fan hears only a finishing time, can the fan always tell which lane it belongs to?
(b) The coach's spreadsheet accepts any real number t > 0 as a time in seconds and returns the average speed over 100 meters, v(t) = 100t meters per second. A student evaluates v(50) = 2, v(80) = 1.25 and v(100) = 1, sees three different outputs, and concludes that v is one-to-one. Explain why that check alone does not prove it. Then decide whether v is one-to-one and justify your answer. Does a speed always tell the coach the time?

input L (lane)output F(L) (seconds)161.84259.37358.06460.12558.06662.49
A table of 6 values of F(L) (seconds), for L (lane) from 1 to 6.
Show the steps and the answer
input L (lane)output F(L) (seconds)161.84259.37358.06460.12558.06662.49↓ evaluate: input given, read the output below it
Results board for F: each lane from 1 to 6 is paired with one finishing time in seconds.
  1. (a) State the domain and the direction of the rule. The input is the lane number L and the output is that lane's finishing time, so F goes from lane to time, L→F(L). The domain is the set of lanes on the board, {1, 2, 3, 4, 5, 6}.One-to-one asks whether an output leads back to a single input, so we first fix which quantity is the input and exactly which inputs are allowed.
  2. (a) Confirm that each input has one output. Each lane appears once on the board, paired with exactly one time: 1→61.84,2→59.37,3→58.06,4→60.12,5→58.06,6→62.49. So F is a function.Function status is checked before anything else. A repeated time does not break it: a function may give the same output to different inputs, but it may never give one input two outputs.
  3. (a) Search for two different inputs with the same output. The time 58.06 appears twice: F(3)=58.06 and F(5)=58.06, with 3≠5. So F is not one-to-one. A fan who hears only 58.06 seconds cannot tell lane 3 from lane 5, so the answer to the fan question is no.One-to-one requires different inputs to give different outputs. A single pair of different inputs sharing an output disproves it: the output 58.06 points back to two inputs instead of one.
  4. (b) State the domain and the direction of the rule. Now the input is a time t and the output is a speed, so v goes from time to speed, t→100t. The domain is every real number t > 0, an infinite set.With infinitely many inputs we cannot list every input and compare all the outputs, as we did for six lanes, so the kind of argument has to change.
  5. (b) Confirm that each input has one output. For each t > 0, dividing 100 by the nonzero number t gives exactly one result, 100t. So v is a function.Function status comes first again; division by a nonzero number has a single answer, so no allowed input gets two outputs.
  6. (b) Search for two different inputs with the same output, and judge the student's check. The values v(50)=2,v(80)=1.25 and v(100)=1 compare only three of the infinitely many allowed inputs; they say nothing about the pairs that were never tested. For example, w(t)=(t-60)2 also gives three different outputs at those inputs (100, 400 and 1600), yet w(50)=w(70)=100, so passing such a check does not make a function one-to-one.A few sample pairs alone do not prove one-to-one on an infinite domain. The argument must cover every output at once.
  7. (b) Describe the outputs v actually produces. When t > 0, the quotient 100t is positive, so every output is a positive speed s. Numbers such as 0 or -3 are never produced, so they need no matching input.One-to-one concerns only the outputs the function really produces, and knowing s > 0 also guarantees s ≠ 0, which the next step divides by.
  8. (b) Recover the input from any output. Take any output s > 0 and solve 100t=s. Multiply both sides by t (allowed, since t≠0): 100= st. Divide both sides by s (allowed, since s≠0): t=100s. Both steps can be reversed, so 100t=s has exactly one solution, t=100s, and it is positive, so it is an allowed input. Each speed therefore comes from exactly one time: v is one-to-one, and a speed always tells the coach the time.This is the rule's second form: each value in the range comes from exactly one input. Using a general letter s covers every output at once, which is exactly what the three samples could not do.
Answer
  • (a) F is a function, but it is not one-to-one, because F(3) = F(5) = 58.06 with 3 ≠ 5. No: a fan who hears 58.06 seconds cannot tell lane 3 from lane 5. (b) Three sample values test only three of infinitely many inputs, so untested pairs could still share an output
  • w(t) = (t - 60)2 passes the same check yet w(50) = w(70) = 100. Even so, v is one-to-one: every output is a speed s > 0, and 100t = s has exactly one solution, t = 100s, which is an allowed input. Yes: a speed always tells the coach the time.
Double-check (a) Read the board backward, from time to lane: 61.84, 59.37, 60.12 and 62.49 each lead to one lane (1, 2, 4 and 6), but 58.06 leads to both lane 3 and lane 5. The backward pairing time → lane is not even a function, which confirms that F is not one-to-one. (b) Pick a speed, 1.6 meters per second: t = 1001.6 = 62.5, and v(62.5) = 10062.5 = 1.6, so the recovered time gives back the same speed. The student's outputs also lead back to their own inputs: 1002 = 50, 1001.25 = 80 and 1001 = 100.

Work to write

  1. F goes lane → time with domain {1, 2, 3, 4, 5, 6}; each lane has exactly one time, so F is a function.
  2. F(3) = F(5) = 58.06 with 3 ≠ 5, so F is not one-to-one.
  3. The time 58.06 seconds does not identify one lane: it could be lane 3 or lane 5.
  4. v goes time → speed with domain t > 0; each t gives one value 100t, so v is a function.
  5. Three sample values cannot prove one-to-one on the infinite domain t > 0.
  6. Every output is some s > 0, and 100t = s gives exactly one input, t = 100s > 0.
  7. So v is one-to-one: each speed identifies exactly one time.

The trap

Calling a function one-to-one after checking only that each input has one output. Also check that no two different inputs share an output, and state the domain.

1.9 Vertical and horizontal lines answer different questions

about 2 minOpen the full lesson

The rule

Vertical line test: a graph represents a function exactly when every vertical line meets it at most once.

Horizontal line test: a function is one-to-one exactly when every horizontal line meets its graph at most once.

How

  1. Identify the input on the horizontal axis and the output on the vertical axis.
  2. Try vertical lines across the graph. One line meeting two distinct graph points proves it is not a function.
  3. If every vertical line meets at most once, the graph is a function. Some lines may miss the graph.
  4. For a function, try horizontal lines. One line meeting two distinct points proves it is not one-to-one.
  5. Passing every horizontal line proves one-to-one. State which test supports each conclusion.

Worked example

Worked example

A line, a V, and a circle

Decide whether each relation is a function of x and then, if it is a function, whether it is one-to-one: (a) y = x, (b) y = |x|, and (c) x2 + y2 = 1.

What it asks. Check one output per input for each relation; then check shared outputs for the ones that are functions.

Show the steps and the answer

The plan. For the line and V, count vertical and horizontal contacts. For the circle, compare the shown top and bottom points at the same input 0.

(−1, −1)(0, 0)(1, 1)−22−22
For y = x, each input has one output, and each output has one input.
(−3, 3)(3, 3)−4−22424
The horizontal level y = 3 meets the V twice.
(0, 1)
The same picture again: The point (0, 1) on the unit circle at 90°.
(0, −1)
The same picture again: The point (0, −1) on the unit circle at 270°.
  1. Plan. For the line and V, count vertical and horizontal contacts. For the circle, compare the shown top and bottom points at the same input 0.
  2. The V has two points at height 3.
  3. The two circle pictures mark (0, 1) and (0, −1) on the same circle.
  1. (a) The diagonal line y=x has one point for each fixed x and one point for each fixed y. It passes both tests.The rule copies the input. Output 3 comes only from input 3, and the same statement works for every output.
  2. (b) The V-shaped graph of y=|x| has one height |x| for each input x, so it passes the vertical test.A fixed input has exactly one distance from 0.
  3. At height 3, the V has points (−3,3) and (3, 3), so it fails the horizontal test.One output is shared by two distinct inputs.
  4. (c) At x=0, the circle equation gives y=1 or y=−1. It fails the vertical test.One vertical line meets two distinct points with the same input.
  5. Do not classify the circle relation as a one-to-one function.It has already failed the requirement to be a function of x.
Answer
  • (a) function and one-to-one.
  • (b) function, but not one-to-one.
  • (c) Not a function of x; therefore not a one-to-one function of x.
Double-check Use the equations independently: y = x recovers x = y; y = |x| gives two inputs, −3 and 3, for output 3; x2 + y2 = 1 gives two outputs for input 0.

The trap

Using the horizontal line test to decide function status. Check vertical first, then horizontal, and label the conclusion from each test.

1.10 Meet the nine toolkit functions

about 4 minOpen the full lesson

The rule

Toolkit functions: constant c, identity x, absolute value |x|, quadratic x2, cubic x3, reciprocal 1x, reciprocal squared 1x2, square root x, and cube root x3.

For each, connect formula, graph, domain, range, and a sample table.

How

  1. Identify the operation in the formula and match its familiar graph shape.
  2. Check which real inputs the operation accepts. These make its domain.
  3. Ask which outputs it can actually produce. These make its range.
  4. Evaluate one small input with parentheses, then check the result against the graph or sample table.
  5. When an output is given, reverse the operation and check every candidate against the domain.

Worked example

Worked example

The constant function k(x) = -2: formula, graph, domain, range and table

The constant function k(x) = -2 is one of the nine toolkit functions. The figure shows its graph: a horizontal line 2 units below the x-axis that passes through the marked points (-4, -2), (0, -2) and (3, -2).
(a) Say what the formula does with its input, and name the shape of the graph.
(b) State the domain of k.
(c) State the range of k.
(d) Evaluate k(-1), writing the input in parentheses. Then complete a sample table for x = -1, 0 and 2, and check it against the graph.
(e) Solve k(x) = -2. Then solve k(x) = 2.

(-4, -2)(0, -2)(3, -2)−6−4−2246−4−224
Graph of the constant function k(x) = -2.
Show the steps and the answer
  1. Identify the operation. The right side of k(x)=-2 contains no x, so k does nothing with its input and always returns -2. A constant function graphs as a horizontal line. Here it is the line y=-2, 2 units below the x-axis. This matches the figure, where every marked point, (-4,-2),(0,-2) and (3,-2), has y-coordinate -2.Points that all share one y-coordinate lie on a single horizontal line, so a rule that gives every input the same output must graph as a horizontal line.
  2. Find the domain. The formula has no division by x and no square root of x, so no real input can make it undefined. Domain: all real numbers, (-∞,∞).Only operations such as dividing by zero or taking the square root of a negative number shut inputs out. k uses neither, and its graph runs without a break across the whole x-axis.
  3. Find the range. The only output k ever produces is -2. Range: {-2}, the single number -2. It is not an interval, and it is not all real numbers.The range is the set of outputs actually produced, and every point on the graph sits at height -2.
  4. Evaluate with parentheses. Replace x with (-1) in k(x)=-2. There is no x on the right side, so nothing changes and k(-1)=-2. In the same way k(0)=-2 and k(2)=-2, which gives the sample table x: -1, 0, 2 and k(x): -2,-2,-2. Check: (0,-2) is a marked point. (-1,-2) and (2,-2) lie on the same horizontal line, between the marked points, at height -2.Parentheses keep the input's sign attached in any formula. Here they show that the output does not depend on the input. Each table pair (x, k(x)) is a point that must lie on the graph.
  5. Reverse for the output -2. The equation k(x)=-2 says -2=-2, which is true whatever x is. Every real number is a candidate, and every candidate is in the domain, so every real number is a solution.Solving k(x) = -2 asks which inputs produce -2. All inputs produce -2, and on the graph the whole line sits at height -2.
  6. Reverse for the output 2. The equation k(x)=2 says -2=2, which is false for every x. There are no candidates, so the equation has no solution.2 is not in the range {-2}. On the graph, the horizontal line y = 2 lies 4 units above the graph of k and never meets it.
Answer
  • (a) k ignores its input and always outputs -2
  • its graph is the horizontal line y = -2. (b) Domain: all real numbers, (-∞, ∞). (c) Range: {-2}, only the value -2. (d) k(-1) = -2. The table gives k(-1) = -2, k(0) = -2 and k(2) = -2, and each of these points lies on the graph. (e) k(x) = -2 is true for every real number x
  • k(x) = 2 has no solution.
Double-check Test inputs not used above: k(10) = -2 and k(-12) = -2. Both 10 and -12 solve k(x) = -2, as 'every real number' predicts, and both outputs are -2, the one value in the range. The graph agrees. The line continues left and right without end, so every real input is used. Each of its points has height -2, so the line y = 2 never meets it and k(x) = 2 has no solution.

Work to write

  1. k(x) = -2 gives the output -2 for every input; its graph is the horizontal line y = -2
  2. Domain: all real numbers, (-∞, ∞)
  3. Range: {-2} (only the value -2)
  4. k(-1) = -2
  5. Table: x = -1, 0, 2 gives k(x) = -2, -2, -2; each point lies on the line
  6. k(x) = -2: every real number x is a solution
  7. k(x) = 2: no solution, because 2 is not in the range

The trap

Memorizing a graph shape without checking its input and output restrictions. The square and square-root functions both stay at nonnegative heights, but only the square root excludes negative inputs.

2 Domain and range

about 24 min10 lessonsOpen the unit's crash course

2.1 Domain and range: what can go in and what can come out

about 2 minOpen the full lesson

The rule

Domain = all permitted inputs.

Range = all outputs actually reached by those inputs; a function assigns one output to each input.

How

  1. Decide what the input represents and what the output represents.
  2. For listed ordered pairs or a table, collect the inputs for the domain and the outputs for the range.
  3. Remove repeated entries because sets record membership, not frequency.
  4. If a context is given, keep only physically meaningful inputs. Do not fill the spaces between separate listed values.

Worked example

Worked example

Separate the input and output trays

Find the domain and range of {(−4, 6), (0, 6), (3, −2), (5, 9)}.

Show the steps and the answer
-40356-29function
The same picture again: -4 → 6, 0 → 6, 3 → -2 and 5 → 9: a function.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Read the first coordinate of each ordered pair: −4, 0, 3, 5.An ordered pair writes the input before the output.
  3. Collect the inputs: {−4,0,3,5}.Only these four inputs are listed; numbers between them were not supplied.
  4. Read the second coordinates: 6, 6, −2, 9.The second coordinate tells what came out for that input.
  5. Collect the outputs without duplicates: {−2,6,9}.The two appearances of 6 refer to the same member of the range.
Answer
  • Domain: {−4, 0, 3, 5}.
  • Range: {−2, 6, 9}.
Double-check Draw four arrows. The arrows start at the four domain members and end at three different range members, with two arrows ending at 6.

The trap

Replacing a listed domain {−4, 0, 3, 5} with [−4, 5]. That interval would add every number between the endpoints. A finite list includes only its listed entries.

2.2 Find the domain by checking the arithmetic

about 1 minOpen the full lesson

The rule

Every denominator must be nonzero; every even-root radicand must be ≥0.

Keep inputs satisfying all restrictions, plus any supplied domain or contextual conditions.

How

  1. Start with all real inputs unless a domain or context is supplied.
  2. Find every denominator. Set the whole denominator equal to zero to locate exactly the inputs where division would fail. Solve that equation, substitute each answer into the original denominator to confirm zero, and exclude those inputs.
  3. Find every even-root radicand, require it to be ≥ 0, and solve the inequality.
  4. If a root is part of a denominator, check the whole denominator as well as the radicand.
  5. Keep only inputs that meet every condition. Write intervals from smaller to larger endpoints.
  6. Substitute each boundary or excluded value to see which operation permits or rejects it.

Worked example

Worked example

A polynomial accepts every real input

OpenStax problem

Find the domain of f(x) = x2 − 1.

Show the steps and the answer
domainrange−22−22468
The same picture, shown 4 times now: y = x2 − 1.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Identify the operations: square the input, then subtract 1.These are multiplication and subtraction, with no variable denominator or even root.
  3. Keep all real inputs.Both operations are defined for every real number.
Answer
Domain: (−∞, ∞).
Double-check For x = −2, 0 and 12, the outputs are 3, −1 and −34. Different input signs and a fraction all work.

The trap

Changing ≥ 0 to > 0 whenever you see a square root. 0 is allowed. Strict positivity is needed for a square root that must itself be a nonzero denominator, such as 1x−3.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 8

Domain of a quotient with a square root inside the denominator

Find the domain of k(x) = x−25−2x+6. Write your answer in interval notation.

Show the steps and the answer
  1. Start with all real numbers as candidate inputs.No domain or context is supplied, so only the arithmetic can remove inputs.
  2. Identify the even-root radicand 2x+6 and require 2x+6≥0.A square root of a negative number is not a real number.
  3. Solve 2x+6≥0: 2x≥−6, so x≥−3.Subtracting 6 and dividing by the positive number 2 keeps the inequality direction.
  4. Set the whole denominator equal to zero: 5−2x+6=0, so 2x+6=5.Division fails exactly where the entire denominator is zero. The root sits inside the denominator, so the whole expression is checked, not just the radicand.
  5. Square both sides: 2x+6=25, so 2x=19 and x=192.Squaring undoes the square root. This value satisfies x ≥ −3, so it is a real candidate.
  6. Substitute x=192 into the original denominator: 2·192+6=25,25=5, and 5−5=0. Exclude x=192.Squaring can create false solutions, so the value is confirmed in the original denominator. It really gives zero.
  7. Combine the conditions: x≥−3 and x≠192. Write the result as [−3,192)∪(192,∞).Only inputs that meet every condition are kept. The intervals are written from smaller to larger endpoints.
  8. Test the boundaries. At x=−3 the radicand is 0 and 0=0, so the denominator is 5 and k(−3)=−55=−1. This value is included. At x=192 the denominator is 0, so this value is excluded.The square root permits radicand 0, so the bracket is used at −3. Division rejects 192, so parentheses are used on both sides of it.
Answer
[−3,192)∪(192,∞)
Double-check Pick x = 5, which lies inside the first interval: 16 = 4 and the denominator is 5 − 4 = 1, so k(5) = 3. This is defined. Pick x = 15, which lies inside the second interval: 36 = 6 and the denominator is 5 − 6 = −1, so k(15) = −13. This is defined. Pick x = −4, which lies outside: the radicand is −2, so the root is not real. This is undefined, as expected.

Work to write

  1. Radicand: 2x + 6 ≥ 0 ⇒ x ≥ −3
  2. Denominator: 5 − 2x+6 = 0 ⇒ 2x+6 = 5 ⇒ 2x + 6 = 25 ⇒ x = 192
  3. Check: 5 − 25 = 0, so exclude x = 192
  4. x = −3 is allowed: denominator 5 − 0 = 5 ≠ 0
  5. Domain: [−3, 192) ∪ (192, ∞)

2.3 Factor a denominator and keep every original exclusion

about 3 minOpen the full lesson

The rule

(x+p)(x+q)=x2+(p+q)x+ pq.

To factor x2+ Bx +C, find p+q=B and pq =C.
Exclude every input making the original denominator zero, and retain those exclusions after cancellation.

How

  1. Copy the original denominator before changing the fraction. Its zero inputs are the values you must exclude.
  2. For x2 + Bx + C, identify B and C, including their signs. B is the coefficient of x, meaning the number multiplying x; C is the constant term. The constant term is the fixed number added or subtracted without being multiplied by x; here it is C.
  3. Generate the whole-number factor-pair sizes of the size of C. Try positive whole-number candidates in order and divide the size of C by each one. Keep a pair only when the quotient is a whole number. Stop when the candidate is larger than its quotient, because further pairs would repeat earlier pairs in reverse. Choose signs so the product is C, then find the pair whose sum is B. If C = 0, factor out x directly instead of making a nonzero-constant pair list.
  4. Write (x + p)(x + q) and multiply it out to check both middle and constant terms.
  5. Set each denominator factor equal to zero to find forbidden inputs. Solve each smaller equation, then substitute each result into the original denominator to confirm that it produces zero.
  6. If a common factor cancels, write the simplified expression together with every original exclusion. Cancel only at inputs where the common factor is nonzero.
  7. Keep any other root or context restrictions as well, then write the remaining input intervals.

Worked example

Worked example

Find two numbers that rebuild a quadratic

Factor x2 + 12x + 35. This asks you to rewrite the expression as multiplied pieces with the same value.

Show the steps and the answer
x²7xx5x355x7
The two middle products add to 12x, while the corner product is 35.
input factor pairoutput sum1 and 35365 and 712↑ solve: output given, read every input above it
factor pair: 1 and 35, 5 and 7; sum: 36, 12.
  1. The coefficient of x is 12 and the constant term is 35. We need p+q=12 and pq =35.Expanding (x + p)(x + q) gives middle coefficient p + q and constant term pq.
  2. Generate the positive factor-pair sizes of 35 by division. 35÷1=35 gives 1 and 35. Dividing by 2, 3, or 4 does not give a whole-number quotient, so skip those candidates. 35÷5=7 gives 5 and 7. Stop before trying larger candidates: 6 is already greater than its quotient 35÷6, because 6×6=36>35.A whole-number divisor and its quotient multiply back to 35. Once the candidate is larger than its quotient, any further whole-number pair reverses a pair with a smaller member that was already tried.
  3. Read the factor-pair picture. Under 1 and 35, the sum is 36. Under 5 and 7, the sum is 12. Both pairs have product 35.A positive product with a positive sum needs two positive numbers here. Checking the pairs finds the required sum.
  4. Choose p=5 and q=7, then write (x+5)(x+7).5 + 7 = 12 and 5 × 7 = 35, so both coefficients are reproduced.
  5. Multiply back: (x+5)(x+7)=x2+7x+5x+35=x2+12x+35.Each term in the first factor multiplies each term in the second, and the two middle terms combine.
Answer
x2+12x+35=(x+5)(x+7)
Double-check At x = 2, the original expression is 4 + 24 + 35 = 63. The product is (2 + 5)(2 + 7) = 7 × 9 = 63. Multiplication back checks the identity for every x; substitution checks this numerical case.

The trap

Canceling a factor and then forgetting its zero input. The shorter expression equals the original only where the original denominator was nonzero. Record every exclusion before canceling.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Factor to find a fraction's domain

Find the domain of f(x) = 7x+11x2+x−20. You are finding every input that keeps the original fraction defined.

Show the steps and the answer
−54excludedexcluded(−∞, −5) ∪ (−5, 4) ∪ (4, ∞)
A quadratic denominator can require three intervals because it has two zero inputs.
  1. Set x2+x−20=0 to find denominator-zero inputs, then factor it as (x+5)(x−4).These inputs would make division fail. The factor numbers add to 1 and multiply to −20.
  2. Set x+5=0 or x−4=0. Solve to get x=−5 or x=4.The zero product property locates every zero through the smaller factor equations.
  3. Substitute −5 and 4 into the original denominator: 25−5−20=0 and 16+4−20=0.Each substitution confirms an input that must be excluded.
  4. Remove both values and write (−∞,−5)∪(−5,4)∪(4,∞).Every remaining denominator is nonzero, and the polynomial numerator imposes no additional restriction.
Answer
Domain: (−∞, −5) ∪ (−5, 4) ∪ (4, ∞)
Double-check At x = 0, the denominator is −20 and the output is −1120. At x = 5 the output is 235. Both are defined, while the two excluded inputs give zero denominators.

2.4 Write the same set three ways

about 2 minOpen the full lesson

The rule

Use [ or ] for an included endpoint, ( or ) for an excluded endpoint or infinity.

Write intervals from smaller to larger; union (∪) means or, including membership in both sets.

How

  1. Identify the shaded or allowed portion of the number line.
  2. Use the closed dot / open dot convention: a filled dot is included and a hollow dot is excluded.
  3. State comparisons with <, >, ≤ or ≥ for inequality notation.
  4. Put the condition after the bar in {x | condition} for set-builder notation.
  5. Write the lower limit first and the upper limit second in interval notation.
  6. For separate pieces, join conditions with or and intervals with ∪. Keep every gap that is actually excluded.

Worked example

Worked example

Textbook: read two shaded intervals

OpenStax problem

A number line shades 1 through 3 with filled endpoints, and everything to the right of 5 with a hollow endpoint at 5. Describe the set three ways.

Show the steps and the answer
135[1, 3] ∪ (5, ∞)
The same picture again: [1, 3] and (5, ∞) on a number line.
  1. We are expressing the same allowed values in the requested notation.Naming the requested values tells us which taught method to use.
  2. For the first shaded piece, write 1≤x≤3.Both endpoints have filled dots, so both are included.
  3. For the second piece, write x > 5.The dot at 5 is hollow and the shading continues to the right without a last number.
  4. Join the conditions with or and the intervals with ∪.Membership in either piece is enough; the unshaded gap is not included.
  5. Read the braces and bar in {x | 1≤x≤3 or x > 5}.This says the set of real x such that one of the two stated conditions holds.
Answer
  • Inequality: 1 ≤ x ≤ 3 or x > 5.
  • Set-builder: {x | 1 ≤ x ≤ 3 or x > 5}.
  • Interval: [1, 3] ∪ (5, ∞).
Double-check 2 is included by the first piece and 6 by the second. Neither 4 nor 5 is included, so the gap remains.

The trap

Writing [1, ∞) for [1, 3] ∪ (5, ∞). That would fill the missing region after 3 through 5. The union symbol joins sets without filling gaps.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Textbook: read two shaded intervals

OpenStax problem

A number line shades 1 through 3 with filled endpoints, and everything to the right of 5 with a hollow endpoint at 5. Describe the set three ways.

Show the steps and the answer
135[1, 3] ∪ (5, ∞)
The same picture a third time: [1, 3] and (5, ∞) on a number line.
  1. We are expressing the same allowed values in the requested notation.Naming the requested values tells us which taught method to use.
  2. For the first shaded piece, write 1≤x≤3.Both endpoints have filled dots, so both are included.
  3. For the second piece, write x > 5.The dot at 5 is hollow and the shading continues to the right without a last number.
  4. Join the conditions with or and the intervals with ∪.Membership in either piece is enough; the unshaded gap is not included.
  5. Read the braces and bar in {x | 1≤x≤3 or x > 5}.This says the set of real x such that one of the two stated conditions holds.
Answer
  • Inequality: 1 ≤ x ≤ 3 or x > 5.
  • Set-builder: {x | 1 ≤ x ≤ 3 or x > 5}.
  • Interval: [1, 3] ∪ (5, ∞).
Double-check 2 is included by the first piece and 6 by the second. Neither 4 nor 5 is included, so the gap remains.

2.5 Read domain and range as shadows of a graph

about 2 minOpen the full lesson

The rule

Domain = the graph's horizontal shadow on the x-axis.

Range = its vertical shadow on the y-axis; include a coordinate if any included point reaches it.

How

  1. Identify the x-axis as the input axis and the y-axis as the output axis; read their units.
  2. Sweep left to right and collect all input positions covered by included graph points.
  3. Sweep bottom to top and collect all reached output heights.
  4. Check boundary dots. A hollow point excludes only that point, so look for other points sharing its coordinate.
  5. Follow arrows beyond the visible window, and preserve genuine gaps with unions.
  6. Write each interval from smaller to larger and label estimates from a data graph as approximate.

Worked example

Worked example

Read a starting point and two directions

Read the pictured curve’s domain and range. It has an included start at (6, 2) and continues rightward and downward without bound. You are collecting its horizontal input positions and vertical output heights.

Show the steps and the answer
included start(7, 1)(10, 0)domainrange46810121416−224
The same picture again: y = −(x−6) + 2.
  1. Locate the start at input 6 and output 2.The first coordinate is horizontal input, and the second is vertical output.
  2. Project the entire curve onto the input axis: it begins at 6 and continues through every larger input.The curve continues rightward and has no gap in its horizontal shadow.
  3. Include input 6 and write [6,∞).The starting point belongs, so the domain begins with a bracket.
  4. Project onto the output axis: the highest height is 2 and the curve continues through every smaller height.The curve moves downward without a break or a lowest height.
  5. Write (−∞,2] for the range.Height 2 belongs, smaller heights continue without limit, and limits are written in increasing order.
Answer
  • Domain: [6, ∞).
  • Range: (−∞, 2].
Double-check The included start contributes 6 to the domain and 2 to the range. The visible points (7, 1) and (10, 0) confirm the rightward and downward direction; the stated continuation extends both shadows beyond the frame.

The trap

Deleting an output height because one point at that height is hollow. Look across the whole graph. A different included point can still put that height in the range.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Shadows of an arch with one hollow end

A graph is one unbroken arch that is part of the parabola y = −(x − 2)2 + 5. It is drawn on a grid with 1 unit per square on both axes. The arch starts at a hollow dot at (−1, −4), rises to its highest point (2, 5), and falls to a solid dot at (5, −4). It has no arrows and no breaks. Use the graph's shadows to write its domain and its range in interval notation.

(−1, −4) hollow(2, 5)(5, −4) solid24−4−2246
The arch y = −(x − 2)2 + 5 from x = −1 to x = 5.
Show the steps and the answer
  1. Name the axes. The horizontal x-axis is the input axis and the vertical y-axis is the output axis. Each is marked 1 unit per grid square.The domain is read on the input axis and the range on the output axis, so we need to know where each shadow lands and what its marks count.
  2. Sweep left to right. The arch runs from its left end dot at x=−1 to its right end dot at x=5 and covers every x between them without a gap. So the horizontal shadow stretches from −1 to 5.The domain is every input that has a graph point directly above or below it. That set is the shadow the graph casts onto the x-axis.
  3. Sweep bottom to top. The lowest marked height is −4, shared by both end dots. The highest is 5, at the top point (2, 5). The curve passes through every height between them, so the vertical shadow stretches from −4 to 5.The range is every output height the graph reaches. That set is the shadow the graph casts sideways onto the y-axis.
  4. Check the boundary dots. No other point of the arch sits on the line x=−1, so the hollow dot (−1,−4) leaves −1 out of the domain. Height −4 is also reached by the solid dot (5,−4), so −4 stays in the range. The solid dot puts 5 in the domain, and the included top point (2, 5) puts 5 in the range.A hollow dot removes only its own point, not its coordinates. A coordinate drops out of a shadow only when no included point shares it.
  5. Look for arrows and gaps. There are none: the arch stops at its two end dots and has no breaks. So each shadow is a single interval and no union is needed.Arrows would carry a shadow past the visible window, and a genuine break would split a shadow into pieces joined by ∪. This graph has neither.
  6. Write each interval from smaller to larger. Use a round bracket for an excluded end and a square bracket for an included end: domain (−1,5], range [−4,5]. Both ends come from exact labeled points, not readings off a data graph, so no 'approximately' label is needed.Interval notation lists the left end first, and the bracket shape records whether each end belongs to the set.
Answer
Domain: (−1, 5]. Range: [−4, 5].
Double-check Substitute into y = −(x − 2)2 + 5. x = −1 gives −9 + 5 = −4, x = 2 gives 5, and x = 5 gives −9 + 5 = −4, so all three labeled points lie on the parabola. At the ends: the vertical line x = −1 meets the graph only at the hollow dot, so −1 is not an input. The horizontal line y = −4 still meets the graph at the solid dot (5, −4), so −4 is an output. Inside: the height y = 0 is reached at x = 2 − 5 ≈ −0.24 and x = 2 + 5 ≈ 4.24, and both lie in (−1, 5]. No height above 5 is reached, because −(x − 2)2 is never positive.

Work to write

  1. Domain: (−1, 5]
  2. Range: [−4, 5]
  3. −1 is excluded from the domain: the only point at x = −1 is the hollow dot (−1, −4)
  4. −4 is included in the range: the solid dot (5, −4) reaches height −4
  5. 5 is included in both: the solid dot at x = 5 and the top point (2, 5)

2.6 The first five toolkit functions

about 2 minOpen the full lesson

The rule

For the toolkit formulas c, x, |x|, x2, and x3, the domain is (−∞,∞).

Their ranges are {c}, (−∞,∞),[0,∞),[0,∞), and (−∞,∞), respectively.

How

  1. Name the toolkit formula and say what its calculation does.
  2. Check whether that calculation permits every real input.
  3. Identify outputs the calculation cannot produce, including any sign restriction.
  4. Show that every output in the proposed range has an input that produces it.
  5. Write domain and range separately, and use the graph as a memory cue.

Worked example

Worked example

The same negative input in a square and a cube

Let p(x) = x2 and q(x) = x3. Find p(−4) and q(−4), then state each function's full domain and range. The input is −4; you are finding its two outputs and the complete sets of allowed inputs and attainable outputs.

Show the steps and the answer
p(−4) = 16domainrange−4−22448121620
The square reaches a positive height at input −4.
q(−4) = −64domainrange−4−224−56−282856
The cube keeps the input’s negative sign.
  1. p(−4)=(−4)2=(−4)×(−4)=16.The parentheses put the negative sign inside the square. Two negative factors give a positive product.
  2. q(−4)=(−4)3=(−4)×(−4)×(−4)=16×(−4)=−64.A cube has three factors, so one negative factor remains after the first pair makes a positive product.
  3. Both domains are (−∞,∞).Every real number can be multiplied by itself two or three times.
  4. The range of p is [0,∞): a square is nonnegative, and for any y≥0, input x=y gives x2=y.The square root supplies an input for every proposed nonnegative output, including zero.
  5. The range of q is (−∞,∞): for any real y, input x=y3 gives x3=y.A real cube root exists for negative, zero, and positive numbers.
Answer
  • p(−4)=16
  • q(−4)=−64
  • p domain: (−∞, ∞)
  • p range: [0, ∞)
  • q domain: (−∞, ∞)
  • q range: (−∞, ∞)
Double-check Undo the calculations: 16 = 4 and |−4| = 4, so the square's size is correct. ∛(−64) = −4, so the cube gives back the original input. The V or bowl cannot sit below zero, while the cubic can.

The trap

Giving every unrestricted formula an all-real range. An unrestricted domain tells you about inputs. It does not make negative outputs possible for a square or a distance.

2.7 Reciprocals and roots complete the toolkit

about 4 minOpen the full lesson

The rule

For 1x: x≠0 and y≠0.

For 1x2: x≠0 and y > 0.
For x: x≥0 and y≥0. For x3: x and y may be any real numbers.

How

  1. Identify whether you are dividing, squaring a denominator, taking a square root, or taking a cube root.
  2. Find the domain by checking denominators and the number under an even root.
  3. Determine the sign and possible zero value of the output.
  4. Supply an input for every proposed allowed output by undoing the calculation.
  5. Write domain and range on separate lines and compare the formula with its toolkit shape.

Worked example

Worked example

Compare reciprocal, reciprocal squared, and two roots

Evaluate r(−3) for r(x) = 1x, s(−3) for s(x) = 1x2, t(9) for t(x) = x, and u(−125) for u(x) = x3. Then state the domain and range of each. The inputs are supplied; first find the outputs, then describe the full sets.

Show the steps and the answer
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024

The same nine graphs a third time, in the same order: constant, identity, absolute value, quadratic, cubic, reciprocal, reciprocal squared, square root and cube root.

  1. We need all permitted inputs and all outputs they actually produce.Translate the question into what must be found before calculating.
  2. r(−3)=1−3=−13.A positive number divided by a negative number is negative, and the denominator is not zero.
  3. s(−3)=1(−3)2=19.Square the whole denominator first. Two negative factors make 9, so this reciprocal is positive.
  4. t(9)=9=3.The principal square root chooses the nonnegative number whose square is 9.
  5. u(−125)=(−125)3=−5.(−5) × (−5) × (−5) = −125, so a negative cube root is real.
  6. For r, omit input 0 and output 0. Every y≠0 comes from x=1y.Division cannot have a zero denominator, and substituting this nonzero x into 1x gives y.
  7. For s, omit input 0 and require output y > 0. Every positive y comes from x=1y.Squaring this nonzero input gives 1y, and taking its reciprocal gives y.
  8. For t, domain and range are [0,∞). Every y≥0 comes from x=y2. For u, domain and range are (−∞,∞); every real y comes from x=y3.The indicated powers undo their matching roots. The principal square root returns y only when y is nonnegative, whereas cubing and cube-rooting preserve every real sign.
Answer
  • r(−3)=−13
  • s(−3)=19
  • t(9) = 3
  • u(−125)=−5
  • r domain: (−∞, 0) ∪ (0, ∞)
  • r range: (−∞, 0) ∪ (0, ∞)
  • s domain: (−∞, 0) ∪ (0, ∞)
  • s range: (0, ∞)
  • t domain: [0, ∞)
  • t range: [0, ∞)
  • u domain: (−∞, ∞)
  • u range: (−∞, ∞)
Double-check Undo each numerical calculation: (−3) × (−13) = 1, 9 × 19 = 1, 32 = 9, and (−5)3 = −125. These multiplication and power checks verify the division and root results by a second operation.

The trap

Treating all roots as square roots, or all reciprocals as positive. An odd root accepts negative inputs. A reciprocal can be negative; reciprocal squared is positive because its denominator is squared.

2.8 Use toolkit behavior to find a changed function's range

about 3 minOpen the full lesson

The rule

Find the domain from the inside arithmetic.

Find the range from the final output, and show every claimed output is attained.
A function continuous on the whole real line, with arbitrarily negative and positive outputs, has range (−∞,∞).

How

  1. Identify the toolkit calculation inside the formula and teach yourself what number is actually fed into it.
  2. Apply all denominator and even-root restrictions to find the domain.
  3. Track each operation on the output, including a negative multiplier or an added constant.
  4. Prove the full range by constructing an input for any allowed output, or by using a continuous graph with heights on both sides of every target.
  5. Confirm a few values with substitution or a picture, keeping the proof separate from the sample check.

Worked example

Worked example

A square root moved right and lifted

Find the domain and range of f(x) = x−10 + 3. Find an input that gives output 8. You are identifying permitted inputs, attainable final heights, and one input producing the specified height.

Show the steps and the answer
(10, 3)(14, 5)domainrange81012141618246
The start is (10, 3); the curve continues right and up beyond the displayed frame.
  1. The inside must satisfy x−10≥0, so add 10 to get x≥10. Domain: [10,∞).The square root accepts nonnegative inside values. The inside first equals zero at x = 10.
  2. At x=10,f(10)=0+3=3. Every output is at least 3.The principal square root is nonnegative, and the outside addition lifts that root value by 3.
  3. For an arbitrary target y≥3, subtract 3: x−10=y−3. The right side is nonnegative. Square and add 10 to obtain x=(y−3)2+10.These operations undo the output addition and then the square root. The nonnegative condition keeps the principal-root convention.
  4. This input is at least 10, and f((y−3)2+10)=(y−3)2+3=y−3+3=y. Range: [3,∞).Every proposed y ≥ 3 has a valid input, while no smaller output can occur.
  5. For output 8, x=(8−3)2+10=52+10=25+10=35.Use the backward formula with the desired output y = 8.
Answer
  • Domain: [10, ∞)
  • Range: [3, ∞)
  • Output 8 occurs at input 35
Double-check Substitute the obtained input: f(35) = 35−10 + 3 = 25 + 3 = 5 + 3 = 8. The basic square-root start occurs at inside value zero, so the changed graph starts at (10, 3), independently confirming both closed endpoints.

The trap

Listing outputs that seem possible without showing that an input produces them. Excluding zero, or observing a sign, may give a restriction but does not by itself prove the whole range.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Reflect a square root and raise its start

Find the domain and range of h(x) = −3x+8 + 2. You are tracking an inside addition, a negative output multiplier, and an outside addition.

Show the steps and the answer
(−8, 2)(−4, −4)domainrange−8−44−8−44
The negative multiplier turns the start into a maximum output of 2, and the curve continues downward.
  1. Require x+8≥0; subtract 8 to get x≥−8. Domain: [−8,∞).The square-root inside is nonnegative, first becoming zero at x = −8.
  2. The principal root is at least 0. Multiplying it by −3 gives a number at most 0; adding 2 gives h(x)≤2.A negative multiplier reverses the order of the output heights, so the starting height is now a maximum.
  3. h(−8)=−30+2=2.The upper bound is attained and therefore included.
  4. To find an input for any target y≤2, start with y=−3x+8+2. Subtract 2 from both sides: y−2=−3x+8.We are undoing the outside addition to find an input that reaches the target output, not solving a domain restriction.
  5. Divide both sides by −3: y−2−3=x+8. Rewrite the fraction as 2−y3. This root value is nonnegative because y≤2.Negative division changes both signs in the fraction. The target restriction is what lets a principal square root equal that value.
  6. Square both sides: x+8=(2−y3)2. Subtract 8: x=(2−y3)2−8.Squaring recovers the inside value from the nonnegative root value. Subtracting 8 then finds the original input.
  7. This input is at least −8 and gives −3×2−y3+2=−(2−y)+2=y. Range: (−∞,2].Every proposed output at or below 2 has a valid input, and no output exceeds 2.
Answer
  • Domain: [−8, ∞)
  • Range: (−∞, 2]
Double-check For target output −4, the input formula gives (2−(−4)3)2 − 8 = 22 − 8 = −4. Direct substitution gives −3−4+8 + 2 = −3 × 2 + 2 = −4. The curve drops from its included start (−8, 2).

2.9 Write and evaluate a piecewise function

about 2 minOpen the full lesson

The rule

Choose the condition your input satisfies, then use that piece's formula.

The whole domain is the union of the pieces' domains; each allowed input must receive one output.

How

  1. Identify what the input measures and where the rule changes.
  2. Write a formula for each region and state its condition with the boundary ownership explicit.
  3. Include any context limits, such as positive whole-number people counts.
  4. To evaluate, compare the input with all conditions before using a formula.
  5. Substitute into the selected formula and follow the order of operations.
  6. At a boundary, check which condition includes equality. Do not add the outputs of different pieces.

Worked example

Worked example

Evaluate a data-plan function

OpenStax problem

A data plan has C(g) = 25 for 0 < g < 2, and C(g) = 25 + 10(g − 2) for g ≥ 2. Here g is gigabytes and C is dollars. Find C(1.5) and C(4).

Show the steps and the answer
input goutput C(g), dollars1.525225445↓ evaluate: input given, read the output below it
g: 1.5, 2, 4; C(g), dollars: 25, 25, 45.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. For g=1.5, test 0 < 1.5 < 2.The condition decides which formula applies before any calculation.
  3. Use the first formula: C(1.5)=25.Every input strictly between 0 and 2 has the flat charge.
  4. For g=4, test 4≥2.This input belongs to the second piece.
  5. Subtract the included 2 gigabytes: 4−2=2.Only usage above the threshold is charged at the extra rate.
  6. Calculate C(4)=25+10×2=25+20=45.The base charge and the charge for two excess gigabytes must both be paid.
Answer
  • C(1.5) = $25.
  • C(4) = $45.
Double-check The second input uses two gigabytes above the threshold, so its $20 excess charge explains why the total is $20 above the flat $25 charge.

The trap

Using a formula because it is familiar before reading its condition. At g = 2 the data plan uses the g ≥ 2 piece. At g = 0 neither piece applies.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Piecewise ladder 3: the threshold itself

For the same data-plan rule, find C(2) and decide whether C(0) is defined.

Show the steps and the answer
input goutput C(g), dollars125225445↓ evaluate: input given, read the output below it
The same picture again: g: 1, 2, 4; C(g), dollars: 25, 25, 45.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. At g=2, the condition 0 < g < 2 is false.A strict inequality excludes its boundary.
  3. The condition g≥2 is true, so C(2)=25+10(2−2)=25.The second condition includes equality, and the excess usage is zero.
  4. At g=0, neither condition is true.Zero is not strictly positive and is not at least 2.
  5. Report C(0) as undefined for this given rule.No branch assigns an output to zero; a real provider's policy would require a separately supplied rule.
Answer
  • C(2) = $25.
  • C(0) is undefined for the stated function.
Double-check The branch domains (0, 2) and [2, ∞) join to (0, ∞). The threshold belongs, while zero does not.

2.10 Graph each piece only where its condition allows it

about 3 minOpen the full lesson

The rule

Draw each branch only on its assigned interval, using open dots for strict boundaries and closed dots for included ones.

Combine the pieces; domain is the input union and range is the union of reached output heights.

How

  1. Mark every boundary input on one common x-axis.
  2. Identify each formula's known shape and calculate at least two useful points, or include a turning point for a curve.
  3. Keep only the portion satisfying that branch's condition.
  4. Calculate the boundary height and make its dot open or closed according to that branch's inequality.
  5. Combine all allowed portions without inventing connecting segments across jumps or gaps.
  6. Check the vertical line test at every boundary, then collect the domain and range shadows.

Worked example

Worked example

Graph and read all three pieces

OpenStax problem

Let f(x) = x2 if x ≤ 1, f(x) = 3 if 1 < x ≤ 2, and f(x) = x if x > 2. Graph it, find f(1), f(1.5), f(2) and f(4), and state domain and range.

Show the steps and the answer
1213
The same picture, shown 9 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Draw y=x2 only for x≤1, with a closed point at (1, 1).The first condition includes its boundary; the square curve has its lowest point at (0, 0).
  3. Draw y=3 on 1<x≤2, with an open point at (1, 3) and a closed point at (2, 3).This condition excludes its left endpoint and includes its right endpoint.
  4. Draw y=x only for x > 2, beginning with an open point at (2, 2).The third condition excludes 2, so its line does not assign an output there.
  5. At x=1, choose the first branch and calculate 12=1.The ≤ 1 condition owns this boundary.
  6. At x=1.5, choose the middle branch and get 3.1 < 1.5 ≤ 2.
  7. At x=2, also choose the middle branch and get 3.The middle condition includes equality at 2; the final branch does not.
  8. At x=4, choose the last branch and get 4.4 satisfies x > 2.
  9. Take the input union (−∞,1]∪(1,2]∪(2,∞)=(−∞,∞).Every real input belongs to one of these three intervals, with no gap.
  10. The first branch already reaches every y≥0, and neither other branch goes below zero.For any y ≥ 0 the allowed input −y supplies that output through the first branch.
  11. Write range [0,∞).Union with {3} and (2, ∞) adds no new values beyond the first branch's range.
Answer
  • f(1) = 1.
  • f(1.5) = 3.
  • f(2) = 3.
  • f(4) = 4.
  • Domain: (−∞, ∞).
  • Range: [0, ∞).
Double-check At x = 1 the only included boundary point is (1, 1), and at x = 2 it is (2, 3). The open points are absent, so a vertical line meets exactly one included point at either boundary. Also f(−3) = 9 confirms that the first branch's output heights continue above the constant piece.

The trap

Joining the endpoint (1, 1) to the hollow endpoint (1, 3) with a vertical segment. That segment would create many outputs for x = 1. A jump stays a jump; it is not filled in.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Graph and read all three pieces

OpenStax problem

Let f(x) = x2 if x ≤ 1, f(x) = 3 if 1 < x ≤ 2, and f(x) = x if x > 2. Graph it, find f(1), f(1.5), f(2) and f(4), and state domain and range.

Show the steps and the answer
1213
The same picture, shown 10 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Draw y=x2 only for x≤1, with a closed point at (1, 1).The first condition includes its boundary; the square curve has its lowest point at (0, 0).
  3. Draw y=3 on 1<x≤2, with an open point at (1, 3) and a closed point at (2, 3).This condition excludes its left endpoint and includes its right endpoint.
  4. Draw y=x only for x > 2, beginning with an open point at (2, 2).The third condition excludes 2, so its line does not assign an output there.
  5. At x=1, choose the first branch and calculate 12=1.The ≤ 1 condition owns this boundary.
  6. At x=1.5, choose the middle branch and get 3.1 < 1.5 ≤ 2.
  7. At x=2, also choose the middle branch and get 3.The middle condition includes equality at 2; the final branch does not.
  8. At x=4, choose the last branch and get 4.4 satisfies x > 2.
  9. Take the input union (−∞,1]∪(1,2]∪(2,∞)=(−∞,∞).Every real input belongs to one of these three intervals, with no gap.
  10. The first branch already reaches every y≥0, and neither other branch goes below zero.For any y ≥ 0 the allowed input −y supplies that output through the first branch.
  11. Write range [0,∞).Union with {3} and (2, ∞) adds no new values beyond the first branch's range.
Answer
  • f(1) = 1.
  • f(1.5) = 3.
  • f(2) = 3.
  • f(4) = 4.
  • Domain: (−∞, ∞).
  • Range: [0, ∞).
Double-check At x = 1 the only included boundary point is (1, 1), and at x = 2 it is (2, 3). The open points are absent, so a vertical line meets exactly one included point at either boundary. Also f(−3) = 9 confirms that the first branch's output heights continue above the constant piece.

3 Rates of change and behavior of graphs

about 27 min10 lessonsOpen the unit's crash course

3.1 Rate of change and average rate of change

about 4 minOpen the full lesson

The rule

Average rate of change =ΔyΔx=y2−y1x2−x1=f(x2)−f(x1)x2−x1, with x2≠x1 and both outputs defined.

Use the same endpoint order on top and bottom. Units are output units per input unit.

How

  1. Name the input and output, including their units.
  2. For a left-to-right calculation, call the smaller input x1 and the larger input x2; keep each output with its input.
  3. Find Δy = y2 − y1 and Δx = x2 − x1, using the same order.
  4. Check Δx ≠ 0, then divide Δy by Δx.
  5. Attach output units per input unit. With inputs in increasing order, positive means a net rise and negative a net fall.

Worked example

Worked example

Average rate of change of a regional gas price, 2014 to 2021

A regional energy office records the average price of one gallon of regular gasoline each year. Let P(t) be the price in dollars per gallon in year t. The table gives these values.

Year t: 2014, 2016, 2019, 2021
Price P(t) ($/gal): 3.36, 2.14, 2.60, 3.01

(a) Find the average rate of change of the gas price from 2014 to 2021. Give units and say what the sign means.
(b) Find the average rate of change from 2016 to 2021. Explain why the signs in (a) and (b) differ, even though both intervals end in 2021.

input yearoutput price ($ per gallon)20143.3620162.1420192.620213.01
A table of 4 values of price ($ per gallon), for year from 2014 to 2021.
Show the steps and the answer
input yearoutput price ($ per gallon)20143.3620162.1420192.620213.01↓ evaluate: input given, read the output below it
Average regional gas price P(t) in dollars per gallon for the years 2014, 2016, 2019 and 2021.
  1. Input: t, the year, in years. Output: P(t), the price, in dollars per gallon ($/gal).The units of the answer are output units per input unit, so both units are needed first.
  2. (a) Let x1=2014 with y1=P(2014)=3.36, and x2=2021 with y2=P(2021)=3.01.For a left-to-right calculation the smaller input is x1. Each price stays paired with its own year.
  3. Δy=3.01−3.36=−0.35 and Δx=2021−2014=7.Both differences use the same order, the later value minus the earlier value.
  4. Δx=7≠0, so the average rate of change is −0.357=−0.05.Average rate of change = ΔyΔx. Division is allowed because Δx is not zero.
  5. (a) The rate is −0.05 dollars per gallon per year. The price fell by a net 5 cents per gallon per year from 2014 to 2021.The inputs are in increasing order, so a negative rate means a net fall. The price did not fall every year: it rose from 2016 to 2021. The rate describes only the overall change between the endpoints.
  6. (b) Let x1=2016 with y1=2.14, and x2=2021 with y2=3.01. Then Δy=3.01−2.14=0.87 and Δx=2021−2016=5.This is the same left-to-right method on the new interval, keeping each price with its year.
  7. Δx=5≠0, so the rate is 0.875=0.174 dollars per gallon per year, a net rise of about 17.4 cents per gallon per year.The rate is positive with the inputs in increasing order, so the price rose overall on [2016, 2021].
  8. The signs differ because the starting prices differ. The 2014 price of $3.36 is above the 2021 price of $3.01. The 2016 price of $2.14 is below it.An average rate of change depends only on the two endpoint values, not on the values in between.
Answer
(a) 3.01−3.362021−2014 = −0.357 = −0.05 dollars per gallon per year, a net fall of 5 cents per gallon per year from 2014 to 2021. (b) 3.01−2.142021−2016 = 0.875 = 0.174 dollars per gallon per year, a net rise of about 17.4 cents per gallon per year from 2016 to 2021.
Double-check Start at the first endpoint price and add the rate times the number of years. (a) 3.36 + 7(−0.05) = 3.36 − 0.35 = 3.01 = P(2021) ✓. (b) 2.14 + 5(0.174) = 2.14 + 0.87 = 3.01 = P(2021) ✓. Reversing the endpoint order in (a) gives 3.36−3.012014−2021 = 0.35−7 = −0.05, the same result, as it should be.

Work to write

  1. Input t in years; output P(t) in dollars per gallon
  2. (a)x1=2014,y1=3.36;x2=2021,y2=3.01
  3. Δy=3.01−3.36=−0.35,Δx=2021−2014=7
  4. −0.357 = −0.05 dollars per gallon per year
  5. Negative: net fall of 5 cents per gallon per year from 2014 to 2021
  6. (b) 3.01−2.142021−2016 = 0.875 = 0.174 dollars per gallon per year, a net rise
  7. The signs differ because P(2014) > P(2021) but P(2016) < P(2021)

The trap

Subtracting in different orders on top and bottom flips the sign. Point 2 minus point 1 must be used for both output and input changes.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Average rate of change of a fuel price from 2015 to 2019

A small delivery company keeps a fuel log of the average price it paid for one gallon of regular gasoline each year. Let P(t) be the price in dollars per gallon in year t. The table gives these values.

Year t: 2015, 2017, 2018, 2019
Price P(t) ($/gal): 2.62, 2.48, 2.71, 3.02

Find the average rate of change of P over the four years from 2015 to 2019. Give units and say what the sign means.

input yearoutput price ($ per gallon)20152.6220172.4820182.7120193.02
A table of 4 values of price ($ per gallon), for year from 2015 to 2019.
Show the steps and the answer
input yearoutput price ($ per gallon)20152.6220172.4820182.7120193.02↓ evaluate: input given, read the output below it
The company's fuel-log prices for 2015, 2017, 2018 and 2019.
  1. Input: t, the year (years). Output: P(t), the price of gasoline (dollars per gallon).The units of the rate of change are output units per input unit, so both must be named first.
  2. Let x1=2015 with y1=P(2015)=2.62. Let x2=2019 with y2=P(2019)=3.02.For a left-to-right calculation the smaller input is x1. Each output stays with its own input. The 2017 and 2018 values are not endpoints of the interval, so they are not used.
  3. Δy=y2−y1=3.02−2.62=0.40 dollars per gallon. Δx=x2−x1=2019−2015=4 years.The same endpoint order (2019 first, then 2015) is used on top and bottom, so the signs are consistent.
  4. Δx=4≠0, so the average rate of change =ΔyΔx=0.404=0.10.The rule ΔyΔx is defined only when the inputs differ. Here they do.
  5. Average rate of change =0.10 dollars per gallon per year. It is positive.The inputs are in increasing order, so a positive rate means a net rise in price from 2015 to 2019. The dip in 2017 does not change the net result, because only the endpoints enter the calculation.
Answer
The average rate of change of P from 2015 to 2019 is 0.10 dollars per gallon per year. On average the price rose by 10 cents per gallon each year. The positive sign means a net increase over the four years.
Double-check Start at 2.62 and add 0.10 for each of the 4 years: 2.62 + 0.10 · 4 = 2.62 + 0.40 = 3.02, which matches P(2019).

Work to write

  1. Input t in years; output P(t) in dollars per gallon
  2. x1=2015,y1=2.62;x2=2019,y2=3.02
  3. Δy=3.02−2.62=0.40
  4. Δx=2019−2015=4
  5. ΔyΔx=0.404=0.10
  6. 0.10 dollars per gallon per year
  7. Positive: the price rose overall from 2015 to 2019

3.2 On a graph, the average rate of change is a slope

about 2 minOpen the full lesson

The rule

For [a,b]= [left end, right end], with a < b and both outputs defined, average rate =f(b)−f(a)b−a.

This is the slope of the straight ruler through (a, f(a)) and (b, f(b)).

How

  1. Locate both interval endpoints on the horizontal axis.
  2. At each input, move vertically to the solid graph and read its height. Count grid steps; estimate if it lies between lines.
  3. Subtract right height minus left height, then right input minus left input.
  4. Divide rise by run and interpret the sign.

Worked example

Worked example

Average rate of change of a parabola from its graph on [−1, 3]

The graph of f(x) = x2 − 1 is drawn on a grid where each square is 1 unit. Read the graph to find the average rate of change of f over [−1, 3]. Say what the sign means.

(−1, 0)(3, 8)−224−22468
Graph of f(x) = x2 − 1 with the interval endpoints (−1, 0) and (3, 8) marked.
Show the steps and the answer
  1. Locate the endpoints on the horizontal axis: a=−1 on the left and b=3 on the right.The interval [a, b] runs from the left end to the right end, so a = −1 and b = 3 with a < b.
  2. From x=−1, move vertically to the graph. It meets the curve on the x-axis, so f(−1)=0. The point is (−1,0).The output is the height of the graph above the input. Here the height lands exactly on a grid line, so no estimate is needed.
  3. From x=3, move vertically to the graph. Count up 8 grid steps, so f(3)=8. The point is (3, 8).Counting whole grid squares gives the exact height. Check with the formula: 32 − 1 = 8.
  4. Rise =f(3)−f(−1)=8−0=8. Run =3−(−1)=4.Use right minus left in both the numerator and the denominator. Subtracting −1 is the same as adding 1.
  5. Average rate =84=2. The sign is positive.The rate is rise divided by run. A positive slope means the ruler through the two points goes up from left to right.
Answer
Average rate of change = f(3)−f(−1)3−(−1) = 84 = 2. On average, f increases by 2 units for each 1-unit increase in x over [−1, 3].
Double-check The line through (−1, 0) with slope 2 is y = 2x + 2. At x = 3 it gives 2(3) + 2 = 8, which is f(3). So the ruler joins both endpoints and its slope is 2. The graph also dips below 0 near x = 0, which shows that the average rate describes only the ruler between the two endpoints, not the shape of the curve between them.

Work to write

  1. a=−1,b=3
  2. f(−1)=0,f(3)=8
  3. rise = 8 − 0 = 8, run = 3 − (−1) = 4
  4. average rate = 84 = 2
  5. Positive: f rises 2 units per unit of x on average over [−1, 3]

The trap

Putting right-minus-left on top and left-minus-right on the bottom reverses the sign. Keep each input paired with its output and use one order twice.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A straight line has the same average rate on any interval

The graph of the straight line f(x) = −12x + 2 is drawn on a grid where each square is 1 unit in both directions. The line passes exactly through the grid points (−4, 4), (0, 2) and (2, 1). Read the graph to find the average rate of change of f over [−4, 2]. Then find it over [0, 2] and compare the two results. Say what the sign means.

(−4, 4)(0, 2)(2, 1)−6−4−2246−2246
The line f(x) = −12x + 2 on a 1-unit grid.
Show the steps and the answer
  1. For [−4,2], locate x=−4 (left end) and x=2 (right end) on the horizontal axis.The rule uses a = −4 as the left input and b = 2 as the right input, with a < b.
  2. From x=−4, move vertically to the line. It meets the line 4 squares above the axis, so f(−4)=4. From x=2, the line is 1 square above the axis, so f(2)=1.The height of the graph at each input is the output we need. Both points sit exactly on gridlines, so no estimate is needed.
  3. Rise =f(2)−f(−4)=1−4=−3. Run =2−(−4)=6.Subtract right minus left in both the outputs and the inputs, so the signs stay consistent.
  4. Average rate =−36=−12.The average rate is rise divided by run. This is the slope of the ruler through (−4, 4) and (2, 1).
  5. For [0, 2], read f(0)=2 and f(2)=1. Then rise =1−2=−1, run =2−0=2, and the average rate =−12=−12.Use the same steps on a different interval. This tests whether the rate depends on where we measure.
  6. Compare: both intervals give −12. The rate is negative, so f decreases. On average, it falls 12 unit for every 1 unit increase in x.A straight line has a single, constant slope. Every ruler through two of its points lies along the line itself, so every interval gives the same average rate.
Answer
The average rate of change over [−4, 2] is −12, and over [0, 2] it is also −12. The negative sign means f decreases by 12 unit per unit increase in x on each interval.
Double-check From the formula, f(−4) = −12(−4) + 2 = 4, f(0) = 2 and f(2) = −12(2) + 2 = 1. These match the graph readings. The slope m in f(x) = −12x + 2 is −12, which agrees with both average rates.

Work to write

  1. f(−4)=4,f(2)=1
  2. f(2)−f(−4)2−(−4)=1−46=−36=−12
  3. f(0) = 2, so f(2)−f(0)2−0 = −12 = −12
  4. Same rate on both intervals because the graph is a straight line; negative means f is decreasing

3.3 Average rate of change from a formula

Open the full lesson

The rule

On [a,b]= [left end, right end], with a < b and both outputs defined, average rate =f(b)−f(a)b−a.

Evaluate the two endpoint outputs first, then subtract and divide. Preserve all nonzero-bottom and square-root restrictions.

How

  1. Check that both inputs are allowed: no bottom may be zero, and a real square root needs a nonnegative inside.
  2. Evaluate f(a), placing the whole input in parentheses at every variable position.
  3. Evaluate f(b) the same way.
  4. Subtract f(b) − f(a). If fractions occur, make their bottoms match first.
  5. Divide by b − a. Simplify exact fractions and attach units.

Worked example

Worked example

Average rate of change of the electric force as two charges move apart

Two small charged spheres repel each other. The size of the force between them is F(r) = 36r2 newtons, where r is the distance between the spheres in meters. Find the average rate of change of F on the interval [2, 4]. Give an exact answer with units.

Show the steps and the answer
input distance r (m)output force F (N)293442.25↓ evaluate: input given, read the output below it
Values of F(r) = 36/r2 at r = 2, 3 and 4 m.
  1. Check the inputs. For r=2,r2=4≠0. For r=4,r2=16≠0. There is no square root, and 2 < 4.Both endpoint outputs must be defined, and the bottom of a fraction may not be zero.
  2. Evaluate F(2)=36(2)2=364=9.Putting the input in parentheses gives the left-end output.
  3. Evaluate F(4)=36(4)2=3616=94.The right-end output is found the same way and simplified.
  4. Subtract: F(4)−F(2)=94−9=94−364=−274.Fractions can be subtracted only after their bottoms match. Here 9 is rewritten as 364.
  5. Divide by 4−2=2: −27/42=−278 N per m.The average rate is the change in output divided by the change in input. Its units are newtons per meter.
Answer
The average rate of change is −278 N per m, which is −3.375 N/m. On average, the force drops by 278 newtons for each meter of extra separation.
Double-check Start at F(2) = 9. Add the rate times the change in input: 9 + (−278)(2) = 9 − 274 = 94. This equals F(4). The negative sign also makes sense, because the force weakens as the spheres move apart.

Work to write

  1. r = 2 and r = 4 both give a nonzero bottom
  2. F(2)=36(2)2=9
  3. F(4)=36(4)2=94
  4. F(4)−F(2)=94−364=−274
  5. Average rate = −27/44−2 = −278 N per m

The trap

Stopping after subtracting gives only the output change. Divide by the input change to get the average rate.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Parentheses for a negative endpoint

This asks for the average output change per input unit, using one negative input. Find the average rate of f(x) = 2 − x2 on [−3, 1].

Show the steps and the answer
(−3, −7)(1, 1)−2−8−6−4−22
The same picture, shown 4 times now: y = −x2 + 2, solid, beside y = 2x − 1, dashed.
  1. f(−3)=2−(−3)2=2−9=−7.The whole input is −3. Squaring (−3) gives (−3)(−3) = 9; the outside subtraction stays outside.
  2. f(1)=2−12=2−1=1.Evaluate the other endpoint in the same formula.
  3. Output change: 1−(−7)=1+7=8.Subtract the whole starting output; taking away a negative adds its opposite.
  4. Input change: 1−(−3)=1+3=4.The endpoint order must match the output subtraction.
  5. 84=2.Dividing the net change 8 by the span 4 gives the change per input unit.
Answer
2.
Double-check The starting output −7 plus 4 · 2 reaches −7 + 8 = 1, the ending output.

3.4 When an endpoint is a letter, the answer is an expression

about 3 minOpen the full lesson

The rule

For a fixed input 5 and an endpoint a, rate =f(a)−f(5)a−5, with a≠5 and both outputs defined.

On [5, a], a > 5; if a < 5, use the sorted interval [a, 5]. Factor a polynomial numerator before canceling a matching whole factor.

How

  1. Evaluate the fixed numerical endpoint.
  2. Substitute the endpoint letter to write the other output.
  3. Subtract the outputs and write the matching input difference.
  4. For a polynomial, factor the numerator and verify by multiplying back.
  5. Cancel only a matching factor multiplying the whole numerator, preserving the original restrictions.
  6. If the rate is given, set the simplified rate expression equal to that number, solve, and check the endpoint in the original quotient.

Worked example

Worked example

Average rate of change from 5 to a letter endpoint, then solving for the endpoint

Let f(x) = x2 − 2x − 2. (a) Write the average rate of change of f between the inputs 5 and a, where a ≠ 5, as a simplified expression in a. (b) The average rate of change of f between 5 and a equals 7. Find a and state the interval.

Show the steps and the answer
(4, 6)(5, 13)−2246−44812
The graph of f(x) = (x − 1)2 − 3 = x2 − 2x − 2, marking the points (4, 6) and (5, 13).
  1. f(5)=52−2(5)−2=25−10−2=13.The fixed numerical endpoint gives a number, so evaluate it first.
  2. f(a)=a2−2a−2.Replace every x with the endpoint letter a to get the other output.
  3. rate =f(a)−f(5)a−5=(a2−2a−2)−13a−5=a2−2a−15a−5, with a≠5.The average rate is the change in output over the matching change in input, in the same order. a = 5 would make the denominator zero.
  4. a2 − 2a − 15 = (a − 5)(a + 3). Check: (a−5)(a+3)=a2+3a−5a−15=a2−2a−15.Factor the polynomial numerator so that any factor matching the denominator becomes visible. Multiplying back confirms the factoring.
  5. rate =(a−5)(a+3)a−5=a+3, for a≠5.(a − 5) multiplies the whole numerator and equals the denominator, so it cancels. The restriction a ≠ 5 from the original quotient still holds.
  6. Set a+3=7, so a=4.The given rate equals the simplified expression, so solve that equation for the endpoint.
  7. Check a=4 in the original quotient: f(4)=16−8−2=6, and 6−134−5=−7−1=7. Since 4 < 5, the sorted interval is [4, 5].The endpoint must satisfy a ≠ 5 and give the stated rate in the unsimplified quotient. An interval is written with its smaller endpoint first.
Answer
(a) The rate is a + 3, for a ≠ 5. (b) a = 4, and the interval is [4, 5].
Double-check Use a = 6 in part (a): f(6) = 36 − 12 − 2 = 22, and 22−136−5 = 9. The formula gives 6 + 3 = 9, so the expression agrees. For part (b), the points (4, 6) and (5, 13) give a slope of 13−65−4 = 7.

Work to write

  1. f(5) = 13
  2. f(a)=a2−2a−2
  3. a2−2a−15a−5,a≠5
  4. a2−2a−15=(a−5)(a+3)
  5. rate = a + 3, a ≠ 5
  6. a + 3 = 7 ⇒ a = 4
  7. Check: 6−134−5 = 7; interval [4, 5]

The trap

Canceling pieces of sums instead of whole multiplied factors, or forgetting the excluded endpoint after cancellation.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A coefficient and a difference of squares

This asks for a rate expression rather than one rate number. Find the average rate of f(x) = 3x2 − 5 on [2, b], with b > 2.

Show the steps and the answer

3b2−12

=3(b−2)(b+2)

rate = 3b + 6

  1. f(2)=3(2)2−5=3(4)−5=7; f(b)=3b2−5.Evaluate the fixed input 2 and then substitute the endpoint b.
  2. f(b)−f(2)=(3b2−5)−7=3b2−12.Subtract the whole starting output; −5 − 7 = −12.
  3. 3b2−12=3(b2−4).Both terms contain a factor of 3.
  4. b2−4=(b−2)(b+2).Multiplying back gives b2 + 2b − 2b − 4 = b2 − 4.
  5. 3(b−2)(b+2)b−2=3(b+2)=3b+6, with b≠2.The input difference b − 2 is a nonzero factor of the entire top.
Answer
  • 3b + 6, for b ≠ 2. The stated interval [2, b] uses b > 2
  • for b < 2 use [b, 2].
Double-check The original check b = 3 gives f(3) = 22 and 22−73−2 = 15 = 3(3) + 6. With b = 5, f(5) = 70 and 70−75−2 = 633 = 21.

3.5 The difference quotient: average rate of change from x to x + h

about 3 minOpen the full lesson

The rule

Difference quotient =f(x+h)−f(x)h, with h≠0 and both outputs defined.

It is the average rate on [x,x+h] if h > 0, and on the sorted interval [x+h,x] if h < 0.

How

  1. Plug in: replace every x in the formula by the whole input (x + h); multiply out the needed products.
  2. Subtract: write −(f(x)) with parentheses, then let that minus reach every term.
  3. Simplify: combine like terms; for a fully expanded polynomial, the terms independent of h cancel.
  4. Cancel h: when h multiplies the entire numerator, divide that nonzero factor out; keep every original restriction.

Worked example

Worked example

Difference quotient of a line

This asks for the average rate over any nonzero input step h starting at any input x. Find g(x+h)−g(x)h for g(x) = 6 − 2x. The plan is plug in, subtract, simplify, then cancel h.

Show the steps and the answer
(x, g(x))(x + h, g(x + h))check startcheck endrun 1rise −224−448
The same picture again: y = −2x + 6.
  1. Require h≠0. Write g(x+h)=6−2(x+h).x + h is one whole input. The −2 must multiply all of it; writing 6 − 2x + h would multiply only x.
  2. g(x+h)=6−2x−2h.The distributive property means the multiplier reaches each term: (−2) · x = −2x and (−2) · h = −2h.
  3. Write the output change as (6−2x−2h)−(6−2x).Subtract the entire starting output, not one selected term.
  4. −(6−2x)=−6+2x, so the output change is 6−2x−2h−6+2x.The hidden sign on 6 is +. Multiplying the whole starting expression by −1 changes +6 to −6 and −2x to +2x.
  5. 6−2x−2h−6+2x=−2h.The +6 and −6 cancel, and −2x and +2x cancel. The expanded polynomial contains a copy of g(x), removed by subtraction.
  6. −2hh=−2·hh=−2·1=−2.The nonzero factor h divides by itself to give 1.
Answer
  • −2, with h ≠ 0.
  • For each 1 unit right, g drops 2 output units. This rate holds for both positive and negative signed steps.
Double-check Use x = 2 and h = 3: g(2) = 6 − 4 = 2 and g(5) = 6 − 10 = −4, so −4−23 = −63 = −2. Also g(0) = 6 and g(1) = 4 show a drop of 2 for a move of 1 right.

The trap

Adding h to the old output, treating f as a multiplier, or allowing a zero input step. Substitute x + h into the whole function formula and keep h ≠ 0.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Multiplication changes the whole input

This asks for a rate formula for every start and every nonzero step. Find the difference quotient of f(x) = 4x.

Show the steps and the answer
startendrun 1rise 42462610141822
This line rises 4 for each unit right.
  1. f(x+h)=4(x+h)=4x+4h.The whole new input replaces x, and 4 multiplies each piece.
  2. Output change: (4x+4h)−(4x)=4x+4h−4x=4h.Subtract the entire original output; +4x and −4x cancel.
  3. 4hh=4·hh=4, with h≠0.A common nonzero multiplier h divides out.
Answer
4, with h ≠ 0.
Double-check At x = 2 and h = 3, f(5) = 20 and f(2) = 8, so 20−83 = 123 = 4.

3.6 Difference quotient of a quadratic

about 3 minOpen the full lesson

The rule

(x+h)2=x2+2xh +h2.

For f(x)=x2, the difference quotient is 2x+h, with h≠0. Multiply any outside coefficient into every expanded term, subtract all of f(x), then factor the whole numerator before canceling h.

How

  1. Plug in: replace every x by (x + h), multiply out the square, and apply each outside multiplier.
  2. Subtract: keep all of f(x) in parentheses after a minus, then flip every term's sign.
  3. Simplify: combine matching polynomial terms; the terms independent of h cancel.
  4. Cancel h: write every remaining term as h times something, factor h from the whole numerator, and cancel only for h ≠ 0.

Worked example

Worked example

Difference quotient for a garden plot with a compost corner

A rectangular garden plot is x meters wide and 2x meters long. A 2 square-meter corner is set aside for a compost bin, so the planted area is A(x) = 2x2 − 2 square meters. The graph of y = 2x2 − 2 passes through (2, 6) and (3, 16), and its lowest point is (0, −2). (a) Find and simplify the difference quotient A(x+h)−A(x)h for h ≠ 0. (b) Use your result with x = 2 and h = 1 to find the average rate of change of the planted area as the width grows from 2 m to 3 m.

Show the steps and the answer
(2, 6)(3, 16)(0, −2)24481216
Graph of the planted area A(x) = 2x2 − 2, with lowest point (0, −2) and the points (2, 6) and (3, 16) that…
  1. A(x+h)=2(x+h)2−2=2(x2+2xh +h2) −2=2x2+4xh +2h2−2Replace every x by (x + h), expand with (x + h)2 = x2 + 2xh + h2, and multiply the outside coefficient 2 into every expanded term.
  2. A(x+h)−A(x)= (2x2+4xh +2h2−2) −(2x2−2)=2x2+4xh +2h2−2−2x2+2Keep all of A(x) in parentheses after the minus, then flip the sign of each of its terms. The −2 becomes +2.
  3. 2x2−2x2=0 and −2+2=0, so the numerator is 4xh +2h2.Combine matching terms. The terms that do not contain h cancel.
  4. 4xh+2h2h=h(4x+2h)h=4x+2h, for h≠0Every remaining term contains h. Factor h from the whole numerator, then cancel it, which is allowed only because h ≠ 0.
  5. With x = 2 and h = 1: 4(2)+2(1)=8+2=10Substitute into the simplified difference quotient. The result is the average rate of change of A on [2, 3].
Answer
(a) A(x+h)−A(x)h = 4x + 2h, for h ≠ 0. (b) 10 square meters per meter. The planted area grows by 10 m2 for each meter of added width, on average, from 2 m to 3 m.
Double-check From the graph points, A(2) = 2(4) − 2 = 6 and A(3) = 2(9) − 2 = 16. So 16−63−2 = 10, which matches 4(2) + 2(1) = 10.

Work to write

  1. A(x + h) = 2x2 + 4xh + 2h2 − 2
  2. A(x + h) − A(x) = (2x2 + 4xh + 2h2 − 2) − (2x2 − 2) = 4xh + 2h2
  3. h(4x+2h)h=4x+2h,h≠0
  4. x = 2, h = 1: 4(2) + 2(1) = 10 m2 per m
  5. Check: 16−63−2 = 10

The trap

Losing the middle term, squaring an outside coefficient, or forgetting that h2 ÷ h = h. Show the full square expansion before subtracting.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A coefficient, a linear term, and a constant

This asks for the average-rate formula for a quadratic with three terms. Find f(x+h)−f(x)h for f(x) = 3x2 − 4x + 1.

Show the steps and the answer
(1, 0)(2, 5)2261014
The same picture, shown 4 times now: y = 3(x − 0.6667)2 − 0.3333, solid, beside y = 5x − 5, dashed.
  1. f(x+h)=3(x+h)2−4(x+h)+1.The new input replaces every x position, including the linear term.
  2. f(x+h)=3(x2+2xh +h2) −4x−4h+1.Multiply out the square first, then let −4 multiply both terms of x + h.
  3. f(x+h)=3x2+6xh +3h2−4x−4h+1.The coefficient 3 multiplies x2, 2xh, and h2 separately.
  4. Output change: (3x2+6xh +3h2−4x−4h+1) −(3x2−4x+1).The whole original output stays in parentheses until its minus sign is distributed.
  5. =3x2+6xh +3h2−4x−4h+1−3x2+4x−1.The outside −1 changes +3x2 to −3x2, −4x to +4x, and +1 to −1.
  6. =6xh +3h2−4h.The explicit matching pairs are +3x2 with −3x2, −4x with +4x, and +1 with −1.
  7. 6xh =h·6x,3h2=h·3h, and −4h=h·(−4). Therefore the output change is h(6x+3h−4).Each remaining term contains the same multiplier h.
  8. h(6x+3h−4)h=6x+3h−4, with h≠0.A nonzero h multiplying the whole top cancels with h on the bottom.
Answer
6x + 3h − 4, with h ≠ 0.
Double-check Use x = 2 and h = 3. f(5) = 75 − 20 + 1 = 56 and f(2) = 12 − 8 + 1 = 5, so 56−53 = 513 = 17. The result gives 6(2) + 3(3) − 4 = 17. The wrong expression 6x + 3h2 − 4 gives 35, so this check catches the power error.

3.7 Difference quotient of a fraction

about 4 minOpen the full lesson

The rule

For f(x)=2x, combine the output difference over x(x+h), then divide by h to obtain −2x(x+h).

Require h≠0,x≠0, and x+h≠0. Other fraction bottoms need their own product as the common bottom.

How

  1. Plug in: replace every input occurrence, including those below a fraction bar, by the whole new input.
  2. Subtract: use the product of the original bottoms as a common bottom, multiply each top by its missing factor, and keep the second top grouped.
  3. Simplify: distribute the outside minus and combine the numerator terms.
  4. Cancel a valid h factor: multiply by 1h, cancel only a whole nonzero factor, and keep all original restrictions.

Worked example

Worked example

Difference quotient with x in the denominator

This asks for a reusable average-rate formula when the input is in a fraction bottom. Find f(x+h)−f(x)h for f(x) = 2x.

Show the steps and the answer
(1, 2)(2, 1)2412345
The same picture a third time: y = 2/x, solid, beside y = −x + 3, dashed.
  1. Require h≠0,x≠0, and x+h≠0. Write f(x+h)=2x+h and f(x)=2x.The outer division by h and both original function outputs need nonzero denominators.
  2. The output change is 2x+h−2x. Use common bottom x(x+h).The two bottoms are different, so both fractions must be renamed using the same-sized pieces before subtracting.
  3. 2x+h=2xx(x+h).Multiply the first top and bottom by x; since x ≠ 0, this multiplies the value by xx = 1.
  4. 2x=2(x+h)x(x+h).Multiply the second top and bottom by x + h; its nonzero condition makes this multiplication by 1.
  5. Subtract the tops: 2x−2(x+h)x(x+h).The common bottom stays fixed. Keep the whole second top grouped so the minus reaches both pieces.
  6. 2x−(2x+2h)x(x+h)=2x−2x−2hx(x+h)=−2hx(x+h).Distribute 2 inside the second top, then distribute the outside minus to +2x and +2h. The +2x and −2x cancel.
  7. Divide by the input change h: −2hx(x+h)÷h=−2hx(x+h)·1h.Dividing by nonzero h is multiplying by its reciprocal, so this multiplication compares the output change with the input step.
  8. −2hx(x+h)·1h=−2hh·x(x+h)=−2x(x+h).Multiply tops and bottoms. The whole numerator −2h and denominator both contain the nonzero factor h, which cancels.
Answer
−2x(x+h), with h ≠ 0, x ≠ 0, and x + h ≠ 0.
Double-check Use x = 2 and h = 3. f(5) = 25 and f(2) = 1, so the direct rate is (25 − 1) ÷ 3 = −35 · 13 = −15. The result gives −22·5 = −15.

The trap

Subtracting bottoms, splitting a denominator sum, or losing the minus on the second numerator. Use a common bottom, subtract the whole second top, then divide by h.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Difference quotient when the bottom is x + 2

Let f(x) = 3x+2. Find and simplify the difference quotient f(x+h)−f(x)h. State every restriction on x and h.

Show the steps and the answer
  1. Plug in: f(x+h)=3(x+h)+2=3x+h+2, so the difference quotient is 3x+h+2−3x+2h.Every x, including the one inside the bottom x + 2, is replaced by the whole new input x + h.
  2. Subtract using the common bottom (x + h + 2)(x + 2): 3x+h+2−3x+2=3(x+2)−3(x+h+2)(x+h+2)(x+2).The common bottom is the product of the two original bottoms. Each top is multiplied by the factor its bottom is missing. The second top, 3(x + h + 2), stays grouped so the minus applies to all of it.
  3. Simplify the top: 3(x+2)−3(x+h+2)=3x+6−3x−3h−6=−3h. The difference is −3h(x+h+2)(x+2).Distributing the outside minus changes the sign of every term in the second group. The 3x terms cancel and the 6 terms cancel, leaving only −3h.
  4. Divide by h: −3h(x+h+2)(x+2)·1h=−3(x+2)(x+h+2).Dividing by h is multiplying by 1h. h is a whole factor of the top, and h ≠ 0, so it cancels. The original restrictions still hold after the cancellation.
  5. Record the restrictions: h≠0,x≠−2, and x+h≠−2.h ≠ 0 because we divided by h. The bottom x + 2 cannot be 0, so x ≠ −2. The bottom x + h + 2 cannot be 0, so x + h ≠ −2.
Answer
f(x+h)−f(x)h = −3(x+2)(x+h+2), with h ≠ 0, x ≠ −2, and x + h ≠ −2.
Double-check Take x = 1 and h = 1. Directly: f(2) = 34 and f(1) = 33 = 1, so f(2)−f(1)1 = 34 − 1 = −14. From the formula: −3(1+2)(1+1+2) = −33·4 = −14. The two values match.

Work to write

  1. f(x+h)=3x+h+2
  2. 3(x+2)−3(x+h+2)(x+h+2)(x+2)
  3. 3x+6−3x−3h−6=−3h
  4. −3h(x+h+2)(x+2)·1h
  5. −3(x+2)(x+h+2)
  6. h≠0,x≠−2,x+h≠−2

3.8 Increasing, decreasing, and constant

about 3 minOpen the full lesson

The rule

On an interval, whenever a < b: increasing means f(a) < f(b); decreasing means f(a) > f(b); constant means f(a)=f(b).

This course reports intervals of behavior with open endpoints. These are comparisons between inputs, not a direction assigned to one point.

How

  1. Begin at the left of the whole given graph. Read the horizontal-axis label: the input might be x or t.
  2. Mark turning inputs, flat boundaries, and breaks.
  3. Mark actual domain ends. A finite end dot gives a finite boundary; arrows or stated continuation can justify infinity.
  4. Move right within each separate stretch. Name it increasing, decreasing, or constant.
  5. Write open intervals of inputs. Keep pieces on opposite sides of a break separate.
  6. Give each requested behavior on its own line. Say 'and' between stretches; ∪ joins the listed stretches piece by piece.

Worked example

Worked example

Reading increasing and decreasing intervals from a downward parabola

The graph shows y = f(x), where f(x) = -(x - 2)2 + 3. The horizontal axis is labeled x. The graph is a parabola that opens downward. Its highest point (turning point) is at (2, 3). It also passes through (0, -1), (1, 2), (3, 2) and (4, -1). Arrows on both ends show that the graph continues forever to the left and to the right, so the domain is all real numbers. State the open interval(s) on which f is increasing, the open interval(s) on which it is decreasing, and any interval on which it is constant.

(2, 3)(0, -1)(4, -1)−2246−6−4−224
Graph of f(x) = -(x - 2)2 + 3, a downward parabola with its highest point at (2, 3), passing through (0, -1)…
Show the steps and the answer
  1. Start at the far left of the graph and read the horizontal-axis label. It is x, so every interval is written in terms of x-values.Intervals of behavior describe inputs, so we must know which variable is the input.
  2. Mark the turning input x=2, where the graph changes from rising to falling at (2, 3). There are no flat stretches and no breaks.Behavior can only change at turning inputs, flat boundaries or breaks, so these split the domain into stretches.
  3. Mark the domain ends. Both ends carry arrows, so the graph continues without end in both directions. The left boundary is -∞ and the right boundary is ∞.Arrows show the graph continues, which justifies using infinity instead of a finite endpoint.
  4. Move right through the stretch from -∞ to 2. Here the graph rises. For example, at 0 < 1 we have f(0)=-1<f(1)=2. This stretch is increasing.Increasing means that whenever a < b on the interval, f(a) < f(b).
  5. Move right through the stretch from 2 to ∞. Here the graph falls. For example, at 3 < 4 we have f(3)=2>f(4)=-1. This stretch is decreasing.Decreasing means that whenever a < b on the interval, f(a) > f(b).
  6. Look for a stretch where the output stays the same. There is none, because the curve never runs level over an interval.Constant requires f(a) = f(b) for all a < b in an interval. A single highest point is not an interval.
  7. Write each behavior on its own line, using open intervals of x: increasing on (-∞,2), decreasing on (2,∞), constant on no interval.This course reports intervals with open endpoints. The turning input x = 2 belongs to neither stretch.
Answer
Increasing on (-∞, 2). Decreasing on (2, ∞). Constant on no interval.
Double-check Compare inputs on each side of x = 2 using the formula f(x) = -(x - 2)2 + 3. On the left, f(-1) = -(-3)2 + 3 = -6 and f(0) = -1. Since -1 < 0 and -6 < -1, the function is increasing. On the right, f(4) = -1 and f(5) = -(3)2 + 3 = -6. Since 4 < 5 and -1 > -6, the function is decreasing. Both results agree with the answer.

Work to write

  1. Turning input: x = 2 (highest point at (2, 3)); arrows on both ends, so the domain is (-∞, ∞)
  2. Increasing on (-∞, 2)
  3. Decreasing on (2, ∞)
  4. Constant: on no interval

The trap

Writing the intervals in y-values, for example 'increasing from −2 to 5' because the heights run from −2 to 5. Intervals of increase and decrease are always inputs (x-values or t-values), read along the horizontal axis.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A parabola that stops at two solid end dots

The graph shows y = p(t), where p(t) = (t - 1)2 - 4, drawn only for -2 ≤ t ≤ 3. The horizontal axis is labeled t. The graph is a parabola that opens upward. It starts at a solid (filled) dot at (-2, 5) and ends at a solid (filled) dot at (3, 0). There are no arrows. Its lowest point (turning point) is at (1, -4). It also passes through (-1, 0), (0, -3) and (2, -3). State the open intervals on which p is increasing, decreasing, and constant.

(-2, 5)(1, -4)(3, 0)(-1, 0)(0, -3)(2, -3)−4−224−44
The graph of p(t) = (t - 1)2 - 4 for -2 ≤ t ≤ 3.
Show the steps and the answer
  1. Start at the left end of the graph and read the horizontal axis. It is labeled t, so every interval is an interval of t-values.Intervals of behavior describe inputs, and the input variable here is t, not x.
  2. Mark the turning input t=1, where the lowest point (1,-4) is. There are no flat pieces and no breaks.Behavior can change only at turning inputs, at the ends of flat pieces, or at breaks.
  3. Mark the domain ends t=-2 and t=3. Both are solid end dots and there are no arrows.A finite end dot gives a finite boundary. Without arrows the graph does not continue, so -∞ and ∞ are not used.
  4. Move right from t=-2 to t=1. The heights go 5, 0, -3,-4, so this stretch is decreasing.For a < b in this stretch, p(a) > p(b). For example, p(-1) = 0 > p(0) = -3.
  5. Move right from t=1 to t=3. The heights go -4,-3, 0, so this stretch is increasing.For a < b in this stretch, p(a) < p(b). For example, p(2) = -3 < p(3) = 0.
  6. Write each stretch as an open interval of t: decreasing on (-2,1) and increasing on (1, 3). No stretch is constant.This course reports intervals of behavior with open endpoints, even when the end dots are solid. No two inputs in any stretch give equal outputs, so p is never constant.
Answer
  • Increasing: (1, 3)
  • Decreasing: (-2, 1)
  • Constant: none
Double-check Test two inputs inside each interval. On (-2, 1): p(-1.5) = 6.25 - 4 = 2.25 and p(0.5) = 0.25 - 4 = -3.75. Since 2.25 > -3.75, p is decreasing there. On (1, 3): p(1.5) = 0.25 - 4 = -3.75 and p(2.5) = 2.25 - 4 = -1.75. Since -3.75 < -1.75, p is increasing there. Both intervals stop at the finite ends -2 and 3, with no ∞.

Work to write

  1. Input variable: t
  2. Turning input: t = 1; domain ends: t = -2 and t = 3 (solid dots, no arrows)
  3. Increasing on (1, 3)
  4. Decreasing on (-2, 1)
  5. Constant: none

3.9 Local maxima and minima

about 3 minOpen the full lesson

The rule

A local maximum at input b has f(b)≥f(x) for every x in some open interval around b contained in the domain.

A local minimum has f(b)≤f(x) there. Its value is f(b); its location is b; its point is (b, f(b)). Equal nearby heights are allowed by these nonstrict inequalities. A strict local extremum uses > or < for every nearby x≠b.

How

  1. Scan the given graph for changes from rising to falling or falling to rising.
  2. Rising then falling identifies an isolated local maximum; falling then rising identifies an isolated local minimum.
  3. Also inspect flat stretches and shoulders when applying the formal nonstrict rule. Compare both sides, including any equal heights.
  4. Require a domain neighborhood on both sides. An end of the graph is considered separately for absolute extrema.
  5. Read the horizontal input as the location and the vertical output as the value.
  6. Give value and location in a full sentence; give the ordered pair if the question asks for the point.

Worked example

Worked example

Reading a local maximum from a downward-opening parabola

The graph shows f(x) = -(x - 2)2 + 5, defined for all real numbers. Points read from the graph are (0, 1), (1, 4), (2, 5), (3, 4) and (4, 1). The curve keeps falling to the left of (0, 1) and to the right of (4, 1). Find every local maximum and local minimum of f. Give each value and location in a sentence, and give the point.

(0, 1)(1, 4)(2, 5)(3, 4)(4, 1)−2246−4−2246
Graph of f(x) = -(x - 2)2 + 5 through (0, 1), (1, 4), (2, 5), (3, 4) and (4, 1).
Show the steps and the answer
  1. Scan the graph from left to right. Through (0, 1) and (1, 4) up to (2, 5) the heights increase: 1, 4, 5. After x=2 they decrease: 5, 4, 1.A local extremum shows up where the graph changes from rising to falling or from falling to rising.
  2. The graph rises and then falls at x=2, so x=2 is an isolated local maximum. Nowhere does the graph fall and then rise, so there is no isolated local minimum.Rising then falling marks a local maximum. Falling then rising would mark a local minimum.
  3. Check for flat stretches or shoulders. There are none. The curve is never level over an interval, and the points on each side of x=2 are lower: f(1)=4<5 and f(3)=4<5. In general f(x)=5-(x-2)2<5 for every x≠2.The nonstrict rule asks us to compare both sides, including equal heights. Here every nearby height is strictly smaller, so the maximum is strict.
  4. Confirm the domain. f is defined for all real numbers, so an open interval such as (1, 3) lies around x=2 inside the domain. The graph has no endpoints.A local extremum needs domain values on both sides. Ends of a graph are considered separately, for absolute extrema.
  5. Read the coordinates of the turning point. The horizontal input is 2, which is the location. The vertical output is f(2)=5, which is the value.The location of an extremum is its input b, its value is f(b), and its point is (b, f(b)).
  6. State the result: f has a local maximum value of 5 at x=2, at the point (2, 5). f has no local minimum.The answer must give the value and the location in a full sentence, plus the ordered pair the question asks for.
Answer
f has a local maximum value of 5 at x = 2. The point is (2, 5). f has no local minimum.
Double-check f(2) = -(0)2 + 5 = 5. On the open interval (1, 3), f(x) = 5 - (x - 2)2 ≤ 5, with equality only at x = 2. For example, f(1.5) = 4.75 and f(2.5) = 4.75, and both are less than 5. Since f rises for x < 2 and falls for x > 2, it never falls and then rises, so there is no local minimum.

Work to write

  1. The graph rises up to x = 2 and falls after it.
  2. f(x) ≤ f(2) = 5 for every x in the open interval (1, 3).
  3. Local maximum value 5 at x = 2, point (2, 5).
  4. There is no local minimum.

The trap

Saying 'the maximum is x = 1'. The maximum is the output, 2; x = 1 is where it happens. On the exam write both: 'local maximum of 2 at x = 1'.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Reading a local maximum from a downward parabola with its vertex left of the y-axis

The graph shows h(x) = −(x + 1)2 + 3, defined for all real numbers. Points read from the graph are (−3, −1), (−2, 2), (−1, 3), (0, 2) and (1, −1). The curve keeps falling to the left of (−3, −1) and to the right of (1, −1). Find every local maximum and every local minimum of h. For each local maximum, state its value and its location, and give the point.

(−3, −1)(−2, 2)(−1, 3)(0, 2)(1, −1)−4−22−6−4−224
Downward parabola h(x) = −(x + 1)2 + 3 with the marked points (−3, −1), (−2, 2), (−1, 3), (0, 2) and (1, −1).
Show the steps and the answer
  1. Scan the listed points from left to right: −1, 2, 3, 2, −1. The heights rise from x=−3 to x=−1 and fall from x=−1 to x=1.A local extremum shows up where the graph changes direction, so the first job is to find where rising turns into falling or falling turns into rising.
  2. The only change of direction is at x=−1, where the graph goes from rising to falling. This marks a local maximum at x=−1.Rising then falling identifies an isolated local maximum.
  3. Look for flat stretches or shoulders. There are none: the heights on the left of x=−1 (for example h(−2)=2) and on the right (for example h(0)=2) are both below 3, and the curve keeps falling beyond the listed points.The nonstrict rule h(b) ≥ h(x) must be checked on both sides of b, and any equal nearby heights would also need attention.
  4. Confirm with the formula: h(x)=−(x+1)2+3≤3=h(−1) for every x, because (x+1)2≥0. Equality holds only at x=−1, so the open interval (−2,0) works, and the maximum is strict.The formal definition needs h(b) ≥ h(x) for all x in some open interval around b. It is strict when the inequality is > for every nearby x ≠ b.
  5. Check for a local minimum. The graph never changes from falling to rising, and the domain is all real numbers, so there are no endpoints to consider. h has no local minimum.A local minimum needs falling then rising, with domain on both sides of the point. There is no such place.
  6. Read the location from the horizontal axis, x=−1, and the value from the vertical axis, h(−1)=3. The point is (−1,3).The location is the input b, the value is the output h(b), and the point is (b, h(b)).
Answer
h has a local maximum value of 3, located at x = −1, so the point is (−1, 3). This local maximum is strict. h has no local minimum.
Double-check Substitute x = −1: h(−1) = −(0)2 + 3 = 3. Neighbors: h(−1.5) = −0.25 + 3 = 2.75 and h(−0.5) = −0.25 + 3 = 2.75. Both are less than 3, which agrees with a strict local maximum at x = −1. A downward parabola (leading coefficient −1) has exactly one turning point, its vertex (−1, 3), so no local minimum is missing.

Work to write

  1. The graph rises up to x = −1 and falls after x = −1.
  2. h(x) = −(x + 1)2 + 3 ≤ 3 = h(−1) for all x, so h(−1) ≥ h(x) on an open interval around −1.
  3. h has a local maximum value of 3 at x = −1.
  4. The point is (−1, 3).
  5. h has no local minimum.

3.10 Toolkit behavior, then absolute maximum and minimum

about 2 minOpen the full lesson

The rule

The absolute maximum is f(c) when c is in the domain and f(c)≥f(x) for every domain input x.

The absolute minimum is f(d) when d is in the domain and f(d)≤f(x) for every domain input x. The value must be attained, meaning reached at an accepted input.

How

  1. Review the nine toolkit shapes and their domain restrictions before using the summary table.
  2. Look at the whole stated domain, including included endpoint dots and any arrows or stated continuation.
  3. If outputs rise without bound, there is no absolute maximum; if they fall without bound, there is no absolute minimum.
  4. A height approached but never reached is not an absolute extremum. Check excluded hollow dots and unattained levels.
  5. Compare the remaining reached heights with every domain piece. Find the greatest and least reached outputs and every input producing each.
  6. Answer with the value and location on separate lines. A viewing-window edge does not establish a domain endpoint.

Worked example

Worked example

Showing that a highest point exists

Find the absolute maximum and absolute minimum of f(x) = 4 − x2 on its whole real-number domain, if they exist.

Show the steps and the answer
(0, 4)absolute max 4−22−8−44
The same picture again: y = −x2 + 4.
input xoutput 4 − x²−20−1304132010−96
x:−2,−1,0,1,2,10;4−x2:0,3,4,3,0,−96.
  1. x2≥0 for every real input x.Positive and negative numbers have positive squares, and 02 = 0.
  2. Thus f(x)=4−x2≤4 for every input.Subtracting a nonnegative number leaves 4 or less.
  3. f(0)=4−02=4.Input 0 is accepted and is the only input making the square zero.
  4. The absolute maximum is 4 at x=0.No output is greater and this value is attained.
  5. f(10)=−96 and f(100)=−9,996; larger input sizes make the output fall without bound.x2 grows without bound and is subtracted from 4.
  6. There is no absolute minimum.Every candidate low height is eventually beaten by subtracting a still larger square.
Answer
  • Absolute maximum: 4 at x = 0.
  • Absolute minimum: none.
Double-check The fntable columns under −2 and 2 both show output 0, the columns under −1 and 1 show 3, and the column under 0 shows the vertex height 4. The column under 10 drops to −96. These samples support the picture; the square bound and unbounded-square argument prove the full-domain result.

The trap

Calling the highest point visible in a picture the absolute maximum when an arrow shows the graph keeps rising beyond the window. Check how the graph behaves at its ends before you name an absolute maximum or minimum.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Absolute extrema of a parabola on a closed interval with a tied maximum

The function f(x) = (x - 2)2 - 1 is defined only on the domain -1 ≤ x ≤ 5. Its graph is an upward-opening parabola with vertex (2, -1). Both ends are included. There is a closed (filled) dot at (-1, 8) and a closed (filled) dot at (5, 8). Find the absolute maximum and the absolute minimum of f, if they exist. Give each value and every input where it occurs.

(-1, 8)(2, -1)(5, 8)−224648
Graph of f(x) = (x - 2)2 - 1.
Show the steps and the answer
  1. Identify the toolkit shape. f(x)=(x-2)2-1 is the squaring function shifted right 2 and down 1. It opens upward and its vertex is (2,-1).The squaring toolkit function x2 has a lowest point at its vertex and rises on both sides. A shift moves the vertex but does not change that behavior.
  2. Read the whole stated domain: -1≤x≤5. Both endpoints use ≤, so x=-1 and x=5 are accepted inputs. The graph has no arrows.The domain is fixed by the problem statement. It is not set by any viewing window. Included ends shown with filled dots are candidates for extrema.
  3. Check for unbounded behavior. The domain is a closed, bounded interval, so the outputs cannot rise or fall without bound.Unbounded outputs would rule out an extremum. Here the graph stops at two filled dots.
  4. Check for heights that are approached but never reached. There are no hollow dots, and every height on the curve from x=-1 to x=5 is reached.Only attained values can be absolute extrema. With both ends closed, no endpoint height is excluded.
  5. List the candidates. The interior vertex is at x=2, with f(2)=(0)2-1=-1. The left end is at x=-1, with f(-1)=(-3)2-1=9-1=8. The right end is at x=5, with f(5)=(3)2-1=9-1=8.On a closed interval, an absolute extremum of this parabola can occur only at the vertex or at an included endpoint.
  6. Compare the reached heights: -1, 8 and 8. The greatest is 8, reached at both x=-1 and x=5. The least is -1, reached only at x=2.The absolute maximum must be at least as large as every output, and the absolute minimum must be at most as small as every output. Every input that produces the extreme value must be reported.
Answer
  • Absolute maximum: 8, at x = -1 and x = 5.
  • Absolute minimum: -1, at x = 2.
Double-check Test an interior input such as x = 0: f(0) = 4 - 1 = 3, which lies between -1 and 8. Test x = 4: f(4) = 4 - 1 = 3, which also lies between them. The two ends are each 3 units from the vertex at x = 2, so by symmetry they share the height 8. No point in the domain is lower than the vertex, because (x - 2)2 ≥ 0 means f(x) ≥ -1.

Work to write

  1. f(2) = -1 (vertex, interior)
  2. f(-1) = 8 (included left end)
  3. f(5) = 8 (included right end)
  4. Absolute maximum: 8
  5. occurs at x = -1 and x = 5
  6. Absolute minimum: -1
  7. occurs at x = 2

4 Composition of functions

about 15 min10 lessonsOpen the unit's crash course

4.1 Combine two functions with arithmetic

Open the full lesson

The rule

(f+g)(x)=f(x)+g(x); (f−g)(x)=f(x)−g(x); (fg)(x)=f(x)·g(x); (fg)(x)=f(x)g(x).

Use inputs allowed by both functions; for the quotient also require g(x)≠0.

How

  1. Find the requested operation and its order. g − f means the g answer minus the f answer.
  2. Use the same input in both original functions, because their outputs must refer to the same starting value.
  3. Record where both formulas work and, for division, where the bottom output is nonzero.
  4. Put each whole expression in parentheses before combining it. Simplify while keeping every original domain restriction.
  5. Check one permitted input directly in the original functions.

Worked example

Worked example

The same input, four different combinations

Let f(x) = x + 1 and g(x) = 2x. Find their sum, difference f − g, product, and quotient f divided by g at input 2. The question asks you to get both outputs at 2, then combine those outputs in four ways. Plan: evaluate both functions at the same input 2, combine their outputs in four ways, then derive the four combined formulas.

Show the steps and the answer

Same input: 2

f(2) = 3; g(2) = 4

3+4=7;3−4=−1

3×4=12;3÷4=34

  1. f(2)=2+1=3 and g(2)=2×2=4.Both functions receive input 2, so both answers describe that same input.
  2. (f+g)(2)=3+4=7.The sum adds the two outputs.
  3. (f−g)(2)=3−4=−1.The written order puts the f output first.
  4. (fg)(2)=3×4=12.The product multiplies the outputs.
  5. (fg)(2)=34.The quotient divides the f output by the nonzero g output.
  6. As formulas, (f+g)(x)=(x+1)+2x=3x+1 and (f−g)(x)=(x+1)−2x=1−x.Only matching x terms combine; the written subtraction order stays fixed.
  7. (fg)(x)=(x+1)(2x)=2x2+2x, and (fg)(x)=x+12x, requiring x≠0.Distribution multiplies both terms. The quotient removes the input 0 that makes 2x zero.
Answer
  • Sum: 7.
  • Difference: −1.
  • Product: 12.
  • Quotient: 34.
Double-check Undo each output operation at input 2: 7 − 4 = 3 checks the sum; −1 + 4 = 3 checks the difference; 12 ÷ 4 = 3 checks the product; 34 × 4 = 3 checks the quotient. The four combined formulas derived above also give these answers at 2.

The trap

Subtracting only the first term of a function. (x2 − 1) − (x − 1) subtracts the entire second expression, so both of its signs change.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Factor a difference of squares

Rewrite x2 − 16 as a product. You want two factors whose multiplication recreates the original expression. Plan: recognize x2 − 42, use the difference and sum of x and 4, then multiply to check.

Show the steps and the answer
x²4xx−4x−16−4x4
The opposite middle terms disappear when added.
  1. 16=42, so x2−16=x2−42.This is a difference of two squares.
  2. x2−42=(x−4)(x+4).Expanding gives x2 + 4x − 4x − 16; the middle terms cancel.
Answer
(x−4)(x+4).
Double-check At x = 6, 36 − 16 = 20 and (6 − 4)(6 + 4) = 2 × 10 = 20.

4.2 Composition passes one answer into the next function

Open the full lesson

The rule

(f∘g)(x)=f(g(x)).

First apply g, then apply f to g's output.
The product (fg)(x)=f(x)·g(x) is a different operation.

How

  1. Rewrite the circle notation as nested parentheses, meaning one pair of parentheses inside another: (f ∘ g)(x) = f(g(x)).
  2. Name the inner function, which touches the original input.
  3. Evaluate that function and write its output as a separate intermediate, or in-between, answer.
  4. Put that whole intermediate answer into the outer function.
  5. Check the path: original input, inner output, final output.

Worked example

Worked example

Add 1, then double

Let g(x) = x + 1 and f(x) = 2x. Find (f ∘ g)(2). The input is 2; add 1 first, then use that answer as the input to the doubling function. Plan: finish g first, then carry its whole answer into f.

Show the steps and the answer
2g: add 1f: doublefirstsecond36
The 3 coming out of g goes into f.
  1. (f∘g)(2)=f(g(2)).The circle means composition, so g is the inner function.
  2. g(2)=2+1=3.The original input goes into g first.
  3. f(g(2))=f(3)=2×3=6.The output 3 from g is the input to f.
Answer
(f ∘ g)(2) = 6.
Double-check Combining the rules gives f(g(x)) = 2(x + 1); at 2 this is 2(2 + 1) = 6. The separate product at 2 is f(2)g(2) = 4 × 3 = 12, confirming that the two operations differ.

The trap

Starting with f because its name appears first. In f ∘ g, g receives the original input. Expand the circle notation before calculating.

4.3 Order changes the result, and units must fit

about 3 minOpen the full lesson

The rule

Usually f(g(x))≠g(f(x)) as functions.

Check both orders rather than assuming equality.
For a meaningful composition, the inner output must be an acceptable outer input, including its units.

How

  1. For each order, identify the function nearest the original input.
  2. Evaluate or substitute that inner function into the other function.
  3. Compare the resulting formulas and their domains. A different answer at one allowed input proves the functions differ.
  4. For an application, label the starting input, intermediate output, and final output with units.
  5. Check that the intermediate unit matches the outer function's expected input unit.

Worked example

Worked example

Two orders of composition, and a unit check for fuel use

(a) Let f(x) = 2x + 5 and g(x) = x2. Find f(g(x)) and g(f(x)). Decide whether they are the same function. (b) A delivery van drives at a steady speed, so the distance it covers in t hours is D(t) = 60t miles. The van uses fuel according to G(d) = d30 gallons for d miles driven. Find the meaningful composition that gives gallons used after t hours, and evaluate it at t = 3. Explain why the other order, D(G(d)), is not meaningful.

Show the steps and the answer
  1. For f(g(x)), the inner function is g, because it acts on x first. For g(f(x)), the inner function is f.In a composition, the function written nearest the input is applied first.
  2. Substitute g(x) = x2 into f: f(g(x))=2(x2)+5=2x2+5.f doubles its input and adds 5, and here its input is x2.
  3. Substitute f(x) = 2x + 5 into g: g(f(x))=(2x+5)2=4x2+20x+25.g squares its input, and here its input is the whole expression 2x + 5.
  4. Compare the two results at x=1. f(g(1))=2(1)+5=7 and g(f(1))=(7)2=49. Both functions have domain all real numbers.A single allowed input that gives different outputs proves the functions are different.
  5. In part (b), label the units. For D, the input t is in hours and the output is in miles. For G, the input d is in miles and the output is in gallons.A composition is meaningful only if the inner output can be used as the outer input.
  6. Use the order G(D(t)). The chain is t hours →D(t) miles →G(D(t)) gallons. So G(D(t))=60t30=2t gallons.D gives miles, and miles is the unit G expects as its input.
  7. Evaluate at t=3. D(3)=60(3)=180 miles, and G(180)=18030=6 gallons.First find the intermediate output, then feed it into the outer function.
  8. Check the order D(G(d)). G(d) gives gallons, but D expects an input in hours.The intermediate unit (gallons) does not match the input unit D expects (hours), so this composition has no real-world meaning.
Answer
(a) f(g(x)) = 2x2 + 5 and g(f(x)) = 4x2 + 20x + 25. They are different functions, since at x = 1 the outputs are 7 and 49. (b) G(D(t)) = 2t gallons, and G(D(3)) = 6 gallons. D(G(d)) is not meaningful because G outputs gallons while D needs hours.
Double-check Part (a): at x = 0, f(g(0)) = 5 and g(f(0)) = 25. These still differ. Part (b): 3 hours at 60 miles per hour is 180 miles. At 30 miles per gallon, 180 miles uses 6 gallons. The formula 2t gives 2(3) = 6 and agrees.

Work to write

  1. f(g(x))=2x2+5
  2. g(f(x))=(2x+5)2=4x2+20x+25
  3. f(g(1)) = 7 ≠ 49 = g(f(1)), so f∘g ≠ g∘f
  4. t (hours) → D(t) (miles) → G(D(t)) (gallons)
  5. G(D(t))=60t30=2t
  6. G(D(3)) = 6 gallons
  7. D(G(d)) is not meaningful: G outputs gallons, but D needs hours

The trap

Treating a valid arithmetic calculation as proof that an application makes sense. Label the units as well as the numbers.

4.4 Follow a composition through tables

about 1 minOpen the full lesson

The rule

To evaluate f(g(a)) from tables, read g(a), then use that output as the input for the f lookup.

A composition is defined only when both lookups exist.

How

  1. Read the nested notation and choose the inner table.
  2. Find the column labeled with the original input in that table.
  3. Read its output and write it as the intermediate value.
  4. Find that value among the input labels of the outer table, which may be a different column.
  5. Read the outer output. If either required input is absent from a complete table, the composition is undefined there.

Worked example

Worked example

Both orders from the tables at input 3

OpenStax problem

The two pictures list every input accepted by f and g. Find f(g(3)) and g(f(3)). You start at input 3 and find the final output in each order. Plan: read the inner table first, write its answer, and use that answer as an input in the outer table.

input xoutput f(x)16283341
The same picture, shown 5 times now: x: 1, 2, 3, 4; f(x): 6, 8, 3, 1.
input xoutput g(x)13253247
The same picture, shown 5 times now: x: 1, 2, 3, 4; g(x): 3, 5, 2, 7.
Show the steps and the answer
input xoutput f(x)16283341↓ evaluate: input given, read the output below it
In f, input 2 gives 8 and input 3 gives 3.
input xoutput g(x)13253247↓ evaluate: input given, read the output below it
In g, input 3 gives the intermediate value 2.
  1. For f(g(3)), read the column under 3 in the g picture: g(3)=2.g is the inner function in this expression.
  2. Move to the column under 2 in the f picture: f(2)=8.The intermediate answer 2 becomes the outer input.
  3. For g(f(3)), read the column under 3 in the f picture: f(3)=3.The reversed composition starts with f.
  4. Move to the column under 3 in the g picture: g(3)=2.The intermediate answer happened to equal the original input this time.
Answer
  • f(g(3)) = 8.
  • g(f(3)) = 2.
Double-check Read backward from the final answers. The 8 in f sits below input 2, and the 2 in g sits below input 3, so the first path is 3 → 2 → 8. For the other order, the 2 in g sits below 3, and the 3 in f sits below 3, so its path is 3 → 3 → 2.

The trap

Reading the same input column in both pictures. The outer lookup uses the inner output, which can move you to a new column.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Use the same table twice

Find p(p(3)) in this complete p table. You put the first answer through p again. Plan: read p under 3, then move to p under the number it returns.

input xoutput p(x)02142130
The same picture, shown 4 times now: x: 0, 1, 2, 3; p(x): 2, 4, 1, 0.
Show the steps and the answer
input xoutput p(x)02142130↓ evaluate: input given, read the output below it
The same picture again: x: 0, 1, 2, 3; p(x): 2, 4, 1, 0, read at x = 3 and 0.
input xoutput q(x)01132031
The same picture, shown 4 times now: x: 0, 1, 2, 3; q(x): 1, 3, 0, 1.
  1. p(3)=0.The innermost p acts on 3 first.
  2. p(p(3))=p(0)=2.The same function receives a new input, 0, on the second pass.
Answer
p(p(3)) = 2.
Double-check Read backward: p returns 2 under input 0, and p returns 0 under input 3. Multiplying p(3) by itself would give 0, which answers a different question.

4.5 Follow a composition across two graphs

about 1 minOpen the full lesson

The rule

For f(g(a)): read the y-value of g at x=a; use that number as the x-value on f; read f's y-value.

A point (a, b) on g means g(a)=b.

How

  1. Choose the inner graph from the function nearest the starting input.
  2. Locate that input on the inner graph's x-axis and move vertically to its curve.
  3. Read the curve's y-coordinate as the intermediate output.
  4. Locate that number on the outer graph's x-axis and move vertically to its curve.
  5. Read the outer y-coordinate as the final answer. Check each graph's own scale.

Worked example

Worked example

A line feeds a square graph

The first picture is g(x) = x + 2 and the second is f(x) = x2. Use the labeled points to find f(g(2)). The input is 2 on g; the resulting height selects the input on f. Plan: read the inner curve at the starting horizontal input, then carry its height to the outer x-axis.

g(2) = 4242468
On g, input 2 meets the line at height 4.
Show the steps and the answer
f(4) = 162426101418
On f, the new input 4 meets the curve at height 16.
  1. On g, find the labeled point (2, 4), so g(2)=4.The point's horizontal coordinate is the input and its vertical coordinate is the output.
  2. Move to input 4 on f's horizontal axis.g's output becomes f's input, rather than staying a height.
  3. Read the labeled point (4, 16), so f(4)=16.The outer graph gives the final output at the intermediate input.
Answer
f(g(2)) = 16.
Double-check The formulas give g(2) = 2 + 2 = 4, then f(4) = 42 = 16. This separate formula calculation agrees with the graph reading.

The trap

Using the first graph's output as a height on the second graph. Move it to the second x-axis before finding the outer output.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

A negative handoff can work

Using g(x) = x + 2 and f(x) = x2, find f(g(−3)). The input is negative, and the first output is also negative. You want the second graph’s output at that handoff. Plan: read g at −3, then start on f to the left of zero.

(−3, −1)−4−224−4−22468
y = x + 2, with the point (−3, −1).
Show the steps and the answer
(−1, 1)−4−22426101418
y = x2, with the point (−1, 1).
  1. On g, the point (−3,−1) gives g(−3)=−1.A point below the horizontal axis has a negative output.
  2. Put −1 on f’s horizontal axis. The point (−1,1) gives f(−1)=1.Negative inputs are positions to the left of zero; their square is nonnegative.
  3. f(g(−3))=1.The final output is the second graph’s height, not the first output’s sign.
Answer
f(g(−3))=1.
Double-check The original formulas give g(−3) = −3 + 2 = −1 and f(−1) = (−1)(−1) = 1. The combined formula gives (−3 + 2)2 = 1 as well.

4.6 Evaluate formulas one number at a time

about 2 minOpen the full lesson

The rule

For f(h(a)), calculate h(a) first; then substitute that entire numerical answer into every input slot of f.

The input-variable letter does not change the instructions.

How

  1. Expand circle notation into parentheses if needed.
  2. Copy the inner formula and replace every input letter with the original number, using parentheses for negative numbers.
  3. Complete that arithmetic and write the intermediate output.
  4. Copy the outer formula and replace every input letter with that output.
  5. Complete the arithmetic and check by substituting into a combined formula.

Worked example

Worked example

Both orders at input 1

OpenStax problem

Let f(t) = t2 − t and h(x) = 3x + 2. Find f(h(1)) and h(f(1)). You start at 1 and want the final output in each order. Plan: finish the inner arithmetic, then insert its answer into every outer slot. The input letters t and x are slot names; their difference does not change the method.

Show the steps and the answer
1h: 3x + 2f(t) = t² − tfirstsecond520
1 goes into h: 3x + 2, then 5 into f(t) = t2 − t: 20.
1f(t) = t² − th: 3x + 2firstsecond02
1 goes into f(t) = t2 − t, then 0 into h: 3x + 2: 2.
  1. For f(h(1)), start with h(1)=3×1+2=5.h is the inner function for this order.
  2. f(h(1))=f(5)=52−5=25−5=20.The output 5 replaces both occurrences of t in f.
  3. For h(f(1)), start with f(1)=12−1=1−1=0.f is the inner function for the reversed order.
  4. h(f(1))=h(0)=3×0+2=2.The intermediate output 0 is a valid numerical input to h.
Answer
  • f(h(1)) = 20.
  • h(f(1)) = 2.
Double-check Using the combined formulas with one starting letter gives f(h(x)) = (3x + 2)2 − (3x + 2), which gives 25 − 5 = 20 at x = 1. The reversed formula h(f(t)) = 3(t2 − t) + 2 gives 0 + 2 = 2 at t = 1. Different input-slot letters describe the same instructions.

The trap

Replacing only the squared input in t2 − t. The same input goes into both positions, so f(5) is 52 − 5.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Fill every outer slot and reverse the order

Let f(t) = t2 − t and h(x) = 3x + 2. Find f(h(1)) and h(f(1)). You start at 1 and want the final output in each order. Plan: finish the inner arithmetic, then insert its answer into every outer slot. The input letters t and x are slot names; their difference does not change the method.

Show the steps and the answer
1h: 3x + 2f(t) = t² − tfirstsecond520
The same picture again: 1 goes into h: 3x + 2, then 5 into f(t) = t2 − t: 20.
1f(t) = t² − th: 3x + 2firstsecond02
The same picture again: 1 goes into f(t) = t2 − t, then 0 into h: 3x + 2: 2.
  1. For f(h(1)), start with h(1)=3×1+2=5.h is the inner function for this order.
  2. f(h(1))=f(5)=52−5=25−5=20.The output 5 replaces both occurrences of t in f.
  3. For h(f(1)), start with f(1)=12−1=1−1=0.f is the inner function for the reversed order.
  4. h(f(1))=h(0)=3×0+2=2.The intermediate output 0 is a valid numerical input to h.
Answer
  • f(h(1)) = 20.
  • h(f(1)) = 2.
Double-check Using the combined formulas with one starting letter gives f(h(x)) = (3x + 2)2 − (3x + 2), which gives 25 − 5 = 20 at x = 1. The reversed formula h(f(t)) = 3(t2 − t) + 2 gives 0 + 2 = 2 at t = 1. Different input-slot letters describe the same instructions.

4.7 Substitute the whole inside expression

about 3 minOpen the full lesson

The rule

To form f(g(x)), replace every input-variable occurrence in f with the whole parenthesized expression g(x).

(a+b)2=a2+2ab+b2, because (a+b)(a+b) has two cross products ab.

How

  1. Copy the outer formula and identify every input slot.
  2. Write the complete inner formula in parentheses in every slot.
  3. Keep powers outside those parentheses so they act on the entire input.
  4. Expand with distribution. For a square, multiply the two identical parentheses and keep both cross products.
  5. Combine like terms, preserve any domain restrictions, and check a small allowed input by the two-stage route.

Worked example

Worked example

A square makes the middle term

Let f(x) = x2 − 6 and g(x) = 3x + 2. Find (f ∘ g)(x) and (g ∘ f)(x). You want one formula for each order. Plan: put the complete inner formula into the outer input place, multiply out any square using four products, and collect matching terms.

Show the steps and the answer
9x²6x3x6x423x2
The two middle rectangles contribute 6x each, so the middle term is 12x.
1g: 3x + 2f: u² − 6firstsecond519
The input u names the entire number handed to f.
  1. (f∘g)(x)=f(3x+2)=(3x+2)2−6.The outer f squares its whole input before subtracting 6.
  2. (3x+2)2=(3x+2)(3x+2)=9x2+6x+6x+4.Each of the two terms in one copy multiplies each term in the other copy.
  3. (f∘g)(x)=9x2+12x+4−6=9x2+12x−2.The two middle products add to 12x, and 4 − 6 = −2.
  4. (g∘f)(x)=g(x2−6)=3(x2−6)+2.Now g multiplies f’s entire output by 3 and adds 2.
  5. (g∘f)(x)=3x2−18+2=3x2−16.The factor 3 multiplies both x2 and −6, then −18 + 2 = −16.
Answer
  • (f∘g)(x)=9x2+12x−2.
  • (g∘f)(x)=3x2−16.
  • Both domains are all real numbers.
Double-check At x = 1, g(1) = 5 and f(5) = 19, matching 9 + 12 − 2 = 19. Reversing gives f(1) = −5 and g(−5) = −13, matching 3 − 16 = −13.

The trap

Writing (2x + 1)2 = 4x2 + 1. The square multiplies two whole sums, so the two cross products must appear.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A square with a negative term

Let f(x) = x2 + 1 and g(x) = 3x − 2. Find f(g(x)). You want to square the whole difference and then add 1. Plan: wrap the inner expression in parentheses in every outer input place, then distribute and collect matching terms.

Show the steps and the answer
9x²−6x3x−6x4−23x−2
The labels record signed products.
  1. f(g(x))=(3x−2)2+1.The square acts on all of g's output.
  2. (3x−2)2=9x2−6x−6x+4.Each cross product contains one negative factor, while (−2)(−2) is positive.
  3. f(g(x))=9x2−12x+5.The cross products add to −12x and 4 + 1 = 5.
Answer
9x2−12x+5.
Double-check At 1, g(1) = 1 and f(1) = 2; 9 − 12 + 5 = 2.

4.8 A composite domain has two gates

Open the full lesson

The rule

The domain of f∘g consists of the x values allowed by g for which g(x) is allowed by f.

Keep original restrictions when simplifying the composite formula.

How

  1. Find the inner domain. Record inputs making an inner denominator zero or violating any other inner requirement.
  2. Find what the outer function cannot accept. For an outer denominator, determine its forbidden input values.
  3. Set g(x) equal to each forbidden outer input and solve. Exclude the solutions that are in the inner domain.
  4. Keep only starting inputs passing both gates. For roots, use inequalities rather than only equations, as the next lesson explains.
  5. Write the result in interval notation and check a permitted input and each excluded input using the original stages.

Worked example

Worked example

Two different failures in a fraction composition

OpenStax problem

Let f(x) = 5x−1 and g(x) = 43x−2. Find the domain of (f ∘ g)(x). You want every starting number that can get through g and then f. Plan: find where the first bottom is zero, then find where g hands f the number 1; exclude both starts.

Show the steps and the answer
0.672
The open points exclude 23 and 2. The label 0.67 approximates 23; use the exact fraction in your answer.
  1. Gate 1: set 3x−2=0 to find the starting input that makes g divide by zero.A zero inner bottom prevents any in-between answer.
  2. Add 2: 3x=2. Divide by 3: x=23. Plug back in: 3×23−2=2−2=0. Exclude 23.Balanced operations find the failed start, and substitution confirms the zero bottom.
  3. Gate 2: f cannot accept 1, since 1−1=0. Find every start whose g answer is 1.The outer function receives g(x), so the forbidden number is a handoff value.
  4. Solve 43x−2=1. On the inner domain multiply by the nonzero 3x−2: 4=3x−2.This locates starts that reach the forbidden outer input. The first exclusion makes the multiplication legal.
  5. Add 2: 6=3x. Divide by 3: x=2.These operations find the start that causes the second failure.
  6. Plug back in: g(2)=46−2=1, and f(1)=50. Exclude 2.The first stage works at 2, but its answer breaks the second division.
  7. Keep x≠23 and x≠2. Split the line at these two excluded points.All remaining starts pass both original bottoms.
Answer
  • Domain: (−∞, 23) ∪ (23, 2) ∪ (2, ∞).
  • Set-builder: {x | x ≠ 23 and x ≠ 2}.
Double-check At x = 0, g(0) = −2 and f(−2) = −53, so a permitted input works. At x = 23, g fails. At x = 2, g(2) = 1 exists but f(1) fails. The two exclusions have different causes.

The trap

Checking only the simplified final denominator. That can lose an inner restriction which disappeared during algebra.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

An inner restriction only

Let g(x) = 2x+4 and f(x) = x2. Find the composite domain. You want a defined inner fraction followed by a square. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.

Show the steps and the answer
−3gsquarefirstsecond24
Only the inner denominator limits this path.
  1. Set x+4=0 to locate the inner zero bottom. Subtract 4: x=−4. Plug back in: −4+4=0. Exclude −4.The equation identifies the failed first-stage input.
  2. No further exclusion is needed.The outer square accepts any real intermediate output.
Answer
(−∞,−4)∪(−4,∞).
Double-check At −3, g(−3) = 2 and f(2) = 4. At −4 the first stage divides by zero.

4.9 Square roots add boundary checks

about 2 minOpen the full lesson

The rule

A(x) requires A(x)≥0.

A denominator A(x) requires A(x) > 0.
For f(g(x)), apply every root requirement at its own stage and keep both gates.

How

  1. Write the inner radicand requirement before using the inner function's output.
  2. Substitute the inner output into the outer radicand and require it to be nonnegative.
  3. Use the inner range when possible. A real square root output is always at least zero.
  4. Before squaring an inequality, check that both compared sides are nonnegative. Then square and solve while preserving the earlier requirements.
  5. If a root is a denominator, replace its nonnegative condition with a greater than zero one.
  6. Combine the bounds and test endpoints in the original two-stage formula.

Worked example

Worked example

A root inside a root

OpenStax problem

Let f(x) = x+2 and g(x) = 3−x. Find (f ∘ g)(x) and its domain. You want a nested-root formula and the starting inputs for which both roots exist. Plan: find where the inner root exists, then use its nonnegative output to check the outer radicand after adding 2.

Show the steps and the answer
3included(−∞, 3]
Starting input 3 is included because an ordinary root accepts radicand zero.
  1. (f∘g)(x)=f(3−x)=3−x+2.The whole inner root replaces the outer input.
  2. The inner root requires 3−x≥0.A real square root cannot have a negative radicand.
  3. −x≥−3, so x≤3.Subtracting 3 gives the first inequality; multiplying by −1 reverses its direction.
  4. The outer root requires 3−x+2≥0. This adds no restriction.Where the inner root exists, it is at least zero, so adding 2 makes the outer radicand at least 2.
Answer
  • (f∘g)(x)=3−x+2.
  • Domain: (−∞, 3].
Double-check At x = 3, the inner output is 0 and the outer output is 2, so the endpoint is included. At x = 4, the inner radicand is −1, so that input fails. At x = −6, g(−6) = 3 and f(3) = 5, confirming that a composite input can lie outside f's own domain x ≥ −2.

The trap

Demanding a positive radicand for every square root. Ordinary roots allow zero; roots in denominators must avoid zero because of division.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

An inner root reaches a forbidden outer input

Let g(x) = x+9 and f(x) = 3x−5. Find the domain of f(g(x)). You need the root to exist and its answer to avoid 5. Plan: keep the inner lower bound, solve x+9 = 5, then exclude the verified start.

Show the steps and the answer
−916[−9, 16) ∪ (16, ∞)
Include −9, where the inner root is zero. Exclude 16, where that root is 5 and the outer bottom is zero.
  1. Gate 1: x+9≥0 gives x≥−9.This finds the starting inputs where the inner root exists.
  2. Gate 2: f rejects input 5, since 5−5=0. Solve x+9=5 to find the start that hands f that value.The equation locates the failed outer handoff.
  3. Both sides are nonnegative. Square: x+9=25. Subtract 9: x=16.Squaring reverses the existing root here; subtraction isolates the failed start.
  4. Plug back in: g(16)=25=5 and f(5)=30. Exclude 16.The candidate truly breaks gate 2 and already lies in the inner domain.
  5. At the lower boundary −9,g(−9)=0 and f(0)=3−5=−35, so include −9.A zero root is permitted here because the outer bottom is −5, not zero.
Answer
Domain: [−9, 16) ∪ (16, ∞).
Double-check At x = 0, g(0) = 3 and f(3) = −32, so an input between the boundaries works. At 16 only the second stage fails.

4.10 Decompose by naming the inside and outside jobs

about 3 minOpen the full lesson

The rule

To write h(x)=f(g(x)), choose g as the inside job and f as the job applied to its output.

Check by substitution and preserve h's original domain.

How

  1. Work out h at a permitted small input. The final job you perform suggests the outer function; everything before it suggests the inner function.
  2. Define g(x) as that package, which will be calculated first.
  3. Define f(x) as the operation applied to one input package.
  4. Substitute g(x) into f and show that f(g(x)) recreates h(x).
  5. Check the composite domain against the original domain. A formula match alone can hide a lost input.
  6. If another split is requested, choose a different package and repeat the same checks.

Worked example

Worked example

Three decompositions

Write each as f(g(x)): (a) h(x) = 5−x2; (b) h(x) = (5x − 4)3; (c) h(x) = 1x+8. You want an inside calculation followed by the finishing operation. Plan: name everything before the last operation as g, name the last operation as f, then recompose and compare domains.

Show the steps and the answer
15 − x²rootfirstsecond42
Part (a) builds the radicand before taking its root.
15x − 4cubefirstsecond11
Part (b) builds the whole expression before cubing it.
1x + 8reciprocalfirstsecond91/9
Part (c) builds a nonzero bottom before taking its reciprocal.
  1. (a) Choose g(x)=5−x2 and f(u)=u. Recompose: f(g(x))=5−x2.The inside builds the radicand; the outside takes its root. u is another name for f’s input slot.
  2. Require 5−x2≥0. Rearrange to x2≤5, so −5≤x≤5.This finds the starts whose radicand is nonnegative. Their distance from zero is at most 5 ≈ 2.24.
  3. Test x=2 and x=−2: both give radicand 5−4=1. Start 3 gives 5−9=−4 and fails.These tests show why both a lower and an upper boundary are needed.
  4. (b) Choose g(x) = 5x − 4 and f(u) = u3. Recompose: f(g(x))=(5x−4)3.Build the whole parenthesized expression first, then cube it. Neither stage restricts real starts.
  5. (c) Choose g(x)=x+8 and f(u)=1u. Recompose: f(g(x))=1x+8.Addition builds the bottom before taking the reciprocal.
  6. Locate the failed bottom by solving x+8=0: subtract 8, giving x=−8. Plug back in: −8+8=0. Exclude −8.This equation finds the one start whose inside answer cannot enter the reciprocal.
Answer
  • (a)g(x)=5−x2
  • f(u)=u.
  • Domain: [−5, 5].
  • (b)g(x)=5x−4
  • f(u)=u3.
  • Domain: (−∞, ∞).
  • (c) g(x) = x + 8
  • f(u)=1u.
  • Domain: (−∞, −8) ∪ (−8, ∞).
Double-check At start 1, (a) gives inside 4 then root 2; (b) gives inside 1 then cube 1; (c) gives inside 9 then reciprocal 19. Direct substitution into each original function gives the same answer. The symbolic recompositions verify every allowed start, and the domains match the original root and bottom requirements.

The trap

Giving the two correct component formulas in the wrong order. Recompose f(g(x)) on paper before accepting your decomposition.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A quadratic package under a root

Decompose h(x) = 10−x2 and give its domain. The expression 10 − x2 is quadratic: its highest input power is x2. You want the radicand-building job, the root job, and the permitted starts. Plan: identify the last operation, name the earlier work as g, then recompose and check the allowed starts.

Show the steps and the answer
allowed x10 − x²rootfirstsecond10 − x² ≥ 0√(10 − x²)
The quadratic package must remain nonnegative.
  1. Take g(x)=10−x2 and f(x)=x.The quadratic expression is the package inside the root.
  2. f(g(x))=10−x2.The entire radicand fills the outer input slot.
  3. Require 10−x2≥0, so x2≤10 and −10≤x≤10.The distance of x from zero must be no more than 10.
  4. Starts 3 and −3 give inside 10−9=1 and work. Starts 4 and −4 give 10−16=−6 and fail. Since 10≈3.16, both boundaries lie between those pairs.This makes the two-sided distance bound concrete.
Answer
  • g(x)=10−x2
  • f(x)=x.
  • Domain: [−10, 10].
Double-check At x = 1 the stages give 9 then 3, matching the original 10−1 = 9 = 3. At both endpoints x2 = 10 and the root is zero, so both are included.

5 Transformation of functions

about 41 min8 lessonsOpen the unit's crash course

5.1 Vertical shifts: move every height by the same amount

about 5 minOpen the full lesson

The rule

g(x)=f(x)+k sends (u, v) to (u,v+k).

Positive k moves up; negative k moves down. The domain stays the same; every range value gains k.

How

  1. Find the number added outside f. Include its sign, because −4 is a shift of k = −4.
  2. Keep every horizontal coordinate, because the input sent into f has not changed.
  3. Add k to every height, because g outputs the old height plus k.
  4. Move several recognizable points and connect them with the original shape.
  5. Substitute a point into the new formula to check its new height.

Worked example

Worked example

Moving a downward parabola 6 units down

The graph of f(x) = −(x + 1)2 + 4 is a downward-opening parabola with vertex (−1, 4). It passes through the five points (−3, 0), (−2, 3), (−1, 4), (0, 3) and (1, 0). Let g(x) = f(x) − 6. (a) Find the five corresponding points on the graph of g and sketch g. (b) Give the vertex of g and write g(x) in vertex form. (c) State the domain and range of f and of g.

Show the steps and the answer
(−3, 0)(−2, 3)(−1, 4)(0, 3)(1, 0)−4−22−44
The graph of f(x) = −(x + 1)2 + 4, a downward-opening parabola with vertex (−1, 4).
  1. Find k. Rewrite g(x)=f(x)−6 as g(x)=f(x)+(−6), so k=−6.The −6 sits outside f and acts on its output, not on x, so it is a vertical shift. Keeping its sign shows the graph moves 6 units down. (f(x − 6) would instead move the graph 6 units right.)
  2. Keep every x-coordinate: the new points still have x=−3,−2,−1, 0 and 1.g sends the same input x into f, so nothing moves sideways; only the outputs change.
  3. Add k=−6 to every height, (u,v)→(u,v−6): (−3,0)→(−3,−6),(−2,3)→(−2,−3),(−1,4)→(−1,−2),(0,3)→(0,−3),(1,0)→(1,−6).Each output of g is the old height f(u) plus k, so every y-value drops by exactly 6.
  4. Plot the five new points and join them with the same downward-opening parabola. The vertex moves from (−1,4) to (−1,−2), so g(x)=−(x+1)2+4−6=−(x+1)2−2.A vertical shift slides the whole curve straight down without changing it. The shape, the opening direction and the axis of symmetry x = −1 stay the same; only the vertex height changes, from 4 to 4 + (−6) = −2.
  5. State the domain and range. f and g both have domain all real numbers. The range of f is (−∞,4], so the range of g is (−∞,4−6]=(−∞,−2].The inputs are untouched, so the domain stays the same. Every output value, including the maximum height 4, gains k = −6.
  6. Check a point in the new formula: g(0)=−(0+1)2−2=−1−2=−3, which matches the moved point (0,−3).The substitution confirms the new height is the old height 3 plus k = −6, so the shift was applied to the output and with the correct sign.
Answer
  • (a) (−3, −6), (−2, −3), (−1, −2), (0, −3), (1, −6). The graph of g is the graph of f moved 6 units down: the same downward-opening parabola, drawn through these points. (b) Vertex (−1, −2)
  • g(x) = −(x + 1)2 − 2. (c) f: domain all real numbers, range (−∞, 4]. g: domain all real numbers, range (−∞, −2].
Double-check Test a different point two ways. g(1) = f(1) − 6 = 0 − 6 = −6, and the vertex form gives −(1 + 1)2 − 2 = −4 − 2 = −6, so (1, −6) lies on g. Its mirror point across x = −1 agrees: −(−3 + 1)2 − 2 = −4 − 2 = −6, giving (−3, −6). Every new point keeps its x-coordinate and sits exactly 6 below its original point, and the maximum value falls from 4 to −2.

Work to write

  1. g(x) = f(x) + (−6), so k = −6: shift 6 units down
  2. x-coordinates unchanged: (u, v) → (u, v − 6)
  3. (−3,0)→(−3,−6),(−2,3)→(−2,−3),(−1,4)→(−1,−2),(0,3)→(0,−3),(1,0)→(1,−6)
  4. vertex of g: (−1, −2); g(x) = −(x + 1)2 − 2
  5. domain of f and of g: all real numbers
  6. range of f: (−∞, 4]; range of g: (−∞, −2]
  7. check: g(0) = −(0 + 1)2 − 2 = −3, matching (0, −3)

The trap

Changing x when the added number is outside. For f(x) + 3, finish finding the old height first and then add 3; the left-to-right address stays put.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Shifting a table of values down by 3

A function f is defined on the interval [−2, 3] and has range [−2, 5]. The table gives four of its points: f(−2) = 5, f(0) = 1, f(1) = −2, f(3) = 4. Let g(x) = f(x) − 3. (a) Find the four corresponding points on the graph of g. (b) State the domain and the range of g.

input xoutput f(x)−25011−234
x:−2,0,1,3;f(x):5,1,−2,4.
Show the steps and the answer
input xoutput f(x)−25011−234↓ evaluate: input given, read the output below it
Table of f: f(−2) = 5, f(0) = 1, f(1) = −2, f(3) = 4.
  1. Read the number added outside f in g(x)=f(x)−3. It is k=−3.The −3 is added after f is evaluated, so it changes outputs, not inputs. Its sign is negative, so the graph moves down 3 units.
  2. Keep the x-values −2, 0, 1 and 3 unchanged.g still sends the same x into f, so no point moves left or right.
  3. Add −3 to each height: 5+(−3)=2,1+(−3)=−2,−2+(−3)=−5,4+(−3)=1. The new points are (−2,2),(0,−2),(1,−5) and (3, 1).Each output of g is the old height f(x) plus k, and the rule sends (u, v) to (u, v + k).
  4. Plot (−2,2),(0,−2),(1,−5) and (3, 1). Join them with the same shape as f, placed 3 units lower.Every point of f moves down by the same 3 units, so the shape does not stretch or tilt.
  5. The domain of g is [−2,3]. The range is [−2−3,5−3]=[−5,2].A vertical shift does not change the domain. Each range value gains k = −3, so the lowest and highest heights both drop by 3.
Answer
(a) (−2, 2), (0, −2), (1, −5), (3, 1). (b) The domain of g is [−2, 3] and the range of g is [−5, 2].
Double-check Substitute x = 1 into the new formula: g(1) = f(1) − 3 = −2 − 3 = −5. This matches the point (1, −5). Substitute x = 3: g(3) = f(3) − 3 = 4 − 3 = 1. This matches the point (3, 1).

Work to write

  1. k = −3, so the graph shifts down 3 units
  2. x-values stay the same: −2, 0, 1, 3
  3. g(−2)=2,g(0)=−2,g(1)=−5,g(3)=1
  4. Points: (−2, 2), (0, −2), (1, −5), (3, 1)
  5. Domain of g: [−2, 3]
  6. Range of g: [−5, 2]
  7. Check: g(1) = f(1) − 3 = −2 − 3 = −5

5.2 Horizontal shifts: why the inside acts in the opposite direction

about 4 minOpen the full lesson

The rule

g(x)=f(x−h) sends (u, v) to (u+h,v).

Positive h moves right; negative h moves left. Solve new input −h= old input whenever the sign feels uncertain.

How

  1. Find the expression inside f; it is the input the old function receives.
  2. Set that expression equal to a known old input u, because this asks where the same old height appears.
  3. Solve for the new input x. Add when the expression subtracts, and subtract when it adds.
  4. Keep the old height v, because the function receives the same old input u.
  5. Move several points and substitute their new inputs into g to check.

Worked example

Worked example

Shifting a parabola when the inside adds 3

Let f(x) = x2 − 4. Four points on the graph of f are (−2, 0), (0, −4), (1, −3) and (2, 0). Let g(x) = f(x + 3). (a) Find the four corresponding points on the graph of g. (b) State the direction and distance of the shift, and give the vertex of g.

(−5, 0)(−3, −4)(−2, −3)(−1, 0)−6−4−22−6−4−2246
Graph of g(x) = (x + 3)2 − 4.
Show the steps and the answer
  1. The expression inside f is x+3. Write g(x)=f(x+3)=f(x−(−3)), so h=−3.The expression inside f is the input the old function receives. Matching it to x − h shows the sign of h.
  2. For the point (−2,0), set x+3=−2.This asks which new input x feeds the old input −2 into f, so that the same old height appears.
  3. Solve: x=−2−3=−5. In the same way, x+3=0 gives x=−3. x+3=1 gives x=−2. x+3=2 gives x=−1.The expression adds 3, so we subtract 3 to undo it. Each new input is the old input minus 3.
  4. Keep the heights: (−2,0)→(−5,0),(0,−4)→(−3,−4),(1,−3)→(−2,−3),(2,0)→(−1,0).At each new input, f receives the same old input u, so it returns the same old height v.
  5. The shift is 3 units left. The vertex (0,−4) of f moves to (−3,−4).With h = −3 the rule (u, v) → (u + h, v) moves every point 3 units left. This is the opposite of the + sign inside.
Answer
(a) (−5, 0), (−3, −4), (−2, −3), (−1, 0). (b) The graph of g is the graph of f shifted 3 units left. The vertex of g is (−3, −4).
Double-check Substitute the new inputs into g(x) = (x + 3)2 − 4. g(−5) = (−2)2 − 4 = 0. g(−3) = 02 − 4 = −4. g(−2) = 12 − 4 = −3. g(−1) = 22 − 4 = 0. All four heights match.

Work to write

  1. g(x) = f(x + 3) = f(x − (−3)), so h = −3
  2. Solve x + 3 = u, so x = u − 3
  3. (−2,0)→(−5,0);(0,−4)→(−3,−4);(1,−3)→(−2,−3);(2,0)→(−1,0)
  4. Shift 3 units left; vertex (−3, −4)
  5. Check: g(−3) = (0)2 − 4 = −4

The trap

Reading f(x + 3) as right 3. Set x + 3 equal to an old input: x = old input − 3, so the graph moves left. The equation explains the direction when a memorized slogan feels unreliable.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Shift every known table input

The table of f pairs the inputs 2, 4, 6 and 8 with the outputs 1, 3, 7 and 11. List the known points of g(x) = f(x − 3).

input xoutput f(x)214367811
The same picture, shown 4 times now: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
Show the steps and the answer
input xoutput f(x)214367811
The same picture, shown 5 times now: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
  1. Read the f table column by column: (2, 1), (4, 3), (6, 7), (8, 11).Each column is one point of f, an input with the output directly below it.
  2. Add 3 to each old input: 2+3=5,4+3=7,6+3=9,8+3=11.g reaches the old input u when x − 3 = u, so the new input is x = u + 3.
  3. Keep each output with its column: (5, 1), (7, 3), (9, 7), (11, 11).A shift inside f moves the inputs only; every height stays where it was.
Answer
(5, 1), (7, 3), (9, 7), (11, 11)
Double-check g(9) = f(9 − 3) = f(6) = 7, so (9, 7) is a point of g.

5.3 Combine shifts and read the domain and range

Open the full lesson

The rule

g(x)=f(x−h)+k sends (u, v) to (u+h,v+k).

These shifts commute, meaning either order gives the same graph, because each changes a different coordinate.

How

  1. Recognize the original toolkit shape before changing it.
  2. Read h from x − h. If you see x + 2, write h = −2.
  3. Read k from the addition outside the function.
  4. Move the landmark and at least two other points by (h, k).
  5. Check allowed inputs using the original function's restrictions, then translate the heights to obtain the range.
  6. Substitute a new point into the formula and compare with its transformed height.

Worked example

Worked example

Describe a V moved right 2 and down 4

Describe how g(x) = |x − 2| − 4 comes from f(x) = |x|, and sketch it.
This asks you to find the new address or height of the given graph information.

Show the steps and the answer
(2, −4)−4−2246−4−2246
The V moves right 2 and down 4.
  1. Identify h=2 from x−2.The new input x = u + 2 compensates for subtracting 2 inside.
  2. Identify k=−4.The subtraction after absolute value lowers every height by 4.
  3. Move the corner (0, 0) to (2,−4).Add 2 to its horizontal coordinate and subtract 4 from its height.
  4. Move (−1,1) to (1,−3) and (1, 1) to (3,−3).Every point receives the same two shifts.
  5. Join these points in a V opening upward.Shifts preserve the original V shape.
Answer
  • Right 2 and down 4.
  • Corner: (2, −4).
  • Domain: (−∞, ∞).
  • Range: [−4, ∞).
Double-check g(1) = |−1| − 4 = −3 and g(3) = |1| − 4 = −3, verifying both sides of the moved corner.

The trap

Moving the corner correctly but leaving the old domain and range. For x+2 + 3, the allowed inputs start at −2 and the heights start at 3. Check the inside restriction and the lowest height separately.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Identify the shifted corner

Find the corner and shifts for |x − 2| − 4.
This asks you to find the new address or height of the given graph information.

(2, −4)−4−2246−4−2246
The corner is (2, −4).
Show the steps and the answer
  1. Solve x−2=0 to find x=2.The old corner uses input zero.
  2. Use height |0|−4=−4.The outside shift lowers zero by four.
Answer
  • Right 2 and down 4.
  • Corner: (2, −4).
Double-check Its equal heights at x = 1 and x = 3 show the V centered at x = 2.

5.4 Reflections: the minus sign tells you which coordinate changes

about 3 minOpen the full lesson

The rule

Vertical reflection: g(x)=−f(x), with (u, v) becoming (u,−v).

Horizontal reflection: h(x)=f(−x), with (u, v) becoming (−u,v).

How

  1. Locate the minus sign. Outside the function means negate the output; inside with x means negate the input coordinate.
  2. Choose points on the original graph. Change only the coordinate named by the reflection.
  3. Check the Domain, the allowed inputs, and the Range, the resulting outputs. A horizontal reflection negates the domain values; a vertical reflection negates the range values.
  4. Substitute a transformed point into the new formula. Confirm that it gives the transformed height.

Worked example

Worked example

Two reflections of s(t) = 2t

Write the vertical and horizontal reflections of s(t) = 2t. Give each domain and range.
This asks you to change the coordinate named by each mirror move and keep the other coordinate.

Show the steps and the answer
old (4, 4)new (4, −4)domainrange−8−448−44
The vertical reflection reverses heights and keeps nonnegative inputs.
old (4, 4)new (−4, 4)domainrange−8−448246
The horizontal reflection reverses inputs and keeps nonnegative heights.
  1. The original function accepts t≥0 and returns s(t)≥0.A real square root needs a nonnegative number inside it, and doubling a nonnegative root keeps it nonnegative.
  2. For the vertical reflection, write V(t)=−s(t)=−2t.The minus sign goes outside because every original output must change sign.
  3. V has domain [0,∞) and range (−∞,0]. The point (4, 4) becomes (4,−4).The inputs stay the same, while every nonnegative output becomes nonpositive: −24 = −2 · 2 = −4.
  4. For the horizontal reflection, write H(t)=s(−t)=2−t.The minus sign goes inside because each original input coordinate changes sign.
  5. Require −t≥0, so t≤0. H has domain (−∞,0] and range [0,∞). The point (4, 4) becomes (−4,4).Multiplying the inequality by −1 reverses its direction. The reflected input gives H(−4) = 24 = 4.
Answer
  • V(t)=−2t
  • domain [0, ∞)
  • range (−∞, 0].
  • H(t)=2−t
  • domain (−∞, 0], meaning t ≤ 0
  • range [0, ∞).
Double-check The original point (9, 6) gives V(9) = −6 and H(−9) = 6. Each changed coordinate is the opposite of its original coordinate, while the other coordinate stays fixed.

The trap

Choosing the mirror axis from the coordinate that changes. A vertical reflection changes y but reflects across the x-axis. A horizontal reflection changes x but reflects across the y-axis. Name the mirror line and the moving coordinate separately.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Reflect a table without inventing values

OpenStax problem

Use the original f table shown beside this question. List the corresponding known points on V(x) = −f(x) and H(x) = f(−x).
This asks you to attach each known output to its transformed input and calculate any requested new height.

input xoutput f(x)214367811
The same picture again: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
Show the steps and the answer
input xoutput f(x)214367811
The same picture a third time: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
input xoutput V(x)2−14−36−78−11
The same picture again: x: 2, 4, 6, 8; V(x): −1, −3, −7, −11.
input xoutput H(x)−21−43−67−811
The same picture again: x: −2, −4, −6, −8; H(x): 1, 3, 7, 11.
  1. Read the displayed original table column by column. Each top input belongs to the output directly below it.The picture supplies the known values used in the following calculations; keep each column paired.
  2. For V, keep inputs 2, 4, 6, 8 and negate outputs 1, 3, 7, 11 to get −1,−3,−7,−11.The outside minus acts on the output row.
  3. For H, negate inputs 2, 4, 6, 8 to get −2,−4,−6,−8, and keep outputs 1, 3, 7, 11.At a reflected input −u, the expression −x equals the original known input u.
  4. Do not assign a value to H(2) from this table.H(2) requires f(−2), and the table supplies no value for f(−2).
Answer
  • V:(2,−1),(4,−3),(6,−7),(8,−11).
  • H:(−2,1),(−4,3),(−6,7),(−8,11).
  • H(2): not determined by the supplied table.
Double-check V(6) = −f(6) = −7. H(−6) = f(6) = 7. Both use the same supplied value f(6) = 7.

5.5 Even, odd, or neither: test the whole formula

about 6 minOpen the full lesson

The rule

On a domain symmetric about zero: even means f(−x)=f(x); odd means f(−x)=−f(x), for every allowed x.

If neither identity holds for all allowed inputs, the function is neither. The zero-valued function on a symmetric domain satisfies both identities.

How

  1. Check that every allowed input x has its opposite −x in the domain. A domain that fails this condition rules out both symmetries.
  2. Replace every x in the formula with (−x), including x inside powers and multiplied terms.
  3. Simplify. For an even power, the minus signs cancel in pairs. For an odd power, one minus sign remains.
  4. Compare the entire result with f(x). If they match for every allowed input, the function is even.
  5. Separately write −f(x), distributing its minus to every term. If f(−x) matches this expression for every allowed input, the function is odd. If only the even comparison succeeded, it is even. If neither comparison succeeded, it is neither. If both succeed, it is both; the zero function on a symmetric domain does this.

Worked example

Worked example

Even, odd, or neither: one matching pair of outputs is not proof

Let f(x) = x4 + 2x3 − 2x + 5, defined for all real numbers. A student evaluates f(1) = 6 and f(−1) = 6, sees that the two outputs match, and concludes that f is even. (a) Test the whole formula to decide whether f is even, odd, or neither. (b) Find every real x for which f(−x) = f(x), and use the result to explain why the student's check did not settle the question.

Show the steps and the answer
  1. Check the domain. f is a polynomial, so every real number is an allowed input. For every real x, its opposite −x is also real, so the domain is symmetric about 0.Both identities compare the outputs at x and at −x, so −x must be allowed whenever x is. A domain that failed this would rule out both symmetries. This one passes, so the test continues.
  2. Replace every x with (−x): f(−x)=(−x)4+2(−x)3−2(−x)+5.f(−x) is the same rule applied to the input −x, so every x changes. That includes the x inside each power and the x in the multiplied term −2x. The parentheses keep the minus sign inside the power, and (−x)4 is not the same as −x4. The constant 5 contains no x, so it stays.
  3. Simplify term by term: (−x)4=x4; 2(−x)3=2(−x3)=−2x3; −2(−x)=+2x. So f(−x)=x4−2x3+2x+5.(−x)4 has four minus signs, which cancel in pairs, so it equals x4. (−x)3 has three minus signs. Two cancel and one remains, so the x3 term changes sign. In −2(−x), a negative times a negative is positive.
  4. Compare f(−x)=x4−2x3+2x+5 with f(x)=x4+2x3−2x+5. The x4 terms match and the constants match. The x3 terms (−2x3 and +2x3) have opposite signs, and so do the x terms (+2x and −2x). So f(x)−f(−x)=4x3−4x, which is not 0 for every x. At x=2: f(2)=16+16−4+5=33, but f(−2)=16−16+4+5=9.Even requires f(−x) = f(x) for every allowed x, so one input where the outputs differ rules it out. Since 9 ≠ 33, f is not even.
  5. Write −f(x), distributing the minus to every term: −f(x)=−x4−2x3+2x−5. Compare it with f(−x)=x4−2x3+2x+5. Now the x3 and x terms match, but x4 and −x4 differ, and so do +5 and −5. At x=2: f(−2)=9, but −f(2)=−33.Odd requires f(−x) = −f(x) for every allowed x. Here f(−x) + f(x) = 2x4 + 10. That sum is at least 10 and never 0, so the odd identity fails at every input. At x = 0, for instance, the identity would force f(0) = −f(0), that is f(0) = 0. But f(0) = 5, so f is not odd.
  6. Conclude: f is neither even nor odd.The even comparison failed in step 4 and the odd comparison failed in step 5. By the rule, a function for which neither identity holds for all allowed inputs is neither.
  7. For part (b), use the difference from step 4. f(−x)=f(x) exactly when 4x3−4x=0, that is 4x(x2−1)=0. So x=0 or x2=1, giving x=−1, 0 or 1. The student's input x=1 is one of only these three values, so f(1)=f(−1)=6 is a coincidence.Even is a claim about every allowed input, so agreement at one input, or at a few, cannot prove it. Only the whole-formula result f(−x) = f(x) can prove it, and that failed here. The sign-changing part of f, 2x3 − 2x, happens to equal 0 at x = −1, 0 and 1, so at those three inputs the asymmetry is invisible.
Answer
(a) Neither. f(−x) = x4 − 2x3 + 2x + 5. That is not identical to f(x) = x4 + 2x3 − 2x + 5, and it is not identical to −f(x) = −x4 − 2x3 + 2x − 5. For example, f(2) = 33 while f(−2) = 9, and 9 is neither 33 nor −33. (b) f(−x) = f(x) only for x = −1, 0 and 1. The matching outputs at x = 1 are a coincidence and do not show the even identity for every x.
Double-check Substitute x = 2 into the original formula: f(2) = 16 + 16 − 4 + 5 = 33 and f(−2) = 16 − 16 + 4 + 5 = 9. The simplified f(−x) = x4 − 2x3 + 2x + 5 at x = 2 also gives 16 − 16 + 4 + 5 = 9, so the algebra is right. Since 9 ≠ 33 and 9 ≠ −33, both identities fail at x = 2. The same formula at x = 1 gives 1 − 2 + 2 + 5 = 6 = f(1), which reproduces the student's matching values. Separately, write f(x) = (x4 + 5) + (2x3 − 2x). The first group is unchanged when x becomes −x, and the second changes sign. So f(−x) = f(x) would need 2x3 − 2x = 0 for every x, and f(−x) = −f(x) would need x4 + 5 = 0 for every x. Neither group is the zero function, so f is neither.

Work to write

  1. Domain: all real numbers, which is symmetric about 0.
  2. f(−x)=(−x)4+2(−x)3−2(−x)+5=x4−2x3+2x+5
  3. f(−x) ≠ f(x): the x3 and x terms have opposite signs; f(−2) = 9 but f(2) = 33, so f is not even.
  4. −f(x) = −x4 − 2x3 + 2x − 5 ≠ f(−x): the x4 and constant terms differ; f(−2) = 9 but −f(2) = −33, so f is not odd.
  5. f is neither even nor odd.
  6. f(−x) = f(x) only when 4x3 − 4x = 0, that is x = −1, 0 or 1, so the match at x = 1 does not prove f is even.

The trap

Calling a function odd because some terms change sign. Odd means the entire output changes sign, including its constant term. Compare with −f(x) written in full. A few matching number pairs can check a proof, but cannot replace an identity that covers every input.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

The formula does not erase a domain restriction

A function has formula r(x) = x2 but accepts only x ≥ 0. Is it even, odd, or neither?
This asks whether opposite allowed inputs always give equal heights, opposite heights, or neither pattern.

Show the steps and the answer
allowed24246810
The stated domain includes only the right half of x2.
  1. The domain is [0,∞), so 1 is allowed and −1 is not.The restriction is part of the function, not an optional detail of its formula.
  2. The domain is not symmetric about zero.At least one allowed input lacks its opposite partner.
  3. The function is neither even nor odd on this domain.Both definitions require the paired opposite input. Writing (−x)2 = x2 does not make a forbidden input allowed.
Answer
Neither, because the domain is not symmetric about zero.
Double-check The graph includes (1, 1) but no point at input −1. It therefore lacks both the mirror partner (−1, 1) and the half-turn partner (−1, −1).

5.6 Vertical stretch and compression: multiply the heights

about 6 minOpen the full lesson

The rule

For g(x)=a·f(x), (u, v) becomes (u,a·v).

If |a| > 1, stretch vertically; if 0 < |a| < 1, compress vertically.
If a < 0, also reflect across the x-axis. If a=0, all defined outputs become zero; this is a collapse, not an ordinary stretch or compression.

How

  1. Find the multiplier a outside the function. Its magnitude |a| sets the size change, and its sign tells you whether to reflect.
  2. Keep every input coordinate. Multiply each entire signed output by a, including outputs below zero.
  3. If a shift is added outside afterward, multiply the original height first and then add the shift. The shifted graph is scaled relative to the line y = k in a·f(x) + k.
  4. Keep the original domain. Multiply the original range values by a, reversing their order when a is negative.
  5. Check a transformed point by substituting its unchanged input into the new formula.

Worked example

Worked example

Stretch and reflect a square-root graph: g(x) = −3·f(x)

Let f(x) = x+4 − 2. Its domain is [−4, ∞) and its range is [−2, ∞). The table lists five points on the graph of f: (−4, −2), (−3, −1), (0, 0), (5, 1) and (12, 2). Let g(x) = −3·f(x). (a) Identify the multiplier and describe how the graph of g is obtained from the graph of f. (b) Find the five corresponding points on the graph of g, and write g(x) as a formula in x. (c) State the domain and range of g. (d) Let h(x) = −3·f(x) + 1. Find the point on the graph of h that comes from (12, 2), and state the range of h.

input xoutput f(x)−4−2−3−10051122
x:−4,−3,0,5,12;f(x):−2,−1,0,1,2.
Show the steps and the answer
input xoutput f(x)−4−2−3−10051122↓ evaluate: input given, read the output below it
Table of the five given points on f(x) = x+4 − 2: inputs −4, −3, 0, 5, 12 with outputs −2, −1, 0, 1, 2.
  1. Read the multiplier outside f: g(x)=−3·f(x), so a=−3. Since |a|=3>1, the graph is stretched vertically by a factor of 3. Since a < 0, it is also reflected across the x-axis.The −3 multiplies the output f(x), not the input x, so it changes heights only. Its size 3 triples each point's distance from the x-axis, and its negative sign puts each point on the opposite side of the axis.
  2. Keep each input and multiply each whole signed output by −3: (−4,−2)→(−4,6),(−3,−1)→(−3,3),(0,0)→(0,0),(5,1)→(5,−3),(12,2)→(12,−6).If (u, v) is on f, then g(u) = −3·f(u) = −3v, so the point over input u moves from height v to height −3v. Heights below zero are multiplied too and land above the axis (−2 becomes 6). Heights above zero land below it (2 becomes −6). A height of 0 stays 0, so the x-intercept (0, 0) does not move.
  3. Write the formula: g(x)=−3(x+4−2)=−3x+4+6.The multiplier acts on the entire output of f, including its −2, which becomes +6. Multiplying only the root, as in −3x+4 − 2, would leave the endpoint at (−4, −2) instead of moving it to (−4, 6).
  4. Keep the domain: g has domain [−4,∞). Multiply the range of f, [−2,∞), by −3. The endpoint −2 becomes 6, and the outputs that increase without bound now decrease without bound. The order reverses, so g has range (−∞,6].Scaling heights changes no input, so the allowed inputs are still those with x + 4 ≥ 0. Multiplying by a negative number reverses an inequality: f(x) ≥ −2 gives −3·f(x) ≤ 6. The value 6 is reached at x = −4, so the bracket at 6 is closed.
  5. For h(x)=−3·f(x)+1, multiply first and then add. From (12, 2), −3·2=−6 and −6+1=−5, so the point is (12,−5). Since h(x)=g(x)+1, every output of g rises by 1. The top value 6 becomes 7, so h has range (−∞,7].In −3·f(x) + 1 the multiplication comes before the addition. Adding first would give −3·(2 + 1) = −9, which is a point of the different function −3·f(x) − 3. Equivalently, h is scaled relative to the line y = 1: the point that was 2 above the x-axis ends up 3·2 = 6 below y = 1, at y = −5.
  6. Check (5, −3) by substituting its unchanged input into the new formula: g(5)=−35+4+6=−3·3+6=−3.A transformed point keeps its input, so the new formula at that input must return the new height. It returns −3, the height found in step 2.
Answer
  • (a) a = −3: a vertical stretch by a factor of 3 and a reflection across the x-axis. (b) (−4, 6), (−3, 3), (0, 0), (5, −3), (12, −6)
  • g(x) = −3x+4 + 6. (c) Domain [−4, ∞), range (−∞, 6]. (d) The point is (12, −5)
  • the range of h is (−∞, 7].
Double-check g(5) = −39 + 6 = −9 + 6 = −3, which matches (5, −3). g(−4) = −30 + 6 = 6. Since −3x+4 is never positive, 6 is the largest output, which matches the range (−∞, 6]. Also h(x) = −3x+4 + 7, and h(12) = −316 + 7 = −12 + 7 = −5, which matches (12, −5).

Work to write

  1. a = −3: |a| = 3 > 1, so vertical stretch by a factor of 3; a < 0, so reflect across the x-axis
  2. (u,v)→(u,−3v):(−4,6),(−3,3),(0,0),(5,−3),(12,−6)
  3. g(x)=−3(x+4−2)=−3x+4+6
  4. Domain of g: [−4, ∞)
  5. f(x) ≥ −2, so −3·f(x) ≤ 6; range of g: (−∞, 6]
  6. h: multiply first, then add: −3·2 + 1 = −5, so (12, 2) → (12, −5)
  7. Range of h: (−∞, 6] shifted up 1 gives (−∞, 7]
  8. Check: g(5) = −39 + 6 = −3, matching (5, −3)

The trap

Saying a stretch moves every point upward. A positive scale larger than 1 sends positive outputs up and negative outputs down, increasing distance from the x-axis. Also keep a·f(x) separate from f(ax): the bottom two table rows preview the horizontal-coordinate changes explained in lesson 7.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Twice the population at the same time

OpenStax problem

A fruit-fly population graph has reference points (0, 1), (3, 3), (6, 2), and (7, 0). A second population is twice as large at every time. Give its formula in terms of f and its corresponding points.
This asks you to attach each known output to its transformed input and calculate any requested new height.

input toutput f(t)01336270
t: 0, 3, 6, 7; f(t): 1, 3, 2, 0.
Show the steps and the answer
input toutput f(t)01336270
Read each column as one t input paired with its f(t) output.
input toutput P(t)02366470
Read each column as one t input paired with its P(t) output.
  1. Read the displayed original table column by column. Each top input belongs to the output directly below it.The picture supplies the known values used in the following calculations; keep each column paired.
  2. Write P(t)=2f(t).Twice as large describes an output change at the same time input t.
  3. Keep times 0, 3, 6, 7. Multiply heights 1, 3, 2, 0 by 2 to get 2, 6, 4, 0.The population doubles at each unchanged time, including zero population.
  4. Plot (0, 2), (3, 6), (6, 4), and (7, 0), following the same time pattern with doubled heights.These are the original reference points after vertical scaling. Their horizontal coordinates remain unchanged.
Answer
  • P(t) = 2f(t).
  • New points: (0, 2), (3, 6), (6, 4), (7, 0).
Double-check P(3) = 2f(3) = 2 × 3 = 6, and P(7) = 2 × 0 = 0. The known reference point at time 3 keeps that time. The four supplied points alone do not establish a greatest population.

5.7 Horizontal stretch and compression: divide the input coordinates

about 7 minOpen the full lesson

The rule

g(x)=f(bx),b≠0, sends (u, v) to (ub,v).

|b| > 1 compresses horizontally; 0 < |b| < 1 stretches horizontally. If b < 0, also reflect across the y-axis.

How

  1. Find b, the multiplier of the input before f receives it.
  2. Set bx = u for each known old input u, because this recreates its old height.
  3. Divide the old input by b, including the sign. A fractional b calls for division by a fraction.
  4. Keep the old height unless an outside change is also present.
  5. Move endpoints, corners, and several other points before drawing the curve.
  6. Substitute the new input into bx to check that it returns u.

Worked example

Worked example

Stretching and reflecting a parabola: g(x) = f(−23x)

The graph of f(x) = 14(x + 2)2 − 3, shown in the figure, is an upward-opening parabola with vertex (−2, −3). It passes through the five points (−6, 1), (−4, −2), (−2, −3), (0, −2) and (2, 1). Let g(x) = f(−23x). (a) Find b and describe how the graph of f changes. Say whether it is stretched or compressed horizontally, by what factor, and whether it is reflected. (b) Find the five corresponding points on the graph of g. (c) Give the vertex and the axis of symmetry of g, and explain why one of the five points does not move.

(−6, 1)(−4, −2)(−2, −3)(0, −2)(2, 1)−8−6−4−224−4−224
Graph of f(x) = 14(x + 2)2 − 3, an upward-opening parabola with vertex (−2, −3), with the five given points…
Show the steps and the answer
  1. Find b. In g(x)=f(−23x), the input x is multiplied by −23 before f receives it, so b=−23.b is the multiplier of the input inside f. Nothing is added inside f and nothing is done to its output, so b is the only change to the graph.
  2. Classify the change. |b|=23 lies between 0 and 1, so the graph is stretched horizontally away from the y-axis by the factor 1÷23=32. Since b < 0, the graph is also reflected across the y-axis.For −23x to equal an old input u, x must be 32 times as far from 0 as u, which spreads the points away from the y-axis. The minus sign forces x and u to have opposite signs, so each point off the y-axis lands on the opposite side of it.
  3. Set bx=u for each old input. For the vertex (−2,−3), solve −23x=−2.Since g(x) = f(−23x), g gives the old height −3 exactly when −23x hands f the old input −2.
  4. Divide the old input by b, including the sign: x=−2÷(−23)=−2·(−32)=3. For every point, x=u÷(−23)=−32u.Dividing by a fraction means multiplying by its reciprocal. The reciprocal of −23 is −32, and the minus sign is kept. Multiplying u by −23 instead would pull the points toward the y-axis. That is a compression, the opposite of what f(−23x) does.
  5. Keep each old height and move all five points: (−6,1)→(9,1); (−4,−2)→(6,−2); (−2,−3)→(3,−3); (0,−2)→(0,−2); (2,1)→(−3,1).Only the input changed. There is no multiplier or shift outside f, so each output v carries over unchanged.
  6. Read off the features of g. The vertex moves from (−2,−3) to (3,−3), so the axis of symmetry moves from x=−2 to x=3. The y-intercept (0,−2) stays where it is.The vertex is a point of the graph, so it follows the same rule as the others. For u = 0, x = 0 ÷ b = 0 whatever b is, so a point on the y-axis is fixed by any horizontal stretch, compression or reflection.
  7. Plot (−3,1),(0,−2),(3,−3),(6,−2) and (9, 1), then draw a smooth upward-opening parabola through them.Moving the vertex and points on both sides of it before drawing fixes the position and the width. The result is wider than f. The reflection has also reversed the left-to-right order: (−6, 1), the leftmost of the five points on f, became (9, 1), the rightmost on g.
  8. Check each new input in bx: −23·9=−6,−23·6=−4,−23·3=−2,−23·0=0,−23·(−3)=2.Each new input gives back its old input u, so g(x) = f(u) = v and every point carries the correct height.
Answer
(a) b = −23. Since |b| = 23 < 1, the graph of f is stretched horizontally away from the y-axis by a factor of 32. Since b < 0, it is also reflected across the y-axis. (b) (−6, 1) → (9, 1), (−4, −2) → (6, −2), (−2, −3) → (3, −3), (0, −2) → (0, −2), (2, 1) → (−3, 1). (c) The vertex of g is (3, −3) and the axis of symmetry is x = 3. The point (0, −2) does not move because it lies on the y-axis: 0 ÷ (−23) = 0.
Double-check Every new input returns its old input under −23x. For example, −23·(−3) = 2, so g(−3) = f(2) = 1. Independent check by algebra: g(x) = 14(−23x + 2)2 − 3 = 14·49(x − 3)2 − 3 = 19(x − 3)2 − 3. This parabola has vertex (3, −3), and it gives g(0) = 19·9 − 3 = −2 and g(9) = 19·36 − 3 = 1, matching the moved points. Widths grow by 32: the two points at height 1 are 8 apart on f (x = −6 and x = 2) and 12 apart on g (x = −3 and x = 9), and 8·32 = 12.

Work to write

  1. b=−23
  2. |b| = 23 < 1: horizontal stretch by a factor of 32; b < 0: reflection across the y-axis
  3. new x = u ÷ (−23) = −32u, heights unchanged
  4. (−6,1)→(9,1)
  5. (−4,−2)→(6,−2)
  6. (−2,−3)→(3,−3)
  7. (0,−2)→(0,−2)
  8. (2,1)→(−3,1)
  9. vertex of g: (3, −3); axis of symmetry: x = 3
  10. (0, −2) is fixed because 0 ÷ b = 0
  11. check: −23·3 = −2, so g(3) = f(−2) = −3

The trap

Calling f(2x) a horizontal stretch because 2 is bigger than 1. The multiplier is bigger, but the coordinate must be smaller: 2x = u gives x = u ÷ 2. Also, f(2x) and 2f(x) generally give different graphs.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A horizontal stretch by a factor of four

For this separate original point example, suppose F(3) = 7. Write a horizontal stretch by 4 and find where that known point appears. This asks you to spread each input address to four times its old value while keeping its matched height.

Show the steps and the answer
input uoutput F(u)37
The separate original illustration supplies only the point (3, 7).
input xoutput G(x)127
A fourfold horizontal stretch reaches that same known height at input 12.
  1. Use inside coefficient b=14, giving G(x)=F(14x).The horizontal distance factor is the reciprocal of the inside coefficient: 1 ÷ 14 = 4.
  2. Solve 14X=3 by multiplying both sides by 4: X=12.This finds the new input that sends old input 3 into F. At X = 12, the inside 14 × 12 is 3.
  3. Keep the known old height 7, so (3, 7) becomes (12, 7).No outside operation changes the output. The separate function name F distinguishes this illustration from the earlier supplied table.
Answer
  • G(x)=F(14x).
  • Horizontal stretch by 4.
  • (3, 7) becomes (12, 7).
Double-check G(12) = F(14 × 12) = F(3) = 7. Dividing the new input 12 by the requested width factor 4 recovers old input 3.

5.8 Put everything together: factor first, then move points

about 11 minOpen the full lesson

The rule

For g(x)=a·f(b(x−h))+k with b≠0, the Point rule is (u, v) to (ub+h,a·v+k).

Factor first; scale or reflect each coordinate before shifting that coordinate.

How

  1. Recognize f and its domain, range, and landmarks.
  2. Factor the entire input into b(x − h). Distribute it back out to verify the factoring.
  3. Label a, b, h, and k, keeping every sign.
  4. For each old point (u, v), compute new x = u ÷ b + h.
  5. Compute new y = a·v + k. Multiply before adding because that is the outside formula's order.
  6. Move at least three points and any asymptotes or endpoints; draw the transformed shape.
  7. Find the new domain from b(x − h) belonging to the old domain, and the new range from a·v + k over old range values.
  8. Substitute a moved point into the original unfactored formula as a second check.

Worked example

Worked example

Factor −2x + 8 first, then move five points of a parabola

Let f(x) = 12x2 − 2x, defined for all real numbers. Its graph is an upward-opening parabola with vertex (2, −2) that passes through the five points (−2, 6), (0, 0), (2, −2), (4, 0) and (6, 6). Let g(x) = −12·f(−2x + 8) + 1. (a) Factor the input −2x + 8 into the form b(x − h), and state a, b, h and k. (b) Find the five points on the graph of g that correspond to the five given points of f. (c) Give the vertex of g, say which way its graph opens, and state the domain and range of g. (d) Check one of your new points by substituting it into the original formula g(x) = −12·f(−2x + 8) + 1.

(−2, 6)(0, 0)(2, −2)(4, 0)(6, 6)−4−22468−4−22468
Graph of f(x) = 12x2 − 2x.
Show the steps and the answer
  1. Recognize f. Complete the square: f(x)=12(x2−4x)=12(x2−4x+4)−2=12(x−2)2−2. So f is an upward-opening parabola with vertex (2,−2). Its domain is (−∞,∞) and its range is [−2,∞). Its landmarks are the vertex (2,−2), the x-intercepts (0, 0) and (4, 0), and the matching pair (−2,6) and (6, 6). It has no asymptotes or endpoints.Every point of g is built from a point of f, so f's points, domain and range are what we move. The leading coefficient 12 is positive, so the vertex is the lowest point and −2 is the smallest output.
  2. Factor the entire input by pulling out the coefficient of x, sign included: −2x+8=−2(x−4). Distribute it back out to verify: −2·x+(−2)·(−4)=−2x+8✓.The Point rule reads h from the form b(x − h), not from the constant term. The shift is 4, not 8. Writing −2(x + 4), or using 8 or −8 as the shift, would send every point to the wrong place. Distributing back out proves the factored input equals the original one.
  3. Rewrite g(x)=−12·f(−2(x−4))+1 and match it to a·f(b(x−h))+k: a=−12,b=−2,h=4,k=1. The Point rule becomes (u,v)→(u−2+4,−12·v+1).Every sign changes the picture. a = −12 reflects across the x-axis and compresses vertically by a factor of 12. b = −2 reflects across the y-axis and compresses horizontally by a factor of 12. h = 4 shifts right 4, and k = 1 shifts up 1. Dropping any one sign gives a different graph.
  4. Compute new x=u−2+4 for each old x: u=−2 gives 1+4=5; u=0 gives 0+4=4; u=2 gives −1+4=3; u=4 gives −2+4=2; u=6 gives −3+4=1.The point of g at x uses f's value at u = −2(x − 4). Solving −2(x − 4) = u for x gives x = u−2 + 4. So each x is divided by b (reflected and compressed) before h is added. Shifting first would give −2+4−2 = −1 instead of 5 for u = −2.
  5. Compute new y=−12·v+1 for each old y: v=6 gives −3+1=−2; v=0 gives 0+1=1; v=−2 gives 1+1=2; v=0 gives 1; v=6 gives −2.Outside f, the formula multiplies f's output by a and then adds k. So the y-coordinate is reflected and compressed before it is shifted. Adding first would give −12·(6 + 1) = −72 instead of −2.
  6. Pair the coordinates: (−2,6)→(5,−2); (0,0)→(4,1); (2,−2)→(3,2); (4,0)→(2,1); (6,6)→(1,−2). A parabola has no asymptotes or endpoints to move. Plot the five new points and draw a downward-opening parabola through them with vertex (3, 2). Its axis of symmetry is x=3, because the old axis x=2 moves to 2−2+4=3.Five points, including the vertex, pin down the parabola. The points come out in reverse left-to-right order because b is negative. The graph opens downward because a is negative, so f's lowest point (2, −2) becomes g's highest point (3, 2).
  7. Domain: g(x) is defined when −2(x−4) lies in f's domain, (−∞,∞). Every real x makes −2(x−4) a real number, so the domain of g is (−∞,∞). Range: the outputs of f satisfy v≥−2. Multiplying by −12 reverses the inequality, giving −12v≤1. Adding 1 gives −12v+1≤2. Since v takes every value in [−2,∞), the range of g is (−∞,2].The inputs of g are exactly the x-values that give f an allowed input. The outputs of g are exactly the values a·v + k for outputs v of f. Multiplying by a negative a flips the inequality, so f's minimum −2 becomes g's maximum 2.
  8. Substitute the moved point (5,−2) into the unfactored formula g(x)=−12·f(−2x+8)+1. The input is −2(5)+8=−2,f(−2)=12(4)−2(−2)=2+4=6, and −12(6)+1=−3+1=−2✓. The vertex also agrees: −2(3)+8=2,f(2)=2−4=−2, and −12(−2)+1=1+1=2✓.The unfactored formula is the definition of g and does not use the Point rule. Getting the same outputs confirms both the factoring and the multiply-then-add order.
Answer
(a) −2x + 8 = −2(x − 4), so a = −12, b = −2, h = 4, k = 1. (b) (−2, 6) → (5, −2), (0, 0) → (4, 1), (2, −2) → (3, 2), (4, 0) → (2, 1), (6, 6) → (1, −2). (c) The vertex is (3, 2) and the graph opens downward. The domain of g is (−∞, ∞) and the range is (−∞, 2]. (d) At x = 5: −2(5) + 8 = −2, f(−2) = 6, and −12(6) + 1 = −2, so (5, −2) is on the graph of g ✓.
Double-check Expand the definition directly. f(−2x + 8) = 12(−2x + 8)2 − 2(−2x + 8) = (2x2 − 16x + 32) + (4x − 16) = 2x2 − 12x + 16. So g(x) = −12(2x2 − 12x + 16) + 1 = −x2 + 6x − 8 + 1 = −x2 + 6x − 7 = −(x − 3)2 + 2. This is a downward-opening parabola with vertex (3, 2), domain (−∞, ∞) and range (−∞, 2]. Its values g(1) = −2, g(2) = 1, g(3) = 2, g(4) = 1 and g(5) = −2 match all five moved points.

Work to write

  1. −2x + 8 = −2(x − 4); check: −2(x − 4) = −2x + 8
  2. a=−12,b=−2,h=4,k=1
  3. (u,v)→(u−2+4,−12·v+1)
  4. (−2,6)→(5,−2)
  5. (0, 0) → (4, 1)
  6. (2,−2)→(3,2)
  7. (4, 0) → (2, 1)
  8. (6,6)→(1,−2)
  9. Vertex (3, 2); the graph opens downward
  10. Domain of g: (−∞, ∞)
  11. v ≥ −2, so −12v + 1 ≤ 2; range of g: (−∞, 2]
  12. Check: −2(5) + 8 = −2, f(−2) = 6, −12(6) + 1 = −2 ✓

The trap

Using 6 as the final shift in f(2x − 6), or shifting a height before scaling it. Factor the input and write the two coordinate equations. For a·f(b(x − h)) + k, divide then add h horizontally, and multiply then add k vertically.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Stretch, slide left, and lower a graph

OpenStax problem

The graph of f contains (0, 2) and (2, 0). Move these points to g(x) = f(12x + 1) − 3.
This asks you to find the new address or height of the given graph information.

Horizontal stretch by 2, then left 2, then down 3.

(0, 2) becomes (−2, −1).

(2, 0) becomes (2, −3).

Show the steps and the answer
  1. Factor 12x+1=12(x+2).Multiplying 12 by 2 returns the original constant 1.
  2. Use b=12,h=−2,a=1,k=−3.x + 2 is x − (−2).
  3. Stretch horizontal coordinates by 2: (0, 2) stays (0, 2), while (2, 0) becomes (4, 0).Divide old inputs by 12.
  4. Shift left 2: the points become (−2,2) and (2, 0).Add h = −2 after the horizontal scaling.
  5. Shift down 3: the points become (−2,−1) and (2,−3).Subtract 3 from the heights after the horizontal work.
Answer
  • Horizontal stretch by 2, then left 2, then down 3.
  • (0, 2) becomes (−2, −1).
  • (2, 0) becomes (2, −3).
Double-check g(−2) = f(0) − 3 = 2 − 3 = −1 and g(2) = f(2) − 3 = −3. No missing graph shape is assumed from these two points.

6 Absolute value functions

about 23 min10 lessonsOpen the unit's crash course

6.1 Absolute value measures distance

Open the full lesson

The rule

|x|=x when x≥0; |x|=−x when x < 0.

Nonnegative means zero or positive. Opposite means the same distance from zero on the other side: the opposite of −7 is 7. Always |x|≥0, and |x|=0 exactly when x=0. A piecewise function chooses one instruction according to the input: use the first line for zero or positive inputs, the second for negative inputs.

How

  1. Calculate the entire expression inside the bars without changing its individual signs.
  2. If the result is zero or positive, keep it.
  3. If it is negative, use its opposite, the positive number the same distance from zero.
  4. Finish outside operations afterward. A number beside the bars multiplies: 3|x + 2| means 3 × |x + 2|.

Worked example

Worked example

Calculate first, measure second

Find |−3 − 4| and then −|−3 − 4|.

What it asks. Find the value of the first expression, then find its opposite in the second expression.

Show the steps and the answer

The plan. Keep the subtraction inside unchanged. Calculate its result, measure the distance, and apply the outside minus sign last.

−8−6−4−202−3−4lands on −7
The inside finishes at −7, seven units from zero.
  1. Plan. Keep the subtraction inside unchanged. Calculate its result, measure the distance, and apply the outside minus sign last.
  2. The first minus sign is part of the input −3. The second asks you to subtract 4.
  3. An outside minus sign acts after the bars.
  1. −3−4=−7.Starting three blocks left and moving four more left puts you at −7.
  2. |−3−4|=|−7|=7.The location −7 is seven blocks from zero.
  3. −|−3−4|=−7.The minus sign outside the bars acts after the distance has been found.
Answer
  • |−3−4|=7.
  • −|−3−4|=−7.
Double-check Walking from −7 to 0 takes seven unit steps. The second expression takes the opposite of that length, so its value is −7.

The trap

Making individual numbers positive before finishing the inside changes the problem. In |−3 + 5|, the wrong calculation |3 + 5| gives 8; the correct inside is 2, so the answer is 2. In |2 − 9|, changing subtraction to addition gives 11; the correct inside is −7, so the answer is 7.

6.2 Distance from a center and tolerance

about 3 minOpen the full lesson

The rule

Distance between two real numbers A and B is |A−B|=|B−A|.

Here A and B name the two positions. For an allowed distance r≥0 from center c, at most r means |x−c|≤r, with ends c−r and c+r included. Strictly less than r means |x−c|<r, with the ends excluded. Exactly r means |x−c|=r. At least r means |x−c|≥r. More than r means |x−c|>r. The sign ± is read plus or minus: c±r names the lower limit c−r and upper limit c+r. If r=0, the two end positions coincide at c; an exact zero distance has only that one position.

How

  1. Choose a letter for the actual value, such as x, a resistance R, a score S, or a temperature T. Identify the center c.
  2. Find the permitted distance r. For a percent tolerance, multiply the size of the stated rating by the percent divided by 100.
  3. Read the words carefully. At most, no more than, and ends included use an equality bar under the comparison. Strictly less than and strictly more than leave the end out.
  4. Write |actual value − center|, then the comparison and distance.
  5. Locate the two positions c − r and c + r. Nearby means the stretch between them. Farther away means the left side or the right side beyond them. Exactly that distance means the two end positions.
  6. Keep the units. Use a closed, filled dot or a bracket for an included end; use an open, hollow dot or a parenthesis for an excluded end.

Worked example

Worked example

A resistor's permitted resistance

OpenStax problem

A resistor has nominal resistance 680 ohms, ±5%. Express its allowable actual resistance R using absolute value and an interval.

What it asks. Find how far the measured resistance may depart from 680, and write all the allowed values.

Show the steps and the answer

The plan. Convert five percent to an allowed distance. Walk that distance below and above 680, including both ends.

646714[646, 714]
Filled ends include the permitted resistance limits 646 and 714 ohms.
  1. Plan. Convert five percent to an allowed distance. Walk that distance below and above 680, including both ends.
  2. Nominal value is the stated rating. Actual value is the measured number.
  3. ±5% permits the same percentage below and above the rating.
  1. Let R be the actual resistance in ohms. The center is 680 ohms.R names the measurement that varies, while 680 is the fixed rating.
  2. 5% =5100=0.05.Percent means out of one hundred.
  3. 680×5=3400; then 3400÷100=34 ohms.Five hundredths of 680 is the permitted distance from the rating.
  4. Write |R−680|≤34.The distance from the actual measurement to its rating can be at most 34 ohms.
  5. The lower end is 680−34=646. The upper end is 680+34=714.Walking 34 units either way from the center finds the two furthest allowed values.
  6. Write 646≤R≤714, or the interval [646, 714].Every value between these limits is close enough, and the equals bar includes both limits.
Answer
  • |R−680|≤34
  • 646 ≤ R ≤ 714 ohms
  • Interval: [646, 714] ohms
Double-check 646 is 34 below 680, and 714 is 34 above it. Both distances are 34. Also 34680 = 120 = 0.05 = 5%, so each endpoint uses the permitted percentage.

The trap

The center and permitted distance have different jobs. In |R − 680| ≤ 34, 680 names the rating, while 34 says how far the measurement may depart from it.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Strictly less than half a unit

Describe all numbers less than 0.5 from 12.

What it asks. Find nearby positions with the two maximum-distance ends excluded.

Show the steps and the answer

The plan. Locate 12 minus and plus 0.5, then keep positions strictly between them.

11.512.5(11.5, 12.5)
Hollow ends exclude distances exactly half a unit.
  1. Plan. Locate 12 minus and plus 0.5, then keep positions strictly between them.
  2. Less than leaves out equality.
  3. Half a unit is 0.5.
  1. Write |x−12|<0.5.The distance must be smaller than the stated half unit.
  2. The end positions are 12−0.5=11.5 and 12+0.5=12.5.These are exactly half a unit from the center.
  3. Keep 11.5 < x < 12.5, or (11.5, 12.5).The two ends have distance exactly 0.5 and must be left out, while every position between them is nearer.
Answer
  • |x−12|<0.5
  • 11.5 < x < 12.5
  • Interval: (11.5, 12.5)
Double-check 12 has distance zero and works; the ends each have distance 0.5 and fail a strict less-than comparison.

6.3 Build and read the V graph

Open the full lesson

The rule

For f(x)=a|x−h|+k with a≠0: a is the number multiplying the distance, h is its horizontal center, and k is the outside added height.

Vertex: (h, k). Left slope: −a; right slope: a. It opens up if a > 0 and down if a < 0. Domain: all real numbers. Range: y≥k if a > 0; y≤k if a < 0.

How

  1. Set the entire inside equal to 0 and solve. This finds the input where its distance is zero, the corner's x-coordinate.
  2. Put that input into the full formula to find the corner's y-coordinate, then plot the corner.
  3. Choose one and two units on each side. Substitute all four inputs into the full formula, especially when a number multiplies x inside the bars.
  4. Draw an input and output table, plot its five points, connect each side with a straight arm, and extend the arms.
  5. Read domain as the graph's reach across the x-axis and range as its reach up the y-axis. For a limited input stretch, check both ends and the corner if it lies inside.

Worked example

Worked example

Move and stretch the parent graph

OpenStax problem

Graph f(x) = 2|x − 3| + 4. Give its vertex, arm slopes, domain, and range.

What it asks. Draw the V and describe its turning point, the steepness of each arm, and all allowed inputs and outputs.

input xoutput f(x)1826344658
x: 1, 2, 3, 4, 5; f(x): 8, 6, 4, 6, 8.
Show the steps and the answer

The plan. Find the corner by making the inside zero. Calculate four surrounding points, then use their heights to read the arms and range.

input xoutput f(x)1826344658↓ evaluate: input given, read the output below it
The column under 3 gives the corner height; matching distances give matching outputs.
(3, 4)domainrange−22468261014
The solid V meets at (3, 4) and rises two per step away from the center.
  1. Plan. Find the corner by making the inside zero. Calculate four surrounding points, then use their heights to read the arms and range.
  2. Only the distance part is doubled. Add 4 afterward.
  3. The column under 3 contains the corner height 4.
  1. Set x−3=0 and add 3 to find x=3. Then f(3)=2|3−3|+4=4, so the vertex is (3, 4).Zero distance marks where the left and right instructions meet. Substituting that input finds the corner height.
  2. At x=2 and x=4,|x−3|=1, so f(x)=2×1+4=6.Positions equally far from the center have equal outputs.
  3. At x=1 and x=5,|x−3|=2, so f(x)=2×2+4=8.The two-step distance gives a doubled distance height of 4, followed by the upward shift 4.
  4. Use the five columns of the output table to plot the points. Connect each arm with a straight line.Each side uses a straight-line instruction, and the shared corner connects them.
  5. From (2, 6) to (3, 4), go 1 right and 2 down, giving slope −2. From (3, 4) to (4, 6), go 1 right and 2 up, giving slope 2.Slope is change in height divided by change across. These changes are −2 ÷ 1 and 2 ÷ 1.
  6. The domain is (−∞,∞), and the range is [4,∞).The formula accepts every real input. The lowest height is 4 and the arms rise without an upper limit.
Answer
  • Vertex: (3, 4).
  • Left slope: −2.
  • Right slope: 2.
  • Domain: (−∞, ∞).
  • Range: [4, ∞).
Double-check Starting from |x|, shift right 3, double the distance heights, and move up 4. The parent vertex and the points one unit away become (3, 4), (2, 6), and (4, 6), matching the substitutions.

The trap

Reading x − 3 as a left shift. Find where the inside is zero: x − 3 = 0 gives x = 3, so the corner moved right. The memory device is 'inside lies, outside tells the truth'; the zero calculation explains it.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Stretch and shift

Graph y = 3|x − 1| − 2.

What it asks. Draw the V and find its turning point and output heights.

input xoutput y−14011−22134
x:−1,0,1,2,3;y:4,1,−2,1,4.
Show the steps and the answer

The plan. Make the inside zero to find the corner input, substitute to find its height, and plot the surrounding table columns.

input xoutput y−14011−22134
The distance part is multiplied by 3 before the downward shift.
corner−224−22468
The V rises three units for each step away from its corner.
  1. Plan. Make the inside zero to find the corner input, substitute to find its height, and plot the surrounding table columns.
  2. The corner occurs at zero inside distance.
  3. Each table column gives one plotted point.
  1. Set x−1=0 and add 1 to get x=1. Then y=3|1−1|−2=−2.This finds and verifies the corner (1, −2).
  2. One unit away, y=3×1−2=1. Two units away, y=3×2−2=4.The factor 3 triples each distance height before subtracting 2.
  3. Plot all five table columns. The left arm drops 3 per step right and the right arm rises 3 per step right.Distance shrinks toward the corner and grows away from it, so the slopes are −3 and 3.
Answer
  • Vertex: (1, −2)
  • Left slope: −3
  • Right slope: 3
  • Domain: (−∞, ∞)
  • Range: [−2, ∞)
Double-check At x = 3, direct substitution gives 3|2| − 2 = 4, consistent with another three-unit rise.

6.4 Write an equation from a graph

about 3 minOpen the full lesson

The rule

Vertex form is f(x)=a|x−h|+k.

From vertex (h, k) and another point (p, q) with p≠h: a=q−khorizontaldistance, where horizontal distance =|p−h|. For an upward V, width at height D above the corner is 2D÷a, with D > 0. An x-intercept, or horizontal intercept, is a point (x, 0); its input is called a zero.

How

  1. Read the corner from the grid: its horizontal position is h and its height is k.
  2. Write f(x) = a|x − h| + k, leaving the stretch factor a unknown.
  3. Read another clear point (p, q). Go to the x-axis to read p and to the y-axis to read q.
  4. Subtract the corner height k from q and divide by the horizontal distance |p − h|. This finds the stretch factor a.
  5. Put the resulting a into the formula and check it at a second point.
  6. For a requested x-intercept, find where the drawing reaches height 0. Algebraically, set the output to 0 to find its input. A positive distance from h has one position on each side, h minus that distance and h plus it.

Worked example

Worked example

Read a V from its picture

OpenStax problem

Write the equation of the V in the picture and find its x-intercepts.

What it asks. Read the turning point and steepness from the grid, then identify where the graph has height zero.

246−2246
Read the corner and another point from the grid before using the worked steps.
Show the steps and the answer

The plan. Locate the corner, count a one-step rise, write the formula, check another point, and find ground-level positions.

  1. Plan. Locate the corner, count a one-step rise, write the formula, check another point, and find ground-level positions.
  2. The lowest point is the corner. Read horizontal position first and height second.
  3. One step right from the corner reveals a when the rise is readable.
  1. The lowest point reads (3,−2), so h=3 and k=−2. Write f(x)=a|x−3|−2.The V turns where its distance part is zero; its grid address gives both shifts.
  2. From the corner move 1 right to x=4. The graph height is 0, which is 0−(−2)=2 above the corner. Thus a=2÷1=2.The stretch factor measures height change per unit of distance from the corner.
  3. Write f(x)=2|x−3|−2.The corner and one-step height have supplied all three numbers in vertex form.
  4. Check the point (1, 2): f(1)=2|1−3|−2=2×2−2=2.Another readable point must agree with the formula, including on the left arm.
  5. Set the output to zero: 2|x−3|−2=0. Add 2, then divide by 2 to get |x−3|=1.A horizontal intercept has height zero. Undoing the outside operations identifies its required distance from 3.
  6. A distance of 1 from 3 occurs at x=3−1=2 or x=3+1=4. Equivalently, x−3=−1 or x−3=1.The distance picture places one input on each side of the center.
  7. At height y=2, the graph meets x=1 and x=5. Its width is 5−1=4, and that height is 2−(−2)=4 above the corner.For a second steepness check, compare widths at a fixed height above the corner. The parent V is 8 wide at height 4 above its corner, so this V is half as wide and twice as steep.
Answer
  • f(x)=2|x−3|−2
  • Zeros: x = 2 and x = 4
  • x-intercepts: (2, 0) and (4, 0)
Double-check f(3) = 2|0| − 2 = −2 checks the corner. f(2) = f(4) = 2 × 1 − 2 = 0 checks both intercepts. Compared with |x|, the V moves right 3, stretches heights by 2, and moves down 2.

The trap

Dividing by p − h instead of |p − h|. A point left of the corner has a negative coordinate difference, but its distance is positive. Keep the bars so a correctly records whether the V opens up or down.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

The graph opens down

Find a V with vertex (4, 6) passing through (0, 4).

What it asks. Find the formula of the V from its corner and the supplied information.

Show the steps and the answer

The plan. Use the corner to write vertex form, find the stretch factor from the other information, and check a point.

cornergiven point−2246810246
The given point is lower than the corner, so the multiplier is negative.
  1. Plan. Use the corner to write vertex form, find the stretch factor from the other information, and check a point.
  2. The corner supplies both shifts.
  3. Divide the height change by horizontal distance, which is positive.
  1. f(x)=a|x−4|+6.The corner fixes center 4 and height 6.
  2. Insert (0, 4): 4=a|0−4|+6=4a+6.The given point lies four units horizontally from the corner.
  3. Subtract 6: −2=4a. Divide by 4: a=−24=−12.The height change is a fall of 2 over distance 4. Dividing those numbers finds the signed stretch factor.
Answer
f(x)=−12|x−4|+6.
Double-check At x = 0 the formula gives −2 + 6 = 4. A point away from the vertex is lower, so the negative outside multiplier makes sense.

6.5 Solve an absolute value equation

about 3 minOpen the full lesson

The rule

Isolate |A|=B first.

For B > 0, solve A=B or A=−B. For B=0, solve A=0. For B < 0, there is no solution. These give two, one, or no inputs when A= mx +c and m≠0. Check every input in the original equation.

How

  1. Get the bars and their complete contents alone. Undo addition or subtraction outside first, then multiplication or division.
  2. Name A, everything inside the bars, and B, the number on the other side. Inspect B before splitting.
  3. For B > 0, write A = B or A = −B. For B = 0, write only A = 0. For B < 0, stop with no solution.
  4. Solve each possible equation by undoing the inside operations. This finds the inputs that produce the required inside values.
  5. Substitute each possible answer into the original equation. Keep only inputs that make both sides equal.
  6. Write the answer as inputs and as a set. {−7, 3} lists two answers. {4} lists one answer. ∅ means the empty set, no answers, and can also be written { }. Braces collect answers; a comma separates them.

Worked example

Worked example

Isolate before choosing directions

Solve 3|x + 2| − 4 = 11.

What it asks. Find every x that makes the left side equal 11, then write those inputs as a set.

Show the steps and the answer

The plan. Undo minus 4, then times 3 outside the bars. Solve two equations for the whole inside and check both inputs.

solutionsolution−8−442468
The same picture again: y = |x + 2|, solid, beside y = 5, dashed.
  1. Plan. Undo minus 4, then times 3 outside the bars. Solve two equations for the whole inside and check both inputs.
  2. The outside operations are times 3, then minus 4. Undo them in reverse order.
  3. After isolation, |x + 2| = 5 means x + 2 equals 5 or −5.
  4. A positive distance has a left position and a right position.
  1. Add 4 to both sides: 3|x+2|−4+4=11+4, so 3|x+2|=15.This removes the outside subtraction while keeping the sides equal.
  2. Divide both sides by 3: |x+2|=153=5.Division cancels the outside multiplication. Now B, the number on the other side, is the true distance 5.
  3. Write x+2=5 or x+2=−5.The complete inside must be one of the two numbers whose absolute value is 5.
  4. In the first equation subtract 2 from both sides: x=5−2=3.This finds the input that produces inside value 5.
  5. In the second equation subtract 2 from both sides: x=−5−2=−7.This finds the input that produces inside value −5. Both possible directions must be checked.
  6. Substitute 3 and −7 into the original equation and keep both. Write {−7,3}.Both give original left side 11, so both inputs belong to the answer set.
Answer
  • x = −7 or x = 3
  • Set: {−7, 3}
Double-check At x = 3, 3|3 + 2| − 4 = 3 × 5 − 4 = 15 − 4 = 11. At x = −7, 3|(−7) + 2| − 4 = 3|−5| − 4 = 15 − 4 = 11. The isolated picture also puts both inputs five units from −2.

The trap

Splitting before isolating, or keeping only the positive branch. In 3|x + 2| − 4 = 11, the needed distance is 5, not 11. Box the isolated equation, then choose its branches.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 8

A number multiplying x inside

OpenStax problem

Solve |2x − 6| = 8.

What it asks. Find every x whose whole inside 2x − 6 has distance 8 from zero.

Show the steps and the answer

The plan. Write the inside equal to 8 and −8, then solve and check each equation.

−17−224682610
The graph represents |2x − 6|, and its two crossing inputs give the equation answers.
  1. Plan. Write the inside equal to 8 and −8, then solve and check each equation.
  2. A is 2x − 6, not x alone.
  3. Add 6, then divide by 2, in both branches.
  1. Write 2x−6=8 or 2x−6=−8.B = 8 > 0, so the complete inside has two possible values.
  2. In the first equation add 6 to both sides: 2x=8+6=14.This removes the inside subtraction while keeping both sides equal.
  3. Divide by 2: x=142=7.This finds the input that makes the inside 8.
  4. In the second equation add 6: 2x=−8+6=−2.This removes the same subtraction for the other possible direction.
  5. Divide by 2: x=−22=−1.This finds the input that makes the inside −8.
Answer
  • x = −1 or x = 7
  • Set: {−1, 7}
Double-check |2 × 7 − 6| = |8| = 8 and |2 × (−1) − 6| = |−8| = 8.

6.6 Find zeros and axis intercepts

about 3 minOpen the full lesson

The rule

Zeros: solve f(x)=0 to find the inputs whose output is zero.

Their x-intercepts are (x, 0). y-intercept: evaluate f(0) and write (0, f(0)). In a|x−h|+k with a≠0: opposite signs for a and k give two x-intercepts; k=0 gives one; the same nonzero sign gives none. The full V always has exactly one y-intercept.

How

  1. For zeros or x-intercepts, set the output f(x) equal to 0. This asks which inputs place the graph on the horizontal axis.
  2. Isolate the bars. Inspect B, the number on the other side, to determine whether two, one, or no inside equations are possible.
  3. Solve each possible equation to find the zero inputs. Substitute each input into the original formula to confirm output 0.
  4. List zeros as numbers or an answer set. List x-intercepts as points with y-coordinate 0.
  5. For the y-intercept, substitute x = 0 into the original formula and calculate the output. Write the point (0, f(0)).

Worked example

Worked example

Find zeros and intercepts

OpenStax problem

Find the zeros and both kinds of axis intercepts of f(x) = |4x + 1| − 7.

What it asks. Zeros: the output is 0, so find every input that gives it. x-intercepts: write those zero-input points. y-intercept: the input is 0, so calculate the output.

Show the steps and the answer

The plan. Set the function equal to zero and solve the two inside equations. Then separately put input zero into the original function.

−23/2−6−22−8−44
The same picture a third time: y = 4|x + 0.25| − 7.
  1. Plan. Set the function equal to zero and solve the two inside equations. Then separately put input zero into the original function.
  2. Output zero and input zero are different instructions.
  3. Add 7 before splitting the inside.
  4. Use parentheses around a negative input during substitution.
  1. Set the output equal to 0: |4x+1|−7=0.This finds the inputs whose graph points lie on the horizontal axis.
  2. Add 7 to both sides: |4x+1|=7.This removes the outside subtraction and reveals positive B = 7.
  3. Write 4x+1=7 or 4x+1=−7.The complete inside can be either of the two numbers with absolute value 7.
  4. In the first equation subtract 1: 4x=6. Divide by 4: x=64=32.These steps find the input whose inside is 7. Dividing the fraction's top and bottom by 2 reduces it.
  5. In the second equation subtract 1: 4x=−8. Divide by 4: x=−2.These steps find the input whose inside is −7.
  6. Check both zero inputs in the original formula and write points (−2,0) and (32,0).Both substitutions give output 0, so both points are x-intercepts.
  7. For the y-intercept use input 0: f(0)=|4×0+1|−7=|1|−7=1−7=−6.Points on the vertical axis have x-coordinate 0. This calculation finds the height there.
Answer
  • Zeros: x = −2 and x = 32
  • Zero set: {−2, 32}
  • x-intercepts: (−2, 0) and (32, 0)
  • y-intercept: (0, −6)
Double-check f(−2) = |4(−2) + 1| − 7 = |−8 + 1| − 7 = |−7| − 7 = 0. f(32) = |4 × 32 + 1| − 7 = |6 + 1| − 7 = 0. For the corner, 4x + 1 = 0 finds where the inside vanishes: subtract 1 and divide by 4 to get x = −14. Substituting gives f(−14) = |−1 + 1| − 7 = −7. The corner is below zero and the arms rise, confirming two crossings.

The trap

Substituting x = 0 when asked for zeros. That finds the y-intercept. For zeros set the output to 0 and leave x unknown.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

No crossing

Find all intercepts of f(x) = 2|x − 1| + 3.

What it asks. Determine whether the V reaches output zero, and find its output at input zero.

Show the steps and the answer

The plan. Set output zero and inspect the distance after isolation. Compute f(0) separately.

(0, 5)−224246810
The entire V stays above zero and still meets the y-axis at (0, 5).
  1. Plan. Set output zero and inspect the distance after isolation. Compute f(0) separately.
  2. A negative isolated distance cannot occur.
  3. The y-intercept still exists even if there are no x-intercepts.
  1. Set output zero: 2|x−1|+3=0. Subtract 3: 2|x−1|=−3.This asks which inputs reach the horizontal axis and removes the outside addition.
  2. Divide by 2: |x−1|=−32.This isolates the distance so its possibility can be checked.
  3. There are no zero inputs or x-intercepts: ∅.A distance cannot equal −32. Every original output is at least 3.
  4. Use x = 0 for the y-intercept: f(0)=2|0−1|+3=2×1+3=5.This calculates the height over the vertical axis, where the input is zero.
Answer
  • Zeros: none; zero set ∅
  • x-intercepts: none
  • y-intercept: (0, 5)
Double-check The minimum height is 3, so the entire graph stays above zero.

6.7 Less than B means between

about 2 minOpen the full lesson

The rule

For B > 0: |A| < B means −B<A<B; |A|≤B means −B≤A≤B.

Both comparisons must hold: 'and'. A is everything inside the bars; B is the number on the other side.

How

  1. Get the bars alone, then check that B, the number on the other side, is positive. Zero or negative B needs the final lesson's cases.
  2. Write the three part inequality with −B on the left and B on the right. Keep equality if the question allows it.
  3. Undo each inside operation on all three parts. Dividing by a negative reverses both signs.
  4. Read the finished bounds from smaller to larger and write the interval.
  5. A strict sign excludes the endpoint: use a hollow dot and a parenthesis. An inclusive sign allows equality: use a filled dot and a bracket. Check the center and both endpoints in the original question.

Worked example

Worked example

A distance interval with included endpoints

OpenStax problem

Solve |x − 5| ≤ 4.

What it asks. Find every number that is four or fewer units from five.

Show the steps and the answer

The plan. Write the between chain, add five to all three parts, and show whether the two ends count.

19[1, 9]
Every input in [1, 9] makes the distance at most 4.
  1. Plan. Write the between chain, add five to all three parts, and show whether the two ends count.
  2. The center is five. The distance limit B is four.
  3. Less distance requires both a left limit and a right limit.
  4. The equals bar means the endpoints count.
  1. Write −4≤x−5≤4.A signed difference whose distance is at most 4 must be at least −4 and at most 4.
  2. Add 5 to all three parts: −4+5≤x−5+5≤4+5.This undoes the subtraction from x while sliding both comparison limits by the same amount.
  3. Simplify: 1≤x≤9.−4 + 5 = 1, −5 + 5 = 0, and 4 + 5 = 9. This finds every input that passes both limits.
  4. Write [1, 9].At either end the distance equals 4, and the stated inequality allows equality.
Answer
  • 1 ≤ x ≤ 9.
  • Interval: [1, 9].
Double-check The endpoint distances are |1 − 5| = 4 and |9 − 5| = 4. The center 5 has distance 0; the outside input 10 has distance 5 and fails.

The trap

Changing only the middle of a three-part inequality, or treating < and ≤ alike. Every algebra move acts on all three parts, and the original sign decides whether the boundary belongs.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Include shifted endpoints

Solve |x + 3| ≤ 2.

What it asks. Find all positions at most two units from −3.

Show the steps and the answer

The plan. Use an inclusive between chain and subtract three from every part.

−5−1[−5, −1]
The allowed interval is [−5, −1].
  1. Plan. Use an inclusive between chain and subtract three from every part.
  2. x + 3 is x − (−3), so the center is −3.
  3. The ends count.
  1. −2≤x+3≤2.The limit is positive and equality is allowed, so the inside lies from −2 through 2.
  2. Subtract 3 everywhere: −5≤x≤−1.Subtracting 3 from all three parts isolates x, so these bounds describe the allowed input positions instead of the inside difference.
Answer
[−5,−1].
Double-check The center −3 gives distance 0; endpoints −5 and −1 give distance 2 and are included.

6.8 More than B means outside

about 2 minOpen the full lesson

The rule

For B > 0: |A| > B means A<−B or A > B; |A|≥B means A≤−B or A≥B.

For an inside line with a nonzero number multiplying x, solve each alternative and join its two outside intervals with ∪.

How

  1. Get the bars alone and inspect B, the number on the other side. Use this method when B is positive.
  2. Write the left outside inequality and the right outside inequality, connected by 'or'. Each alternative is a branch.
  3. Solve each branch separately. Multiplying or dividing by a negative flips that branch's comparison sign.
  4. Put the resulting intervals in order from left to right and join them with ∪.
  5. Infinity is a direction, not an actual endpoint, so it always uses a parenthesis. At each finite boundary, an actual number, use a bracket only when equality passes the original comparison.

Worked example

Worked example

Two outside solution intervals

Solve |2x + 1| > 7.

What it asks. Find every input for which 2x plus one is more than seven units from zero.

Show the steps and the answer

The plan. Write two outside alternatives, solve each, and join the two allowed intervals.

−43(−∞, −4) ∪ (3, ∞)
Both outside rays belong, while −4 and 3 are excluded.
  1. Plan. Write two outside alternatives, solve each, and join the two allowed intervals.
  2. The right side B is positive seven.
  3. Use 'or', because either outside direction works.
  4. The divisor two is positive, so each comparison sign stays.
  1. Write 2x+1<−7 or 2x+1>7.An inside value more than seven units from zero must lie beyond one of the two signed boundaries.
  2. Left branch: subtract 1 to get 2x<−8.This removes the inside addition without changing order.
  3. Divide by 2: x<−4.The positive divisor leaves the sign unchanged and isolates every input passing the left alternative.
  4. Right branch: subtract 1 to get 2x > 6.The same subtraction removes the inside addition in the other alternative.
  5. Divide by 2: x > 3.This finds every input passing the right alternative.
  6. Write (−∞,−4)∪(3,∞).Either alternative qualifies, and both finite boundaries fail the strict comparison.
Answer
  • x < −4 or x > 3
  • Interval: (−∞, −4) ∪ (3, ∞)
  • Set-builder: {x : x < −4 or x > 3}
Double-check x = −5 gives |−9| = 9 > 7; x = 4 gives |9| = 9 > 7. The middle input 0 gives 1 and fails. Boundary inputs −4 and 3 give exactly 7 and fail.

The trap

Using 'and' for an outside condition. No x can be both less than −4 and greater than 3. Use 'or', and use ∪ to keep both permitted pieces.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Shifted inclusive outside

Solve |x + 2| ≥ 3.

What it asks. Find all numbers at least three units from −2.

Show the steps and the answer

The plan. Use inclusive outside alternatives and subtract two in each.

−51(−∞, −5] ∪ [1, ∞)
The rays include their boundary numbers −5 and 1.
  1. Plan. Use inclusive outside alternatives and subtract two in each.
  2. x + 2 measures from −2.
  3. Equality includes both boundaries.
  1. x+2≤−3 or x+2≥3.The distance includes the boundary and both farther sides.
  2. Subtract 2: x≤−5 or x≥1.Subtracting 2 from both sides of each branch undoes the + 2 inside the bars.
Answer
(−∞,−5]∪[1,∞).
Double-check At −5 and 1 the distance from −2 is 3; at the center −2 it is 0 and fails.

6.9 Use boundaries and graphs to find positive or negative outputs

about 5 minOpen the full lesson

The rule

Find boundaries by solving the corresponding equality.

Test one input inside each interval between boundaries, or compare graph heights. For f(x) < 0, choose the portions below the x-axis; for f(x) > 0, choose those above. Negative multiplication or division flips every comparison sign. Allow a boundary only when its original comparison permits equality.

How

  1. Decide which heights to compare, such as f(x) and 0, or |x − 5| and 4.
  2. Set the two heights equal and solve. This finds every input at which the graph reaches the comparison height. Substitute those inputs back to confirm the crossings.
  3. List the open intervals separated by those boundary inputs. Open means the boundary itself is not part of the interval being tested.
  4. Pick one test point inside each interval and substitute it into the original comparison.
  5. Keep every interval whose test point passes. Include a boundary only if substituting it into the original comparison passes too.
  6. State the allowed inputs as an inequality, interval, or set-builder condition. If more than one interval works, use 'or' and ∪.

Worked example

Worked example

A reflected function below zero

OpenStax problem

For f(x) = −12|4x − 5| + 3, find where f(x) < 0.

What it asks. Find every input whose output from this downward V is below zero.

Show the steps and the answer

The plan. Get the bars alone, find the equality crossings, test the three intervals, and exclude the zeros.

−1/411/4−224−4−224
The same picture again: y = −2|x − 1.25| + 3, solid, beside y = 0, dashed.
input xoutput 4x − 5−1−91−137
Read the inside expression under each test input before taking its distance.
input xoutput f(x)−1−3/215/23−1/2
The output columns under −1 and 3 are negative; the column under 1 is positive.
−0.252.75
Both outside rays belong, with exact boundaries −14 and 114 excluded.
  1. Plan. Get the bars alone, find the equality crossings, test the three intervals, and exclude the zeros.
  2. Subtract three before multiplying by negative two.
  3. The negative multiplier flips the less than sign.
  4. The first and third output columns are negative.
  1. Subtract 3 from −12|4x−5|+3<0: −12|4x−5|<−3.This undoes the outside vertical shift before comparing the distance.
  2. Multiply both sides by −2: |4x−5|>6.−2 × (−12) = 1 and −2 × (−3) = 6. The negative multiplier flips the comparison.
  3. To find the crossing boundaries, solve the equality |4x−5|=6.At distance 6 the original output is −12 × 6 + 3 = 0, exactly the comparison height.
  4. Write 4x−5=−6 or 4x−5=6.Only inside values −6 and 6 give distance 6.
  5. Add 5: 4x=−1 or 4x=11. Divide by 4: x=−14 or x=114.These operations undo the inside shift and multiplier to find both crossing inputs.
  6. Check the crossings: 4×(−14)−5=−1−5=−6, and 4×114−5=11−5=6. Each gives f(x)=−3+3=0.Substitution confirms that both boundary inputs actually meet the horizontal axis.
  7. Separate the inputs into (−∞,−14),(−14,114), and (114,∞).With every zero found, an output cannot change sign inside one of these intervals without another crossing.
  8. Left test x=−1: 4(−1)−5=−9, so the inside table's column under −1 holds −9. Its distance is 9. Then f(−1)=−12×9+3=−92+62=−32.Multiplying by negative one half gives −92, and writing 3 as 62 lets the halves subtract. The negative result selects the left interval.
  9. Middle test x=1: 4×1−5=−1. Then f(1)=−12×1+3=−12+62=52. Read the positive output in the column under 1.1 is between the exact boundaries, and its positive output rejects that entire middle interval.
  10. Right test x=3: 4×3−5=7. Then f(3)=−72+62=−12. Read the negative output in the column under 3.3 is beyond the right boundary, and the negative result selects the right interval.
  11. Find the corner by setting 4x−5=0: add 5 and divide by 4 to obtain x=54. Substitute: f(54)=−12|0|+3=3.Zero inside identifies the V's turning input. Substitution gives its height and explains the graph's corner (54, 3).
  12. Moving one unit farther from the corner changes |4x−5| by 4. The height change is −12×4=−2.Factoring 4x − 5 = 4(x − 54) gives the same function as −2|x − 54| + 3, so the picture's arms descend two units per step away.
  13. Keep the two outside intervals and leave their boundary inputs out.The outside tests are negative, while each boundary output equals zero and fails the strict question.
Answer
  • x < −14 or x > 114
  • Interval: (−∞, −14) ∪ (114, ∞)
  • Set-builder: {x : x < −14 or x > 114}
Double-check The between method checks the rejected middle: f(x) ≥ 0 gives |4x − 5| ≤ 6, hence −6 ≤ 4x − 5 ≤ 6. Add 5 and divide by 4 to get −14 ≤ x ≤ 114. Every input outside that closed interval has negative output, confirming the selected two rays.

The trap

Multiplying by −2 and keeping the less than sign would select the center, where this function is positive. Flip the sign immediately and confirm your answer with an actual output from each chosen interval.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Upward V below zero

Where is f(x) = |x − 2| − 3 negative?

What it asks. Find where the upward V lies below the horizontal axis.

Show the steps and the answer

The plan. Find its two crossings and test the middle and both outside intervals.

−15−2246−4−22
The upward V lies below zero between −1 and 5.
input xoutput f(x)−212−361
Only the middle sample has negative output.
−15(−1, 5)
Both crossing inputs are excluded from the negative region.
  1. Plan. Find its two crossings and test the middle and both outside intervals.
  2. Set output zero to find boundary inputs.
  3. The center lies in the middle interval.
  1. Set |x − 2| − 3 = 0 to find the crossings. Add 3: |x−2|=3.Output zero marks the boundaries where the sign can change.
  2. Write x−2=−3 or x−2=3. Add 2: x=−1 or x=5.These are the only inside values at distance 3, so solving finds both boundary inputs.
  3. Check f(−1)=|−3|−3=0 and f(5)=|3|−3=0.Both proposed boundaries really lie on the horizontal axis.
  4. Read the test columns: f(−2)=|−4|−3=1,f(2)=|0|−3=−3, and f(6)=|4|−3=1.The table shows a positive left sample, a negative middle sample, and a positive right sample.
  5. Keep (−1,5).Only the middle interval has negative output, and its zero endpoints do not pass the strict comparison.
Answer
(−1,5).
Double-check Algebra gives |x − 2| < 3, hence −1 < x < 5.

6.10 When B is zero or negative

about 2 minOpen the full lesson

The rule

If B < 0: |A|=B, |A| < B, and |A|≤B have no solution; |A| > B and |A|≥B hold for every allowed input.

If B=0: |A|=0 and |A|≤0 mean A=0; |A| < 0 has none; |A| > 0 means A≠0; |A|≥0 holds for every allowed input.

How

  1. Get the absolute value alone. In an inequality, negative multiplication or division flips the sign. In an equation, equality remains equality.
  2. Inspect B, the number on the other side, after that isolation.
  3. If B is negative, equality or a smaller distance is impossible. A greater distance accepts every allowed input.
  4. If B is zero, decide whether the sign requires equality, excludes zero distance, or allows every nonnegative distance.
  5. For a required zero distance, solve A = 0 to find the center input. Substitute it back to confirm distance zero. For positive distance, exclude exactly the inputs where A = 0.
  6. If B is positive, use two equations for equality, between for a smaller distance, or outside for a greater distance. Check the answer in the original problem.

Worked example

Worked example

A negative coefficient hides a zero limit

Solve −2|x − 6| + 4 ≥ 4, and then solve −2|x − 6| + 4 > 4.

What it asks. For the same function, first find inputs with output at least four. Then find inputs with output strictly greater than four.

Show the steps and the answer

The plan. Undo the outside addition and negative multiplier in each comparison, then inspect whether the distance can be at most zero or below zero.

(6, 4)range246810−4−224
The same picture again: y = −2|x − 6| + 4, solid, beside y = 4, dashed.
  1. Plan. Undo the outside addition and negative multiplier in each comparison, then inspect whether the distance can be at most zero or below zero.
  2. Dividing by negative two reverses either comparison.
  3. At most zero allows distance zero.
  4. Below zero allows no distance.
  1. For the first condition, subtract 4: −2|x−6|≥0.This undoes the outside addition before inspecting the isolated distance.
  2. Divide by −2: |x−6|≤0.The negative divisor changes the at least comparison into an at most comparison.
  3. Set x − 6 = 0 and add 6: x=6.A nonnegative distance at most zero must equal zero, so this finds the only center input.
  4. Substitute x = 6 into the original: −2|6−6|+4=−2×0+4=4.The result confirms that this input passes the first inclusive comparison.
  5. For the second condition, subtract 4: −2|x−6|>0.The outside addition is removed in the same way, but the comparison remains strict.
  6. Divide by −2: |x−6|<0.Negative division changes greater than into less than.
  7. There is no solution to the second condition.No distance can be below zero, so no input can make the original output exceed four.
Answer
  • For output at least 4: x = 6
  • Set for that answer: {6}
  • For output greater than 4: no solution
  • Set for that answer: ∅
Double-check The greatest output of the downward V is 4, attained only at its vertex (6, 4). It can reach 4 but can never exceed 4.

The trap

Using the formulas for B positive before checking the isolated limit. |x − 6| > −2 is true for every real x, so it does not need a pair of boundary equations.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Every distance beats a negative limit

Solve |2x − 1| ≥ −3.

What it asks. Find all inputs whose distance expression is at least negative three.

Show the steps and the answer

The plan. Use nonnegative distance instead of splitting into two branches.

(−∞, ∞)
Every real input passes this comparison.
  1. Plan. Use nonnegative distance instead of splitting into two branches.
  2. Zero is already greater than negative three.
  3. The inside expression is defined for every real input.
  1. |2x−1|≥0>−3.All values of the bars are nonnegative.
  2. Every real x satisfies the condition.The linear expression is defined at every real input.
Answer
(−∞,∞).
Double-check At x = 12, 2x − 1 = 1 − 1 = 0, the smallest possible distance. Since 0 ≥ −3, this input passes; every larger distance also passes.

7 Inverse functions

about 21 min7 lessonsOpen the unit's crash course

7.1 Undoing a function, and what f^-1 means

about 3 minOpen the full lesson

The rule

When f has an inverse function and f(a)=b, then f−1(b)=a.

The inverse function f−1 takes each output of f back to the input it came from. The −1 is part of the name, not a power: f−1(x) does not mean 1f(x).

How

  1. Read f−1(b) as a question in plain words: b came out of f. Which input went in?
  2. Rewrite the question as f(?) = b. The number inside f−1( ) is an output of f.
  3. Find that input. In a table, find b in the output row and read the input above it. With a formula, set the formula equal to b and solve for x.
  4. Write the answer as f−1(b) = the input you found.
  5. Check by going forward: put your answer into f and confirm that b comes out.

Worked example

Worked example

Reading f−1(7) from a table, and telling it apart from two look-alikes

The table shows a function f. Find f−1(7). Then show that the answer is not f(7) and not 1f(7). In plain words, f−1(7) asks: 7 came out of f, which input went in?

input xoutput f(x)15293742710
x: 1, 2, 3, 4, 7; f(x): 5, 9, 7, 2, 10.
Show the steps and the answer
input xoutput f(x)15293742710↑ solve: output given, read every input above it
The 7 in the output row is highlighted, and the arrow points up to its input, 3.
  1. Say what is asked. f−1(7) means: 7 came out of f. Find the input that went in.f−1 takes an output of f back to its input, so the 7 here is an output of f, not an input.
  2. Rewrite the question as f(?) =7.f(a) = b and f−1(b) = a are the same fact read in two directions.
  3. Look along the bottom row of the table, the f(x) row, for 7. It appears once, in the third column.The bottom row holds the outputs of f, and 7 is being used as an output.
  4. Read the input directly above that 7. It is 3. So f(3)=7.In the table each output sits under the input that produced it.
  5. Write the answer: f−1(7)=3.The rule says f(a) = b gives f−1(b) = a. Here a = 3 and b = 7.
  6. Compare with f(7). Find 7 in the top row, in the last column. Below it is 10, so f(7)=10.f(7) uses 7 as an input. f−1(7) uses 7 as an output. Those are different questions, and here their answers differ: 3 and 10.
  7. Compare with 1f(7). Since f(7)=10, this is 110.1 over f(7) is 1 divided by an output. It is a reciprocal, not the inverse function.
Answer
  • f−1(7)=3
  • f(7) = 10, a different question
  • 1f(7) = 110, a reciprocal and not an inverse
Double-check Go forward. Put the answer 3 into f: the column under the input 3 shows 7, so f(3) = 7. Since f turns 3 into 7, undoing f turns 7 back into 3. The answer holds.

The trap

Reading f−1(x) as 1f(x). On the name of a function, −1 means inverse, not 1 over. To avoid the mistake, say f inverse out loud and turn f−1(b) into the question f(?) = b before you compute anything. When 1 over f(x) is meant, it is written 1f(x)−1 or [f(x)], with the −1 outside brackets.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A formula with one step

Let g(x) = x + 5. Find g−1(12). In plain words: 12 came out of g, which input went in?

Show the steps and the answer
12g⁻¹: undo add 5, sosubtract 5inputoutput7
The inverse of adding 5 is subtracting 5, so 12 goes back to 7.
  1. Rewrite the question as g(x)=12, which is x+5=12.g−1(12) is the input that g turns into 12. This equation finds that one input.
  2. Subtract 5 from both sides: x=12−5=7.g added 5, and subtracting 5 undoes adding 5.
  3. Write g−1(12)=7.7 is the input whose output is 12.
Answer
g−1(12)=7
Double-check Go forward: g(7) = 7 + 5 = 12. The output is 12, as required.

7.2 Checking that two functions are inverses

Open the full lesson

The rule

Two functions f and g are inverses of each other exactly when both of these are true: f(g(x))=x for every input x that g accepts, and g(f(x))=x for every input x that f accepts.

When both hold, g is f−1 and f is g−1. If either one fails, even for a single input, they are not inverses.

How

  1. Write down both rules, f(x) and g(x), side by side.
  2. First order, f(g(x)): copy the rule for f, but wherever it has x, write an empty pair of parentheses. Then put the whole formula for g(x) inside the parentheses.
  3. Simplify. The result must be exactly x. Not x + 2, not 3x, not −x.
  4. Second order, g(f(x)): copy the rule for g with empty parentheses in place of x, and put the whole formula for f(x) inside.
  5. Simplify. Again the result must be exactly x.
  6. Decide. If both orders gave x, for every input the inner function accepts, f and g are inverses. If either one gave anything else, they are not, and you can stop at the first failure.
  7. Spot check with one number: pick a number f accepts, run it through f and then g, and confirm it comes back. Then pick a number g accepts and run it through g and then f.

Worked example

Worked example

A linear pair, checked in both orders

Are f(x) = 3x − 5 and g(x) = x+53 inverses of each other? In plain words: if you run any number through one of them and then through the other, in either order, do you always get that number back?

Show the steps and the answer
4f: times 3,then minus 5g: plus 5,then divide by3firstsecond74
The 4 that goes into f comes back out of g, which is what g(f(x)) = x looks like for one number.
  1. Write the plan: compute f(g(x)) and g(f(x)), and see whether each one simplifies to x.Being inverses is a two-way promise, so there are two things to test.
  2. Start f(g(x)). The rule for f is f( ) = 3( ) − 5. Put g(x) in the parentheses: f(g(x))=3·x+53−5.f(g(x)) means g goes first and its whole output becomes the input of f.
  3. Simplify 3·x+53 to x+5.Multiplying by 3 cancels dividing by 3, the same way 3 · 123 = 12.
  4. Now f(g(x))=x+5−5=x.Adding 5 and then subtracting 5 leaves nothing extra. The first order passes.
  5. Start g(f(x)). The rule for g is g()=()+53. Put f(x) in the parentheses: g(f(x))=(3x−5)+53.g(f(x)) means f goes first and its whole output becomes the input of g.
  6. Simplify the top: 3x−5+5=3x. So g(f(x))=3x3.−5 and +5 add to 0.
  7. 3x3=x.Dividing by 3 cancels multiplying by 3. The second order passes.
  8. Both orders gave exactly x, so f and g are inverses.That is the rule: f(g(x)) = x and g(f(x)) = x together.
Answer
  • f(g(x)) = x
  • g(f(x)) = x
  • Yes, f and g are inverses of each other, so g = f−1.
Double-check A second way, with a real number in place of x. Start with 4. f first: f(4) = 3 · 4 − 5 = 7, then g(7) = 7+53 = 123 = 4. Back to 4. Now g first: g(4) = 4+53 = 93 = 3, then f(3) = 3 · 3 − 5 = 4. Back to 4 again. Both round trips agree with the algebra.

The trap

Stopping after one order. Getting f(g(x)) = x feels like the finish, but it is half of the test. With f(x) = x2 and g(x) = x, the first order gives (x)2 = x and passes, while the second order gives g(f(−3)) = 9 = 3, which is not −3. Always write both lines, f(g(x)) and g(f(x)), before you answer yes.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

A pair that looks right and is not

Are f(x) = 2x + 6 and g(x) = x2 − 6 inverses? The question asks whether both round trips return x. One failure is enough to say no.

Show the steps and the answer
  1. f(g(x))=2(x2−6)+6.f doubles its whole input and adds 6. The input is all of g(x), so it goes in parentheses.
  2. Distribute the 2: 2·x2=x and 2·(−6)=−12. So f(g(x))=x−12+6.The 2 multiplies both terms inside the parentheses.
  3. x−12+6=x−6.−12+6=−6.
  4. x−6 is not x, so stop here. They are not inverses.The result must be exactly x. A leftover −6 means the round trip lands 6 short every time.
Answer
  • f(g(x)) = x − 6, which is not x.
  • No, they are not inverses.
Double-check With the number 10: g(10) = 102 − 6 = −1, then f(−1) = 2 · (−1) + 6 = 4. You started at 10 and returned to 4, which is 10 − 6, as the algebra said. Changing the 6 in g to a 3 repairs the pair: with g(x) = x2 − 3, f(g(x)) = 2(x2 − 3) + 6 = x − 6 + 6 = x, and g(f(x)) = 2x+62 − 3 = (x + 3) − 3 = x.

7.3 One-to-one functions and the horizontal line test

about 3 minOpen the full lesson

The rule

A function f is a one-to-one function when different inputs always give different outputs: f(a) = f(b) happens only when a = b.

A function has an inverse function exactly when it is one-to-one. Horizontal line test: a function is one-to-one exactly when no horizontal line meets its graph at more than one point.

How

  1. Say the question in plain words: do any two different inputs share an output?
  2. From a table or a list of pairs: read along the outputs. A value that sits under two different inputs means the function is not one-to-one. No repeated output means it is one-to-one.
  3. From a graph: hold a horizontal line at the bottom of the picture and slide it to the top. If at any height it meets the graph at two or more points, the function is not one-to-one. If it meets the graph at most once at every height, the function is one-to-one.
  4. From a formula: look at its graph and use the horizontal line test, or write f(a) = f(b) and see whether that forces a = b.
  5. To say a function is not one-to-one, write down the proof: two different inputs and the output they share, such as f(−2) = 4 and f(2) = 4.
  6. State the conclusion about undoing: a one-to-one function has an inverse function, and a function that is not one-to-one does not.

Worked example

Worked example

Can f(x) = x2 − 3 be undone?

Decide whether f(x) = x2 − 3 is a one-to-one function, and say whether it has an inverse function. In plain words: do any two different inputs give the same output?

Show the steps and the answer
(−2, 1)(2, 1)−4−224−4−2246
The flat line at height 1 meets the graph twice, above x = −2 and above x = 2.
input xoutput f(x)−21−1−20−31−221↑ solve: output given, read every input above it
The output 1 sits under two different inputs, −2 and 2.
  1. Look at the graph of f: a U shape with its lowest point at (0,−3).x2 is never negative and equals 0 only when x = 0, so the smallest output is 0 − 3 = −3. On either side of 0 the outputs climb.
  2. Lay a horizontal line across the graph at height 1. This is the line y=1.Every point on that line has output 1, so wherever it meets the graph, the function's output is 1. Height 1 is above the lowest point, so the line cuts through both arms of the U.
  3. Read the meeting points: (−2,1) and (2, 1).The line crosses the left arm above x = −2 and the right arm above x = 2.
  4. Confirm with the formula: f(−2)=(−2)2−3=4−3=1, and f(2)=22−3=4−3=1.Reading a graph by eye can be slightly off, and the formula settles it. (−2)2 = (−2) × (−2) = 4, because a negative times a negative is positive.
  5. Conclude that f is not a one-to-one function.Two different inputs, −2 and 2, share the output 1. One tied pair is enough.
  6. Conclude that f has no inverse function.f−1(1) would have to be −2 and also 2, and a function gives only one output for each input.
Answer
  • f(x) = x2 − 3 is not a one-to-one function, because f(−2) = 1 and f(2) = 1.
  • It fails the horizontal line test, so it has no inverse function.
Double-check A second way, without the graph: build a table for x = −2, −1, 0, 1, 2. The outputs are 1, −2, −3, −2, 1. In the output row, 1 appears twice (under −2 and under 2) and −2 appears twice (under −1 and under 1). Repeated outputs under different inputs give the same verdict: not one-to-one.

The trap

Using the wrong line. A vertical line tests whether a graph is a function at all. A horizontal line tests whether that function is one-to-one. The graph of y = x2 passes the first test and fails the second. Say the question out loud before you draw the line: "does one input have two outputs?" calls for a vertical line, and "do two inputs share one output?" calls for a horizontal line.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

A slanted straight line

Is f(x) = 2x − 1 a one-to-one function? In plain words: can two different inputs ever give the same output?

Show the steps and the answer
(2, 3)−224−4−2246
The flat line at height 3 meets the slanted line at one point only, (2, 3).
  1. Look at the graph: a straight line that climbs steadily from left to right.Each step of 1 to the right adds 2 to the output: f(0) = −1, f(1) = 1, f(2) = 3.
  2. Lay the horizontal line y=3 across it. It meets the graph once, at (2, 3).A climbing line passes through each height one time and never comes back to it.
  3. Slide the horizontal line to any other height. There is still one meeting point.The line keeps climbing to the right and keeps falling to the left, so it reaches every height exactly once.
  4. Conclude that f passes the horizontal line test.No horizontal line meets the graph at more than one point.
Answer
Yes. f(x) = 2x − 1 is a one-to-one function, so it has an inverse function.
Double-check With algebra: suppose two inputs a and b give the same output, so 2a − 1 = 2b − 1. Add 1 to both sides: 2a = 2b. Divide both sides by 2: a = b. The two inputs were the same number all along, so different inputs cannot share an output.

7.4 Domain and range trade places

about 3 minOpen the full lesson

The rule

If f is a one-to-one function, then: domain of f−1= range of f, and range of f−1= domain of f.

How

  1. Make sure f is a one-to-one function, so that f−1 exists: no output repeated in a table, or a graph that passes the horizontal line test.
  2. Find the domain of f: every input f allows.
  3. Find the range of f: every output f actually produces. List only outputs that really come out, not every number you can imagine.
  4. Trade the two lists. Domain of f−1 = range of f. Range of f−1 = domain of f.
  5. Check with one pair. Pick an allowed input a and compute b = f(a). Then f−1(b) = a, so b must sit in your new domain and a must sit in your new range.

Worked example

Worked example

The domain and range of an inverse, with no formula for the inverse

The function f(x) = x−2 + 1 is a one-to-one function, so it has an inverse function. Without finding a formula for f−1, find the domain and the range of f−1. In plain words: which numbers may go into f−1, and which numbers can come out of it?

Show the steps and the answer
(2, 1)(6, 3)domainrange2468101212345
The shadow on the x-axis starts at 2, the domain of f, and the shadow on the y-axis starts at 1, the range of…
  1. Find the domain of f. The inside of the root must be 0 or more: x−2≥0, so x≥2. Domain of f: [2,∞).A negative number has no real square root. Solving x − 2 ≥ 0 finds the smallest input the root accepts. Plug it in to see: f(2) = 0 + 1 = 1, which works, while f(1) would need −1, which is not a real number.
  2. Find the range of f. The root x−2 is 0 at x=2 and grows without end as x grows. Adding 1 lifts every output by 1, so f(x)≥1. Range of f: [1,∞).A square root never comes out negative, so its smallest value is 0 and the smallest output of f is 0 + 1 = 1. The outputs then climb through every number above 1: f(2) = 1, f(3) = 2, f(6) = 3, f(11) = 4.
  3. Trade the first list. Domain of f−1= range of f=[1,∞).f−1 can only accept numbers that f actually produces, and those are the numbers from 1 up.
  4. Trade the second list. Range of f−1= domain of f=[2,∞).f−1 hands back the inputs of f, and those are the numbers from 2 up.
Answer
  • Domain of f−1: [1, ∞)
  • Range of f−1: [2, ∞)
Double-check Test one pair. f(6) = 6−2 + 1 = 4 + 1 = 2 + 1 = 3, so f−1(3) = 6. The input 3 is in [1, ∞) and the output 6 is in [2, ∞). Now test a number outside. Could f−1(0) exist? That would need x−2 + 1 = 0, so x−2 = −1, and a square root is never negative. So 0 is not allowed into f−1, which agrees with [1, ∞).

The trap

Writing the domain of f again as the domain of f−1. The two functions trade their lists, and the two lists are often different. For f(x) = x−2 + 1 the tempting answer is 'domain of f−1: [2, ∞)', but [2, ∞) is what f−1 gives back, not what it takes in. To avoid this, write two labeled lines before you answer, 'goes into f−1' and 'comes out of f−1', and fill the first line from the outputs of f.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

A square root that is subtracted

f(x) = 5 − x+4 is a one-to-one function. Find the domain and the range of f−1 without finding its formula. In plain words: which numbers does f produce, since those are the ones f−1 accepts, and which numbers does f accept, since those are the ones f−1 returns?

Show the steps and the answer
(−4, 5)(0, 3)domainrange−44812246
The graph starts at height 5 and only falls, so its shadow on the y-axis is 5 and everything below.
  1. Find the domain of f. The inside of the root must be 0 or more: x+4≥0, so x≥−4. Domain of f: [−4,∞).A negative number has no real square root. Solving x + 4 ≥ 0 finds the smallest input the root accepts. Plug it in to see: f(−4) = 5 − 0 = 5, which works, while f(−5) would need −1.
  2. Find the range of f. The root x+4 starts at 0 and grows without end, so 5−x+4 starts at 5 and falls without end: f(−4)=5,f(0)=3,f(5)=2,f(12)=1. Range of f: (−∞,5].The root is never negative, and here it is taken away from 5. Taking away 0 or more leaves 5 or less. This is the gotcha: the range runs down from 5, not up from it.
  3. Trade them. Domain of f−1=(−∞,5]. Range of f−1=[−4,∞).The outputs of f are the inputs of f−1, and the inputs of f are its outputs. The square bracket at 5 and the square bracket at −4 each stay with their own list.
Answer
  • Domain of f−1: (−∞, 5]
  • Range of f−1: [−4, ∞)
Double-check f(0) = 5 − 4 = 5 − 2 = 3, so f−1(3) = 0. The 3 is in (−∞, 5] and the 0 is in [−4, ∞). Try a number outside: 6 would need 5 − x+4 = 6, so x+4 = −1, and a square root is never negative. So 6 is not in the domain of f−1.

7.5 Reading an inverse from a table and from a graph

about 4 minOpen the full lesson

The rule

If f is a one-to-one function, then: (1) the table of f−1 is the table of f with its two rows traded; (2) the point (a, b) is on the graph of f exactly when the point (b, a) is on the graph of f−1; (3) the graph of f−1 is the graph of f reflected (flipped, as in a mirror) across the line y=x.

How

  1. Check that f is a one-to-one function. In a table, no number may appear twice in the output row. On a graph, use the horizontal line test: no horizontal line may meet the graph twice.
  2. To find one value, such as f−1(7), say what it asks: 'f gave the output 7; which input was it?' Find 7 in the output row of f, or at height 7 on the y-axis, and read back to the input.
  3. To get the whole table of f−1, trade the two rows. The old output row becomes the new input row.
  4. If you want the new inputs in order from smallest to largest, slide whole columns. Never separate an input from its own output.
  5. To get the graph of f−1, pick several clear points on the graph of f, write each one as (a, b), and swap it to (b, a).
  6. Plot the swapped points and join them with the same kind of shape the original had. Draw the line y = x lightly: each point and its swap must sit straight across that line from each other, the same distance away.
  7. Check one value both ways: if you wrote f−1(b) = a, the table or graph of f must show f(a) = b.

Worked example

Worked example

A table read backward

The first table shows a function g. In plain words, g−1 reads that table backward: it starts from an output of g and returns the input it came from.
(a) Does g have an inverse function?
(b) Write the table of g−1.
(c) Find g−1(7) and g−1(0).
(d) The point (3, 7) is on the graph of g. Which point does that put on the graph of g−1?

input xoutput g(x)−24011−33760
x:−2,0,1,3,6;g(x):4,1,−3,7,0.
Show the steps and the answer
input xoutput g(x)−24011−33760↑ solve: output given, read every input above it
The table of g, with the output 7 highlighted and an arrow up to its input 3.
input xoutput g⁻¹(x)−3106104−273↓ evaluate: input given, read the output below it
The table of g−1.
  1. Look along the g(x) row of the first table and see whether any number appears twice.Only a one-to-one function can be undone, and one-to-one means no two inputs share an output. The five outputs are all different, so g is a one-to-one function and g−1 exists.
  2. Trade the two rows of the first table. The g(x) row becomes the new input row and the x row becomes the new output row. For example, the column with −2 over 4 becomes a column with 4 over −2.Each column of g says g(a) = b. The inverse function sends b back to a, so b goes on top as the input and a goes underneath as the output.
  3. Slide whole columns so the new inputs run from smallest to largest. The second table is the result. Its first column, −3 over 1, came from the old column 1 over −3.The order of the columns does not change what a table says, as long as each input keeps its own output. Inputs in order are quicker to read.
  4. Find g−1(7). Look for 7 in the g(x) row of the first table. It sits under x=3, so g−1(7)=3.g−1(7) asks which input of g produced the output 7. The first table says g(3) = 7.
  5. Find g−1(0). Look for 0 in the g(x) row of the first table, not in the x row. It sits under x=6, so g−1(0)=6.The 0 in the x row belongs to the fact g(0) = 1, which answers a different question. For the inverse function, 0 has to be an output of g, and the first table says g(6) = 0.
  6. Swap the two numbers in (3, 7) to get (7, 3).The point (3, 7) on the graph of g says g(3) = 7. That is the same fact as g−1(7) = 3, which is the point (7, 3) on the graph of g−1.
Answer
  • (a) Yes. No output of g repeats, so g is a one-to-one function.
  • (b) The second table: g−1(−3) = 1, g−1(0) = 6, g−1(1) = 0, g−1(4) = −2, g−1(7) = 3.
  • (c) g−1(7) = 3 and g−1(0) = 6.
  • (d) (7, 3)
Double-check Feed each answer back into g. Composing a function with its inverse function must return the number you started with: g(g−1(7)) = g(3) = 7, and g(g−1(0)) = g(6) = 0. Both come back correctly. A second look: the inputs in the table of g−1 are −3, 0, 1, 4 and 7, which are exactly the outputs of g, as they must be because domain and range trade places.

The trap

Reading in the forward direction. For f−1(5), the 5 is an output of f, so look for it in the output row of the table, or at height 5 on the y-axis of the graph. If you look for 5 in the input row, or at 5 on the x-axis, you find f(5), the answer to the forward question. Before you read anything, say the question aloud: 'f gave 5; what went in?'

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Flipping the points of a graph

The solid line in the first picture is the graph of a function f. It passes through (0, 3), (2, 2), (4, 1) and (6, 0). In plain words: each point is an input and output pair of f, and the inverse function owns the same pairs in the opposite order.
(a) Give four points on the graph of f−1.
(b) Where does the graph of f−1 cross each axis?
(c) Which point is on both graphs?

(0, 3)(2, 2)(4, 1)(6, 0)246246
The graph of f with four clear points to swap.
(0, 3)(3, 0)(4, 1)(1, 4)(6, 0)(0, 6)(2, 2)246246
The dashed line through the swapped points is f−1, and the two lines meet at (2, 2), a point on the line y =…
Show the steps and the answer
  1. Check that f can be undone. The graph is a slanted straight line, so every horizontal line meets it exactly once.Passing the horizontal line test means f is a one-to-one function, so the inverse function exists.
  2. Swap the two numbers in each point: (0, 3) becomes (3, 0), (2, 2) becomes (2, 2), (4, 1) becomes (1, 4), and (6, 0) becomes (0, 6).A point (a, b) on the graph of f says f(a) = b, which is the same fact as f−1(b) = a, the point (b, a).
  3. Find the axis crossings. (3, 0) has second number 0, so it is on the x-axis. (0, 6) has first number 0, so it is on the y-axis.The swap trades the two axes. f crossed the y-axis at (0, 3), so f−1 crosses the x-axis at (3, 0). f crossed the x-axis at (6, 0), so f−1 crosses the y-axis at (0, 6).
  4. Notice that (2, 2) did not change.Its two numbers are equal, so it lies on the line y = x, the mirror. A point on the mirror is its own reflection, so both graphs pass through it.
  5. Plot the four swapped points and join them. The second picture shows the result as a dashed line.The mirror image of a straight line is a straight line, so the swapped points line up.
Answer
  • (a) (3, 0), (2, 2), (1, 4) and (0, 6)
  • (b) It crosses the x-axis at (3, 0) and the y-axis at (0, 6).
  • (c) (2, 2), which lies on the line y = x.
Double-check Read one fact both ways: the solid line gives f(4) = 1 and the swapped point (1, 4) gives f−1(1) = 4. Compose them: f−1(f(4)) = f−1(1) = 4, back where you started. Also list the swapped points left to right: (0, 6), (1, 4), (2, 2), (3, 0). Each step of 1 to the right goes down 2, a steady pattern, so they do sit on one straight line.

7.6 Restricting a domain so an inverse exists

about 5 minOpen the full lesson

The rule

A restricted domain is a smaller set of inputs than the full domain of a function.

If f fails the horizontal line test, choose a restricted domain on which f is one-to-one. On that piece f has an inverse function. The usual choice also keeps every output of f, so the inverse accepts all of them. For f(x)=x2 the usual restricted domain is x≥0, written [0,∞). The domain of f−1 is then the range of f, and the range of f−1 is the restricted domain.

How

  1. Run the horizontal line test on the whole graph. If no horizontal line meets it twice, stop: the function already has an inverse and needs no restriction.
  2. If the test fails and the graph turns around once, as a parabola or an absolute value graph does, find that turn. For a squared expression, the turn is where the part being squared equals 0. For x2 that is x = 0. For (x − 2)2 it is x = 2.
  3. For a graph with that one turn, keep the turning point and everything on one side of it. Unless the problem names a side, keep the right side: x ≥ the turning value.
  4. Run the horizontal line test again on the kept piece only. Every horizontal line must now meet it at most once.
  5. Check whether any output was lost. The usual choice keeps the range of the whole function; a piece with a smaller range still has an inverse, but that inverse accepts fewer numbers.
  6. Write the restricted domain next to the formula, for example f(x) = x2, x ≥ 0. It is now part of the function.
  7. Trade places: the domain of f−1 is the range of f, and the range of f−1 is the restricted domain. Every answer the inverse gives must lie in the restricted domain.

Worked example

Worked example

Restricting y = x2 and undoing an output

The function f(x) = x2 fails the horizontal line test. Choose a restricted domain so that f has an inverse, give the domain and range of f−1, and find f−1(25).

Show the steps and the answer
(−5, 25)(5, 25)−6−4−224639152127
On the whole parabola the line at height 25 meets the graph twice, once on each side of 0.
input xoutput f(x)00112439416525↑ solve: output given, read every input above it
On the kept piece each output appears once, and 25 points back to the single input 5.
  1. Say what the question asks in plain words: pick a piece of the inputs on which no two inputs share an output. Then, for the output 25, find the one kept input that gives it.An inverse sends each output back to one input, so shared outputs have to go before anything can be undone.
  2. Show the problem with numbers: f(−5)=(−5)2=25 and f(5)=52=25. In the first picture, the horizontal line at height 25 meets the graph at (−5,25) and at (5, 25).Two inputs share the output 25, so f is not a one-to-one function on all x. Undoing 25 would have two answers.
  3. Find where the graph turns around. x2 is smallest when x=0, where it equals 0. Left of 0 the graph falls. Right of 0 it climbs.A square is never negative, so 0 is the lowest output. The repeats happen because the climb on the right retraces the heights of the fall on the left.
  4. Keep the turning point and the right side: x≥0, written [0,∞).No side is named in the problem, so use the convention. This removes one input from every pair that shared an output.
  5. Test the kept piece. For inputs 0 or more, a bigger input always gives a bigger square, so the graph only climbs and every horizontal line meets it at most once.A graph that only climbs can never come back to a height it has already passed.
  6. Check the range. The kept piece starts at height 0 and climbs without end, so its range is y≥0, written [0,∞). The whole parabola had the same range.Each output that came from a negative input also comes from its positive partner, so nothing was lost.
  7. Trade places. Domain of f−1: [0,∞), the range of f. Range of f−1: [0,∞), the restricted domain.The inputs of the inverse are the outputs of f, and the outputs of the inverse are the kept inputs of f.
  8. Find f−1(25). The output is 25. The kept input that gives it is 5, since 52=25 and 5≥0. So f−1(25)=5.The input −5 also squares to 25, but −5 is not in the restricted domain, so it cannot be an answer.
Answer
  • Restricted domain: x ≥ 0, or [0, ∞).
  • Domain of f−1: [0, ∞).
  • Range of f−1: [0, ∞).
  • f−1(25)=5.
Double-check A second way: look at the table of the kept piece. In the output row no number appears twice, and 25 sits in one column only, the column under the input 5. So the point (5, 25) is on the kept graph, and flipping it gives (25, 5) on the graph of the inverse, which says f−1(25) = 5.

The trap

The most common mistake is to restrict the domain on paper and then forget it. Once you keep x ≥ 0 for f(x) = x2, the inputs −1, −2, −3 and the rest are gone. So f−1(9) is 3 only. It is not "3 or −3", and it is not −3. To avoid the mistake, write the restricted domain beside the formula every time you write the function, and check that each answer from the inverse lies inside the restricted domain.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A piece that is too big

Someone restricts f(x) = x2 to −1 ≤ x ≤ 3 and says it now has an inverse. Is that right? If not, repair the restricted domain and give the domain and range of the inverse.

Show the steps and the answer
(−1, 1)(1, 1)22468
On −1 ≤ x ≤ 3 the line at height 1 still meets the graph twice, so this piece is too big.
  1. Say what the question asks in plain words: do any two inputs between −1 and 3 share an output? If they do, cut the piece down until none do.A restricted domain works only if the function is a one-to-one function on all of it.
  2. Try a pair on opposite sides of 0: f(−1)=(−1)2=1 and f(1)=12=1. Both −1 and 1 lie between −1 and 3.The piece reaches past the turning point at 0, so part of the left side is still there to share outputs. The horizontal line at height 1 meets this piece twice, so it fails.
  3. Cut at the turn: keep 0≤x≤3, written [0, 3].x2 is smallest at x = 0. From 0 to 3 the graph only climbs, so no height is reached twice.
  4. Find the range of the repaired piece. The lowest output is f(0)=0 and the highest is f(3)=9, so the range is 0≤y≤9, written [0, 9].The piece climbs from (0, 0) to (3, 9) and passes every height in between.
  5. Compare with the range before the repair. On −1≤x≤3 the lowest output was also 0 and the highest was also 9.The inputs that were removed, from −1 up to 0, gave outputs between 0 and 1. The inputs from 0 to 1 still give those outputs, so nothing was lost.
  6. Trade places. Domain of f−1: [0, 9]. Range of f−1: [0, 3].The domain of the inverse is the range of f, and the range of the inverse is the restricted domain.
Answer
  • No. The inputs −1 and 1 both give 1.
  • Repaired restricted domain: 0 ≤ x ≤ 3, or [0, 3].
  • Domain of f−1: [0, 9].
  • Range of f−1: [0, 3].
Double-check Test one of the removed inputs. f(−12) = (−12) × (−12) = 14, since the tops multiply to 1 and the bottoms multiply to 4. The kept input 12 also gives 14. So the output 14 is still reached, and now by one input only.

7.7 Finding the inverse of a formula by swapping and solving

about 3 minOpen the full lesson

The rule

For a one-to-one function f: write y=f(x), swap x and y to get x=f(y), solve for y, and name the result f−1(x).

If solving produces ±, the domain of f picks the sign, because the outputs of f−1 are the inputs of f. The domain of f−1 is the range of f.

How

  1. Make sure f is a one-to-one function on its domain. Use the horizontal line test, or use the restricted domain you are given. If two inputs share an output, stop: there is no inverse function yet.
  2. Write y in place of f(x). If the function comes with a domain condition such as x ≥ 0, write it beside the equation.
  3. Swap the letters. Every x becomes y and every y becomes x, in the equation and in the domain condition. So x ≥ 0 becomes y ≥ 0.
  4. Solve the swapped equation for y. One y: undo the steps in reverse order. Two y's in a fraction: clear the fraction, gather the y terms on one side, factor y out, divide. A squared y: take the square root of both sides and write ±.
  5. If ± appeared, keep the one sign that fits the condition on y.
  6. Write f−1(x) = your result, and state its domain, which is the range of f.
  7. Check. Send one number through f, then send the result through f−1. You should land on the number you started with.

Worked example

Worked example

First full run: a linear function

Find the inverse function of f(x) = 4x − 7. In plain words: f multiplies its input by 4, then subtracts 7. Find the formula that takes each output back to the input it came from.

Show the steps and the answer
=x4y − 7do the same thing to both sides
After the swap the scale reads x on one side and 4y − 7 on the other.
  1. Confirm an inverse function exists.The graph of f is a slanted straight line, and a horizontal line meets a slanted line once. So f is a one-to-one function.
  2. Write y=4x−7.y is a short name for the output f(x). It makes the swap possible to write.
  3. Swap the letters: x=4y−7.The inverse function holds the same pairs turned around. From here on, x stands for an old output and y for the old input we are hunting.
  4. Add 7 to both sides: x+7=4y.Subtracting 7 was the last thing done to y, so it is undone first. This leaves the 4y term alone on its side.
  5. Divide both sides by 4: x+74=y.The 4 multiplies y, so dividing by 4 leaves y alone. The whole of x + 7 is divided, not only the 7.
  6. Rename y: f−1(x)=x+74.y alone on one side is the output of the inverse function, written as a rule in x.
Answer
f−1(x)=x+74
Double-check With a number: f(5) = 4 · 5 − 7 = 13, and f−1(13) = 13+74 = 204 = 5, the number we started with. By composing both ways: f(f−1(x)) = 4 · x+74 − 7 = (x + 7) − 7 = x, and f−1(f(x)) = (4x−7)+74 = 4x4 = x.

The trap

The most common mistake comes with the square root. After x = y2, people write y = x out of habit, or leave y = ±x as the answer. Neither is safe. Write ± first, then look at the condition on y that came from the domain of f, and keep the one sign that fits it. For x ≥ 0 that is x. For x ≤ 0 it is −x. Then test with a number from the domain of f: it must come back to itself.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 8

X on the bottom only

Find f−1(x) for f(x) = 3x−2. In plain words: f subtracts 2 from its input, then divides 3 by the result. Find the rule that takes each output back.

Show the steps and the answer
  1. Note the domain of f: x≠2. Then write y=3x−2 and swap: x=3y−2.x = 2 would make the bottom zero. The graph is y = 1x stretched and shifted, which no horizontal line meets twice, so f is a one-to-one function.
  2. Multiply both sides by (y − 2): x(y−2)=3.Multiplying by the bottom cancels it, so y is no longer trapped under a fraction bar.
  3. Divide both sides by x: y−2=3x.x multiplies the bracket, so dividing by x frees it. This is allowed because x is never 0 here: x stands for an output of f, and 3 divided by a number is never 0.
  4. Add 2 to both sides: y=3x+2.This undoes the subtraction and leaves y alone.
  5. Rename and state the domain: f−1(x)=3x+2, with x≠0.The domain of f−1 is the range of f, and f never gives the output 0.
Answer
  • f−1(x)=3x+2
  • Domain of f−1: x ≠ 0
Double-check f(5) = 35−2 = 33 = 1 and f−1(1) = 31 + 2 = 5. A second number: f(3) = 31 = 3 and f−1(3) = 33 + 2 = 1 + 2 = 3.

8 Linear functions

about 12 min9 lessonsOpen the unit's crash course

8.1 One steady change, four ways to show it

about 2 minOpen the full lesson

The rule

A linear function has form f(x)= mx +b, where fixed real numbers m and b give the constant rate m and input-zero output b.

Its graph lies on a straight nonvertical line. If m≠0, it is a polynomial of degree 1; if m=0, it is a constant function.

How

  1. Name the input and output with their units.
  2. Find the starting amount b and constant rate m.
  3. Write words and formula, calculate table columns, and plot the same pairs.
  4. Keep the inputs permitted by the story.

Worked example

Worked example

A small rule, then the train

OpenStax problem

Find an output means put in the named input and calculate what comes out. Evaluate f(1) for f(x) = 2x + 1. Then represent D(t) = 83t + 250 in words, formula, table, and graph at two seconds.

input t, secondsoutput D(t), meters0250133324163499
t, seconds: 0, 1, 2, 3; D(t), meters: 250, 333, 416, 499.
(0, 250)(−3.01, 0)starttwo secondsrun 1rise 832462186310434558
The same picture, shown 4 times now: y = 83x + 250, with its intercepts and slope marked.
Show the steps and the answer
input t, secondsoutput D(t), meters0250133324163499↓ evaluate: input given, read the output below it
The same picture a third time: t, seconds: 0, 1, 2, 3.
  1. f(1)=2×1+1=3.The input replaces x, then multiplication happens before addition.
  2. Say: the train starts 250 meters away and adds 83 meters each second.The starting amount and the per-second amount describe different parts of the trip.
  3. D(2)=83×2+250=166+250=416 meters.Two seconds add two groups of 83 to the starting distance.
  4. Read 416 directly below 2 in the train table.Each table column pairs its input with its output.
  5. Plot (2, 416), include (0, 250), and retain t≥0.Input is horizontal and output is vertical; elapsed time begins at zero.
Answer
  • Small rule: f(1) = 3.
  • Train words: 250 meters at the start plus 83 meters per second.
  • Train formula: D(t) = 83t + 250, t ≥ 0 while the speed lasts.
  • At two seconds: 416 meters, shown by the table column and point (2, 416).
Double-check Two equal one-second additions give 250 + 83 + 83 = 416, agreeing with formula, table, and graph.

The trap

Tip: Count the starting 250 once. Writing 333t would repeat the starting distance at every second.

8.2 Read the starting amount and the amount per step

about 3 minOpen the full lesson

The rule

In f(x)= mx +b, slope m is output change per input unit and initial value b=f(0).

The y-intercept or vertical intercept is the point (0, b).

How

  1. Identify input, output, and their units.
  2. Read the input coefficient as slope, with output-per-input units.
  3. Substitute zero to find the initial value and vertical intercept.
  4. Describe the start and rate in words, then evaluate any requested input.

Worked example

Worked example

Snow machine: starting depth and depth added per hour

A snow machine is switched on over a test patch at a ski hill. The snow depth on the patch, in inches, t hours after the machine is switched on is D(t) = 1.5t + 4. (a) Name the input and the output, with their units. (b) Give the slope with its units. (c) Find the initial value and the vertical intercept. (d) Describe the starting depth and the rate in words, then find D(6) and say what it means.

Show the steps and the answer
input time since switched on (hours)output snow depth (inches)0415.527613↓ evaluate: input given, read the output below it
Input–output table for D(t) = 1.5t + 4.
  1. Name the input and the output. Input: t, the time since the snow machine was switched on, in hours. Output: D(t), the snow depth on the patch, in inches.The slope is measured in output units per input unit and the initial value in output units, so the units have to be fixed before either number can be read.
  2. Compare D(t)=1.5t+4 with f(x)= mx +b. The coefficient of the input t is 1.5, so the slope is m=1.5incheshour, read as 1.5 inches per hour.In f(x) = mx + b the slope m is the change in output for each 1-unit increase in the input, so it carries output-per-input units: inches of depth per hour of running.
  3. Substitute t=0: D(0)=1.5(0)+4=0+4=4. So b=4: the initial value is 4 inches, and the vertical intercept is the point (0, 4).The initial value is b = f(0), the output when the input is zero; here t = 0 is the moment the machine is switched on. The vertical intercept is the point (0, b), where the graph meets the vertical axis.
  4. Describe the start and the rate in words: when the machine is switched on, the patch already has 4 inches of snow, and the machine adds 1.5 inches of depth for every hour it runs.The initial value b is the starting amount and the slope m is the amount added for each 1-hour step of the input, so together, with their units, they describe the model in context.
  5. Evaluate the requested input: D(6)=1.5(6)+4=9+4=13. After the machine has run for 6 hours, the snow on the patch is 13 inches deep.Evaluating D(6) means substituting 6 for t; the result is an output, so its unit is inches.
Answer
  • (a) Input t: hours since the machine was switched on
  • output D(t): snow depth in inches. (b) Slope m = 1.5 incheshour, so the depth grows 1.5 inches per hour. (c) Initial value D(0) = 4 inches
  • vertical intercept (0, 4). (d) The patch starts with 4 inches of snow and gains 1.5 inches each hour
  • D(6) = 13, so after 6 hours of running the snow is 13 inches deep.
Double-check Rate: D(6)−D(0)6−0 = 13−46 = 96 = 1.5 inches per hour, the same as the coefficient of t. Steps: D(1) = 1.5(1) + 4 = 5.5 and D(2) = 1.5(2) + 4 = 7, so the depth goes 4, 5.5, 7: it starts at 4 inches and each hour adds 1.5 inches.

Work to write

  1. Input: t = hours since the machine was switched on; output: D(t) = snow depth in inches
  2. Slope: m = 1.5 incheshour (1.5 inches per hour)
  3. D(0) = 1.5(0) + 4 = 4, so the initial value is b = 4 inches
  4. Vertical intercept: (0, 4)
  5. The patch starts with 4 inches of snow and gains 1.5 inches each hour
  6. D(6) = 1.5(6) + 4 = 13: after 6 hours the snow is 13 inches deep

The trap

Tip: At 33 feet, 14.322 PSI is the added pressure and 29.018 PSI is the total. Include the initial pressure when the question asks for pressure.

8.3 Increasing, decreasing and constant lines

about 3 minOpen the full lesson

The rule

In f(x)= mx +b, m > 0 gives an increasing linear function, m < 0 gives a decreasing linear function, and m=0 gives a constant function with a horizontal line.

How

  1. Write the formula as mx + b and keep the sign attached to m.
  2. Read the input coefficient; if the term is absent, m = 0.
  3. Use positive, negative, or zero slope to classify the function.
  4. Compare outputs at two increasing allowed inputs.
  5. Keep counting inputs whole and remaining counts nonnegative.

Worked example

Worked example

Three formulas, then three text-message models

OpenStax problem

Classify means say what happens to output as input grows. First classify f(x) = 3x − 2, g(x) = −12x + 5, and h(x) = 7. Then model sixty texts sent per day, texts remaining from a 500-text allowance at that rate, and a flat $50 monthly texting charge.

Show the steps and the answer
f(0)f(1)run 1rise 32−448
The same picture, shown 4 times now: y = 3x − 2.
g(0)g(2)run 2rise −124246
The same picture a third time: y = −0.5x + 5.
(0, 7)h(0)h(2)−222468
The same picture, shown 4 times now: y = 7.
input d, completed daysoutput R(d), texts remaining05003320820↓ evaluate: input given, read the output below it
The same picture a third time: d, completed days: 0, 3, 8; R(d), texts remaining: 500, 320, 20.
  1. For f, m=3>0; f(0)=−2 and f(1)=1, so the output increases.The positive coefficient adds three per step even though the start is negative.
  2. For g, m=−12<0; g(0)=5 and g(2)=−1+5=4, so the output decreases.Two input steps remove two halves, totaling one.
  3. For h, write h(x)=0x+7; h(0)=h(1)=7, so the output stays constant.An absent input term has coefficient zero.
  4. Let d count completed days within one billing month. Write sent texts as T(d)=60d, with positive slope sixty texts per day.Every completed day adds sixty to a starting sent count of zero.
  5. Write remaining texts as R(d)=500−60d. At day three, R(3)=500−180=320 texts, with negative slope −60 texts per day.Sent texts are removed from the original allowance.
  6. R(8)=500−480=20, but R(9)=500−540=−40. Keep the completed-day remaining model only through day eight.A remaining count cannot be negative.
  7. Write C(d)=50 dollars for the unlimited plan's charge within one billing month, with slope zero.The monthly charge does not vary with which day is observed.
Answer
  • f(x) = 3x − 2: increasing.
  • g(x) = −12x + 5: decreasing.
  • h(x) = 7: constant.
  • Sent texts: T(d) = 60d, increasing, using whole completed days within the month.
  • Remaining texts: R(d) = 500 − 60d, decreasing, using d in {0, 1, 2, 3, 4, 5, 6, 7, 8}.
  • Current monthly charge: C(d) = 50 dollars, constant.
Double-check At day three, 180 sent plus 320 remaining equals 500. At day eight, 480 sent plus 20 remaining also equals 500. The monthly charge remains fifty dollars on either day.

The trap

Tip: Classify by the input coefficient rather than the starting value. In 3x − 2, the positive three gives increasing behavior.

8.4 Slope: output change divided by input change

about 1 minOpen the full lesson

The rule

m=riserun=y2−y1x2−x1=f(x2)−f(x1)x2−x1, where x2≠x1.

Units are output units per input unit.

How

  1. Label the two points so each input stays paired with its output. The subscripts 1 and 2 name points, while raised exponents name powers.
  2. Calculate rise as second output minus first output.
  3. Calculate run as second input minus first input, in matching order.
  4. If run is zero, stop. Otherwise divide rise by run and reduce.
  5. Attach units. Multiply slope by run to check that you recover the rise.

Worked example

Worked example

A small climb spread across two steps

Find the slope through (1, 2) and (3, 6). This asks how much the output changes for each one-unit increase in input.

Show the steps and the answer
startone stepfinishrun 1rise 2242468
Two right and four up means two up per one right.
  1. Rise =6−2=4.The output climbs from 2 to 6, four units upward.
  2. Run =3−1=2.That climb occurs across two input units.
  3. m=42=2.Divide the total climb by the number of input units.
Answer
m = 2.
Double-check Move one right and two up twice: (1, 2) to (2, 4) to (3, 6). This reaches the supplied second point.

The trap

subtracting outputs in one order and inputs in the other reverses the sign. Use the same starting point for both differences.

Quick check

Try it before you open its steps. It is question 1 of 2 in the full lesson, where they run from easy to exam-hard.

Try it · level 1 of 2

One step right

Find the slope through (0, 0) and (1, 2). This asks how high one step right takes you.

Show the steps and the answer
startfinishrun 1rise 221234
When run is one, rise is slope.
  1. Rise =2−0=2.The output increases two.
  2. Run =1−0=1.The input increases one.
  3. m=21=2.Divide output change by input change.
Answer
m = 2.
Double-check One step of slope two takes output zero to two.

8.5 Anchor a line with a slope and a point

Open the full lesson

The rule

point-slope form is y−y1=m(x−x1).

Equivalently, y= mx +b with b=y1−mx1.

How

  1. Write m and the anchor (x1, y1).
  2. Substitute into y − y1 = m(x − x1), keeping parentheses around negative coordinates.
  3. Distribute m to both terms.
  4. Add y1 to both sides to isolate y and reveal b.
  5. Plug the original input into the final equation; its output must match the anchor. Check that the coefficient of x is still m.

Worked example

Worked example

Anchor a falling line at (−5, −1)

A line falls 2 units for every 5 units it runs to the right, so its slope is m = −25. It passes through the point (−5, −1). Write the equation of the line in point-slope form, then rewrite it in slope-intercept form y = mx + b and state b. Check your equation at the given point.

Show the steps and the answer
(−5, −1)−6−4−2246−6−4−2246
The line through the anchor point (−5, −1) that falls 2 units for every 5 units to the right.
  1. Write the slope and the anchor: m=−25 and (x1,y1)=(−5,−1), so x1=−5 and y1=−1.Point-slope form needs only these three numbers. Writing each one down with its sign before substituting keeps the double negatives in the next step under control.
  2. Substitute into y−y1=m(x−x1), putting each negative coordinate in parentheses: y−(−1)=−25(x−(−5)). Simplify the double negatives: y+1=−25(x+5). This is the point-slope form.Subtracting a negative number is the same as adding, so y − (−1) becomes y + 1 and x − (−5) becomes x + 5. If the parentheses are dropped and you write y − 1 = −25(x − 5), the line is anchored at (5, 1) instead of (−5, −1).
  3. Distribute −25 to both terms in the parentheses: (−25)(x)=−25x and (−25)(5)=−2, so y+1=−25x−2.The slope multiplies the whole bracket x + 5, not just x. A negative slope times the positive 5 gives a negative product, so the constant is −2. Writing −25x + 5 is the usual slip.
  4. Add y1=−1 to both sides: y+1+(−1)=−25x−2+(−1), so y=−25x−3. The y-intercept is b=−3.Adding y1 cancels the y − y1 on the left and leaves y alone. The constant left on the right is b. Because y1 is negative, adding it lowers the constant from −2 to −3. The rule's shortcut gives the same value: b = y1 − mx1 = −1 − (−25)(−5) = −1 − 2 = −3.
  5. Plug the original input x=−5 into y=−25x−3: y=−25(−5)−3=2−3=−1, which is the anchor's y1. The coefficient of x is −25, the given slope.The line we want has slope m and passes through (x1, y1). Getting y1 back at x1, with m still the coefficient of x, confirms both conditions. A sign slip anywhere in steps 2 to 4 would make the output miss −1.
Answer
Point-slope form: y + 1 = −25(x + 5). Slope-intercept form: y = −25x − 3, so b = −3.
Double-check At x = −5: y = −25(−5) − 3 = 2 − 3 = −1, which matches the anchor (−5, −1). The coefficient of x is −25 = m. On the graph, one slope step from (−5, −1), right 5 and down 2, lands on (0, −3), the y-intercept found above.

Work to write

  1. m=−25,(x1,y1)=(−5,−1)
  2. y−(−1)=−25(x−(−5))
  3. y+1=−25(x+5)
  4. y+1=−25x−2
  5. y = −25x − 3, so b = −3
  6. Check: −25(−5) − 3 = 2 − 3 = −1 = y1, and the coefficient of x is −25 = m

The trap

y − 4 = 2(x − 1) switches the coordinates. The number beside y must be the output; the number beside x must be the input.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Negative slope and input

Write the line with slope −3 through (−3, 7). This asks for a falling line anchored three units left of zero.

Show the steps and the answer
(0, −2)(−0.667, 0)anchorone rightrun 1rise −3−4−2−448
Keep negative input and negative slope in their separate positions.
  1. y−7=−3(x−(−3))=−3(x+3).Subtract the actual negative input.
  2. y−7=−3x−9.The negative slope multiplies both terms.
  3. Add 7: y=−3x−2.This isolates y and reveals the initial value.
  4. At x=−3,y=−3(−3)−2=7.Substituting the anchor checks both negative signs.
Answer
  • Point-slope: y − 7 = −3(x + 3).
  • Slope-intercept: y = −3x − 2.
Double-check Moving right from −3 to −2 changes the output from 7 to 4, a fall of three matching the slope.

8.6 Build the equation from two points

Open the full lesson

The rule

for distinct inputs, find m=y2−y1x2−x1, then b=y1−mx1.

Write y= mx +b or f(x)= mx +b.

How

  1. Convert function values into coordinate pairs: f(a) = c becomes (a, c).
  2. Check that the inputs differ, then find slope in matching subtraction order.
  3. Use an input-zero point to read b directly, or use an available point in point-slope form.
  4. Rewrite in the requested form.
  5. Substitute both given inputs into the final rule; each output must match.

Worked example

Worked example

A first line from two small points

Find the line through (0, 1) and (2, 5). This asks for a rule returning both listed outputs at their corresponding inputs.

Show the steps and the answer
(0, 1)(−0.5, 0)firstsecondrun 1rise 22−22468
The input-zero point gives b while the two-point change gives m.
  1. m=5−12−0=42=2.The output grows four while input grows two.
  2. b=1 from (0, 1).The output at input zero is the initial value.
  3. Write y=2x+1.Slope-intercept form combines the rate and starting value.
  4. At x=0,y=1; at x=2,y=2(2)+1=5.Both given points must fit the recovered line.
Answer
y = 2x + 1.
Double-check The other anchor gives y − 5 = 2(x − 2). Distribute and add 5 to isolate y: y = 2x + 1 again. Substituting input 2 gives 5.

The trap

taking the first listed output as b. It gives b only when that point's input is zero; otherwise recover b by substitution.

Quick check

Try it before you open its steps. It is question 1 of 2 in the full lesson, where they run from easy to exam-hard.

Try it · level 1 of 2

Recover a hidden starting value

OpenStax problem

Find both forms through (5, 1) and (8, 7). This asks for an equation when neither known input is zero.

Show the steps and the answer
(0, −9)(4.5, 0)bfirstsecondrun 1rise 22468−8−448
Extend the line back to input zero to see its initial value.
  1. m=7−18−5=63=2.Six output units across three input units means two per unit.
  2. y−1=2(x−5).Use the first point as anchor.
  3. Distribute: y−1=2x−10. Add 1: y=2x−9.These steps isolate y and reveal b.
  4. 2(5)−9=1 and 2(8)−9=7.Verify both points in the solved form.
Answer
  • Point-slope: y − 1 = 2(x − 5).
  • Slope-intercept: y = 2x − 9.
Double-check Directly solving 1 = 2(5) + b gives b = 1 − 10 = −9; plugging back gives 10 − 9 = 1.

8.7 Read a graph and choose a method

about 1 minOpen the full lesson

The rule

For a nonvertical line, m=y2−y1x2−x1, then y= mx +b.

Read b at x=0, or find b=y1−mx1 from a known point.

How

  1. Read the numbers on both axes, because a drawn square need not mean one coordinate unit.
  2. Choose two exact labeled points with different x-coordinates, because a nonzero run is needed for the slope.
  3. Calculate output change divided by input change in the same point order, because reversing only one subtraction changes the sign.
  4. Read the output where x = 0 if that crossing is visible. Otherwise substitute a known point into y = mx + b and solve for b to find the unseen starting output.
  5. Write the equation and substitute both visible points, because a correct equation must give both of their outputs.

Worked example

Worked example

Read a small original graph

Writing the equation means finding a rule that gives every output on the pictured line. Find the equation of this original line through (0, 1) and (1, 2).

Show the steps and the answer
(0, 1)(−1, 0)(1, 2)run 1rise 12−11234
This original graph has a visible starting output and a one-unit run.
  1. At the vertical axis, x=0 and y=1, so b=1.The y-intercept is the output when the input is zero.
  2. m=2−11−0=11=1.The output goes up 1 while the input goes up 1.
  3. Write y=1x+1=x+1.Slope-intercept form uses the slope 1 and the starting output 1.
Answer
y = x + 1
Double-check At x = 0, 0 + 1 = 1. At x = 1, 1 + 1 = 2. Both plotted points are reproduced.

The trap

Treating the left edge of the displayed window as the y-axis. The y-axis is where x = 0, which may not be shown.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Count a rise and a longer run

Finding the equation means reading a change per single input unit. Use the original graph's points (0, −2) and (3, 0).

(0, −2)(3, 0)run 2rise 1.3324−3−2−112
The original line rises 2 coordinate units while moving right 3.
Show the steps and the answer
  1. Read b=−2 from (0,−2).The input at this crossing is zero.
  2. m=0−(−2)3−0=23.A rise of 2 is spread over a run of 3, not a run of 1.
  3. Write y=23x−2.The fractional slope is the amount added per input unit.
Answer
y=23x−2
Double-check At x = 3, 23(3) − 2 = 2 − 2 = 0. At x = 0, the output is −2.

8.8 Turn a real situation into a linear model

about 1 minOpen the full lesson

The rule

A constant-rate model has output = starting amount + rate × input.

Write f(x)= mx +b with units for m and b and a domain appropriate to the situation.

How

  1. Define the input and output, because a number without its meaning can lead to the wrong units or domain.
  2. Identify the starting amount b and rate m. If two totals are given, divide output change by input change to find m.
  3. If b is missing, substitute a known pair into output = mx + b and solve for b to recover the starting amount. Plug the value back into that pair.
  4. Write the model with its units and allowed inputs, because counting objects differs from measuring continuous time.
  5. For a given input, substitute it to find the output. For a target output, solve for the input, then plug it back in and check that it belongs to the domain.

Worked example

Worked example

One coin already there, two added per day

Finding the number of coins after one day means using input d = 1 to find the output. A jar starts with one coin and receives two coins at the end of every day. Write J(d) and find J(1).

Show the steps and the answer
1 completed day1 + 2dinputoutput3 coins
Multiply the daily addition by the completed days, then add the starting coin.
  1. Let d be the number of completed days and J(d) the number of coins.The input counts daily deposits, so d is a nonnegative whole number.
  2. Write J(d)=1+2d.There is 1 starting coin and each completed day contributes 2 coins.
  3. J(1)=1+2(1)=3.An input of 1 means one daily deposit.
Answer
  • J(d) = 1 + 2d, with d a nonnegative whole number.
  • J(1) = 3 coins.
Double-check Count the starting coin and two new coins: 1 + 2 = 3. Also J(0) = 1, so the model keeps the correct starting amount.

The trap

Using the first observed total as the initial value when its input is not zero. Remove its accumulated change to find the starting amount.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Find salary from two earnings

OpenStax problem

Recovering the income rule means finding the pay per policy and the pay with no policies. Ilya earned $760 with three policies and $920 with five. Assume the same base salary and commission rate in both weeks.

Show the steps and the answer
input n policiesoutput I(n) dollars37605920
Compare the two input changes and output changes before finding the base salary.
  1. Read the pairs as (3, 760) and (5, 920).The input is policies and the output is weekly dollars.
  2. m=920−7605−3=1602=80 dollars per policy.Two extra policies earned $160 more, so each contributes $80.
  3. Find b from the three-policy week: 760=80(3)+b=240+b, so subtract 240 to obtain b=520.Removing the commissions isolates the base weekly salary.
  4. Plug back: 80(3)+520=760. Write I(n)=80n+520 for nonnegative whole-number policy counts.The recovered salary must fit the observed week, and policies are counted as whole objects.
Answer
  • I(n) = 80n + 520
  • Commission: $80 per policy.
  • Base salary: $520 per week.
Double-check At n = 5, I(5) = 400 + 520 = 920, matching the other week. The positive commission makes income increase with sales.

8.9 Build and check a line from a table

Open the full lesson

The rule

With at least two distinct inputs and one output per input, compare outputchangeinputchange on every adjacent interval of increasing inputs.

Equal rates mean the listed points fit f(x)= mx +b. Read b under zero, or use b=y− mx.

How

  1. Arrange columns in increasing input order. Keep one copy of repeated identical pairs. Different outputs at the same input rule out a function, and one distinct pair alone does not determine a slope.
  2. Read each column as one input-output pair, because values in the same column belong together.
  3. For every neighboring pair, subtract the outputs and divide by the corresponding input difference, because unequal input gaps must be accounted for.
  4. Compare all the rates. If any differ, no single linear function fits the whole table exactly.
  5. If the rates match, read b in the column under zero. If zero is missing, substitute any listed pair and solve for b to recover the missing starting output.
  6. Substitute every listed input into the candidate equation, because fitting the first pair alone does not establish agreement with the whole table.

Worked example

Worked example

Start with a three-column table

Finding f(x) means making a rule that reproduces the output in every shown column. Use the pictured original table.

input xoutput f(x)011223
The same picture again: x: 0, 1, 2; f(x): 1, 2, 3.
Show the steps and the answer
input xoutput f(x)011223
Read one input and output from each column and check both intervals.
  1. From the column under 0 to the column under 1, m=2−11−0=1.The output rises 1 over an input change of 1.
  2. From the column under 1 to the column under 2, m=3−22−1=1.Every adjacent interval must have the same rate for one line to fit.
  3. Read b=1 in the output cell under input 0. Write f(x)=x+1.The common rate is 1 and the zero-input output is 1.
Answer
f(x) = x + 1 fits all three listed pairs.
Double-check The formula gives f(0) = 1, f(1) = 2 and f(2) = 3, matching every column. These samples alone do not establish the rule at unlisted inputs.

The trap

Looking only at the output differences when the input gaps change. Always divide by the actual input gap for that interval.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Rat population with two-week gaps

OpenStax problem

Writing P(w) means finding the rat population rule that fits all four columns of the complete source table. Find the weekly rate even though the samples are two weeks apart.

input w weeksoutput P(w) rats01000210804116061240
The same picture, shown 4 times now: w weeks: 0, 2, 4, 6; P(w) rats: 1000, 1080, 1160, 1240.
Show the steps and the answer
input w weeksoutput P(w) rats01000210804116061240
The rate is 40 per week because each gain of 80 spans two weeks.
  1. Read b=1000 rats from the column under zero weeks.The zero-input output is the initial population.
  2. Check all rates: 1080−10002−0=40,1160−10804−2=40 and 1240−11606−4=40 rats per week.Every two-week gain must be divided by its input gap, and all intervals must agree.
  3. Write P(w)=40w+1000.The listed population values share the same modeled weekly rate and starting count.
Answer
P(w) = 40w + 1000
Double-check Substitution gives P(0) = 1000, P(2) = 1080, P(4) = 1160 and P(6) = 1240. The line fits the observations; steady growth between them remains a model assumption.

9 Graphs of linear functions

about 32 min10 lessonsOpen the unit's crash course

9.1 Draw a line by plotting points

about 4 minOpen the full lesson

The rule

Graph a linear function by plotting at least two distinct coordinate pairs (x, f(x)) and drawing the entire straight line through them.

A third point checks the arithmetic.

How

  1. Choose input values. If the slope contains a fraction, try multiples of its denominator. Multiples are results of multiplying by whole numbers: for a denominator of 3, use 0 × 3 = 0, 1 × 3 = 3 and 2 × 3 = 6.
  2. Substitute each input into the function to find its output.
  3. Record the pairs in a values picture, then plot each input across and output up.
  4. Draw a straight line through the points and extend it both ways.
  5. If a third point misses the line, recalculate before drawing.

Worked example

Worked example

Plot points to graph f(x) = −35x + 5

Graph the linear function f(x) = −35x + 5 by plotting points. Choose three inputs, find their outputs, record the coordinate pairs in a values picture, plot them, and draw the line. Use the third point to check the arithmetic before drawing.

Show the steps and the answer
input xoutput f(x)055210−1↓ evaluate: input given, read the output below it
Values picture for f(x) = −35x + 5.
  1. Choose the inputs 0×5=0,1×5=5 and 2×5=10.The slope −35 has denominator 5. Multiplying it by a multiple of 5 cancels the denominator, so every output is a whole number. An input such as x = 1 would give f(1) = −35 + 5 = 225 = 4.4, which is hard to plot accurately.
  2. Substitute x = 0: f(0)=−35×0+5=0+5=5.Replacing x with an input and evaluating gives that input's output. At x = 0 the slope term is 0, so the output is the constant term 5.
  3. Substitute x = 5: f(5)=−35×5+5=−3+5=2.35 × 5 = 155 = 3, so the fraction clears and the output is a whole number.
  4. Substitute x = 10: f(10)=−35×10+5=−6+5=−1.35 × 10 = 305 = 6. Two points are enough to fix the line. This third pair is there to check the arithmetic.
  5. Record the pairs in a values picture: the inputs 0, 5 and 10 have the outputs 5, 2 and −1. This gives the points (0, 5), (5, 2) and (10,−1).Writing each output beside its input keeps the pairs together, and each point is written (input, output).
  6. Draw axes from −6 to 12 across and from −3 to 9 up. Plot each point by going across by the input and up by the output: (0, 5) is 5 up on the y-axis, (5, 2) is 5 across and 2 up, and (10,−1) is 10 across and 1 down.The input is the horizontal coordinate and the output is the vertical one, so a negative output means moving down. The axes leave room to extend the line past the points on both sides.
  7. Lay a ruler through (0, 5) and (5, 2) and look at (10,−1). It sits on the ruler's edge: each move from one point to the next is 5 across and 3 down.Equal steps in input along a line give equal steps in output, and 3 down for every 5 across is the slope −35. If the third point had missed the ruler, the outputs would be recalculated before drawing.
  8. Draw the straight line through the three points. Extend it to the edges of the grid in both directions and put an arrow at each end.The graph of a linear function is a straight line. Also, f has an output for every input, not just 0, 5 and 10, so the line continues both ways.
Answer
The graph is the straight line through (0, 5), (5, 2) and (10, −1), extended in both directions. It crosses the y-axis at (0, 5) and falls 3 units for every 5 units to the right.
Double-check Follow the drawn line one more step to the left of (0, 5): 5 across to the left and 3 up reaches (−5, 8). The formula agrees: f(−5) = −35 × (−5) + 5 = 3 + 5 = 8. The line also crosses the x-axis just past 8, which matches solving −35x + 5 = 0 to get x = 253 ≈ 8.3.

Work to write

  1. Inputs are multiples of 5: x = 0, 5, 10
  2. f(0)=−35×0+5=5
  3. f(5)=−35×5+5=−3+5=2
  4. f(10)=−35×10+5=−6+5=−1
  5. Values picture: x = 0, 5, 10; f(x) = 5, 2, −1
  6. Points (0, 5), (5, 2), (10, −1) plotted; (10, −1) lies on the line through the other two
  7. Straight line drawn through the points and extended both ways

The trap

Plotting (3, 3) as output first can hide the mistake because both numbers match. Practice with (0, 5): across 0, then up 5. The input always comes first.

9.2 Start at the y-intercept and walk the slope

about 4 minOpen the full lesson

The rule

In y= mx +b, the y-intercept is (0, b) and m=riserun=y2−y1x2−x1, with x2≠x1.

How

  1. Read b, then substitute 0 to verify the point (0, b).
  2. Read m. Write a whole-number slope over 1.
  3. Choose signed rise and run whose quotient is m.
  4. Start at (0, b), move by that run and rise, and repeat.
  5. Draw the line through the points. Check one point by substitution.

Worked example

Worked example

Walk a negative fraction slope from the y-intercept

Graph the line y = −32x + 6 by starting at its y-intercept and walking the slope. State the y-intercept, give a signed rise and run that match the slope, find two more points to the right of the y-axis and one point to the left of it, then draw the line and check one of your points by substitution.

Show the steps and the answer
(−2, 9)(0, 6)(2, 3)(4, 0)−44848
The finished graph: the line through the walked points (−2, 9), (0, 6), (2, 3) and (4, 0).
  1. Read b: in y=−32x+6 the constant term is 6, so b=6. Substitute x=0 to verify: y=−32(0)+6=0+6=6. Plot the y-intercept (0, 6).The y-intercept is the point where x = 0. There the term mx is zero, so y = b. Substituting 0 confirms that (0, 6) is on the line before every later step is built on it.
  2. Read m: the coefficient of x is −32, so m=−32. It is already a fraction, so it needs no rewriting. (Only a whole-number slope needs rewriting: for example, 5 would become 51.)The slope is riserun, so it has to be seen as a top number over a bottom number before it can be walked. The minus sign in front belongs to m and must not be dropped.
  3. Put the minus sign on the top number: −32=−32, so rise =−3 and run =2. On the grid that is 2 units right and 3 units down. The same slope can be written 3−2: 2 units left and 3 units up.The rise is the vertical change and the run is the horizontal change, and their quotient must be m. A negative quotient needs exactly one negative part: −32 and 3−2 both equal −32, but −3−2 = 32, which would make the line climb.
  4. Start at (0, 6) and add the run to x and the rise to y: (0+2,6−3)=(2,3). Repeat from (2, 3): (2+2,3−3)=(4,0). For a point on the left, return to (0, 6) and use run −2, rise 3: (0−2,6+3)=(−2,9).For any two points on the line, y2−y1x2−x1 = m. Each step changes x by the run and y by the rise, so that ratio stays −32 and every landing point is on the line. A second step gives a third point, which makes the line easier to draw accurately.
  5. Draw one straight line through (−2,9), (0, 6), (2, 3) and (4, 0) and extend it past both end points. Check (4, 0) by substitution: −32(4)+6=−6+6=0, which is its y-coordinate.Two points fix a line, so the other points test the walk: if they were not in one straight row, a step went wrong. Substitution tests a point against the equation itself, not against the walk that produced it.
Answer
  • The y-intercept is (0, 6). With rise −3 and run 2, the walk lands on (2, 3) and (4, 0)
  • with rise 3 and run −2 it lands on (−2, 9). The graph is the straight line through these points. It falls 3 units for every 2 units to the right and crosses the x-axis at (4, 0).
Double-check Substitute the other walked points into y = −32x + 6. At x = 2: −32(2) + 6 = −3 + 6 = 3, so (2, 3) is on the line. At x = −2: −32(−2) + 6 = 3 + 6 = 9, so (−2, 9) is on the line. The slope from (0, 6) to (4, 0) is 0−64−0 = −64 = −32, which equals m.

Work to write

  1. y = −32(0) + 6 = 6, so the y-intercept is (0, 6)
  2. m = −32 = −32, so rise = −3 and run = 2
  3. (0 + 2, 6 − 3) = (2, 3) and (2 + 2, 3 − 3) = (4, 0)
  4. (0−2,6+3)=(−2,9)
  5. Line drawn through (−2, 9), (0, 6), (2, 3) and (4, 0)
  6. Check: −32(4) + 6 = −6 + 6 = 0, so (4, 0) is on the line

The trap

Reading −23 as down 3 and right 2. The top is rise, the bottom is run. Write the two movements beside the fraction before plotting.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A positive fractional slope

You need to draw y = 12x − 1 using whole-number movements.

Show the steps and the answer
(0, −1)(2, 0)startfirstsecondrun 2rise 1−2246−22
y = 0.5x − 1, for x from −3 to 6.
  1. At input 0, y=−1, so plot (0,−1).The product with 0 vanishes.
  2. Use rise 1 and run 2. Move to (2, 0), then (4, 1).The fraction measures the two-unit run, so no fractional coordinate is needed.
Answer
The line through (0, −1), (2, 0) and (4, 1).
Double-check At x = 4, 12 × 4 − 1 = 2 − 1 = 1.

9.3 Build a line by changing the identity function

Open the full lesson

The rule

To transform y=x into y= mx +b, multiply outputs by m, including a reflection if m < 0, then shift outputs by b.

Stretch if |m| > 1; compress if 0 < |m| < 1.

How

  1. Sketch the identity function y = x using (0, 0) and (1, 1).
  2. Read |m|, the size of m without its sign, to decide whether heights stretch or compress.
  3. If m < 0, reflect the heights across the x-axis as part of that multiplication.
  4. Add b to every new height. Positive b moves up; negative b moves down.
  5. Verify a point in the final formula. Multiplication must occur before this stated shift.

Worked example

Worked example

Stretch, reflect, then shift: building y = −4x + 7 from y = x

The graph shows the line y = −4x + 7, which passes through (0, 7) and (2, −1). Build this line from the identity function y = x, whose graph passes through (0, 0) and (1, 1). List the changes in the order they must be made: say whether the heights stretch or compress and by what factor, whether there is a reflection, and how far and in which direction the line shifts. Follow the points (0, 0) and (1, 1) through every change, and finish by verifying one of the final points in the formula.

(0, 7)(2, −1)−4−2246−448
The finished line y = −4x + 7, falling steeply from left to right through (0, 7) and (2, −1).
Show the steps and the answer
  1. Sketch the identity function y=x through (0, 0) and (1, 1). From y=−4x+7, read m=−4 and b=7.On y = x every height equals its input, so it is the plain line that every other line is built from. Matching y = −4x + 7 to y = mx + b shows what to multiply the heights by (m) and what to add to them (b).
  2. Drop the sign of m to get its size: |−4|=4. Because 4 > 1, the heights stretch by a factor of 4. (0, 0) stays at (0, 0) and (1, 1) rises to (1, 4), so the line is now y=4x.Stretch or compress depends on |m|, not on m. As a number −4 is less than 1, but its size is 4, so the heights get 4 times as far from the x-axis rather than closer to it. A height of 0 times 4 is still 0, which is why the origin does not move.
  3. Since m=−4 is negative, reflect the stretched heights across the x-axis: (1, 4) flips to (1,−4) and (0, 0) stays where it is. The line is now y=−4x.Multiplying by −4 is the same as multiplying by 4 and then changing each height to its opposite, so the reflection is part of the multiplication, not an extra move. Heights that were above the x-axis are now the same distance below it, so the line falls from left to right.
  4. Add b=7 to every height: (0, 0) moves up to (0, 7) and (1,−4) moves up to (1, 3). The line is now y=−4x+7.b is positive, so every point moves up, and all by the same 7 units. Sliding the whole line does not change how steep it is; it only moves where the line crosses the y-axis, from 0 to 7.
  5. Verify a final point in the formula. At x=1: y=−4(1)+7=−4+7=3, which matches (1, 3). At x=0: y=−4(0)+7=7, which matches (0, 7).The formula multiplies by −4 first and adds 7 second, the same order as the changes on the graph, so the tracked points must satisfy it. The order cannot be swapped: adding 7 first and then multiplying gives −4(1 + 7) = −32 at x = 1, which belongs to the line y = −4x − 28, not y = −4x + 7.
Answer
  • Three changes, in this order: (1) stretch the heights of y = x by a factor of 4, because |−4| = 4 > 1
  • (2) reflect them across the x-axis, because m = −4 is negative
  • (3) shift every point up 7, because b = 7 is positive. The point (0, 0) stays at (0, 0) through the stretch and the reflection, then moves up to (0, 7). The point (1, 1) goes to (1, 4), then (1, −4), then (1, 3). The result is the line y = −4x + 7.
Double-check Use (2, −1), the other point stated for the graph, which was not used in the build. On y = x the height at x = 2 is 2. Stretch: 4 × 2 = 8. Reflect: −8. Shift up 7: −8 + 7 = −1, so the point lands at (2, −1), and the formula agrees: −4(2) + 7 = −1. The slope also checks: from (0, 7) to (2, −1) the line drops 8 while moving right 2, and −8 ÷ 2 = −4 = m.

Work to write

  1. m = −4 and b = 7
  2. |m| = |−4| = 4 > 1, so the heights stretch by a factor of 4: y = x becomes y = 4x
  3. m < 0, so reflect across the x-axis: y = 4x becomes y = −4x
  4. b = 7 > 0, so shift up 7: y = −4x becomes y = −4x + 7
  5. (0, 0) ends at (0, 7); (1, 1) goes to (1, 4), then (1, −4), then (1, 3)
  6. Check: −4(1) + 7 = 3, so (1, 3) is on y = −4x + 7

The trap

Doing the stated downward shift first and then halving the heights. That produces 12(x − 3) = 12x − 32, a different line.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Compress only

You need to make y = 13x from y = x.

Show the steps and the answer
(0, 0)(−0, 0)−4−2246−448
y = 0.3333x, solid, beside y = x, dashed.
  1. Multiply each height by 13; (3, 3) becomes (3, 1).A factor between 0 and 1 pulls each height toward the x-axis.
  2. Draw through (0, 0) and (3, 1).The horizontal input positions stay unchanged.
Answer
Compress vertically by 13.
Double-check The rise is 1 for a run of 3, agreeing with the coefficient.

9.4 Read a graph and write its equation

about 4 minOpen the full lesson

The rule

Read b at (0, b), calculate m=y2−y1x2−x1, then write f(x)= mx +b.

If b is hidden, use b=y1−mx1.

How

  1. Read the y-intercept if it is shown. Confirm that the first coordinate is 0.
  2. Choose two clearly marked points. Keep their order the same in both subtractions.
  3. Compute rise divided by run and reduce the fraction.
  4. Write the slope and intercept in f(x) = mx + b.
  5. Substitute both points to verify the recovered equation.

Worked example

Worked example

Writing the equation of a line from its graph

The graph shows a straight line. It crosses the y-axis at the marked point (0, −2) and passes through the marked points (−4, −5) and (4, 1). Write the equation of the line in the form f(x) = mx + b. Read the y-intercept, find the slope from the two marked points (−4, −5) and (4, 1) and reduce it, write the function, and substitute both points to verify it.

(−4, −5)(0, −2)(4, 1)−6−4−2246−6−4−2246
A straight line crossing the y-axis at the marked point (0, −2) and passing through the marked points…
Show the steps and the answer
  1. Read the y-intercept at the marked point (0,−2), where the line crosses the y-axis. Its first coordinate is 0, so b=−2.b is the output when the input is 0, since f(0) = m · 0 + b = b. Confirming that the first coordinate is 0 makes sure the point lies on the y-axis and not merely near it.
  2. Choose the two marked points (−4,−5) and (4, 1) and name them in a fixed order: (x1,y1)=(−4,−5) and (x2,y2)=(4,1).Both points have exact labels, so nothing has to be estimated from the grid. Naming them before subtracting keeps the same order on the top and the bottom of the slope fraction. Mixing the order would flip the sign of the slope.
  3. Compute rise over run: m=y2−y1x2−x1=1−(−5)4−(−4)=68=34.The slope is the change in output divided by the change in input. Subtracting a negative is the same as adding its opposite, so the rise is 1 + 5 = 6 and the run is 4 + 4 = 8. Dividing top and bottom by their common factor 2 reduces 68 to 34. A positive slope fits the graph, which rises from left to right.
  4. Put m=34 and b=−2 into f(x)= mx +b: f(x)=34x+(−2), which is written f(x)=34x−2.In slope-intercept form the coefficient of x is the slope and the constant term is the y-intercept. Adding −2 is the same as subtracting 2.
  5. Substitute both points. f(−4)=34(−4)−2=−3−2=−5, which matches (−4,−5). f(4)=34(4)−2=3−2=1, which matches (4, 1).The slope came from these two points, but b came from a separate reading at (0, −2). Only one line passes through both points, so if both outputs match, the equation is that line. A misread intercept or a slip in the slope would make at least one output miss.
Answer
f(x) = 34x − 2, with slope 34 and y-intercept (0, −2).
Double-check Reversing the order of the points gives the same slope: −5−1−4−4 = −6−8 = 34. The formula for a hidden intercept agrees with the reading: b = y1 − mx1 = −5 − 34(−4) = −5 + 3 = −2. Walking the slope from (0, −2), 4 right and 3 up reaches (4, 1), and 4 left and 3 down reaches (−4, −5). Both points are marked on the graph.

Work to write

  1. b = −2, read from the point (0, −2)
  2. m=1−(−5)4−(−4)=68=34
  3. f(x)=34x−2
  4. f(−4)=34(−4)−2=−3−2=−5
  5. f(4)=34(4)−2=3−2=1

The trap

Subtracting the output coordinates in one direction and the input coordinates in the opposite direction. Write arrows between the two points, then use that same direction for both differences.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

A visible nonzero intercept

You need the equation through (0, 2) and (2, 6).

Show the steps and the answer
(0, 2)(−1, 0)startsecond−224−22468
y = 2x + 2.
  1. b=2 and m=6−22−0=42=2.Read the starting value and calculate the common rate.
  2. Write y=2x+2.These are the slope and intercept.
  3. At input 2, 2×2+2=6.Plugging the recovered values back in verifies the second point.
Answer
y = 2x + 2.
Double-check A run of 2 with slope 2 gives a rise of 4, taking output 2 to 6.

9.5 Find where the line reaches the x-axis

about 5 minOpen the full lesson

The rule

Set f(x)=0 to find x-intercepts.

For f(x)= mx +b with m≠0,x=−bm and the point is (−bm,0).

How

  1. Replace the output f(x) or y with 0. This selects points lying on the x-axis.
  2. Solve the resulting equation for the input.
  3. Substitute that found input into the original function. Its output must be 0.
  4. State the input value and the coordinate point (x, 0).
  5. If m = 0, inspect the constant output instead of dividing by zero.

Worked example

Worked example

Where f(x) = 5x + 8 reaches the x-axis

The graph shows the line f(x) = 5x + 8, which passes through the marked points (−2, −2), (−1, 3) and (0, 8). (a) Use the graph and the marked points to estimate where the line reaches the x-axis. Then find the x-intercept exactly by setting f(x) = 0, check it by substitution, and state it both as an x-value and as a point. (b) Keep the y-intercept 8 but change the slope to 0, giving g(x) = 0x + 8. Decide whether the graph of g reaches the x-axis, and explain why the rule x = −bm cannot be used for g.

(−2, −2)(−1, 3)(0, 8)−4−22−448
The line f(x) = 5x + 8, rising from left to right through the marked points (−2, −2), (−1, 3) and (0, 8).
Show the steps and the answer
  1. (a) Estimate from the graph. The marked point (−2,−2) is below the x-axis and (−1,3) is above it, so the line crosses the x-axis between x=−2 and x=−1, nearer to x=−2.The outputs −2 and 3 have opposite signs, so the line must pass through output 0 between those inputs. A line's output changes at a steady rate, so the crossing is nearer the input whose output is closer to 0, and −2 is closer to 0 than 3 is. Knowing the rough size and sign of the answer in advance makes a slip in the algebra easy to spot.
  2. Read the slope and y-intercept from f(x)=5x+8: m=5 and b=8. Since m=5≠0, the line is not horizontal.A line that is not horizontal crosses the x-axis exactly once. The solving below ends with a division by m, which is allowed only when m ≠ 0. A slope of 0 needs the different approach shown in part (b).
  3. Replace the output f(x) with 0: 5x+8=0.Every point on the x-axis has output (height) 0, so the x-intercept is the input that makes the output 0.
  4. Subtract 8 from both sides: 5x=−8.This undoes the + 8 and leaves the x-term by itself. Doing the same thing to both sides keeps the equation true.
  5. Divide both sides by 5: x=−85, which is −1.6 as a decimal.Dividing by 5 undoes the multiplication by 5. The result matches the rule x = −bm with b = 8 and m = 5. It is negative because b and m have the same sign.
  6. Substitute x=−85 into the original function: f(−85)=5(−85)+8=−8+8=0.A point lies on the x-axis only when its output is 0. Getting exactly 0 confirms that no sign or arithmetic slip happened while solving.
  7. Compare with the estimate: −1.6 lies between −2 and −1, and it is nearer to −2.The exact value agrees with the graph. An answer of +1.6 would signal a sign error. For every positive x the output 5x + 8 is greater than 8, so the line is well above the x-axis to the right of the y-axis.
  8. State the result: the x-intercept is x=−85, and the line reaches the x-axis at the point (−85,0).An x-intercept is a point on the x-axis, so its y-coordinate is 0 and its x-coordinate is the input just found. The question asks for both the value and the point.
  9. (b) Inspect g instead of dividing. Its slope is m=0, and g(x)=0x+8 simplifies to g(x)=8, the same output for every input.The rule would give x = −80, a division by zero, which has no value. When m = 0, the constant output alone decides whether the line touches the x-axis.
  10. Replace the output with 0: 8=0. This is false, and it contains no x that could be changed to make it true.Since g(x) equals 8 for every input, no input can make the output 0.
  11. Conclude: g has no x-intercept. Its graph is the horizontal line y=8, which stays 8 units above the x-axis and never meets it.A horizontal line y = k reaches the x-axis only when k = 0. In that case it is the x-axis itself, so every point is on it. Here k = 8, which is not 0.
Answer
(a) x = −85 (that is, −1.6). The line reaches the x-axis at the point (−85, 0). (b) g(x) = 8 is never 0, so the horizontal line y = 8 has no x-intercept. The rule −bm fails for g because m = 0 would mean dividing by zero.
Double-check Substitution: f(−85) = 5(−85) + 8 = −8 + 8 = 0, so (−85, 0) is on the line and on the x-axis. Slope check: from (−85, 0) to (0, 8) the rise is 8 and the run is 85, and 8 ÷ 85 = 8 · 58 = 5, which is the slope of f. Graph check: −1.6 lies between x = −2 and x = −1, where the outputs change sign from f(−2) = −2 to f(−1) = 3. Part (b): g(x) = 8 for every x, and 8 ≠ 0, so no input gives output 0.

Work to write

  1. Estimate: between x = −2 and x = −1, since f(−2) = −2 and f(−1) = 3
  2. m = 5 ≠ 0
  3. 5x + 8 = 0
  4. 5x=−8
  5. x=−85=−1.6
  6. f(−85)=5(−85)+8=−8+8=0
  7. x-intercept: (−85, 0)
  8. g(x) = 0x + 8 = 8 for every x
  9. 8 = 0 is false, so g has no x-intercept

The trap

Setting x = 0 to find the x-intercept. The axis name tells you which coordinate is allowed to vary: on the x-axis, x varies while y stays 0.

Quick check

Try it before you open its steps. It is question 1 of 2 in the full lesson, where they run from easy to exam-hard.

Try it · level 1 of 2

The intercept is the origin

You need the x-intercept of y = x.

Show the steps and the answer
(0, 0)(−0, 0)origin−22−2−112
y = x.
  1. Set y=0: 0=x, so x=0.The identity output equals its input, so only input 0 gives output 0.
  2. Check the found input: y=0.Substitution verifies the point's zero height.
Answer
(0, 0)
Double-check The identity graph visibly passes through the origin.

9.6 Horizontal and vertical lines

about 2 minOpen the full lesson

The rule

A horizontal line has equation y=c and slope 0.

A vertical line has equation x=c, undefined slope, and is not a function of x.

How

  1. Compare the coordinates of two distinct points.
  2. If their y-values match, keep that output fixed: y = c.
  3. If their x-values match, keep that input fixed: x = c.
  4. Check both given points in the equation.
  5. Do not force a vertical line into y = mx + b.

Worked example

Worked example

Keep the correct coordinate fixed

You need equations for the horizontal line through (−3, −4) and (5, −4), and the vertical line through (7, 0) and (7, 5).

Show the steps and the answer

Horizontal: y = −4

Vertical: x = 7

  1. For the horizontal pair, both outputs are −4: y=−4.The second coordinate stays fixed, as on a shelf.
  2. Its slope is −4−(−4)5−(−3)=08=0.Zero rise over a nonzero run is zero.
  3. For the vertical pair, both inputs are 7: x=7.The first coordinate stays fixed, as on a flagpole.
  4. Its slope would be 5−07−7=50, so it is undefined.A zero denominator has no division value.
  5. Check the pairs in their equations: the first pair has y=−4, and the second pair has x=7.Each equation must include both given points.
Answer
  • Horizontal equation: y = −4.
  • Horizontal slope: 0.
  • Vertical equation: x = 7.
  • Vertical slope: undefined.
  • The vertical line is not a function of x.
Double-check The horizontal pair has two different inputs with one output each; the vertical pair gives two outputs to input 7. That checks the function distinction.

The trap

Writing y = 7 for the vertical line. Say what stays fixed before choosing the letter. Fixed across position means x; fixed height means y.

9.7 Compare parallel and perpendicular lines

Open the full lesson

The rule

Nonvertical lines are parallel when m1=m2 and b1≠b2; coincident when both match.

Lines with finite nonzero slopes are perpendicular when m1m2=−1. Horizontal and vertical lines are perpendicular.

How

  1. Rewrite each nonvertical equation with y alone so its slope is visible.
  2. Equal slopes and different intercepts mean parallel lines.
  3. Equal slopes and equal intercepts mean coincident lines.
  4. Otherwise multiply the slopes. A product of −1 means perpendicular lines.
  5. Handle a vertical line separately: it is perpendicular to a horizontal line, and parallel to another distinct vertical line.

Worked example

Worked example

Sort four lines into the pair that never meets and the pair that meets squarely

Four lines are given by a(x) = 3x − 2, b(x) = −3x + 7, c(x) = 13x + 1 and d(x) = 3x + 4. Which two never meet, and which two cross at a right angle?

Show the steps and the answer
(0, −2)(0.667, 0)−4−224−8816
a and d: the same slope, a constant gap of 6.
(0, 7)(2.33, 0)−4−224−8816
b and c: slopes −3 and one third, a product of −1.
  1. Read each slope from the coefficient of x: a has 3, b has −3, c has 13, d has 3.In slope-intercept form the slope is the number multiplying x, and slope is what decides parallel and perpendicular.
  2. a and d share the slope 3 and have different intercepts, −2 and 4.Two lines with the same slope rise at the same rate, so they never meet unless they are the same line; different intercepts rule that out.
  3. Multiply the slopes of b and c: (−3)×13=−1.Two nonvertical lines are perpendicular exactly when their slopes multiply to −1.
  4. Try the other pairs: 3×13=1 and 3×(−3)=−9, neither is −1, and no other pair shares a slope.Checking every pair, not only the likely ones, is what makes the answer complete.
Answer
  • Parallel: a and d.
  • Perpendicular: b and c.
Double-check a(x) − d(x) = −6 for every x, a constant gap, so a and d never meet. The negative reciprocal of −3 is 13, which is c's slope, so b and c meet at a right angle.

The trap

Changing only the sign or only flipping the fraction for a perpendicular slope. Both moves are needed, and the product must be −1.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Different-looking equations of one line

You need to compare y = −47x + 6 with 7y = −4x + 42.

Show the steps and the answer
(0, 6)(10.5, 0)sample shared point−224682468
The dashed and solid graphs overlap because the rewritten equations match.
  1. Divide every term of the second equation by 7: y=−47x+427.Equal division preserves the same line points and isolates y.
  2. 427=6, so the second equation becomes y=−47x+6.Seven groups of 6 total 42, so the constants match too.
  3. The slopes and intercepts both match. These equations are coincident.Matching direction and placement describe the same line, rather than separated parallel lines.
Answer
Coincident: the equations describe the same line.
Double-check At x = 7, the first gives y = −4 + 6 = 2. The original second equation gives 7 × 2 = −4 × 7 + 42 = 14. Multiplying the first formula by 7 reproduces the entire second equation.

9.8 Write a parallel or perpendicular line through a point

about 4 minOpen the full lesson

The rule

Choose m equal to the given slope for a parallel line, or m=−1mgiven for a perpendicular line with nonzero finite given slope.

Through (x1,y1), use y−y1=m(x−x1).

How

  1. Find the original slope from its equation or from two points.
  2. Choose the new slope: same for parallel, negative reciprocal for perpendicular.
  3. Insert the new slope and the required point in point-slope form, or use b = y1 − mx1.
  4. Expand and isolate y if slope-intercept form is wanted.
  5. Plug the supplied point into the final equation and check the slope relationship.

Worked example

Worked example

Lines through P(−4, −1) parallel and perpendicular to x + 2y = 6

The graph shows the line x + 2y = 6, which crosses the axes at (0, 3) and (6, 0), and the point P(−4, −1), which is not on the line. (a) Write, in slope-intercept form, an equation of the line through P that is parallel to x + 2y = 6. (b) Write, in slope-intercept form, an equation of the line through P that is perpendicular to x + 2y = 6. Check each answer by substituting P and by comparing slopes.

(0, 3)(6, 0)P(−4, −1)−8−448−448
The given line x + 2y = 6, which is y = −12x + 3, crossing the axes at (0, 3) and (6, 0).
Show the steps and the answer
  1. Find the given slope. Solve x+2y=6 for y. Subtract x from both sides to get 2y=−x+6. Divide every term by 2 to get y=−12x+3. So mgiven=−12. The marked points (0, 3) and (6, 0) agree: 0−36−0=−36=−12.In y = mx + b the coefficient of x is the slope, so the equation has to be solved for y first. Rise over run between any two points on the same line gives that same slope.
  2. Choose the new slopes. (a) Parallel: keep the same slope, so m=−12. (b) Perpendicular: m=−1mgiven=−1÷(−12)=2. The reciprocal of −12 is −2, and changing its sign gives 2. Test: (−12)(2)=−1.Parallel lines rise at the same rate, so they share a slope. Two lines with nonzero, finite slopes are perpendicular exactly when the product of their slopes is −1, and the negative reciprocal is the slope that makes that product −1.
  3. Insert each slope and P(−4,−1) into y−y1=m(x−x1). (a) y−(−1)=−12(x−(−4)), which is y+1=−12(x+4). (b) y−(−1)=2(x−(−4)), which is y+1=2(x+4).Point-slope form gives the line with slope m through (x1, y1) directly. Subtracting a negative coordinate is the same as adding, so y − (−1) becomes y + 1 and x − (−4) becomes x + 4.
  4. Expand and isolate y. (a) −12·x=−12x and −12·4=−2, so y+1=−12x−2. Subtract 1 to get y=−12x−3. (b) 2·x=2x and 2·4=8, so y+1=2x+8. Subtract 1 to get y=2x+7.Slope-intercept form is wanted. Distribute the slope over (x + 4), then subtract 1 from both sides so that y stands alone.
  5. Check with P and with the slopes. (a) −12(−4)−3=2−3=−1. The slope −12 matches the given line, and the y-intercept −3 differs from 3. (b) 2(−4)+7=−8+7=−1, and (−12)(2)=−1.Each new line must contain P, so x = −4 has to return y = −1. A parallel answer must keep the slope without being the same line. A perpendicular answer must give a slope product of −1.
Answer
(a) Parallel: y = −12x − 3. (b) Perpendicular: y = 2x + 7.
Double-check Substitute P(−4, −1). For (a), −12(−4) − 3 = 2 − 3 = −1. For (b), 2(−4) + 7 = −8 + 7 = −1. So both lines pass through P. Line (a) has slope −12, the same as the given slope, and its y-intercept is −3 rather than 3, so it is parallel and is not the same line. Line (b) has slope 2, and (−12)(2) = −1, so it is perpendicular. The shortcut b = y1 − mx1 gives the same intercepts: (a) b = −1 − (−12)(−4) = −1 − 2 = −3, and (b) b = −1 − 2(−4) = −1 + 8 = 7. In standard form the answers are x + 2y = −6 and 2x − y = −7. P fits both: −4 + 2(−1) = −6 and 2(−4) − (−1) = −7.

Work to write

  1. 2y = −x + 6, so y = −12x + 3 and mgiven = −12
  2. Parallel: m = −12
  3. Perpendicular: m = −1 ÷ (−12) = 2, since (−12)(2) = −1
  4. (a) y + 1 = −12(x + 4), so y = −12x − 3
  5. (b) y + 1 = 2(x + 4), so y = 2x + 7
  6. Check: −12(−4) − 3 = −1 and 2(−4) + 7 = −1

The trap

Using the old slope in a perpendicular problem, or using the old intercept after changing the slope. Choose the direction first, then use the new point to find the new intercept.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Perpendicular to a negative slope

You need the perpendicular line to y = −25x + 4 through (2, −1).

Show the steps and the answer
(0, −6)(2.4, 0)point−4−2246−448
y = 2.5x − 6, solid, beside y = −0.4x + 4, dashed.
  1. The negative reciprocal is 52. Substitute −1=52×2+b=5+b.A negative original slope gives a positive perpendicular slope.
  2. Subtract 5 to obtain b = −6. Plug back in: 5−6=−1.The required point selects and verifies the intercept.
  3. Write y=52x−6.The chosen direction is now positioned correctly.
Answer
y=52x−6.
Double-check The slope product (−25) × 52 = −1, and point-slope form y + 1 = 52(x − 2) expands to the same result.

9.9 Find the point shared by two lines

about 4 minOpen the full lesson

The rule

A solution to a system satisfies every equation.

For y=f(x) and y=g(x), solve f(x)=g(x), find y, and check both. Two lines have one, no, or infinitely many shared points.

How

  1. Graph the two lines to locate or estimate their shared point.
  2. If both outputs are formulas in the same input, set those formulas equal.
  3. Solve for the shared input. Watch for a contradiction or an equality true for every input.
  4. Substitute a found input into one original formula to obtain the output.
  5. Substitute the point into both original equations, then report both coordinates.

Worked example

Worked example

Two lines that cross between grid lines

The graph shows the line y = −2x + 1, which passes through (0, 1) and (2, −3). A second line is y = 23x − 3. Sketch the second line on the same axes and estimate where the two lines cross. Then find their shared point exactly, check it in both equations, and explain how you know the lines share no other point.

Show the steps and the answer
(0, 1)(2, −3)−6−4−2246−6−4−2246
The line y = −2x + 1 on axes from −6 to 6, with the points (0, 1) and (2, −3) marked.
  1. Add the second line to the graph. Start at its y-intercept (0,−3) and use slope 23 (up 2 for every 3 to the right) to reach (3,−1), then draw the line. The drawn line y=−2x+1 is above the new line at x=1 and below it at x=2. So they cross between x=1 and x=2, at a height of about −2. Estimate: about (1.5,−2).A shared point lies on both lines, so it is where the two graphs meet. This crossing falls between grid lines, so the graph gives only an estimate. Algebra will find the exact point, and the estimate tells us roughly what to expect.
  2. Both equations are solved for y, so set the right-hand sides equal: −2x+1=23x−3.At the shared point both lines have the same input x and the same output y. So the two formulas for y must give the same value there.
  3. Multiply both sides by 3: −6x+3=2x−9. Add 6x to both sides: 3=8x−9. Add 9 to both sides: 12=8x. Divide both sides by 8: x=128=32.Multiplying by 3 clears the fraction, and doing the same thing to both sides keeps them equal. The x-terms did not cancel, because the slopes −2 and 23 are different. Had they cancelled, a false statement such as 3 = −9 would mean no shared point, and a true one such as 3 = 3 would mean the same line. Here exactly one input works.
  4. Substitute x=32 into the first equation: y=−2(32)+1=−3+1=−2.The shared point lies on both lines, so either original formula gives its y-value. The first has a whole-number slope, which keeps the arithmetic simple.
  5. Check (32,−2) in both original equations. First: −2(32)+1=−3+1=−2✓. Second: 23(32)−3=1−3=−2✓. Report both coordinates: the shared point is (32,−2).A solution of a system must satisfy every equation. The second equation was not used to find y, so it is a real test that catches slips. The point also agrees with the graph estimate of about (1.5, −2).
Answer
The lines share exactly one point, (32, −2), where x = 32 and y = −2. They share no other point because their slopes, −2 and 23, are different, so the equation −2x + 1 = 23x − 3 has only one solution.
Double-check Walk along each line from its y-intercept to x = 32. From (0, 1) with slope −2, the height drops 2(32) = 3, from 1 to −2. From (0, −3) with slope 23, the height rises 23(32) = 1, from −3 to −2. Both lines reach (32, −2), which matches the graph estimate of about (1.5, −2).

Work to write

  1. Graph estimate: the lines cross near (1.5, −2)
  2. −2x+1=23x−3
  3. −6x+3=2x−9
  4. 12 = 8x, so x = 32
  5. y=−2(32)+1=−2
  6. Check: −2(32) + 1 = −2 ✓ and 23(32) − 3 = −2 ✓
  7. Shared point: (32, −2); exactly one, because the slopes −2 and 23 differ

The trap

Finding the shared input and stopping. A point needs its output too. Also check both original equations; a point that fits only one is not a system solution.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Every point on one line

You need the shared points of y = 2x + 1 and 2y = 4x + 2.

Show the steps and the answer
(0, 1)(−0.5, 0)sample solution−22−4−2246
y = 2x + 1, solid, beside y = 2x + 1, dashed.
  1. Divide the second equation by 2: y=2x+1.This reveals it is the first equation again.
  2. Equate outputs and subtract both terms: 2x+1=2x+1 gives 0=0.Every input makes this equality true.
  3. State points (x,2x+1) for every real x. For x=1,y=3 and both originals give 3=3 and 6=6.All answers lie on the shared line; the sample substitution checks the description.
Answer
Infinitely many solutions: (x, 2x + 1) for every real x.
Double-check Same slope 2 and intercept 1 confirm that the graph is one line drawn twice.

9.10 Use an intersection to find break-even

about 6 minOpen the full lesson

The rule

C(x)=F+ vx, R(x)= px, and profit P(x)=R(x)−C(x).

Break-even satisfies C(x)=R(x). For F > 0 and p > v, x=Fp−v.

How

  1. Define the input quantity and its units; count sold items as nonnegative whole numbers.
  2. Put fixed expense at the cost intercept and per-item expense at the cost slope.
  3. Put selling price at the revenue slope, with revenue 0 before any sales.
  4. Set cost equal to revenue and solve for the quantity.
  5. Plug the quantity into both functions, then report quantity and dollars together.
  6. Compare revenue with cost to tell profit from loss.
  7. If the calculated quantity is between whole items, the model has no exact whole-item break-even. When each sale contributes a positive amount, use the next whole count to reach nonnegative profit.

Worked example

Worked example

Break-even for a craft-fair bracelet table

A school art club rents a table at a one-day craft fair to sell friendship bracelets. The table rental is a flat $22, the materials for each bracelet cost $2, and the club sells each bracelet for $6. Let x be the number of bracelets sold. The graph shows the club's cost line, which meets the vertical axis at (0, 22) and passes through (8, 38). (a) Write the cost function C(x) and the revenue function R(x), and confirm that C(x) fits both marked points. (b) Sketch the revenue line on the same axes and estimate where the two lines cross. (c) Find the break-even point exactly by setting C(x) = R(x). Check it in both functions, and give both the quantity and the dollar amount. (d) Compare revenue with cost on each side of the break-even point. Bracelets are sold only in whole numbers, so decide whether the club can break even exactly. Then find the fewest bracelets it must sell so that its profit is not negative.

Show the steps and the answer
(0, 22)(8, 38)246810618304254
The cost line C(x) = 22 + 2x for the bracelet table.
  1. Let x= the number of bracelets sold during the fair. Since x counts bracelets, the real sales are whole numbers x=0, 1, 2, 3, …, and both C(x) and R(x) are measured in dollars.Cost and revenue must use the same input and the same money unit before they can be compared, and a club cannot sell a negative or fractional bracelet.
  2. The $22 table fee is owed even if nothing sells, so the cost intercept is F=22. Each bracelet adds $2 of materials, so the cost slope is v=2. This gives C(x)=22+2x. Check it against the graph: C(0)=22 and C(8)=22+2(8)=38. The slope between the marked points is 38−228−0=168=2.A fixed expense is the cost at x = 0, which is where a line meets the vertical axis. A per-item expense is how much the cost rises for each extra item, which is the slope.
  3. Each bracelet brings in $6, and no sales bring in $0, so R(x)=6x. Sketch this line on the same axes through (0, 0), (5, 30) and (10, 60).Revenue is price times quantity, so its line starts at the origin and its slope is the selling price p = 6.
  4. Read the sketch. At x=0 the revenue line sits $22 below the cost line. At x=5 the revenue line is at 30 and the cost line is at 32, so revenue is still lower. At x=6 they are at 36 and 34, so revenue is now higher. The lines cross between 5 and 6 bracelets, at a height a little above $30.Break-even is where the two lines meet, and a graph estimate gives a target that the exact answer must agree with. The $22 gap shrinks by 6 − 2 = $4 for each bracelet, so it takes a little more than 5 bracelets to close it.
  5. Set cost equal to revenue: 22+2x=6x. Subtract 2x from both sides: 22=4x. Divide both sides by 4: x=224=112=5.5.Where the lines intersect they have the same height, so the two expressions are equal there. The result matches the rule x = Fp−v = 226−2 = 5.5, because each bracelet earns $4 toward the $22 fee.
  6. Put x=5.5 into both functions: C(5.5)=22+2(5.5)=22+11=33 and R(5.5)=6(5.5)=33. The lines meet at (5.5, 33). That is 5.5 bracelets, with $33 of cost and $33 of revenue.Equal outputs confirm that 5.5 solves the equation, and the shared output is the dollar coordinate. A break-even point is reported as a quantity together with its dollars.
  7. Profit is P(x)=R(x)−C(x)=6x−(22+2x)=4x−22. For x < 5.5, P(x) < 0, so R(x) < C(x) and the club has a loss. For x > 5.5, P(x) > 0, so R(x) > C(x) and the club has a profit. On the graph, the revenue line lies below the cost line to the left of the crossing and above it to the right.The sign of R(x) − C(x) tells profit from loss, and which line is on top shows the same thing on the graph.
  8. 5.5 lies between the whole counts 5 and 6, so no whole number of bracelets breaks even exactly. At x=5,R(5)=30 and C(5)=32, a $2 loss. At x=6,R(6)=36 and C(6)=34, a $2 profit. Each bracelet adds 6−2= $4 to profit, so every count from 6 upward is profitable. The club must sell at least 6 bracelets.Only whole bracelets can be sold. When each sale contributes a positive amount, profit increases with x, so the next whole count above the break-even quantity is the fewest sales with nonnegative profit.
Answer
C(x) = 22 + 2x and R(x) = 6x meet at (5.5, 33), so the break-even point is 5.5 bracelets, where cost and revenue are both $33. Bracelets are sold whole, so the club cannot break even exactly. Selling 5 bracelets gives a $2 loss ($30 revenue against $32 cost), and selling 6 gives a $2 profit ($36 against $34). The club must sell at least 6 bracelets to avoid a loss.
Double-check Rule: x = Fp−v = 226−2 = 224 = 5.5, the same quantity. Both functions give 33 at x = 5.5, so the dollar coordinate is consistent. Profit: P(x) = 4x − 22 gives P(5.5) = 22 − 22 = 0, P(5) = 20 − 22 = −2 and P(6) = 24 − 22 = 2. These match the $2 loss at 5 bracelets and the $2 profit at 6. The graph estimate, a crossing between 5 and 6 bracelets a little above $30, agrees with (5.5, 33).

Work to write

  1. x = number of bracelets sold; x = 0, 1, 2, …
  2. C(x) = 22 + 2x
  3. R(x) = 6x
  4. 22 + 2x = 6x
  5. 22 = 4x, so x = 224 = 5.5
  6. C(5.5) = 22 + 2(5.5) = 33 and R(5.5) = 6(5.5) = 33
  7. Break-even point (5.5, 33): 5.5 bracelets and $33
  8. x = 5: R(5) = 30 < C(5) = 32, a $2 loss
  9. x = 6: R(6) = 36 > C(6) = 34, a $2 profit
  10. No exact whole-bracelet break-even; sell at least 6 bracelets

The trap

Confusing the shared revenue with profit. At break-even both cost and revenue can be large, but profit is their difference, which is 0.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Prices with decimals

You need the break-even quantity with an $84 setup fee, production cost $1.50 per item, and sale price $3.25 per item. Assume every item produced is sold.

Show the steps and the answer
(0, 84)(−56, 0)48 items, $1567213549632472120168216
The cost begins at $84; the revenue catches it at 48 items.
  1. Write C(x)=84+1.50x and R(x)=3.25x. Set 84+1.50x=3.25x.A common input must give equal costs and revenue at break-even.
  2. Multiply every term by 100: 8,400+150x=325x.This clears the two-place decimal coefficients and scales the fixed fee too.
  3. Subtract 150x: 8,400=175x.The remaining coefficient corresponds to each sale's $1.75 contribution, measured in cents.
  4. Divide by 175: x=48, because 175×48=8,400.This finds the quantity paying the setup bill.
  5. Check C(48)=84+1.50×48=84+72=156.The original cost formula verifies the total expense.
  6. Check R(48)=3.25×48=156.The original revenue formula gives the same total, so the solved count works.
Answer
  • 48 items.
  • Cost = revenue = $156.
  • Break-even point: (48, 156).
Double-check The contribution route gives 48 × $1.75 = $84, exactly the starting bill. All decimals here are exact prices.

10 Complex numbers

about 23 min6 lessonsOpen the unit's crash course

10.1 The number i and the square root of a negative number

about 4 minOpen the full lesson

The rule

The imaginary unit i is the number with i2=−1, so i=−1.source 1

For any positive number a: −a=ia. Example: −16=i16=4i. Warning: a·b=ab is safe only when a and b are not both negative. When both are negative, write each root with i first, then multiply.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.1 Complex Numbers. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For −75, use the negative-root rule −a = ia: −75 = i75. Here a = 75 is positive, so this rule handles the negative sign before you simplify the real root.
  2. Factor 75 = 25 · 3. Use the largest square factor, 25, because its square root is a whole number and 3 has no square factor greater than 1.
  3. Use the product rule for nonnegative roots: 75 = 25 · 3 = 53. Both factors under the roots are positive, so this split is valid.
  4. Put the i back with the simplified root: i · 53 = 5i3. The order of multiplication can change. Write i before the root so it is clearly outside.
  5. Check by squaring with i2 = −1: (5i3)2 = 25 · (−1) · 3 = −75. Also check the sign: the square root symbol chooses the positive imaginary coefficient, 53. Squaring alone would also accept the negative of this answer.

Worked example

Worked example

Simplifying −75

Simplify −75. In plain words: find the number this root stands for, written with i and with the leftover root made as small as possible.

Show the steps and the answer

−75=−1·75

=i·25·3

=i·53

=5i3

  1. Look under the root: −75 is negative.No real number squares to a negative, so the answer will contain i.
  2. Split off the negative: −75=(−1)·75=−1·75.−75 is the same as (−1) · 75, and a root may be split across a product when at most one of the two numbers is negative.
  3. Replace −1 with i. This gives i·75.i is defined as the number whose square is −1, so i is −1.
  4. Find the largest perfect square that divides 75. Trying 4, 9, 16, 25, 36, 49 and 64 in turn, only 25 divides 75 evenly: 75÷25=3.Perfect squares are the only numbers that leave a root as whole numbers, and the largest one finishes the job in one move.
  5. Simplify the ordinary root: 75=25·3=25·3=53.25 and 3 are both positive, so the root splits safely, and 25 = 5.
  6. Put the pieces together: i·53=5i3.Multiplying in a different order does not change the answer, and writing i in front of the root keeps it from looking as if i were under the root.
Answer
−75=5i3
Double-check Square the answer: (5i3)2 = 52 · i2 · (3)2 = 25 · (−1) · 3 = −75, the number under the original root. As a second look at the size, a calculator gives 75 ≈ 8.660 and 5 · 3 ≈ 5 · 1.732 = 8.660 (both rounded to three decimals).

The trap

Multiplying under the roots before taking out i. −4 · −9 is not 36 = 6. Each root of a negative hides one i, so the product is 2i · 3i = 6i2 = −6. Whenever a negative sits under a square root, take the i out first, and only then multiply.

Quick check

Try it before you open its steps. It is question 5 of 9 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 9

Multiplying two roots of negatives

Multiply −25 · −4. In plain words: find the single number this product equals.

Show the steps and the answer
  1. Stop before multiplying under the roots. Both numbers under the roots are negative.The shortcut a · b = ab fails when both numbers are negative.
  2. Change each root to its i form: −25=5i and −4=2i.Each square root of a negative hides one i.
  3. Multiply: 5i·2i=5·2·i·i=10i2.Numbers may be multiplied in any order, so gather the plain numbers together and the i factors together.
  4. Replace i2 with −1: 10·(−1)=−10.i2 = −1 is the definition of i.
Answer
  • −25
  • −4=−10
Double-check The tempting shortcut gives (−25)(−4) = 100 = 10, which has the right size but the wrong sign. To confirm the sign, count the i factors: two roots of negatives bring two i factors, and i · i = −1, so the product must be negative. Multiplying in the other order agrees: 2i · 5i = 10i2 = −10.

10.2 A complex number as a point in a plane

about 3 minOpen the full lesson

The rule

Standard form: a+bi, where a and b are real numbers and i is the imaginary unit (i2=−1).source 1

Real part: a. Imaginary part: b, the number without the i. In the complex plane, a+bi is the point (a, b): a along the horizontal real axis, b along the vertical imaginary axis.source 1 Two complex numbers are equal only when their real parts are equal and their imaginary parts are equal.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.1 Complex Numbers. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Write 3 − 4i = 3 + (−4)i. The standard-form rule is a + bi, so the minus sign belongs to the coefficient of i.
  2. Match the parts: a = 3 and b = −4. The rule defines the imaginary part as the coefficient b, so it is −4 without the i.
  3. Use a + bi ↔ (a, b) to write the point (3, −4). The first coordinate is horizontal and the second is vertical, which keeps the real and imaginary parts separate.
  4. Start at the origin, where the axes cross, and move 3 units right. A positive real part goes right on the horizontal real axis.
  5. Move 4 units down and draw the dot. The imaginary part is negative, so the vertical move is down. Label the dot 3 − 4i.
  6. Check by reading the point back: its horizontal coordinate is 3 and its vertical coordinate is −4. The standard-form rule rebuilds 3 + (−4)i = 3 − 4i. Both parts match the given number, which is the rule for equality.

Worked example

Worked example

Naming the parts of 3 − 4i and plotting it

Name the real part and the imaginary part of 3 − 4i, then plot it in the complex plane. In plain words: find the two numbers in the address, then put a dot at that address.

Show the steps and the answer
3 − 4i3−4i−6−4−2246−6−4−2246
The dot for 3 − 4i is straight below 3 on the horizontal axis and level with −4i on the vertical axis.
  1. Rewrite the subtraction as adding a negative: 3−4i=3+(−4)i.The pattern a + bi has a plus sign in the middle, so the minus sign has to travel with the 4.
  2. Match against a+bi and read a=3.The real part is the plain number, the piece with no i on it.
  3. Read b=−4.The imaginary part is the number multiplying i, with its sign and without the i.
  4. Write the address as the point (3,−4).The real part goes first (across) and the imaginary part goes second (up or down).
  5. Start at the origin and move 3 units to the right along the real axis.The real part is 3, and a positive real part means right.
  6. From there move 4 units straight down and draw the dot. Label it 3−4i.The imaginary part is −4, and a negative imaginary part means down.
Answer
  • Real part: 3
  • Imaginary part: −4
  • Point: (3, −4), which is 3 units right and 4 units down from the origin
Double-check Read the dot backward. Straight above it on the real axis is the mark 3, so the real part is 3. Level with it on the imaginary axis is the mark −4i, so the imaginary part is −4. Rebuilding gives 3 + (−4)i = 3 − 4i, the number we started with.

The trap

Calling the imaginary part bi instead of b. The imaginary part of 3 − 4i is −4, a plain real number with its sign. It is not −4i and it is not 4. Leave the i off and keep the minus sign.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A root of a negative number first

Write 8 + −25 in the form a + bi, then name its parts. In plain words: turn the root into a number with i, then read the address.

Show the steps and the answer
  1. Rewrite the root: −25=25·i=5i.The last lesson showed that the square root of a negative number is i times the square root of the positive number.
  2. Write the number as 8+5i.Replacing −25 with 5i puts the number in standard form.
  3. Read a=8 and b=5.8 is the plain number and 5 is the number multiplying i.
Answer
  • 8+−25=8+5i
  • Real part: 8
  • Imaginary part: 5
Double-check Square 5i to test the root: (5i)2 = 25·i2 = 25·(−1) = −25. So 5i is a square root of −25, and 8 + 5i is the same number as 8 + −25.

10.3 Adding and subtracting complex numbers

about 4 minOpen the full lesson

The rule

(a+bi)+(c+di)=(a+c)+(b+d)i(a+bi)−(c+di)=(a−c)+(b−d)i

How

  1. For (8 − 3i) − (2 − 7i), use the subtraction rule (a − c) + (b − d)i. Match a = 8, b = −3, c = 2 and d = −7, keeping each sign with its part.
  2. Subtract both terms of the second number: (8 − 3i) − (2 − 7i) = 8 − 3i − 2 + 7i. Distributing the minus sign changes both signs, because subtracting a number means adding its opposite.
  3. Group matching terms: 8 − 3i − 2 + 7i = (8 − 2) + (−3 + 7)i. The addition and grouping rules let you bring real terms together and i terms together.
  4. Combine each group: (8 − 2) + (−3 + 7)i = 6 + 4i. The rule keeps the real result 6 and the imaginary coefficient 4 separate in a + bi form.
  5. Check by undoing the subtraction: (6 + 4i) + (2 − 7i) = (6 + 2) + (4 − 7)i = 8 − 3i. Adding back the number you subtracted returns the starting number.

Worked example

Worked example

Subtracting when the second number has a minus sign inside

Subtract: (8 − 3i) − (2 − 7i). In plain words: start with the complex number 8 − 3i and take away the complex number 2 − 7i. The answer is one complex number written as a + bi.

Show the steps and the answer
02468−2lands on 6
The real parts: start at 8 and move 2 to the left, landing on 6.
−4−2024+7lands on 4
The imaginary parts: start at −3 and move 7 to the right, because taking away −7 adds 7, landing on 4.
8 − 3i6 − 3i6 + 4i246810−4−2246
In the complex plane, taking away 2 − 7i slides the point 8 − 3i a distance of 2 to the left.
  1. Name the parts. In 8−3i the real part is 8 and the imaginary part is −3. In 2−7i the real part is 2 and the imaginary part is −7.The sign in front of a term belongs to that term, so the imaginary parts are −3 and −7, not 3 and 7.
  2. Change both signs of the second number and drop the parentheses: (8−3i)−(2−7i)=8−3i−2+7i.The minus sign in front of the parentheses takes away everything inside. Taking away 2 gives −2. Taking away −7i gives +7i, because subtracting a negative is the same as adding.
  3. Put the like terms side by side: (8−2)+(−3i+7i).Addition works in any order, so the real numbers can sit together and the i terms can sit together.
  4. Combine the real parts: 8−2=6.Terms with no i are the same kind of thing, so they combine with each other.
  5. Combine the i terms: −3i+7i=(−3+7)i=4i.−3 of something plus 7 of the same thing is 4 of it. On a number line: start at −3, move 7 to the right, land on 4.
  6. Write the answer with the real part first: 6+4i.The standard form of a complex number is a + bi.
Answer
6 + 4i
Double-check Undo the subtraction by adding back what was taken away: (6 + 4i) + (2 − 7i) = (6 + 2) + (4 − 7)i = 8 − 3i. That is the number we started with, so 6 + 4i is right. The grid agrees: from 8 east and 3 south, walk 2 west and 7 north, and you stand 6 east and 4 north.

The trap

Changing only the first sign when you subtract. In (8 − 3i) − (2 − 7i), the minus sign outside reaches both terms inside: it makes −2 and it makes +7i. Writing 8 − 3i − 2 − 7i gives 6 − 10i, which is wrong. Before you combine anything, rewrite the line with both signs of the second number changed.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A part that cancels to zero

Subtract: (7 − 2i) − (7 + 3i). In plain words: start at 7 − 2i and take away 7 + 3i.

Show the steps and the answer

7−2i−7−3i

real parts: 7 − 7 = 0

imaginary parts: −2 − 3 = −5

answer: −5i

  1. Change both signs of the second number and drop the parentheses: 7−2i−7−3i.Taking away 7 gives −7, and taking away +3i gives −3i.
  2. Combine the real parts: 7−7=0.The two real parts are equal, so nothing is left.
  3. Combine the i terms: −2i−3i=−5i.−2 − 3 = −5: start at −2 and move 3 more to the left.
  4. Write the answer: 0−5i=−5i.A real part of 0 adds nothing, so it is left out. The answer is still a complex number, with real part 0.
Answer
−5i
Double-check Add back: −5i + (7 + 3i) = 7 + (−5 + 3)i = 7 − 2i, which is the first number.

10.4 Multiplying complex numbers

about 4 minOpen the full lesson

The rule

(a+bi)(c+di)=ac+ adi + bci +bdi2=(ac−bd)+(ad+bc)i, because i2=−1.

In words: multiply every term of the first number by every term of the second, replace i2 with −1, then collect the real numbers and collect the i terms.

How

  1. For (3 + 2i)(1 + 4i), use the distributive rule: (3 + 2i)(1 + 4i) = 3 · 1 + 3 · 4i + 2i · 1 + 2i · 4i. Each term in the first factor multiplies each term in the second, so all four products are included.
  2. Multiply the coefficients and the i factors: 3 · 1 + 3 · 4i + 2i · 1 + 2i · 4i = 3 + 12i + 2i + 8i2. In the last product, i · i becomes i2 by the definition of a square.
  3. Use i2 = −1: 8i2 = −8. This turns the last product into a real term, so the full expression is 3 + 12i + 2i − 8.
  4. Combine like terms: 3 + 12i + 2i − 8 = (3 − 8) + (12 + 2)i = −5 + 14i. Real terms combine with real terms and i terms with i terms, giving standard form.
  5. Check with the rule’s coefficient formula. Set a = 3, b = 2, c = 1 and d = 4. The real part is ac − bd = 3 · 1 − 2 · 4 = −5. The imaginary part is ad + bc = 3 · 4 + 2 · 1 = 14. These give −5 + 14i again; check all four signed products if they disagree.

Worked example

Worked example

Two complex numbers, four products

Multiply (3 + 2i)(1 + 4i). In plain words: two complex numbers are being multiplied, and you must find the one complex number a + bi that the product equals.

Show the steps and the answer
312i32i8i² = −82i14i
Four cells, four products: only the bottom right cell holds i2, and it becomes the real number −8.
  1. Name the four products you need: First 3·1, Outer 3·4i, Inner 2i·1, Last 2i·4i.Each number has two terms, and the distributive law says every term of the first must multiply every term of the second. Two terms times two terms is four products. The picture shows them as four cells.
  2. First: 3·1=3.Two real numbers multiply the ordinary way. This is the top left cell.
  3. Outer: 3·4i=12i.Multiply the numbers, 3 · 4 = 12, and carry the i along, the same as 3 · 4x = 12x. This is the top right cell.
  4. Inner: 2i·1=2i.Multiplying by 1 changes nothing. This is the bottom left cell.
  5. Last: 2i·4i=8i2.Multiply the numbers, 2 · 4 = 8, and multiply the letters, i · i = i2. This is the bottom right cell.
  6. Write the four products in a row: 3+12i+2i+8i2.The whole product is the sum of the four cells.
  7. Replace i2 with −1: 8i2=8·(−1)=−8. The row becomes 3+12i+2i−8.The imaginary unit i is defined by i2 = −1, so 8i2 is the real number −8.
  8. Collect the real numbers: 3−8=−5.Real numbers combine with real numbers, as in adding complex numbers.
  9. Collect the i terms: 12i+2i=14i.These are like terms: 12 of something plus 2 of the same thing is 14 of it.
  10. Write the answer in a+bi form: −5+14i.The real part goes first and the i term second. The real part is −5 and the imaginary part is 14.
Answer
(3+2i)(1+4i)=−5+14i
Double-check Second way, with the formula in the rule: a = 3, b = 2, c = 1, d = 4. Real part: ac − bd = 3 · 1 − 2 · 4 = 3 − 8 = −5. Imaginary part: ad + bc = 3 · 4 + 2 · 1 = 12 + 2 = 14. That gives −5 + 14i again. A number check on the four products, before i2 was replaced: treat i as a letter for a moment and put 1 in its place: 3 + 12i + 2i + 8i2 gives 3 + 12 + 2 + 8 = 25, and (3 + 2)(1 + 4) = 5 · 5 = 25. The two agree. Agreement does not prove every product right, but a dropped or wrong product usually makes them differ.

The trap

The most common mistake is in the Last product. 2i · 4i is 8i2, and 8i2 is −8: a real number with the opposite sign. It is not 8, not 8i and not −8i. Say it each time you reach an i2: the sign flips and the i2 disappears. Then check that your final answer has no i2 left in it.

Quick check

Try it before you open its steps. It is question 6 of 11 in the full lesson, where they run from easy to exam-hard.

Try it · level 6 of 11

Square roots of negative numbers inside

Multiply (2 + −9)(1 − −4). In plain words: rewrite each number in a + bi form, then find the complex number equal to the product.

Show the steps and the answer
  1. Rewrite the roots with i: −9=3i and −4=2i. The product becomes (2+3i)(1−2i).The square root of a negative number must be written with i before any multiplying. The rule a · b = ab fails when both numbers are negative.
  2. First: 2·1=2.Two real numbers.
  3. Outer: 2·(−2i)=−4i.The minus sign belongs to the 2i. A positive times a negative is negative.
  4. Inner: 3i·1=3i.Multiplying by 1 changes nothing.
  5. Last: 3i·(−2i)=−6i2.Numbers: 3 · (−2) = −6. Letters: i · i = i2.
  6. Replace i2 with −1: −6i2=−6·(−1)=6. The row is 2−4i+3i+6.A negative times a negative is positive.
  7. Collect: real numbers 2+6=8, i terms −4i+3i=−1i, written −i. Answer: 8−i.Real with real, i with i. A lone i means 1i, so −1i is written −i.
Answer
(2+−9)(1−−4)=8−i
Double-check Second way, with the formula in the rule on (2 + 3i)(1 − 2i): a = 2, b = 3, c = 1, d = −2. Real part: ac − bd = 2 − (3)(−2) = 2 + 6 = 8. Imaginary part: ad + bc = (2)(−2) + (3)(1) = −4 + 3 = −1. That gives 8 − i again.

10.5 The conjugate and dividing complex numbers

about 5 minOpen the full lesson

The rule

The complex conjugate of a+bi is a−bi.source 1

A number times its conjugate is real: (a+bi)(a−bi)=a2+b2. To divide (the bottom must not be 0), multiply top and bottom by the conjugate of the bottom: a+bic+di=(a+bi)(c−di)c2+d2.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.1 Complex Numbers. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For 10+11i3+2i, check that the denominator 3 + 2i is nonzero. Its real and imaginary parts are not both zero, so division is defined. The conjugate rule keeps 3 and reverses the sign of 2i, giving 3 − 2i.
  2. Multiply by 3−2i3−2i: 10+11i3+2i = (10+11i)(3−2i)(3+2i)(3−2i). A nonzero number divided by itself is 1, so this changes the form without changing the value.
  3. Use the conjugate-product rule on the denominator: (3 + 2i)(3 − 2i) = 32 + 22 = 13. The imaginary terms cancel, and replacing i2 with −1 makes the squared terms add.
  4. Distribute in the numerator: (10 + 11i)(3 − 2i) = 30 − 20i + 33i − 22i2 = 52 + 13i. Here i2 = −1 turns −22i2 into +22; then combine matching terms.
  5. Divide each term by the real denominator: 52+13i13 = 5213 + 1313i = 4 + i. Dividing a sum by the same nonzero number divides each term, so this is a + bi form.
  6. Check by multiplying back: (4 + i)(3 + 2i) = 12 + 8i + 3i + 2i2 = 10 + 11i. Distributing and using i2 = −1 recovers the original numerator, which verifies the quotient.

Worked example

Worked example

Dividing by 3 + 2i

Divide: 10+11i3+2i. In plain words: find the complex number that, multiplied by 3 + 2i, gives 10 + 11i. Write it in the form a + bi.

Show the steps and the answer
30−20i1033i−22i² = 2211i3−2i
The four cells of the top: the plain cells give 30 + 22 = 52 and the i cells give −20i + 33i = 13i.
  1. Look at the bottom: 3+2i. It has an i, so the conjugate is needed.With a real number on the bottom, the real part and the i part can be read off one at a time.
  2. Write the conjugate of the bottom: 3−2i.The real part 3 stays. The sign in front of 2i flips from plus to minus.
  3. Multiply top and bottom by 3 − 2i: 10+11i3+2i×3−2i3−2i=(10+11i)(3−2i)(3+2i)(3−2i).3−2i3−2i is a number over itself, which is 1. Multiplying by 1 changes the look of the fraction, not its value.
  4. Bottom: (3+2i)(3−2i)=9−6i+6i−4i2=9+4=13.−6i and +6i cancel. Since i2 = −1, the piece −4i2 is −4 × (−1) = +4.
  5. Top: (10+11i)(3−2i)=30−20i+33i−22i2.Each piece of the first number times each piece of the second: 10 × 3, 10 × (−2i), 11i × 3, 11i × (−2i).
  6. Replace i2 with −1 and collect: −22i2=+22, so the top is 30+22−20i+33i=52+13i.Real pieces go together: 30 + 22 = 52. The i pieces go together: −20i + 33i = 13i.
  7. Split the fraction: 52+13i13=5213+1313i=4+i.Dividing a sum by a number divides each piece. 52 ÷ 13 = 4 and 13 ÷ 13 = 1.
Answer
4 + i
Double-check Multiply the answer by the original bottom: (3 + 2i)(4 + i) = 12 + 3i + 8i + 2i2 = 12 + 11i − 2 = 10 + 11i. That is the original top, so 4 + i is right.

The trap

Writing the bottom as a2 − b2. The product (3 + 2i)(3 − 2i) is 9 + 4 = 13, not 9 − 4 = 5. The last piece is −4i2, and i2 = −1 turns it into +4. To avoid the mistake, write the i2 piece out every time, and remember that the bottom is a sum of two squares, so it can never be negative and can never contain i.

Quick check

Try it before you open its steps. It is question 7 of 14 in the full lesson, where they run from easy to exam-hard.

Try it · level 7 of 14

Fractions that must be reduced

Divide: 1+5i2+4i. In plain words: find the number that, multiplied by 2 + 4i, gives 1 + 5i. Write it in the form a + bi with reduced fractions.

Show the steps and the answer
  1. The conjugate of the bottom 2+4i is 2−4i.Keep the real part 2, flip the sign in front of 4i.
  2. Multiply top and bottom by 2−4i: (1+5i)(2−4i)(2+4i)(2−4i).The same number on top and bottom keeps the value the same.
  3. Bottom: 22+42=4+16=20.A number times its conjugate is a2 + b2.
  4. Top: (1+5i)(2−4i)=2−4i+10i−20i2.Four products: 1 × 2, 1 × (−4i), 5i × 2, 5i × (−4i).
  5. Replace i2 with −1 and collect: 2+20−4i+10i=22+6i.−20i2 = +20. Real pieces: 2 + 20 = 22. The i pieces: −4i + 10i = 6i.
  6. Split: 22+6i20=2220+620i.Each piece of the top is divided by 20.
  7. Reduce each fraction: 2220=1110 and 620=310.Top and bottom of each fraction can both be divided by 2.
Answer
1110+310i
Double-check The answer is 11+3i10. Multiply its top by the original bottom: (11 + 3i)(2 + 4i) = 22 + 44i + 6i + 12i2 = 22 + 50i − 12 = 10 + 50i. Divide by the 10: 10+50i10 = 1 + 5i, the original top.

10.6 Powers of i repeat every four

about 3 minOpen the full lesson

The rule

i1=i,i2=−1,i3=−i,i4=1, and then the list repeats.

For any whole number n≥0, divide n by 4 and call the remainder r. Then in=ir: remainder 1 gives i, remainder 2 gives −1, remainder 3 gives −i, and remainder 0 gives 1.

How

  1. For i47, use the four-power rule: 47 = 4 · 11 + 3. Dividing the exponent by 4 leaves remainder 3, so there are 11 complete groups of four and 3 factors left.
  2. Use the exponent rules to separate those groups: i47 = (i4)11 · i3. Multiplying powers adds their exponents, and 4 · 11 + 3 = 47.
  3. Replace each group with 1: (i4)11 · i3 = 111 · i3 = i3. The rule i4 = 1 means complete groups do not change the product.
  4. Use the remainder-3 value: i3 = i2 · i = (−1) · i = −i. This follows from i2 = −1, so i47 = −i.
  5. Check using pairs instead of groups of four: i47 = (i2)23 · i = (−1)23 · i = −i. There are 23 pairs and one factor left because 47 = 2 · 23 + 1. An odd number of negative factors gives a negative product, confirming the answer.

Worked example

Worked example

A large power of i

Simplify i47.

Show the steps and the answer

47 = 4 × 11 + 3

i47=(i4)11·i3

=111·i3

=i3

=−i

  1. Say what the question asks: i47 means 47 copies of i multiplied together. Find which of the four values i, −1,−i or 1 that product equals.Every power of i lands on one of those four values, so the job is to pick the right one, not to multiply 47 times.
  2. Divide the exponent by 4: 47÷4=11 remainder 3.4 × 11 = 44 and 47 − 44 = 3. The 47 copies of i make 11 full groups of four with 3 copies left over.
  3. Split the power into the full groups and the leftover: i47=(i4)11·i3.Multiplying powers of the same base adds the exponents, and 4 × 11 + 3 = 47.
  4. Replace i4 with 1: (i4)11·i3=111·i3=i3.i4 = 1, and 1 raised to any power is still 1, so the 11 full groups disappear.
  5. Read the value for remainder 3: i3=−i.i3=i2·i=(−1)·i=−i.
Answer
i47=−i
Double-check A second way, using pairs instead of groups of four: 47 = 2 × 23 + 1, so i47 = (i2)23 · i = (−1)23 · i. An odd number of −1 factors multiplies to −1, so the result is −1 · i = −i. Both ways agree.

The trap

Using the wrong number from the division. In 47 ÷ 4 = 11 remainder 3, the 11 only counts full groups of four, and each full group equals 1 and disappears. The answer comes from the remainder, 3, so i47 = i3 = −i. A second form of the same mistake: when the remainder is 0, the answer is 1, not 0. No power of i is ever 0.

Quick check

Try it before you open its steps. It is question 7 of 14 in the full lesson, where they run from easy to exam-hard.

Try it · level 7 of 14

Four powers in a row

Simplify i30 + i31 + i32 + i33.

Show the steps and the answer
  1. Say what the question asks: find the value of each of the four powers, then add them.Each power is one of the four values in the cycle.
  2. i30: 30÷4=7 remainder 2, so i30=−1.4 × 7 = 28 and 30 − 28 = 2. Remainder 2 gives −1.
  3. i31: 31÷4=7 remainder 3, so i31=−i.31 − 28 = 3. Remainder 3 gives −i.
  4. i32: 32÷4=8 remainder 0, so i32=1.4 × 8 = 32 exactly. Remainder 0 gives 1.
  5. i33: 33÷4=8 remainder 1, so i33=i.33 − 32 = 1. Remainder 1 gives i.
  6. Add: −1+(−i)+1+i=(−1+1)+(−i+i)=0+0i=0.Real parts are combined with real parts and imaginary parts with imaginary parts, and each pair cancels.
Answer
i30+i31+i32+i33=0
Double-check Pull i30 out of every term: i30(1 + i + i2 + i3) = i30(1 + i − 1 − i) = i30 · 0 = 0. Any four powers of i in a row add to 0, because they are the four values i, −1, −i and 1 in some order.

11 Quadratic functions

about 27 min6 lessonsOpen the unit's crash course

11.1 The parabola and its parts

about 4 minOpen the full lesson

The rule

A quadratic function is f(x) = ax2 + bx + c, where a, b and c are numbers and a ≠ 0.

Its graph is a parabola.source 1
Vertex: the one turning point. If a > 0 the parabola opens up and the vertex is its lowest point; the y-coordinate of the vertex is the minimum value. If a < 0 it opens down and the vertex is its highest point; the y-coordinate of the vertex is the maximum value.
Axis of symmetry: the vertical line through the vertex. If the vertex is (h, k), the line is x = h.source 1
y-intercept: the one point of the graph with x=0. x-intercepts: the points of the graph with y=0. There are two, one or none.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.2 Quadratic Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Use the worked example’s graph of f(x) = −x2 + 2x + 3. By the opening rule, a = −1 makes it open down; the arms fall on both sides.
  2. Use the vertex definition: find the turning point in the picture, (1, 4). Because the graph opens down, its highest output is 4, reached at x = 1.
  3. Use the symmetry rule x = h. The vertex has h = 1, so write x = 1 for the vertical line through it.
  4. Use the y-intercept definition: x = 0. The picture marks (0, 3), so that is the point where the graph meets the y-axis.
  5. Use the x-intercept definition: y = 0. The picture marks (−1, 0) and (3, 0), so both belong in the answer.
  6. Check by substitution into the given formula: f(1) = −1 + 2 + 3 = 4, f(0) = 3, f(−1) = −1 − 2 + 3 = 0, and f(3) = −9 + 6 + 3 = 0. The two x-intercepts also average to (−1 + 3) ÷ 2 = 1, as symmetry requires.

Worked example

Worked example

Reading every part of a parabola from its graph

The picture shows the graph of f(x) = −x2 + 2x + 3, with five of its points labeled. Read off the direction it opens, the vertex, the axis of symmetry, the maximum value or minimum value, the y-intercept and the x-intercepts.

What it asks. Name the opening, turning point, fold line, maximum or minimum value and intercepts.

(1, 4)(−1, 0)(3, 0)(0, 3)(2, 3)−224−6−4−224
Notice that the highest point is (1, 4) and that the labeled points to its left and right come in pairs at…
Show the steps and the answer

The plan. Read the vertex first, then the opening and the axes. Use equal-height points to check symmetry.

  1. Plan. Read the vertex first, then the opening and the axes. Use equal-height points to check symmetry.
  1. Look at the arms. Moving away from the middle in either direction, the curve falls. The parabola opens down.The number multiplying x2 in the rule is −1, which is negative, and a negative number there turns the cup into a hill.
  2. Find the turning point. The curve rises to the point 1 across and 4 up, then falls. The vertex is (1, 4).On a parabola that opens down, the turn happens at the highest point.
  3. Write the axis of symmetry: x=1.The fold line is the vertical line through the vertex, and every point on that line has x-coordinate 1.
  4. Read the y-coordinate of the vertex: 4. The maximum value is 4. There is no minimum value.No point of the curve is higher than the vertex, so 4 is the largest output. The arms fall forever, so there is no smallest output.
  5. Go to the y-axis. The curve crosses it at height 3. The y-intercept is (0, 3).Every point on the y-axis has x = 0, so the 0 goes in the first slot.
  6. Go along the x-axis. The curve crosses it at −1 and at 3. The x-intercepts are (−1,0) and (3, 0).Every point on the x-axis has y = 0, so the 0 goes in the second slot.
Answer
  • Opens down
  • Vertex: (1, 4)
  • Axis of symmetry: x = 1
  • Maximum value: 4, reached at x = 1
  • y-intercept: (0, 3)
  • x-intercepts: (−1, 0) and (3, 0)
Double-check Second way, with the rule instead of the picture. f(1) = −(1)2 + 2(1) + 3 = −1 + 2 + 3 = 4. f(0) = 0 + 0 + 3 = 3. f(−1) = −(−1)2 + 2(−1) + 3 = −1 − 2 + 3 = 0. f(3) = −(3)2 + 2(3) + 3 = −9 + 6 + 3 = 0. Every point read from the picture satisfies the rule. Mirror check: halfway between the x-intercepts is (−1 + 3) ÷ 2 = 1, and halfway between (0, 3) and (2, 3) is (0 + 2) ÷ 2 = 1. Both land on the axis x = 1.

The trap

Wrong: a maximum is the point (h, k). Right: the vertex is (h, k); the maximum is the height k.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Opens down, and the vertex sits on the x-axis

The picture shows the graph of f(x) = −x2 + 4x − 4. Name the direction it opens, the vertex, the axis of symmetry, the maximum value, the y-intercept and the x-intercepts.

What it asks. Read the named parts of the graph.

(2, 0)(0, −4)(4, −4)24−10−8−6−4−22
Notice that the curve rises to touch the horizontal axis at one point and turns back without crossing it.
Show the steps and the answer

The plan. Read the vertex and opening, then the symmetry line, highest or lowest height and intercepts.

  1. Plan. Read the vertex and opening, then the symmetry line, highest or lowest height and intercepts.
  1. Both arms fall: the parabola opens down.Only a minus sign is written in front of x2, so a = −1, which is negative.
  2. The highest point is (2, 0). That is the vertex.A parabola that opens down turns at its highest point.
  3. Axis of symmetry: x=2. Maximum value: 0.The axis takes the x-coordinate of the vertex, and the maximum value takes the y-coordinate.
  4. The curve crosses the y-axis 4 below the x-axis. The y-intercept is (0,−4).It is the point of the curve with x = 0.
  5. The curve meets the x-axis at one point only, the vertex. There is one x-intercept: (2, 0).The vertex is the highest point and its height is 0, so every other point of the curve is below the x-axis.
Answer
  • Opens down
  • Vertex: (2, 0)
  • Axis of symmetry: x = 2
  • Maximum value: 0
  • y-intercept: (0, −4)
  • x-intercept: (2, 0), the only one
Double-check With the rule: f(2) = −(2)2 + 4(2) − 4 = −4 + 8 − 4 = 0 and f(0) = −4. One step to each side of the vertex, f(1) = −1 + 4 − 4 = −1 and f(3) = −9 + 12 − 4 = −1, both below the x-axis, so the curve touches the axis once. The twins (0, −4) and (4, −4) check the axis: f(4) = −16 + 16 − 4 = −4, and (0 + 4) ÷ 2 = 2.

11.2 The vertex form f(x) = a(x − h)2 + k

about 5 minOpen the full lesson

The rule

Vertex form: f(x)=a(x−h)2+k, where a≠0.

The vertex is (h, k) and the axis of symmetry is x=h.source 1 If a > 0 the parabola opens up and the vertex is its lowest point. If a < 0 it opens down and the vertex is its highest point. If a is larger than 1 or smaller than −1 the parabola is narrower than y=x2. If a is between −1 and 1 it is wider.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.2 Quadratic Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Match f(x) = −2(x + 3)2 + 5 to the vertex form rule a(x − h)2 + k. Read a = −2 and k = 5 from their positions; keep their signs.
  2. Find h by making the squared bracket zero: x + 3 = 0 gives h = −3. The vertex occurs there because the square contributes zero to the output.
  3. Apply the vertex and symmetry rules: (h, k) gives (−3, 5), and x = h gives x = −3. These locate the turning point and its vertical symmetry line.
  4. Apply the opening and width rules. Since a = −2 is negative, the graph opens down. Since −2 is less than −1, it is narrower than y = x2.
  5. Use vertex form to find nearby points. At x = −2 and x = −4, the bracket is 1 or −1, so its square is 1. Both outputs are −2(1) + 5 = 3, giving (−2, 3) and (−4, 3).
  6. Check by substitution: f(−3) = −2(0)2 + 5 = 5 and f(−4) = −2(−1)2 + 5 = 3. The points on either side have equal heights below the vertex, as the symmetry and downward opening require.

Worked example

Worked example

Read everything from f(x) = −2(x + 3)2 + 5

For f(x) = −2(x + 3)2 + 5, find the vertex, the axis of symmetry, which way the parabola opens, and whether it is narrower or wider than the plain parabola. Then name two more points on it.

What it asks. Read the vertex, symmetry, opening and width; find two more points.

Show the steps and the answer

The plan. Make the bracket zero, read the outside shift, then use a to place a point on each side.

(−3, 5)(−2, 3)(−4, 3)−6−4−22−448
Notice that the vertex (−3, 5) is the top of the solid curve.
  1. Plan. Make the bracket zero, read the outside shift, then use a to place a point on each side.
  1. Say what the question asks: the function is already in vertex form. Find its turning point, its fold line, its direction and its width, then two more points for a sketch.Naming the task tells you which letters you need: h and k for the vertex and the axis of symmetry, a for the direction and the width.
  2. Write the pattern above the function. Pattern: a(x−h)2+k. Function: −2(x+3)2+5.Lining the two up shows which number plays which part.
  3. Read a=−2.a is the number multiplying the squared bracket.
  4. Find the x that makes the bracket 0: x+3=0 gives x=−3. So h=−3.This finds the one input where the squared piece is 0, which is where the vertex sits. Plug it back: (−3 + 3)2 = 02 = 0. Another way to see it: x + 3 is the same as x − (−3), so matching (x − h) gives h = −3.
  5. Read k=5.k is the number added outside the bracket, with the sign you see.
  6. Write the vertex: (h,k)=(−3,5).In vertex form the vertex is always the point (h, k).
  7. Write the axis of symmetry: x=−3.The axis of symmetry is the vertical line through the vertex, and every point on that line has x = h.
  8. Decide the opening: a=−2 is negative, so the parabola opens down and the vertex is its highest point.A negative a makes a(x − h)2 take away from k everywhere except at x = h.
  9. Decide the width: −2 is smaller than −1, so the parabola is narrower than y=x2.Its size is 2, so the curve falls 2 for every 1 that y = x2 rises.
  10. Find a point one step right of the vertex. The input is −2. f(−2)=−2(−2+3)2+5=−2(1)2+5=−2+5=3. The point is (−2,3).Bracket first, then the square, then multiply by −2, then add 5.
  11. Mirror that point across the axis of symmetry x=−3. One step left of −3 is −4, at the same height. The point is (−4,3).A parabola is the same on both sides of its axis of symmetry.
Answer
  • Vertex: (−3, 5)
  • Axis of symmetry: x = −3
  • Opens down, so the vertex is the highest point
  • Narrower than y = x2
  • Two more points: (−2, 3) and (−4, 3)
Double-check Plug in directly, without using the pattern. f(−3) = −2(−3 + 3)2 + 5 = −2(0)2 + 5 = 5, which matches k. f(−4) = −2(−4 + 3)2 + 5 = −2(−1)2 + 5 = −2(1) + 5 = 3, which matches the mirror point without using symmetry. Both neighbors give 3, which is less than 5, so the curve falls away on both sides of (−3, 5): it opens down. As shifts: y = x2 has its vertex at (0, 0), and moving 3 left and 5 up lands on (−3, 5).

The trap

Wrong: read the sign inside the bracket as h. Right: choose the x that makes the bracket zero.

Quick check

Try it before you open its steps. It is question 6 of 11 in the full lesson, where they run from easy to exam-hard.

Try it · level 6 of 11

The pieces written in a different order

Find the vertex of f(x) = 5 − 2(x − 7)2 and say which way the parabola opens.

What it asks. Read the requested features from vertex form.

Show the steps and the answer

The plan. Make the squared bracket zero for h. Read k and a, then use their values for the vertex, opening and width.

(7, 5)(6, 3)(8, 3)46810−4−2246
Notice that the 5 written first in the formula is the height of the vertex.
  1. Plan. Make the squared bracket zero for h. Read k and a, then use their values for the vertex, opening and width.
  1. Say what is asked: where is the turning point, and is it the top or the bottom?The formula is out of order, so the first job is to find which number is a and which is k.
  2. Rewrite with the squared piece first: f(x)=−2(x−7)2+5.Adding in a different order does not change a sum, and the minus sign travels with the 2 it stands in front of.
  3. Read a=−2,h=7 and k=5.−2 multiplies the bracket, the bracket (x − 7) is 0 when x = 7, and 5 stands alone outside.
  4. Write the vertex (7, 5). Since a is negative, the parabola opens down.The vertex is (h, k), and a negative a opens down.
Answer
  • Vertex: (7, 5)
  • Opens down
  • Narrower than y = x2
Double-check Use the original order. f(7) = 5 − 2(0)2 = 5. One step each side: f(8) = 5 − 2(1)2 = 3 and f(6) = 5 − 2(−1)2 = 3. Both are below 5, so (7, 5) is the highest point.

11.3 From general form to vertex form

about 4 minOpen the full lesson

The rule

General form: f(x)=ax2+bx+c, with a≠0.

Completing the square turns it into f(x)=a(x+b2a)2+c−b24a. So the vertex (h, k) has h=−b2a and k=f(h). The number a is the same in both forms.

How

  1. Use the completing-the-square rule on f(x) = 2x2 − 12x + 13. Factor 2 from the two x terms to get 2(x2 − 6x) + 13. Completing the square needs a bare x2 inside the parentheses; the 13 stays outside.
  2. Find the missing term: half of −6 is −3, and (−3)2 = 9. Since (x − 3)2 = x2 − 6x + 9, adding 9 completes the square.
  3. Preserve the value by adding and subtracting the same number: 2(x2 − 6x + 9 − 9) + 13. The added 9 and subtracted 9 cancel.
  4. Rewrite the square and distribute the outside 2: 2(x − 3)2 − 18 + 13. The subtracted 9 becomes −18 because it was inside the factor of 2.
  5. Combine −18 + 13 = −5 to get 2(x − 3)2 − 5. By the vertex form rule, h = 3 and k = −5, so the vertex is (3, −5).
  6. Check by expanding: 2(x − 3)2 − 5 = 2(x2 − 6x + 9) − 5 = 2x2 − 12x + 13. The original formula is recovered. The shortcut also gives h = −(−12)2×2 = 3 and k = f(3) = −5.

Worked example

Worked example

Completing the square with a number in front

Rewrite f(x) = 2x2 − 12x + 13 in vertex form and name the vertex.

What it asks. Rewrite the same function so its vertex is visible.

Show the steps and the answer

The plan. Factor out the leading coefficient, complete the square inside, then combine constants and read the vertex.

x²−3xx−3x9−3x−3
The same picture again: An area model with sides x + −3 and x + −3.
  1. Plan. Factor out the leading coefficient, complete the square inside, then combine constants and read the vertex.
  1. Read a=2,b=−12,c=13.The signs belong to the numbers. The x term is −12x, so b is −12.
  2. Factor 2 out of the first two terms only: f(x)=2(x2−6x)+13.Completing the square needs a bare x2 inside the parentheses. 2x2 ÷ 2 = x2 and −12x ÷ 2 = −6x. The 13 stays outside.
  3. Take half of −6, which is −3, and square it: (−3)2=9.(x − 3)2 expands to x2 − 6x + 9, so 9 is the piece that x2 − 6x is missing.
  4. Add and subtract 9 inside the parentheses: f(x)=2(x2−6x+9−9)+13.Adding 9 and subtracting 9 together add 0, so the function is unchanged.
  5. Fold the first three terms into a square and move the −9 out, multiplied by 2: f(x)=2(x−3)2−18+13.x2 − 6x + 9 = (x − 3)2. The −9 sat inside parentheses that are multiplied by 2, so it leaves as 2 × (−9) = −18.
  6. Combine the plain numbers: −18+13=−5. So f(x)=2(x−3)2−5.Start at −18 on the number line and move up 13. You land on −5.
  7. Read the vertex: h=3 and k=−5.The pattern is a(x − h)2 + k. Here x − 3 shows h = 3, and the number added at the end is k = −5.
Answer
  • f(x)=2(x−3)2−5
  • Vertex: (3, −5)
Double-check Second way, the formula: h = −b2a = −−122·2 = 124 = 3. Then k = f(3) = 2(3)2 − 12(3) + 13 = 18 − 36 + 13 = −5. Same vertex. One more look: at x = 0 the general form gives 13, and the vertex form gives 2(−3)2 − 5 = 18 − 5 = 13.

The trap

Wrong: move the subtracted square outside unchanged. Right: multiply it by a as it leaves the bracket.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A number in front of x2

Rewrite f(x) = 3x2 + 12x + 7 in vertex form and name the vertex.

What it asks. Convert general form to vertex form and name the vertex.

Show the steps and the answer

The plan. Factor out a, add and subtract the square of half the inside coefficient, then simplify and expand to check.

  1. Plan. Factor out a, add and subtract the square of half the inside coefficient, then simplify and expand to check.
  1. Read a=3,b=12,c=7.Now a is not 1, so one extra step is needed.
  2. Factor 3 out of the first two terms only: f(x)=3(x2+4x)+7.3x2 ÷ 3 = x2 and 12x ÷ 3 = 4x. The 7 stays outside.
  3. Half of 4 is 2. Square it: 22=4.Halve the number on x inside the parentheses, which is 4. Do not halve the original 12.
  4. Add and subtract 4 inside: f(x)=3(x2+4x+4−4)+7.Inside the parentheses, +4 − 4 adds 0.
  5. Fold the square and move the −4 out times 3: f(x)=3(x+2)2−12+7.x2 + 4x + 4 = (x + 2)2, and 3 × (−4) = −12.
  6. Combine −12+7=−5. So f(x)=3(x+2)2−5, and the vertex is (−2,−5).x + 2 is x − (−2), so h = −2. The number at the end is k.
Answer
  • f(x)=3(x+2)2−5
  • Vertex: (−2, −5)
Double-check Formula: h = −122·3 = −126 = −2. Then f(−2) = 3(4) + 12(−2) + 7 = 12 − 24 + 7 = −5. Same vertex.

11.4 Domain and range of a quadratic

about 4 minOpen the full lesson

The rule

For a quadratic function with vertex (h, k), written as f(x)=a(x−h)2+k or as f(x)=ax2+bx+c, with a≠0:
Domain: (−∞,∞), every real number.

If a > 0 (the parabola opens up): the range is [k, ∞), and k is the minimum value.
If a < 0 (the parabola opens down): the range is (−∞, k], and k is the maximum value.

How

  1. Apply the unrestricted-domain rule to f(x) = −2x2 + 12x − 5. No input restriction is given, and squaring, multiplying and adding allow every real input, so the domain is (−∞, ∞).
  2. Use the earlier vertex shortcut h = −b2a. Here a = −2 and b = 12, so h = −122×(−2) = 3. This locates the input where the graph turns.
  3. Use k = f(h) to find the turning height: k = f(3) = −2(3)2 + 12(3) − 5 = 13. The vertex is (3, 13).
  4. Apply the range rule for a < 0. Since a = −2, the graph opens down and every output is at most 13. Write y ≤ 13, or (−∞, 13], and name the maximum value as 13 at x = 3. If a were positive, the graph would open up, the range would be [k, ∞), and k would be the minimum value.
  5. Check with vertex form: f(x) = −2(x − 3)2 + 13. A square is never negative, so −2(x − 3)2 is 0 or less, and the formula never exceeds 13. At x = 3 the square is 0, so 13 is reached. That verifies the bound and explains the closed bracket at 13.

Worked example

Worked example

Domain and range from the general form

Find the domain and the range of f(x) = −2x2 + 12x − 5, and name its maximum value or minimum value.

What it asks. Give every allowed input and output, and name the maximum or minimum value.

Show the steps and the answer

The plan. Find the vertex from the coefficients. Use its height and the opening for the range; the unrestricted domain is all real numbers.

(3, 13)(2, 11)(4, 11)range246−8−44812
The graph touches the line y = 13 once, at the vertex, and every other point sits below that line.
  1. Plan. Find the vertex from the coefficients. Use its height and the opening for the range; the unrestricted domain is all real numbers.
  1. Write the domain: (−∞,∞).The rule squares x, multiplies and adds. Nothing divides by x and nothing takes a root of x, so every real number can go in.
  2. Name a, b and c: a=−2,b=12,c=−5.The function is in general form ax2 + bx + c, so the three numbers are read off in order, with their signs.
  3. Find the x-value of the vertex: h=−b2a=−122·(−2)=−12−4=3.This finds the one input where the parabola turns around. 12 ÷ (−4) = −3, and the minus sign in front turns −3 into 3.
  4. Plug 3 back in to get the y-value of the vertex: k=f(3)=−2(3)2+12(3)−5=−2(9)+36−5=−18+36−5=13.The vertex's y-value is the output at x = 3. Square first, 32 = 9, then multiply by −2. The vertex is (3, 13).
  5. Read the sign of a: a=−2 is negative, so the parabola opens down.A negative a turns the parabola into a hill, so the vertex is the highest point on the graph.
  6. Write the range: (−∞,13].On a hill, every output is at the top or below it. The square bracket at 13 says 13 is reached, at x = 3. Infinity always gets a round bracket.
  7. Name the value: the maximum value is 13, and it happens at x=3.The maximum value is the largest output, which is the vertex's y-value when the parabola opens down. There is no minimum value, because the outputs fall forever.
Answer
  • Domain: (−∞, ∞)
  • Range: (−∞, 13]
  • Maximum value: 13, at x = 3
Double-check A second way: complete the square. −2x2 + 12x − 5 = −2(x2 − 6x) − 5 = −2((x − 3)2 − 9) − 5 = −2(x − 3)2 + 18 − 5 = −2(x − 3)2 + 13. The vertex form shows k = 13 and a = −2, so the range is (−∞, 13] again. Spot check: f(2) = −8 + 24 − 5 = 11 and f(4) = −32 + 48 − 5 = 11, both below 13.

The trap

Wrong: start the range at h. Right: use the vertex height k and include it.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 8

General form, find the vertex first

Find the domain and range of q(x) = x2 − 8x + 3, and name its maximum value or minimum value.

What it asks. Find the allowed inputs and outputs.

Show the steps and the answer

The plan. Read or compute the vertex. Use the opening to decide which heights extend from its included endpoint.

  1. Plan. Read or compute the vertex. Use the opening to decide which heights extend from its included endpoint.
  1. Write the domain: (−∞,∞).It is a quadratic function, so every real number can go in.
  2. Name a=1,b=−8,c=3.General form is ax2 + bx + c. The sign in front of 8x belongs to b.
  3. Find the x-value of the vertex: h=−b2a=−−82·1=−−82=−(−4)=4.This finds the input where the parabola turns. −8 ÷ 2 = −4, and the minus sign in front turns −4 into 4.
  4. Plug 4 back in: k=q(4)=42−8(4)+3=16−32+3=−13.The output at the turning input is the vertex's y-value. The vertex is (4, −13).
  5. a=1 is positive, so the parabola opens up. The range is [−13,∞).Opens up means k and up, and the vertex is the lowest point.
Answer
  • Domain: (−∞, ∞)
  • Range: [−13, ∞)
  • Minimum value: −13, at x = 4
Double-check A second way: complete the square. x2 − 8x + 3 = (x − 4)2 − 16 + 3 = (x − 4)2 − 13, which shows k = −13 again. Spot check: q(3) = 9 − 24 + 3 = −12 and q(5) = 25 − 40 + 3 = −12, both above −13.

11.5 Largest and smallest values in a word problem

about 4 minOpen the full lesson

The rule

For f(x)=ax2+bx+c, the vertex is at x=−b2a.

If a < 0, the parabola opens down and f has a maximum value, f(−b2a). If a > 0, the parabola opens up and f has a minimum value, f(−b2a). The two models used most: area of a rectangle = width × length, and revenue = price × number sold.

How

  1. Use the fence constraint to name the input. Let w be each width of the dog run. The three fenced sides total 48 feet, so the remaining length is 48 − 2w. Both dimensions must be positive: 0 < w < 24.
  2. Use the rectangle area rule, width × length: A(w) = w(48 − 2w). Distribute to get −2w2 + 48w, so a = −2 and b = 48 for the vertex rule.
  3. Apply the opening rule. Since a = −2 is negative, the vertex gives a maximum, which is the largest area the question asks for.
  4. Use the vertex input rule: w = −b2a = −482×(−2) = 12. Check the constraint 0 < 12 < 24; this width is allowed.
  5. Use the length constraint again: 48 − 2(12) = 24 feet. Use the area rule: 12 × 24 = 288 square feet. State both dimensions and the area, because the input and the output answer different parts of the question.
  6. Check the model and maximum: 12 + 12 + 24 = 48 feet of fence. Completing the square gives A(w) = −2(w − 12)2 + 288. A square is never negative, so −2(w − 12)2 is 0 or less, and the area cannot exceed 288. The allowed width 12 makes that square zero, so 288 square feet is reached.

Worked example

Worked example

Worked example: a dog run against a barn

You have 48 feet of fence to build a rectangular dog run against the side of a barn. The barn wall is one long side, so the fence covers only the other three sides. What dimensions give the largest area, and what is that area?

What it asks. Find the two dimensions that give the greatest fenced area.

Show the steps and the answer

The plan. Count the three fenced sides, write area as width times length, then find and check the vertex.

A = w(48 − 2w)w48 − 2w
The same picture again: An area model with sides w and 48 − 2w.
input woutput A(w)0041608256122881625620160240↓ evaluate: input given, read the output below it
The areas climb to 288 in the column under 12, then fall back in mirror pairs.
(12, 288)top: (12, 288)(8, 256)(16, 256)26101418223296160224288
The area parabola opens down, and its vertex (12, 288) gives the width and the largest area.
  1. Plan. Count the three fenced sides, write area as width times length, then find and check the vertex.
  1. Let w be the width in feet: the length of each of the two sides that stick out from the barn.You control the width. Every other measurement will be written with this one letter.
  2. Write the length of the side across from the barn: 48−2w feet.The fence makes three pieces: w + w + length = 48. The two widths use up 2w, and what is left is the length. Test with w = 10: 10 + 10 + 28 = 48.
  3. Build the area function: A(w)=w(48−2w).The area of a rectangle is width × length.
  4. Distribute: A(w)=48w−2w2, which is −2w2+48w in general form. So a=−2,b=48,c=0.General form shows a and b, the two numbers the vertex needs.
  5. Check the sign of a. It is −2, which is negative, so the parabola opens down and the vertex is its top.A top means the vertex gives the maximum value. If a were positive, the vertex would give a smallest area instead, and any largest area would have to come from the ends of the allowed widths.
  6. Find the input at the vertex: w=−b2a=−482×(−2)=−48−4=12.This finds the one width where the area stops climbing and starts falling. A negative divided by a negative is positive.
  7. Find the length: 48−2(12)=48−24=24 feet.The question asks for dimensions, which means both sides of the rectangle.
  8. Put w = 12 back into the function: A(12)=12×24=288.The maximum value is the output at the vertex. Feet times feet gives square feet.
  9. Write the answer in a sentence with units.A bare 12 or 288 does not say which is the width and which is the area.
Answer
  • Width (each side sticking out from the barn): 12 feet
  • Length (the side across from the barn): 24 feet
  • Largest area: 288 square feet
Double-check A second way, by completing the square: −2w2 + 48w = −2(w2 − 24w) = −2((w − 12)2 − 144) = −2(w − 12)2 + 288. The vertex form shows the vertex (12, 288), the same answer. Neighbors agree too: A(11) = 11 × 26 = 286 and A(13) = 13 × 22 = 286, both smaller than 288. The fence adds up: 12 + 12 + 24 = 48 feet.

The trap

Wrong: report only the vertex input. Right: give the requested dimensions or price and the largest or smallest amount, with units.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Build the area function, fence on all four sides

You have 60 feet of fence for a rectangular garden, fenced on all four sides. What dimensions give the largest area, and what is that area?

What it asks. Find the largest rectangle with all four sides fenced.

Show the steps and the answer

The plan. Count two widths and two lengths, solve for length, then maximize width times length.

A = w(30 − w)w30 − w
The length is 30 − w, not 60 − w, because the fence must cover two widths and two lengths.
  1. Plan. Count two widths and two lengths, solve for length, then maximize width times length.
  1. Let w be the width in feet and L the length in feet.Start with a name for each side, then get rid of one of them.
  2. Write the fence total: 2w+2L=60. Divide every term by 2: w+L=30. So L=30−w.A rectangle has two widths and two lengths. Test with w = 10: the sides are 10, 20, 10, 20, which add up to 60.
  3. Build the area function: A(w)=w(30−w)=30w−w2=−w2+30w. So a=−1,b=30.Area is width × length. A lone −w2 means a = −1.
  4. Note that a is negative, so the parabola opens down and there is a maximum value.The vertex is the top.
  5. Find the input at the vertex: w=−b2a=−302×(−1)=−30−2=15.This finds the width where the area peaks.
  6. Find the length: L=30−15=15 feet.The question asks for both dimensions.
  7. Put w=15 back in: A(15)=15×15=225 square feet.The maximum value is the output at the vertex.
Answer
  • Dimensions: 15 feet by 15 feet, a square
  • Largest area: 225 square feet
Double-check A(14) = 14 × 16 = 224 and A(16) = 16 × 14 = 224, both smaller than 225. The fence adds up: 15 + 15 + 15 + 15 = 60 feet. In vertex form, −w2 + 30w = −((w − 15)2 − 225) = −(w − 15)2 + 225, with vertex (15, 225).

11.6 The intercepts and what the discriminant says

about 5 minOpen the full lesson

The rule

For f(x)=ax2+bx+c with a≠0:
y-intercept: (0, c), because f(0)=c.

x-intercepts: the real solutions of ax2+bx+c=0, which are x=−b±b2−4ac2a, each written as a point (x, 0).
The discriminant D=b2−4ac counts them: D > 0 gives two x-intercepts, D=0 gives one (the vertex, sitting on the x-axis), D < 0 gives none.

How

  1. Match f(x) = x2 − 2x − 8 to ax2 + bx + c. Read a = 1, b = −2 and c = −8, keeping the signs because the discriminant and formula use those signed numbers.
  2. Apply the y-intercept rule by setting x = 0: f(0) = −8. Write (0, −8), because every point on the y-axis has input zero.
  3. Use D = b2 − 4ac: D = (−2)2 − 4(1)(−8) = 4 + 32 = 36. The discriminant rule predicts two x-intercepts because D > 0. If D were 0, the graph would touch the x-axis once, at the vertex. If D were negative, it would miss the x-axis, and the formula would give two complex roots using i.
  4. Use the x-intercept rule by setting the output to zero: x2 − 2x − 8 = 0. Apply the quadratic formula: x = −(−2)±362(1) = 2±62.
  5. Work both signs in the formula: (2 + 6) ÷ 2 = 4 and (2 − 6) ÷ 2 = −2. Write the intercepts as (4, 0) and (−2, 0), since points on the x-axis have output zero.
  6. Check by substitution: f(4) = 16 − 8 − 8 = 0, f(−2) = 4 + 4 − 8 = 0, and f(0) = −8. These verify every intercept, and the two distinct x-intercepts match the positive discriminant.

Worked example

Worked example

All three intercepts of one parabola

Find every intercept of f(x) = x2 − 2x − 8.

What it asks. Locate every point where the parabola meets an axis.

Show the steps and the answer

The plan. Set x to zero for the y-intercept. Use the discriminant, then solve for real zeros and check both points.

(1, −9)(−2, 0)(4, 0)(0, −8)−4−2246−8−448
The two x-intercepts sit 3 units left and 3 units right of the axis of symmetry x = 1, and the y-intercept…
  1. Plan. Set x to zero for the y-intercept. Use the discriminant, then solve for real zeros and check both points.
  1. Name the coefficients: a=1,b=−2,c=−8.The function is already in general form ax2 + bx + c. The sign in front of each number belongs to that number.
  2. y-intercept: f(0)=02−2(0)−8=−8. The point is (0,−8).Every point on the y-axis has x = 0. Plugging in 0 wipes out both x terms and leaves c.
  3. Discriminant: b2−4ac=(−2)2−4(1)(−8)=4+32=36.(−2)2 = 4, and −4 times 1 times −8 is +32, since a negative times a negative is positive.
  4. Read the sign: 36 is positive, so expect two x-intercepts.A positive number under the square root gives two different answers from the ± sign.
  5. Set the output equal to 0: x2−2x−8=0.This finds the inputs whose output is 0, which are the places where the graph sits on the x-axis.
  6. Use the quadratic formula: x=−(−2)±362(1)=2±62.−b is −(−2) = 2, the number under the root is the 36 already found, and 36 = 6.
  7. Split the ±: x=2+62=82=4, and x=2−62=−42=−2.± means work it twice, once adding and once subtracting.
  8. Plug both back in: f(4)=16−8−8=0 and f(−2)=4+4−8=0.An x-intercept must give an output of 0. Both inputs do.
  9. Write the points: (−2,0) and (4, 0).An intercept is a point on the graph, so it needs both coordinates. On the x-axis the y-coordinate is 0.
Answer
  • y-intercept: (0, −8)
  • x-intercepts: (−2, 0) and (4, 0)
  • Discriminant: 36, positive, which matches the two x-intercepts
Double-check A second way, by factoring: x2 − 2x − 8 = (x − 4)(x + 2), because −4 × 2 = −8 and −4 + 2 = −2. The brackets are zero at x = 4 and x = −2, the same two answers. Symmetry agrees: the axis of symmetry is x = −b2a = 22 = 1, and the point halfway between −2 and 4 is −2+42 = 1.

The trap

Wrong: square a negative coefficient without parentheses. Right: b2 squares the whole signed value; compute −4ac separately.

Quick check

Try it before you open its steps. It is question 10 of 19 in the full lesson, where they run from easy to exam-hard.

Try it · level 10 of 19

Practice 2: a negative square

Solve x2 = −180 over the complex numbers. Give both solutions.

What it asks. Find both complex square roots of a negative number.

Show the steps and the answer

The plan. Take both signs. Use i for the square root of negative one, then remove perfect-square factors from the radical.

(0, 180)−4−2242060100140180
y=x2+180.
  1. Plan. Take both signs. Use i for the square root of negative one, then remove perfect-square factors from the radical.
  2. Use i2 = −1 and factor a perfect square out of the radical.
  1. A real square cannot be negative. Define i by i2=−1.The symbol i extends the number system so negative squares have solutions. It is not a point on the real x-axis.
  2. x=±−180=±i180.Take the square root of both sides and keep both signs. −180 = −1 × 180 = i180.
  3. 180=36×5, so 180=65.Pull a perfect square out of the radical. Its square root becomes the factor outside.
  4. x=±6i5Keep both signs. Using only the positive sign loses a solution.
Answer
x=±6i5
Double-check (±6i5)2 = 36 × (−1) × 5 = −180. Independently, x2 + 180 = (x − 6i5)(x + 6i5).

12 Power functions and polynomial functions

about 28 min6 lessonsOpen the unit's crash course

12.1 Power functions

about 5 minOpen the full lesson

The rule

A power function is f(x) = kxp, where k is a fixed number other than 0 and p is a fixed number.source 1

The graph families below use whole-number powers p (0, 1, 2, 3, ...). Polynomial vocabulary later compares these with negative and fractional powers.
For a whole-number p: if p is even, f(−x)=f(x): the inputs x and −x give the same output, and the graph mirrors across the y-axis. If p is odd, f(−x)=−f(x): x and −x give opposite outputs, and the graph looks the same after a half turn around (0, 0).

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.3 Power Functions and Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For f(x) = 2x3, match the power-function form f(x) = kxp: k = 2 is the number in front and p = 3 is the power. The 2 multiplies x3; it is not part of the power.
  2. Use the odd-power rule: p = 3 is odd, so opposite inputs give opposite outputs. Start from the shape of y = x3, because cubing a negative input keeps its minus sign.
  3. Use substitution and the order of operations to make the table. Cube each input before multiplying by 2: f(−2) = 2(−8) = −16, f(−1) = 2(−1) = −2, f(0) = 0, f(1) = 2 and f(2) = 16.
  4. Plot (−2, −16), (−1, −2), (0, 0), (1, 2) and (2, 16) and join them smoothly in the shape of y = x3. Each output is 2 times the output of x3 at the same input, so the graph is y = x3 stretched to twice the height.
  5. Check with the odd-power rule: the outputs at −2 and 2 are −16 and 16, and those at −1 and 1 are −2 and 2. Each pair is opposite. Also f(1) = 2 equals k, because 1 to any power is 1.

Worked example

Worked example

Reading and plotting f(x) = 2x3

For f(x) = 2x3, name k and p, say whether p is even or odd, find f(−2), f(−1), f(0), f(1) and f(2), and describe the graph. (Each f(number) asks: the input is that number; find the output.)

input xoutput f(x)−2−16−1−20012216
x:−2,−1,0,1,2;f(x):−16,−2,0,2,16.
Show the steps and the answer
input xoutput f(x)−2−16−1−20012216
The columns under 2 and −2 hold 16 and −16: opposite inputs give opposite outputs, as an odd power must.
(−2, −16)(−1, −2)(0, 0)(1, 2)(2, 16)−22−16−8816
The solid curve y = 2x3 runs through the five table points.
  1. k=2 and p=3.2x3 is one fixed number, 2, times x raised to the fixed whole-number power 3, with nothing added, so it is a power function of the form kxp.
  2. p=3 is odd, so expect the x3 family: opposite inputs give opposite outputs.3 is one pair and one left over, and the lone minus sign survives.
  3. f(2)=2·23=2·8=16.The input 2 goes in place of x; the power comes first, 2 · 2 · 2 = 8, then multiply by k = 2.
  4. f(1)=2·13=2·1=2.Every power of 1 is 1, so the output at 1 is k itself.
  5. f(0)=2·03=0.Any number of zeros multiplied together is 0, and 2 · 0 = 0.
  6. f(−1)=2·(−1)3=2·(−1)=−2.(−1)(−1) = 1 and 1 · (−1) = −1: three minus signs leave one over.
  7. f(−2)=2·(−2)3=2·(−8)=−16.(−2)(−2) = 4 and 4 · (−2) = −8; then a positive times a negative is negative.
  8. Write each output under its input in the table, and plot each column as a point: (−2,−16),(−1,−2), (0, 0), (1, 2), (2, 16).Each column of the table is one point: the input says how far across, the output how far up or down.
  9. Describe the graph: the shape of y=x3 with every height doubled, low on the left, flattening as it crosses (0, 0), high on the right.An odd p puts the curve in the x3 family, and k = 2 multiplies each output of x3 by 2: 8 becomes 16 and 1 becomes 2.
Answer
  • k = 2 and p = 3, an odd power
  • f(−2)=−16
  • f(−1)=−2
  • f(0) = 0
  • f(1) = 2
  • f(2) = 16
  • The graph: the shape of y = x3, stretched to twice the height
Double-check Second way, by the half-turn rule for odd powers: opposite inputs must give opposite outputs. In the table the columns under 2 and −2 hold 16 and −16, and the columns under 1 and −1 hold 2 and −2. Also 2x3 = x3 + x3, and at x = 2 that is 8 + 8 = 16, as found.

The trap

Letting the power grab the number in front. In f(x) = −3x2 the power 2 belongs to x alone. At x = 2, square first, 22 = 4, then multiply by −3 to get −12. Squaring −3 · 2 = −6 gives 36, which is the output of a different function, (−3x)2. Put the input in, do the power, and only then multiply by k.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

Two powers of x multiplied (gotcha: the powers add)

For r(x) = 3x2 · x3, find k and p, say whether p is even or odd, and find r(2). (r(2) asks: the input is 2; find the output.)

Show the steps and the answer

x2·x3=(x·x)(x·x·x)

= x · x · x · x · x = x⁵

3x2·x3=3x⁵

  1. x2·x3=(x·x)(x·x·x)=x5.Two copies of x times three copies of x is five copies multiplied together.
  2. r(x)=3x5, so k=3 and p=5, which is odd.The formula is now one number times one power of x, and 5 is two pairs and one left over.
  3. 25=32.The power comes first: 2 · 2 · 2 · 2 · 2 = 32.
  4. r(2)=3·32=96.Then multiply by k = 3.
Answer
  • k = 3
  • p = 5, odd
  • r(2) = 96
Double-check Use the formula as first written: 3 · 22 · 23 = 3 · 4 · 8 = 96, the same. The gotcha: p is 2 + 3 = 5, not 2 · 3 = 6.

12.2 End behavior of a power function

about 4 minOpen the full lesson

The rule

For f(x)=kxp with p=1, 2, 3, ...

and k≠0:
Right arm: k > 0 gives f(x)→∞ as x→∞; k < 0 gives f(x)→−∞ as x→∞.
Left arm: if p is even it matches the right arm; if p is odd it points the opposite way.

How

  1. For f(x) = −2x5, match f(x) = kxp: k = −2 and p = 5. The end-behavior rule applies because p is a positive whole number and k is not 0.
  2. Apply the right-arm rule first. k = −2 is negative, so as x → ∞, f(x) → −∞. The reason: a large positive input has a large positive fifth power, and multiplying by −2 makes it negative.
  3. Apply the left-arm rule. p = 5 is odd, so the left arm points the opposite way from the right arm: as x → −∞, f(x) → ∞. The reason: a large negative input has a large negative fifth power, and multiplying by −2 makes it positive.
  4. Write the answer in arrow notation, one line for each direction of x. In arrow notation, x → ∞ means the input moves far to the right without stopping, and f(x) → −∞ means the outputs drop without stopping. So: as x → −∞, f(x) → ∞ (left arm up), and as x → ∞, f(x) → −∞ (right arm down).
  5. Check by substitution: f(10) = −2 · 100,000 = −200,000 and f(−10) = −2 · (−100,000) = 200,000. Their signs agree with the two end rules. These values check the arithmetic; the rules describe what happens as inputs grow without bound.

Worked example

Worked example

Both arms of f(x) = −2x5

Describe the end behavior of f(x) = −2x5. Write it in arrow notation.

Show the steps and the answer
input xoutput f(x)−10200000−12001−210−200000↓ evaluate: input given, read the output below it
The column under −10 holds a large positive output and the column under 10 holds a large negative one.
  1. Say what the question asks: when the input x is very far to the right, do the outputs climb or drop? When x is very far to the left, do they climb or drop?End behavior means the far ends of the graph only. Nothing near the middle matters here.
  2. Match the function to f(x)=kxp: k=−2 and p=5.k is the number multiplying the power, with its sign. p is the exponent on x.
  3. Right arm first. k=−2 is negative, so as x→∞,f(x)→−∞.For a large positive x, x5 is a large positive number. Multiplying it by −2 gives a large negative number, since negative × positive = negative.
  4. Left arm next. p=5 is odd, so the left arm does the opposite of the right arm: as x→−∞,f(x)→∞.For a large negative x, x5 has five negative factors. Four of them pair off into positives and one is left over, so x5 is a large negative number. Then negative × negative = positive.
  5. Put the two lines together. In words: left arm up, right arm down.A full end behavior answer always has two statements, one for each direction of x.
Answer
  • As x → −∞, f(x) → ∞ (left arm up).
  • As x → ∞, f(x) → −∞ (right arm down).
Double-check Test one large input on each side, the two marked columns of the table. f(10) = −2 · 105 = −2 · 100,000 = −200,000, far below the x-axis, so the right arm is down. f(−10) = −2 · (−10)5 = −2 · (−100,000) = 200,000, far above the x-axis, so the left arm is up. Both match.

The trap

Reading −x4 as (−x)4. The power touches only x. The minus sign in front is k = −1 and is applied last. So −x4 has both arms down, while (−x)4 = x4 has both arms up. Before deciding anything, write k out with its sign: k = −1, k = −2, and so on.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A fraction in front

Describe the end behavior of f(x) = 12x5.

Show the steps and the answer
  1. Say what is asked: do the outputs climb or drop at each far end?That is the end behavior.
  2. Name the parts: k=12 and p=5.A fraction in front is still the number k.
  3. k=12 is positive, so the right arm goes up.Only the sign of k matters. Half of a huge positive number is still a huge positive number.
  4. p=5 is odd, so the left arm does the opposite and goes down.An odd power of a negative input is negative, and half of a negative number is negative.
Answer
  • As x → −∞, f(x) → −∞.
  • As x → ∞, f(x) → ∞.
  • Left arm down, right arm up.
Double-check f(10) = 12 · 100,000 = 50,000 and f(−10) = 12 · (−100,000) = −50,000. Positive on the right, negative on the left.

12.3 Polynomial vocabulary

about 4 minOpen the full lesson

The rule

A polynomial is a sum of terms a·xn: each coefficient a is a real number and each power n is a whole number (0, 1, 2, 3, ...).

Standard form lists the powers from highest to lowest: f(x) = anxn + ... + a2x2 + a1x + a0, with an ≠ 0; every polynomial except 0 itself can be written this way. The degree is n, the highest power. The leading term is anxn. The leading coefficient is an.source 1 The constant term is a0. The zero polynomial, 0, has no degree and no leading term.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.3 Power Functions and Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For g(x) = 4x2 − 9 + 3x5 − x, apply the polynomial definition. The powers of x are 2, 0, 5 and 1, all whole numbers, and each coefficient is real, so g is a polynomial. No brackets need multiplying out, and no two terms share a power of x, so nothing needs combining.
  2. Use the term and coefficient definitions. Keep each minus sign with its term: 4x2, −9, 3x5, −x have coefficients 4, −9, 3, −1. The term −x means −1 times x, and the constant −9 has power 0.
  3. Use the degree rule to choose the highest power with a nonzero coefficient: 5. Its term 3x5 is the leading term, and 3 is the leading coefficient. Position in the written formula does not determine the degree.
  4. Use standard form to reorder the terms from highest power to lowest: g(x) = 3x5 + 4x2 − x − 9. Addition allows this rearrangement when each term keeps its sign.
  5. Check the rearrangement term by term: the same four signed terms occur once each. Then substitute x = 2 into both orders: 4(2)2 − 9 + 3(2)5 − 2 = 16 − 9 + 96 − 2 = 101 and 3(2)5 + 4(2)2 − 2 − 9 = 96 + 16 − 2 − 9 = 101. Matching outputs support the check; keeping every signed term is what makes the two forms equal.

Worked example

Worked example

Naming every part of a polynomial written out of order

For g(x) = 4x2 − 9 + 3x5 − x, list the terms and their coefficients, then give the degree, the leading term and the leading coefficient, and write g in standard form. In plain words: break the formula into the pieces being added, find the piece with the highest power of x, and put the pieces in order from highest power to lowest.

Show the steps and the answer

g(x)=4x2−9+3x5−x

powers as written: 2, 0, 5, 1

highest power: 5

standard form: 3x5 + 4x2 − x − 9

  1. Rewrite every subtraction as adding a negative: g(x)=4x2+(−9)+3x5+(−x).Subtracting is the same as adding a negative, so each minus sign belongs to the term that follows it.
  2. Read off the terms: 4x2,−9,3x5 and −x. There are four terms.A term is one of the pieces being added.
  3. Read off the coefficients: 4, −9, 3 and −1.The coefficient is the number multiplying the power of x. −x means −1·x, and the constant −9 is its own coefficient.
  4. Write the power of x in each term: 2, 0, 5 and 1.x alone is x1. The constant −9 is −9·x0, since x0 = 1.
  5. Pick the largest power: 5. The degree is 5.The degree of a polynomial is the highest power of x that appears.
  6. The term carrying the power 5 is 3x5. That is the leading term, and its coefficient 3 is the leading coefficient.The leading term is chosen by its power, not by where it is written. Here it is the third term on the page.
  7. Write the terms from highest power to lowest: g(x)=3x5+4x2−x−9.Standard form lists the powers in falling order: 5, 2, 1, 0.
Answer
  • Terms: 4x2, −9, 3x5, −x
  • Coefficients: 4, −9, 3, −1
  • Degree: 5
  • Leading term: 3x5
  • Leading coefficient: 3
  • Standard form: g(x) = 3x5 + 4x2 − x − 9
Double-check Put x = 2 into both orders. As written: 4·4 − 9 + 3·32 − 2 = 16 − 9 + 96 − 2 = 101. Standard form: 96 + 16 − 2 − 9 = 101. The outputs match, so reordering changed nothing, and in standard form the first term is 3x5, the leading term found above.

The trap

The most common mistake is to take the first term on the page as the leading term, or to take the biggest number as the leading coefficient. In 5 + 2x − 3x4 the leading term is −3x4, not 5, and the leading coefficient is −3, sign included. Always find the highest power first. The order on the page and the size of the numbers decide nothing.

Quick check

Try it before you open its steps. It is question 5 of 9 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 9

Two brackets

Expand q(x) = (2x + 3)(x − 4) and name its terms, coefficients, degree, leading term and leading coefficient. In plain words: multiply the brackets out into a sum, then name the pieces.

Show the steps and the answer
2x²−8x2x3x−12+3x−4
The two middle cells, −8x and 3x, are like terms and combine into −5x.
  1. Multiply each term of the first bracket by each term of the second: 2x·x=2x2,2x·(−4)=−8x,3·x=3x,3·(−4)=−12.Every term in one bracket multiplies every term in the other. These are the four cells of the picture.
  2. Add the products: 2x2−8x+3x−12.The product of the brackets is the sum of the four cells.
  3. Combine like terms: −8x+3x=−5x, so q(x)=2x2−5x−12.Both have x to the power 1, and −8 + 3 = −5.
  4. Terms: 2x2,−5x,−12. Coefficients: 2, −5,−12.Each minus sign belongs to the term that follows it.
  5. Highest power 2: degree 2, leading term 2x2, leading coefficient 2.All three are read from the term with the highest power.
Answer
  • Expanded form: q(x) = 2x2 − 5x − 12
  • Terms: 2x2, −5x, −12
  • Coefficients: 2, −5, −12
  • Degree: 2
  • Leading term: 2x2
  • Leading coefficient: 2
Double-check Put x = 2 into both forms. Factored: (4 + 3)(2 − 4) = 7·(−2) = −14. Expanded: 8 − 10 − 12 = −14. They match. The shortcut agrees: leading term times leading term is 2x·x = 2x2.

12.4 End behavior of a polynomial comes from its leading term

about 4 minOpen the full lesson

The rule

If f(x)=anxn+ (terms with lower powers of x), where an≠0 is the leading coefficient and the degree n is 1 or more, then f has the same end behavior as the power function y=anxn.source 1

n even, an>0: as x→−∞,f(x)→∞, and as x→∞,f(x)→∞ (both arms up).
n even, an<0: as x→−∞,f(x)→−∞, and as x→∞,f(x)→−∞ (both arms down).
n odd, an>0: as x→−∞,f(x)→−∞, and as x→∞,f(x)→∞ (left arm down, right arm up).
n odd, an<0: as x→−∞,f(x)→∞, and as x→∞,f(x)→−∞ (left arm up, right arm down).

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.3 Power Functions and Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For f(x) = 50x2 − x3 + 100, use the degree rule to find the highest power, 3. The leading term is −x3 and its coefficient is −1, even though it is written in the middle.
  2. Apply the leading-term rule for end behavior. Use −x3 to predict the two ends, because the lower-power terms become small compared with it far enough from zero. Keep those terms when calculating actual outputs.
  3. Apply the power-function rules to −x3. The negative coefficient sends the right end down: as x → ∞, f(x) → −∞. The odd degree makes the left end opposite: as x → −∞, f(x) → ∞.
  4. Check by substituting into the whole polynomial: f(100) = 500,000 − 1,000,000 + 100 = −499,900, and f(−100) = 500,000 + 1,000,000 + 100 = 1,500,100. The signs match the predicted ends. Here the leading term outweighs the other terms together; f(10) = 4,100 shows why a small input can mislead.

Worked example

Worked example

A leading term hiding in the middle

Find the end behavior of f(x) = 50x2 − x3 + 100. In plain words: say where the graph goes far to the right and far to the left.

input xoutput f(x)−1001500100−106100104100100−499900
x:−100,−10,10,100;f(x):1500100,6100,4100,−499900.
Show the steps and the answer
input xoutput f(x)−1001500100−106100104100100−499900↓ evaluate: input given, read the output below it
The outputs under −100 and 100 have the signs the leading term −x3 predicts.
  1. Restate the question. As x→∞ (far right), does f(x) go to ∞ or to −∞? Then answer the same for x→−∞ (far left).End behavior is only about the two arms of the graph. It says nothing about the middle.
  2. List each term with its power of x: 50x2 has power 2, −x3 has power 3, and 100 has no x at all.The leading term is the term with the highest power, so every power has to be in view before choosing.
  3. Choose the leading term: −x3. The degree is 3 and the leading coefficient is −1.3 is the highest power present. A bare minus sign in front of x3 means the coefficient is −1.
  4. Set 50x2 and 100 aside for this question.Dividing shows who is bigger: 50x2 ÷ x3 = 50x. Once x passes 50 this is less than 1, and it keeps shrinking, so far out 50x2 is small beside x3. The 100 never grows at all.
  5. Right arm: the leading coefficient −1 is negative, so as x→∞,f(x)→−∞.A large positive number cubed is a large positive number, and multiplying by −1 makes it a large negative: −(1003) = −1,000,000.
  6. Left arm: the degree 3 is odd, so the left arm does the opposite of the right arm. As x→−∞,f(x)→∞.A negative number cubed stays negative, and −1 times a negative is positive: −(−100)3 = −(−1,000,000) = 1,000,000.
Answer
  • As x → −∞, f(x) → ∞ (left arm up).
  • As x → ∞, f(x) → −∞ (right arm down).
Double-check Second way: put large inputs into the whole formula, as in the table. Under 100: f(100) = 50 · 10,000 − 1,000,000 + 100 = −499,900, a large negative, so the right arm is heading down. Under −100: f(−100) = 500,000 + 1,000,000 + 100 = 1,500,100, a large positive, so the left arm is heading up. Both agree with the answer. Now look at the column under 10: f(10) = 5,000 − 1,000 + 100 = 4,100, which is positive. Close to 0 the term 50x2 is still ahead, so a small test input would have pointed the right arm the wrong way.

The trap

Taking the first term on the page as the leading term. In f(x) = 6 + 2x − x4 the first term is 6, but the leading term is −x4, the one with the highest power. Before reading any sign, scan every term for its power of x and circle the highest one. Then read the sign directly in front of that term, including a bare minus sign, which means −1.

Quick check

Try it before you open its steps. It is question 5 of 10 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 10

A product of brackets, multiplied out in full

Find the end behavior of q(x) = −2x(x − 3)(x + 4).

Show the steps and the answer
x²4xx−3x−12−3x+4
The four products of (x − 3)(x + 4): only the top-left cell, x times x, makes the highest power.
  1. Multiply the two brackets: (x−3)(x+4)=x2+4x−3x−12=x2+x−12.Multiplying out puts every term in view, which makes the leading term easy to read. The area picture shows the four products.
  2. Multiply by −2x: −2x·x2=−2x3,−2x·x=−2x2, and −2x·(−12)=24x. So q(x)=−2x3−2x2+24x.−2x multiplies every term inside, and a negative times a negative gives the positive 24x.
  3. Leading term: −2x3. Leading coefficient −2 (negative), degree 3 (odd).3 is the highest power in the multiplied-out form.
  4. Right arm down: as x→∞,q(x)→−∞. Left arm up: as x→−∞,q(x)→∞.Negative leading coefficient sends the right arm down, and odd degree makes the left arm do the opposite.
Answer
  • As x → −∞, q(x) → ∞.
  • As x → ∞, q(x) → −∞.
  • Left arm up, right arm down.
Double-check Use the original bracket form, which never passed through the expansion. q(10) = −20 · 7 · 14 = −1,960, negative. q(−10) = 20 · (−13) · (−6) = 20 · 78 = 1,560, positive. The expanded form agrees: −2,000 − 200 + 240 = −1,960 and 2,000 − 200 − 240 = 1,560.

12.5 Intercepts of a polynomial

about 5 minOpen the full lesson

The rule

y-intercept: the point (0, f(0)).

When the polynomial is written term by term, f(0) is the constant term, the term with no x. x-intercepts: the points (c, 0) for every real number c with f(c)=0. Zero product property: if A·B=0, then A=0 or B=0.

How

  1. For f(x) = 2x2 − 4x − 30, use the y-intercept rule: set x = 0 because every point on the y-axis has that input. f(0) = −30, so the y-intercept is (0, −30).
  2. Use the x-intercept rule: set the output to zero because every point on the x-axis has height zero. Solve 2x2 − 4x − 30 = 0. Pull out the common factor 2 to get 2(x2 − 2x − 15) = 0; distributing 2 gives back all three terms.
  3. Factor x2 − 2x − 15: look for two numbers whose product is −15, the number with no x, and whose sum is −2, the number in front of x. They are 3 and −5, so x2 − 2x − 15 = (x + 3)(x − 5). Multiplying out checks it: x2 − 5x + 3x − 15 = x2 − 2x − 15.
  4. Apply the zero product property to 2(x + 3)(x − 5) = 0. The factor 2 cannot be zero, so solve x + 3 = 0 or x − 5 = 0. This gives x = −3 or x = 5. Use the x-intercept rule to write (−3, 0) and (5, 0).
  5. Check each input in the original formula: f(−3) = 18 + 12 − 30 = 0 and f(5) = 50 − 20 − 30 = 0. Both points have the required height zero. Check the y-intercept with the factored form too: 2(0 + 3)(0 − 5) = −30.

Worked example

Worked example

Both kinds of intercept for f(x) = 2x2 − 4x − 30

Find the y-intercept and the x-intercepts of f(x) = 2x2 − 4x − 30.

Show the steps and the answer
input xoutput f(x)−418−30−2−140−302−304−1450618↑ solve: output given, read every input above it
The output is 0 in exactly two columns.
  1. Say what is asked. For the y-intercept: the input is 0, find the output. For the x-intercepts: the output is 0, find every input that gives it.The two questions set different things to zero, so they are two separate jobs.
  2. Put 0 in for x: f(0)=2(0)2−4(0)−30=0−0−30=−30. The y-intercept is (0,−30).Every point on the y-axis has x = 0. Each term that has an x becomes 0, so only the constant term −30 is left.
  3. Write the equation 2x2−4x−30=0.The graph meets the x-axis only where the output is 0.
  4. Pull the shared 2 out front: 2(x2−2x−15)=0.2 divides all three coefficients: 2, −4 and −30. Multiply back to test it: 2 · x2 = 2x2, 2 · (−2x) = −4x, 2 · (−15) = −30.
  5. Find two numbers that multiply to −15 and add to −2. They are 3 and −5.The product is negative, so the two signs differ. The sum is negative, so the number farther from 0 carries the minus. The pairs that make 15 are 1 with 15 and 3 with 5. Only 3 and −5 add to −2.
  6. Write the factored form: 2(x+3)(x−5)=0.Multiplying out confirms it: (x + 3)(x − 5) = x2 − 5x + 3x − 15 = x2 − 2x − 15, the bracket from the step before.
  7. Set each factor that contains x equal to 0. x+3=0 gives x=−3. x−5=0 gives x=5. The factor 2 is never 0, so it gives nothing.A product is 0 only when one of its factors is 0. These two small equations find every input that makes the output 0.
  8. Plug each value back into the original formula. f(−3)=2(9)−4(−3)−30=18+12−30=0. f(5)=2(25)−4(5)−30=50−20−30=0.Plugging back shows that each value really gives an output of 0. It uses the original formula, so it would catch a factoring mistake.
  9. Write the x-intercepts as points: (−3,0) and (5, 0).An intercept is a point on the graph, and on the x-axis the second coordinate is 0.
Answer
  • y-intercept: (0, −30)
  • x-intercepts: (−3, 0) and (5, 0)
Double-check Second way, from the factored form: putting 0 into 2(x + 3)(x − 5) gives 2 · 3 · (−5) = −30, the same y-intercept. In the table, the two 0s in the output row sit under the inputs −3 and 5, and the column for x = 0 holds −30. The leading term 2x2 says both arms point up, and a graph that sits at −30 when x = 0 with both arms up must meet the x-axis once on each side of 0, which matches −3 and 5.

The trap

The most common mistake is reading the number inside a bracket with its sign unchanged. The factor (x + 3) does not give an intercept at 3. It gives −3, because −3 is the value that makes x + 3 equal 0. To avoid it, write the small equation x + 3 = 0 every time, solve it, and plug the answer back in. If the output is not 0, the sign is wrong.

Quick check

Try it before you open its steps. It is question 6 of 11 in the full lesson, where they run from easy to exam-hard.

Try it · level 6 of 11

A factor that is never 0

Find the y-intercept and the x-intercepts of f(x) = x4 − 16.

Show the steps and the answer
  1. Put 0 in for x: f(0)=0−16=−16. The y-intercept is (0,−16).The term with x becomes 0, leaving the constant term.
  2. Write x4−16=0. See it as a square minus a square: x4=(x2)2 and 16=42. Factor: (x2−4)(x2+4)=0.a2 − b2 = (a − b)(a + b) with a = x2 and b = 4.
  3. The first bracket is again a square minus a square: x2−4=(x−2)(x+2). So (x−2)(x+2)(x2+4)=0.x2 − 22 splits the same way. Keep factoring until no bracket can be split further.
  4. Set the first two brackets to 0: x−2=0 gives x=2, and x+2=0 gives x=−2.These find the inputs that make those brackets 0.
  5. Look at x2+4. It gives no x-intercept.x2 is never negative, so x2 + 4 is always 4 or more. It can never be 0.
  6. Plug back into the original: f(2)=16−16=0 and f(−2)=(−2)4−16=16−16=0.An even power of a negative number is positive, so (−2)4 = 16.
Answer
  • y-intercept: (0, −16)
  • x-intercepts: (2, 0) and (−2, 0)
Double-check Second way: put 0 into the factored form. (0 − 2)(0 + 2)(0 + 4) = (−2)(2)(4) = −16, matching the y-intercept. Also test x = 1 in both forms: 1 − 16 = −15, and (−1)(3)(5) = −15. The degree is 4 but there are only 2 x-intercepts. That is allowed: the degree is the most there can be, not a promise.

12.6 Turning points

about 5 minOpen the full lesson

The rule

A turning point is a point where the graph changes from rising to falling (a peak) or from falling to rising (a valley), read left to right.source 1

A polynomial of degree n, where n is 1 or more, has at most n−1 turning points.source 1
Backward: a polynomial that is not constant and whose graph has t turning points has degree at least t+1.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.3 Power Functions and Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Use the turning-point definition on the graph described in the example. Read left to right: falling changes to rising at (−2, −13), rising changes to falling at (0, 3), and falling changes to rising at (2, −13). Count these direction changes, not the ends or a flat spot that keeps rising.
  2. Count t = 3 turns. Apply the bound t ≤ n − 1: 3 ≤ n − 1 gives n ≥ 4 after adding 1 to both sides. This is a lower bound, because a degree can allow more turns than a graph actually has.
  3. Use the end-behavior rule from the earlier lesson. Both ends point up, so the degree is even and the leading coefficient is positive. The smallest even degree allowed by the turn count is 4.
  4. Check that degree 4 can fit the stated shape with the example’s formula f(x) = x4 − 8x2 + 3. Its degree is 4 and its leading coefficient 1 is positive, so it allows at most 3 turns and both arms point up. Multiplying out (x2 − 4)2 − 13 gives x4 − 8x2 + 16 − 13 = x4 − 8x2 + 3, so f(x) = (x2 − 4)2 − 13. A square is never negative and is 0 only where x2 − 4 = 0, at x = −2 and x = 2, so the lowest outputs are −13 there. Between them, x2 − 4 runs from 0 down to −4 at x = 0 and back to 0, so its square climbs from 0 to 16 and falls back: the graph rises to (0, 3) and falls again. Outside −2 and 2 the square only grows, so both arms rise.
  5. Finish the check by substitution: f(−2) = 16 − 32 + 3 = −13, f(0) = 3 and f(2) = 16 − 32 + 3 = −13. This degree-4 polynomial has the three stated turns and both arms up, so degree 4 is possible as well as being the lower bound.

Worked example

Worked example

Bound the degree from a graph with three turning points

A polynomial f has this graph, read left to right: it comes down from the upper left to a valley at (−2, −13), climbs to a peak at (0, 3), drops to a valley at (2, −13), and then climbs to the upper right forever. The table lists seven points on the graph. How many turning points does the graph have? What is the least possible degree of f? Is the leading coefficient positive or negative?

input xoutput f(x)−312−2−13−1−4031−42−13312
x:−3,−2,−1,0,1,2,3;f(x):12,−13,−4,3,−4,−13,12.
Show the steps and the answer
input xoutput f(x)−312−2−13−1−4031−42−13312↓ evaluate: input given, read the output below it
The outputs fall, rise, fall and rise again: the three marked columns are where the direction switches.
  1. Say what is asked. Count the places where the graph turns around, use that count to find the smallest degree the polynomial could have, then read the sign of the leading coefficient from the arms.The rule connects the number of turning points to the degree, so the count comes first.
  2. Trace left to right. In the table the outputs fall from 12 (the column under −3) to −13 (the column under −2), then rise to −4 and 3. The graph switches from falling to rising at (−2,−13). Mark it: a valley.A turning point is a place where falling changes to rising, or rising changes to falling.
  3. Keep tracing. The outputs rise to 3 (the column under 0), then fall to −4 and −13. The graph switches from rising to falling at (0, 3). Mark it: a peak.Rising, then falling, is the other kind of turning point.
  4. Keep tracing. The outputs fall to −13 (the column under 2), then rise to 12 (the column under 3) and keep rising. The graph switches from falling to rising at (2,−13). Mark it: a valley.Every switch counts, including a second valley at the same height as the first.
  5. Count the marks: t=3 turning points.There are three switches of direction and no others. The two arms are not turning points, because the graph does not turn around there.
  6. Use the rule backward. A degree n allows at most n−1 turning points, so 3≤n−1. Add 1 to both sides: 4≤n. This step finds the smallest degree that has room for 3 turning points: the degree is at least 4.Adding the same number to both sides of an inequality keeps it true.
  7. Read the arms. The left arm points up and the right arm points up. Arms pointing the same way mean an even degree, and a right arm pointing up means a positive leading coefficient.End behavior comes from the leading term: an even power with a positive coefficient is large and positive at both ends.
  8. Put the two facts together. The degree is at least 4 and it is even, so the least possible degree is 4, and it cannot be 5.The graph shows how many turning points the formula must allow, and 4 is the smallest even degree with room for three.
Answer
  • Turning points: 3, at (−2, −13), (0, 3) and (2, −13).
  • Least possible degree: 4 (the degree is even and at least 4).
  • Leading coefficient: positive.
Double-check Second way: try the small degrees one at a time. Degree 1 allows 0 turning points, degree 2 allows 1, degree 3 allows 2. None has room for 3. Degree 4 allows 3, so 4 is the smallest that works. To see that degree 4 really can do it, test f(x) = x4 − 8x2 + 3 against the table: f(−2) = 16 − 32 + 3 = −13, f(0) = 3, f(3) = 81 − 72 + 3 = 12. All three match.

The trap

Reading 'at most' as 'exactly'. A degree 3 polynomial does not have to have 2 turning points: y = x3 has none. A graph with 3 turning points does not have to come from degree 4: it could come from degree 6. Going from a formula of degree 1 or more, say 'at most n − 1 turning points'. Going from a graph that is not a flat line, say 'degree at least t + 1'.

Quick check

Try it before you open its steps. It is question 5 of 9 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 9

Turning points and x-intercepts disagree

A polynomial's graph rises from the lower left to a peak at (−1, 4), dips to a valley at (0, 3), rises to a second peak at (1, 4), and then falls to the lower right forever. It crosses the x-axis only twice. The table lists five points on it. Find the least possible degree, say whether the degree is even or odd, and give the sign of the leading coefficient.

input xoutput f(x)−2−5−1403142−5
x:−2,−1,0,1,2;f(x):−5,4,3,4,−5.
Show the steps and the answer
input xoutput f(x)−2−5−1403142−5↓ evaluate: input given, read the output below it
The outputs go up, down, up, down.
  1. Say what is asked: count the turning points to get the least degree, then use the arms to decide even or odd and the sign of the leading coefficient.Turning points bound the degree, and end behavior gives the rest.
  2. Trace and mark. Rising to (−1,4), then falling: a peak. Falling to (0, 3), then rising: a valley. Rising to (1, 4), then falling: a peak. In the output row of the table: −5, 4, 3, 4, −5.Each switch between rising and falling is a turning point.
  3. Count: t=3. The valley at (0, 3) counts even though it is shallow and sits above the x-axis.A turning point is about the direction changing, not about how deep the dip is or whether it reaches the x-axis.
  4. Add 1: the degree is at least 3+1=4.A graph with t turning points has degree at least t + 1.
  5. Set aside the tempting count. Two x-intercepts might suggest degree 2, but a degree 2 polynomial allows only 2−1=1 turning point, and this graph has 3.The number of x-intercepts can be smaller than the degree, so it cannot be used to pin the degree down here.
  6. Read the arms. Both arms point down. Arms pointing the same way mean an even degree, and a right arm pointing down means a negative leading coefficient.An even power with a negative coefficient is large and negative at both ends.
Answer
  • Least possible degree: 4.
  • The degree is even.
  • The leading coefficient is negative.
Double-check The polynomial f(x) = −x4 + 2x2 + 3 fits every column of the table: f(−2) = −16 + 8 + 3 = −5, f(−1) = −1 + 2 + 3 = 4, f(0) = 3, f(1) = −1 + 2 + 3 = 4, f(2) = −16 + 8 + 3 = −5. Its degree is 4 and its leading coefficient is −1, as predicted. Also, both arms down means the graph starts rising and ends falling, which takes an odd number of switches, and 3 is odd.

13 Graphs of polynomial functions

about 29 min6 lessonsOpen the unit's crash course

13.1 Zeros from the factored form

about 4 minOpen the full lesson

The rule

If f(x)=(x−c)· (other factors), then f(c)=0: c is a zero of f, and the graph meets the x-axis at the point (c, 0).

In factored form the zeros are exactly the inputs that make at least one factor 0, so x+c gives −c, a lone x gives 0, and a factor that is a nonzero number gives none.

How

  1. Use the zero-product rule on f(x) = −2x(x + 4)(x − 1): a product is zero exactly when a factor is zero. This formula is already one product, so its factors can be solved separately.
  2. Skip −2: it is a number other than zero, so it can never make the product zero. Set the factors containing x equal to zero: x = 0, x + 4 = 0 and x − 1 = 0.
  3. Solve each equation by keeping both sides equal. Subtract 4 in x + 4 = 0 to get x = −4; add 1 in x − 1 = 0 to get x = 1. The lone x gives x = 0.
  4. Use the intercept rule: each real zero c gives the point (c, 0). List the distinct zeros −4, 0 and 1, and plot (−4, 0), (0, 0) and (1, 0). Every factor containing x has been used, so this list is complete.
  5. Check by substitution in the original product: f(−4) = −2 · (−4) · 0 · (−5) = 0, f(0) = −2 · 0 · 4 · (−1) = 0 and f(1) = −2 · 1 · 5 · 0 = 0. Each proposed zero makes a factor zero.

Worked example

Worked example

Three factors, a number in front and a lone x

Find every zero of f(x) = −2x(x + 4)(x − 1).

What it asks. Find every input that makes the output zero.

Show the steps and the answer

The plan. Skip the number in front, set each factor with an x equal to zero, then solve.

−2: only a number, no zero

x: gives x = 0

x + 4: gives x = −4

x − 1: gives x = 1

input xoutput f(x)−560−40−3−24−2−24−1−1200102−24↑ solve: output given, read every input above it
The three 0s in the output row sit under −4, 0 and 1, one for each factor with an x.
  1. Plan. Skip the number in front, set each factor with an x equal to zero, then solve.
  1. Check the shape: f(x)=−2·x·(x+4)·(x−1) is one product, with nothing added or subtracted outside the factors.Zeros can be read off only from a product. A term added at the end, such as + 6, would break the rule.
  2. Skip the factor −2.It is −2 for every input. It is never 0, so it cannot make the product 0, and −2 is not a zero.
  3. Set the lone x equal to 0: x=0.This finds the input that makes the factor x equal 0, since x is the same as (x − 0). Plug it back in: f(0) = −2 · 0 · 4 · (−1) = 0.
  4. Set x + 4 = 0, then subtract 4 from both sides: x=−4.This finds the one input that makes x + 4 equal 0. Plug it back in: −4 + 4 = 0, so f(−4) = −2 · (−4) · 0 · (−5) = 0. The gotcha: a plus inside the factor gives a negative zero.
  5. Set x − 1 = 0, then add 1 to both sides: x=1.This finds the one input that makes x − 1 equal 0. Plug it back in: 1 − 1 = 0, so f(1) = −2 · 1 · 5 · 0 = 0.
  6. List the zeros from smallest to largest: −4, 0, 1.Every factor that holds an x has been used. By the zero product property, any input that gives 0 must make some factor 0, so there are no other zeros.
Answer
  • x=−4
  • x = 0
  • x = 1
  • On the graph: the points (−4, 0), (0, 0) and (1, 0).
Double-check Multiply out, a second way to the same zeros. First (x + 4)(x − 1) = x2 + 3x − 4, then −2x times that gives f(x) = −2x3 − 6x2 + 8x. In this form f(−4) = −2(−64) − 6(16) + 8(−4) = 128 − 96 − 32 = 0, f(0) = 0 − 0 + 0 = 0 and f(1) = −2 − 6 + 8 = 0. The table, worked from this form for the inputs −5 to 2, holds 0 in the output row only under −4, 0 and 1. The input 2, which is not on the list, gives f(2) = −16 − 24 + 16 = −24.

The trap

Wrong: copy the sign inside a factor. Right: solve the factor equal to zero, then substitute to check.

Quick check

Try it before you open its steps. It is question 6 of 11 in the full lesson, where they run from easy to exam-hard.

Try it · level 6 of 11

A factor that is never 0

Find the zeros of r(x) = (x + 3)(x2 + 4).

What it asks. Find every real zero.

Show the steps and the answer

The plan. Set each factor equal to zero; a square plus a positive number has no real solution.

no square ever lands below 0(−3, 9)(3, 9)(0, 0)−33−49
The graph of y = x2 never dips below the x-axis, so x2 + 4 never gets down to 0.
input xoutput x² + 4−313−28−15041528313
The smallest output of x2 + 4 is the 4 under 0, and no column holds a 0.
  1. Plan. Set each factor equal to zero; a square plus a positive number has no real solution.
  1. Set x + 3 = 0, then subtract 3 from both sides: x=−3.This finds the input that makes x + 3 equal 0. Plug it back in: r(−3) = 0 · (9 + 4) = 0.
  2. Try to set x2+4=0. Subtracting 4 from both sides gives x2=−4.This asks which input would make the second factor 0.
  3. No real number works, so x2+4 gives no zero.A square is never negative: 22 = 4 and (−2)2 = 4. So x2 + 4 is always 4 or more. The gotcha: x2 + 4 does not split into (x − 2)(x + 2), which multiplies out to x2 − 4.
  4. The only zero is −3.Only the first factor can ever be 0.
Answer
x = −3, the only zero
Double-check Look at the table of the second factor, x2 + 4: its smallest output is the 4 under 0, and no column holds a 0. That matches the reason: x2 is never below 0, so x2 + 4 is never below 4. The tempting extra zero 2 gives r(2) = 5 · 8 = 40, not 0.

13.2 Multiplicity and what the graph does at a zero

about 5 minOpen the full lesson

The rule

Let c be a zero of a polynomial f that is not the constant 0.

If the factor (x−c) appears exactly m times in the factored form of f(x), then c has multiplicity m.source 1 Odd m: the graph crosses the x-axis at x=c. Even m: the graph touches the x-axis at x=c and turns back.source 1 The larger m is, the flatter the graph lies near x=c.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.4 Graphs of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Use the zero-product rule on f(x) = x(x − 3)2(x + 2)3. Solve x = 0, x − 3 = 0 and x + 2 = 0 to get the zeros 0, 3 and −2. These are the inputs where a factor becomes zero.
  2. Use the multiplicity rule: count how often each zero’s factor appears. The lone x counts once, (x − 3)2 counts twice and (x + 2)3 counts three times. Thus 0 has multiplicity 1, 3 has multiplicity 2 and −2 has multiplicity 3.
  3. Apply odd crosses and even touches. At 0, multiplicity 1 gives a crossing; at 3, multiplicity 2 gives a touch and turn; at −2, multiplicity 3 gives a flattened crossing. Odd powers change sign across a zero; even powers keep the same sign.
  4. Check the count using the product’s degree: x · x2 · x3 = x6, and 1 + 2 + 3 = 6. All factors here are powers of x − c, so their multiplicities account for the whole degree.
  5. Check the predicted crossings with signs on both sides, without passing another zero. Around −2, f(−3) = 108 and f(−1) = −16 have opposite signs. Around 0, f(−1) = −16 and f(1) = 108 have opposite signs. Around 3, f(2) = 128 and f(4) = 864 are both positive, which agrees with a touch and turn.

Worked example

Worked example

Three zeros, three different behaviors

For f(x) = x(x − 3)2(x + 2)3, find each zero, its multiplicity, and whether the graph crosses the x-axis there or touches it and turns back.

What it asks. Find each zero, its multiplicity and its behavior.

input xoutput f(x)−3108−20−1−160011082128304864
x:−3,−2,−1,0,1,2,3,4;f(x):108,0,−16,0,108,128,0,864.
Show the steps and the answer

The plan. Solve each factor, read its power, then use odd for crossing and even for touch.

input xoutput f(x)−3108−20−1−160011082128304864↑ solve: output given, read every input above it
The three highlighted 0s are the zeros.
  1. Plan. Solve each factor, read its power, then use odd for crossing and even for touch.
  1. Say what the question asks: find every input that makes the output 0, count how many times each one's factor appears, and use that count to say what the graph does at that spot.A zero of a polynomial is an input whose output is 0, and the multiplicity is the count of its factor.
  2. List the factors with their exponents: x has exponent 1, (x−3) has exponent 2, and (x+2) has exponent 3.No exponent written means the factor appears once, so the lone x counts once.
  3. Set x=0. This finds the input that makes the first factor zero. Plug it back in: f(0)=0·(0−3)2·(0+2)3=0·9·8=0. So 0 is a zero with multiplicity 1.The factor x is the same as (x − 0), and one zero factor makes the whole product 0.
  4. Set x−3=0, so x=3. This finds the input that makes the second factor zero. Plug it back in: f(3)=3·(0)2·(5)3=3·0·125=0. So 3 is a zero with multiplicity 2.The exponent on (x − 3) is 2.
  5. Set x+2=0, so x=−2. This finds the input that makes the third factor zero. Plug it back in: f(−2)=(−2)·(−5)2·(0)3=(−2)·25·0=0. So −2 is a zero with multiplicity 3.The exponent on (x + 2) is 3.
  6. Sort the multiplicities into odd and even. At x=0 the multiplicity is 1, odd: the graph crosses at a slant. At x=3 it is 2, even: the graph touches and turns back. At x=−2 it is 3, odd: the graph flattens, then crosses.An odd count of the factor lets the sign of the output change across the zero. An even count does not.
  7. Add the multiplicities: 1+2+3=6. Multiply the leading pieces: x·x2·x3=x6, so the degree is 6. The two numbers match.When every factor has the form (x − c), the multiplicities add up to the degree, so no zero was missed.
Answer
  • x = −2: multiplicity 3, the graph flattens and crosses.
  • x = 0: multiplicity 1, the graph crosses at a slant.
  • x = 3: multiplicity 2, the graph touches the x-axis and turns back.
Double-check Plug in a number on each side of every zero and watch the sign. The table shows the values. f(−3) = (−3)(−6)2(−1)3 = (−3)(36)(−1) = 108 and f(−1) = (−1)(−4)2(1)3 = −16: positive, then negative, so the graph crosses at −2. f(−1) = −16 and f(1) = (1)(−2)2(3)3 = 108: negative, then positive, so it crosses at 0. f(2) = (2)(−1)2(4)3 = 128 and f(4) = (4)(1)2(6)3 = 864: positive on both sides, so it touches at 3 and turns back.

The trap

Wrong: cross at every zero. Right: cross at odd multiplicity and touch at even multiplicity.

Quick check

Try it before you open its steps. It is question 5 of 10 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 10

A repeated factor hiding behind grouping

Find the zeros of k(x) = x3 − 3x2 − 9x + 27, their multiplicities, and what the graph does at each.

What it asks. Find each zero, its multiplicity and its behavior.

Show the steps and the answer

The plan. Factor fully, combine repeated factors, then use odd for crossing and even for touch.

  1. Plan. Factor fully, combine repeated factors, then use odd for crossing and even for touch.
  1. Say what is asked: factor the formula fully, then read each zero, its multiplicity and the behavior.With four terms and no common factor, grouping is the tool to try.
  2. Group in pairs and factor each pair: (x3−3x2)+(−9x+27)=x2(x−3)−9(x−3).x2 comes out of the first pair and −9 out of the second, leaving the same bracket (x − 3) in both.
  3. Pull out the shared bracket: k(x)=(x−3)(x2−9).Both pieces contain (x − 3).
  4. Factor the difference of squares: x2−9=(x−3)(x+3).x2 − 9 is x2 − 32, and a2 − b2 = (a − b)(a + b).
  5. Collect the copies: k(x)=(x−3)(x−3)(x+3)=(x−3)2(x+3).The factor (x − 3) appeared in two places, so its exponents add: 1 + 1 = 2.
  6. Read the zeros. x=3 has multiplicity 2. x=−3 has multiplicity 1. Plug back into the original formula: k(3)=27−27−27+27=0 and k(−3)=−27−27+27+27=0.Both inputs give output 0, a check that agrees with the factoring.
  7. At 3 the multiplicity is even: the graph touches and turns back. At −3 it is odd: the graph crosses at a slant.Odd goes through, even bounces.
Answer
  • k(x)=(x−3)2(x+3).
  • x = −3: multiplicity 1, crosses at a slant.
  • x = 3: multiplicity 2, touches and turns back.
Double-check Using the original formula: k(−4) = −64 − 48 + 36 + 27 = −49, k(0) = 27 and k(4) = 64 − 48 − 36 + 27 = 7. Negative, then positive across −3: it crossed. Positive on both sides of 3: it touched. Also 2 + 1 = 3, the degree.

13.3 The Intermediate Value Theorem

about 4 minOpen the full lesson

The rule

Intermediate Value Theorem, zero version: let f be a polynomial and let a < b.

If f(a) and f(b) have opposite signs, then there is at least one number c with a < c < b and f(c)=0.source 1 General version: f takes every value between f(a) and f(b) at some input between a and b.source 1

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.4 Graphs of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Check the Intermediate Value Theorem’s condition for f(x) = x3 + x − 3 on 1 ≤ x ≤ 2. It is a polynomial, so its graph is unbroken throughout this interval.
  2. Evaluate both endpoints by substitution: f(1) = 1 + 1 − 3 = −1 and f(2) = 8 + 2 − 3 = 7. These outputs put one endpoint below the axis and the other above it.
  3. Apply the theorem: the opposite signs guarantee at least one zero between 1 and 2. They do not identify an exact zero or prove there is only one.
  4. To narrow the interval to consecutive tenths, test f(1.1) = −0.569, f(1.2) = −0.072 and f(1.3) = 0.497. Apply the same sign-change rule to 1.2 and 1.3: at least one zero lies between them. Matching signs at 1.1 and 1.2 alone give no conclusion about that smaller interval.
  5. Check with the theorem’s general version: f(x) = 0 means x3 + x = 3. At 1.2, x3 + x = 2.928; at 1.3, it is 3.497. The unbroken graph reaches 3 between those inputs, confirming the same interval.

Worked example

Worked example

Trapping a zero that factoring does not find

Let f(x) = x3 + x − 3.
(a) Show that f has a zero between 1 and 2.
(b) Find two tenths next to each other, such as 1.6 and 1.7, that the zero lies between.

What it asks. Prove a zero exists and narrow its location to consecutive tenths.

Show the steps and the answer

The plan. Find opposite signs, then test tenths and keep a sign-changing pair.

input xoutput f(x)1−11.1−0.5691.2−0.0721.30.49727
The same picture a third time: x: 1, 1.1, 1.2, 1.3, 2; f(x): −1, −0.569, −0.072, 0.497, 7.
  1. Plan. Find opposite signs, then test tenths and keep a sign-changing pair.
  1. Say what the question asks. A zero is an input whose output is 0. Part (a) asks you to prove such an input exists between 1 and 2. Part (b) asks you to shrink that stretch to one tenth wide.This polynomial has no factoring that falls out by grouping, so you cannot read the zero from brackets. The Intermediate Value Theorem lets you trap it instead.
  2. Note that f is a polynomial.A polynomial has an unbroken graph, which is what the theorem needs.
  3. Compute f(1)=13+1−3=1+1−3=−1. Sign: −.Replace every x with 1. The output is negative, so the graph is below the x-axis at x = 1.
  4. Compute f(2)=23+2−3=8+2−3=7. Sign: +.Replace every x with 2. The output is positive, so the graph is above the x-axis at x = 2.
  5. Conclude part (a): f(1) < 0 and f(2) > 0, so f has at least one zero between 1 and 2.Opposite signs at the two ends of an unbroken curve force a crossing between them.
  6. Decide where to test next. The output −1 is much closer to 0 than the output 7, so start near x=1.This is a hint for where to look first, not a guarantee. It saves work when it is right.
  7. Compute f(1.1)=1.331+1.1−3=−0.569. Sign: −.1.13 = 1.1 × 1.1 × 1.1 = 1.331. The output is still negative, so the zero is to the right of 1.1.
  8. Compute f(1.2)=1.728+1.2−3=−0.072. Sign: −.1.23 = 1.44 × 1.2 = 1.728. Still negative, but very close to 0.
  9. Compute f(1.3)=2.197+1.3−3=0.497. Sign: +.1.33 = 1.69 × 1.3 = 2.197. The sign has flipped to positive.
  10. Conclude part (b): the sign flips between the columns under 1.2 and 1.3 in the table, so the zero is between 1.2 and 1.3.f(1.2) < 0 and f(1.3) > 0, and the theorem applies to this shorter stretch the same way.
Answer
  • (a) f(1) = −1 is negative and f(2) = 7 is positive, so f has at least one zero between 1 and 2.
  • (b) The zero is between 1.2 and 1.3.
Double-check Second way, using the general version. A zero of f is an input where x3 + x equals 3. At x = 1.2, x3 + x = 1.728 + 1.2 = 2.928, a little short of 3. At x = 1.3, x3 + x = 2.197 + 1.3 = 3.497, past 3. So x3 + x hits 3 between 1.2 and 1.3, the same stretch. One more plug: f(1.21) = 1.771561 + 1.21 − 3 ≈ −0.018 (rounded), very close to 0, and 1.21 is between 1.2 and 1.3.

The trap

Wrong: matching endpoint signs mean no zero. Right: matching signs give no conclusion.

Quick check

Try it before you open its steps. It is question 5 of 9 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 9

Find the two integers yourself

Find two consecutive integers that trap a zero of f(x) = x3 + 2x + 5.

What it asks. Find a sign-changing interval at the requested precision.

Show the steps and the answer

The plan. Try inputs in order, then keep consecutive endpoints with opposite output signs.

input xoutput f(x)−2−7−120518
The only sign flip in the output row is between the columns under −2 and −1.
  1. Plan. Try inputs in order, then keep consecutive endpoints with opposite output signs.
  1. Say what the question asks: find inputs such as 4 and 5, or −3 and −2, whose outputs have opposite signs.Opposite signs at consecutive integers trap a zero between them.
  2. Start at 0: f(0)=0+0+5=5. Sign: +.0 is the quickest input to compute.
  3. Try 1: f(1)=1+2+5=8. Sign: +. The outputs are growing, so going right will not help.For any positive x, the terms x3 and 2x are positive, so the output is more than 5. No zero can be to the right of 0.
  4. Go left. f(−1)=(−1)3+2(−1)+5=−1−2+5=2. Sign: +.An odd power of a negative number is negative: (−1)3 = −1.
  5. Keep going left. f(−2)=(−2)3+2(−2)+5=−8−4+5=−7. Sign: −.(−2)3 = −8. The sign has flipped.
  6. Conclude: f(−2)<0 and f(−1)>0, so a zero lies between −2 and −1.f is a polynomial and the signs at the two ends are opposite.
Answer
A zero lies between −2 and −1.
Double-check Second way, using the general version. A zero of f is an input where x3 + 2x equals −5. At x = −2, x3 + 2x = −8 − 4 = −12. At x = −1, x3 + 2x = −1 − 2 = −3. The target −5 is between −12 and −3, so it is hit between −2 and −1. One more plug: f(−1.5) = −3.375 − 3 + 5 = −1.375, negative, while f(−1) = 2 is positive, so the zero is between −1.5 and −1, inside the stretch found.

13.4 Sketching a polynomial from its features

about 7 minOpen the full lesson

The rule

For a polynomial f that is not constant, written in factored form: the zeros cut the x-axis into intervals, and on each interval f(x) keeps one sign, the sign of f at any test point inside it.

At a zero of odd multiplicity the graph crosses the x-axis; at a zero of even multiplicity it touches and turns back. The y-intercept is (0, f(0)). The two arms follow the leading term.

How

  1. Use the zero-product rule on f(x) = (x + 1)(x − 2)2. Solving x + 1 = 0 and x − 2 = 0 gives −1 and 2. Use the multiplicity rule to mark a crossing at (−1, 0) and a touch and turn at (2, 0): their powers are odd and even, respectively.
  2. Use the y-intercept rule, (0, f(0)): f(0) = (0 + 1)(0 − 2)2 = 4. Plot (0, 4), since every point on the y-axis has input zero.
  3. Use the leading-term rule to find both ends. Multiplying the leading pieces gives x · x2 = x3. Its odd degree and positive coefficient mean the left end goes down and the right end goes up.
  4. Use the interval-sign rule: once all real zeros are listed, one test input gives the sign on each interval. Compute f(−2) = −16, reuse f(0) = 4 and compute f(3) = 4. The graph is below the axis for x < −1 and above it for −1 < x < 2 and x > 2.
  5. Draw one smooth, unbroken curve through the marked points. Also plot f(1) = 2 to guide the middle. Cross at −1, pass through (0, 4) and (1, 2), touch at 2, then rise through (3, 4). The multiplicity and sign rules keep each stretch on the correct side.
  6. Check from right to left using the same rules. The right end is positive. Passing the even zero 2 keeps that sign; passing the odd zero −1 changes it to negative. These signs agree with the test values and the left end. Check that the sketch includes both intercepts and (0, 4).

Worked example

Worked example

A cubic with one crossing and one touch

Sketch the graph of f(x) = (x + 1)(x − 2)2.

What it asks. Sketch the graph with intercepts, crossings or touches, and both ends.

Show the steps and the answer

The plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.

input xoutput f(x)−2−16−1004122034
The two 0s in the output row are the zeros.
−12− below+ above+ above
The side changes at −1 and does not change at 2.
  1. Plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.
  1. Set each factor equal to 0. x+1=0 gives x=−1. x−2=0 gives x=2. Plug back: f(−1)=(−1+1)(−1−2)2=(0)(9)=0 and f(2)=(2+1)(2−2)2=(3)(0)=0.A product is 0 only when one of its factors is 0, so this step finds the only two places where the graph meets the x-axis. Each real zero c gives the x-intercept (c, 0): here (−1, 0) and (2, 0).
  2. Read the multiplicity of each zero. (x+1) has exponent 1, so x=−1 has multiplicity 1. (x−2)2 has exponent 2, so x=2 has multiplicity 2.Odd multiplicity means the graph crosses the x-axis, so it crosses at −1. Even multiplicity means it touches and turns back, so it touches at 2.
  3. Find the y-intercept. f(0)=(0+1)(0−2)2=(1)(−2)2=(1)(4)=4. Plot (0, 4).Every point on the y-axis has x = 0, so putting 0 in for x gives the one point where the graph meets the y-axis.
  4. Find the end behavior. Degree: 1+2=3. Leading term: x·x2=x3, so the leading coefficient is 1.The highest power comes from multiplying the x part of every factor. Odd degree with a positive leading coefficient means the left arm points down and the right arm points up.
  5. List the intervals. The zeros −1 and 2 cut the x-axis into three: x<−1,−1<x<2, and x > 2. Choose a test point inside each: −2, 0 and 3. Add 1 as an extra point between the zeros.The graph cannot change sides inside an interval, so one input from each interval tells the side for all of it. Small integers keep the arithmetic short, and f(0) is already computed.
  6. Compute the test points. f(−2)=(−2+1)(−2−2)2=(−1)(−4)2=(−1)(16)=−16. f(1)=(1+1)(1−2)2=(2)(−1)2=(2)(1)=2. f(3)=(3+1)(3−2)2=(4)(1)2=4. With f(0)=4, the table in the picture is complete.A negative output means the graph is below the x-axis there, and a positive output means above. So the graph is below for x < −1, above for −1 < x < 2, and above for x > 2.
  7. Draw the curve from left to right. Start low on the left, rise through (−2,−16), cross the x-axis at (−1,0), go up through (0, 4), bend over, come down through (1, 2), touch the x-axis at (2, 0), turn back up through (3, 4), and keep rising.Each piece obeys one fact: the left arm down, the crossing at the odd zero, the test points, the touch at the even zero, the right arm up. The curve is smooth, with no corners and no gaps.
Answer
  • Zeros: x = −1 (multiplicity 1, crosses) and x = 2 (multiplicity 2, touches and turns back)
  • y-intercept: (0, 4)
  • Ends: left arm down, right arm up
  • Signs: below the x-axis for x < −1, above for −1 < x < 2, above for x > 2
  • Curve: rises from the lower left through (−2, −16), crosses at (−1, 0), passes through (0, 4) and (1, 2), touches (2, 0), and rises through (3, 4)
Double-check Second way, with no arithmetic: walk from the right arm to the left. The right arm is up, so f is positive for x > 2. The zero 2 has even multiplicity, so the sign stays positive between −1 and 2. The zero −1 has odd multiplicity, so the sign switches to negative for x < −1, which agrees with the left arm pointing down. This matches the computed values 4, then 4 and 2, then −16.

The trap

Wrong: switch sides at every zero. Right: switch at odd multiplicity and keep the side at even multiplicity.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A minus sign in front and a zero that touches

Sketch f(x) = −x2(x − 3).

What it asks. Sketch the graph with intercepts, crossings or touches, and both ends.

Show the steps and the answer

The plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.

input xoutput f(x)−14001224304−16
The outputs on both sides of x = 0 are positive, which is the touch; the sign changes only after x = 3.
03+ above+ above− below
Same side on both sides of the even zero 0, a switch at the odd zero 3.
  1. Plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.
  1. Zeros: x2=0 gives x=0. x−3=0 gives x=3. Plug back: f(0)=−(0)2(−3)=0 and f(3)=−(9)(0)=0.The factor −1 in front is never 0, so it adds no zero. Only x2 and (x − 3) can be 0.
  2. Multiplicity: x2 has exponent 2, so the zero 0 has multiplicity 2. (x−3) has exponent 1, so the zero 3 has multiplicity 1.Even at 0: the graph touches the x-axis and turns back. Odd at 3: the graph crosses.
  3. y-intercept: f(0)=0, so it is the origin (0, 0).0 is a zero, so the graph meets both axes there.
  4. Ends: degree 2+1=3. Leading term −x2·x=−x3.Odd degree with a negative leading coefficient: left arm up, right arm down. Gotcha: the minus sign in front belongs to the leading term.
  5. Test points: f(−1)=−(−1)2(−1−3)=−(1)(−4)=4. f(1)=−(1)2(1−3)=−(1)(−2)=2. f(2)=−(2)2(2−3)=−(4)(−1)=4. f(4)=−(4)2(4−3)=−(16)(1)=−16.The intervals are x < 0, 0 < x < 3, and x > 3. Square first, then apply the minus sign in front: −(−1)2 is −(1), not +1.
  6. Draw: come down from the upper left through (−1,4), touch the x-axis at (0, 0), turn back up through (1, 2) and (2, 4), bend over, cross at (3, 0), and fall through (4,−16).The graph stays above the axis on both sides of the even zero, then switches to below at the odd zero, ending with the right arm down.
Answer
  • Zeros: 0 (multiplicity 2, touches and turns back) and 3 (multiplicity 1, crosses)
  • y-intercept: (0, 0)
  • Ends: left arm up, right arm down
  • Signs: above for x < 0, above for 0 < x < 3, below for x > 3
Double-check Walk from the right: the right arm is down, so negative for x > 3. Odd zero at 3: switch to positive between 0 and 3. Even zero at 0: stay positive for x < 0, which agrees with the left arm pointing up. This matches −16, then 4 and 2, then 4.

13.5 Writing a formula from a graph

about 4 minOpen the full lesson

The rule

If all of a polynomial's zeros are real, at c1,c2, ...

with multiplicities m1,m2, ..., so the graph shows every one, then f(x)=a(x−c1)m1(x−c2)m2··· with a≠0.source 1 Lowest multiplicity that fits: a straight crossing is 1, a touch and turn is 2, a flattened crossing is 3. To find a, substitute one point (x0,y0) that is not on the x-axis and solve the equation for a.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.4 Graphs of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Read the example’s zeros and behavior: it crosses straight through at −2 and touches and turns at 1. Use the rule’s smallest fitting multiplicities, 1 and 2, because the question asks for the lowest degree.
  2. Use the factor rule: a zero c supplies x − c. Write f(x) = a(x + 2)(x − 1)2. The factors place the zeros, their powers give the required behavior, and a scales the other heights.
  3. Use the point (0, 4) to find a. Substitute both coordinates: 4 = a(0 + 2)(0 − 1)2 = 2a. A point off the x-axis makes the factor product nonzero, so it determines a.
  4. Divide both sides by 2 to keep the equation balanced: a = 2. Write f(x) = 2(x + 2)(x − 1)2. Its degree is 1 + 2 = 3, the lowest allowed by the crossing and touch.
  5. Check the saved point: f(2) = 2 · 4 · 1 = 8, matching (2, 8). The factors give zeros −2 and 1 with the required behavior. The leading term 2x3 gives a left end down and a right end up, so both ends agree too.

Worked example

Worked example

A crossing, a touch, and one more point

Reading a graph gives you these facts. It crosses the x-axis straight through at x = −2. It touches the x-axis and turns back at x = 1. It passes through (0, 4) and (2, 8). Its left arm goes down and its right arm goes up. Write a formula of the lowest possible degree.

What it asks. Write the polynomial formula that fits the given zeros and points.

−2: crosses1: touches
The same picture again: (−∞, ∞) on a number line.
Show the steps and the answer

The plan. Choose factors and powers, solve for the scale with a nonzero output, then check.

  1. Plan. Choose factors and powers, solve for the scale with a nonzero output, then check.
  1. List the zeros: x=−2 and x=1.A zero is an x-value where the graph meets the x-axis, and the graph meets it only at these two places.
  2. Give each zero a multiplicity: 1 at x=−2 and 2 at x=1.A straight crossing is the lowest odd multiplicity, 1. A touch and turn is the lowest even multiplicity, 2.
  3. Write the factors: (x+2) and (x−1)2.A zero at c gives the factor (x − c). For c = −2 that is x − (−2) = x + 2. The multiplicity becomes the power.
  4. Write f(x)=a(x+2)(x−1)2.This is the lowest-degree shape with these zeros and these behaviors. Only the number a is still unknown.
  5. Substitute the point (0, 4): 4=a(0+2)(0−1)2.The point (0, 4) is on the graph, so an input of 0 must give an output of 4. This turns a height on the picture into an equation whose only unknown is a.
  6. Work out the factors: 0+2=2 and (0−1)2=(−1)2=1. The equation becomes 4=a·2·1, which is 4=2a.Do the powers before multiplying. A negative number squared is positive.
  7. Divide both sides by 2: a=2. Plug it back in: 2·2·1=4, the height at x=0.Dividing by 2 undoes the multiplying by 2. This finds the one stretch that puts the graph through (0, 4).
  8. Write the formula: f(x)=2(x+2)(x−1)2.The factors come from the zeros, the powers from the behaviors, and the 2 from the extra point.
Answer
f(x)=2(x+2)(x−1)2
Double-check Use the point that was saved, (2, 8): f(2) = 2(2 + 2)(2 − 1)2 = 2 · 4 · 1 = 8, which matches. The arms agree too: the degree is 1 + 2 = 3, which is odd, and the leading coefficient 2 is positive, so the left arm goes down and the right arm goes up, as the graph shows.

The trap

Wrong: stop at the factors and assume the scale is one. Right: use a point off the x-axis to solve for the scale.

Quick check

Try it before you open its steps. It is question 5 of 10 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 10

Three zeros, one of them at 0

Reading a graph gives you these facts. It crosses the x-axis straight through at x = −3. It touches the x-axis and turns back at x = 0. It crosses straight through at x = 2. It passes through (1, 2) and (−1, 3). Both arms point down. Write a formula of the lowest possible degree.

What it asks. Write the polynomial formula that fits the given zeros and points.

−3: crosses0: touches2: crosses
Three zeros with their behaviors.
Show the steps and the answer

The plan. Choose factors and powers, solve for the scale with a nonzero output, then check.

  1. Plan. Choose factors and powers, solve for the scale with a nonzero output, then check.
  1. List the zeros and multiplicities: −3 with multiplicity 1, 0 with multiplicity 2, and 2 with multiplicity 1.Straight crossings get 1. The touch and turn gets 2.
  2. Write the factors: (x+3), x2 and (x−2).The zero at 0 gives (x − 0), which is x, and its multiplicity 2 makes it x2.
  3. Write f(x)=a·x2(x+3)(x−2).The number in front is still unknown.
  4. Skip the y-intercept and choose (1, 2).The y-intercept is (0, 0), which is a zero. Substituting it gives 0 = a · 0, which is true for every a and tells you nothing.
  5. Substitute (1, 2): 2=a·12·(1+3)(1−2)=a·1·4·(−1)=−4a.The input 1 must give the output 2.
  6. Divide both sides by −4: a=2−4=−12. Plug back in: −12·1·4·(−1)=2.This finds the one value of a that gives the height 2 at x = 1.
  7. Write f(x)=−12x2(x+3)(x−2).The factors, the powers and the number in front are all known.
Answer
f(x)=−12x2(x+3)(x−2)
Double-check Use the other point, (−1, 3): f(−1) = −12 · (−1)2 · (−1 + 3)(−1 − 2) = −12 · 1 · 2 · (−3) = −12 · (−6) = 3, which matches. The degree is 1 + 2 + 1 = 4, which is even, and a is negative, so both arms go down, as stated.

13.6 Largest and smallest values on an interval

about 6 minOpen the full lesson

The rule

On a closed interval a≤x≤b, a polynomial always has a global maximum and a global minimum.source 1

Each one sits at a local maximum or local minimum inside the interval, or at an endpoint (x=a or x=b).source 1 The maximum or minimum is the output, the y-value. The place where it happens is the input, the x-value.

Sources (1)
  1. Gilbert Strang and Edwin Herman. Calculus Volume 1, 4.3 Maxima and Minima. OpenStax, 2016. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Use the closed-interval rule on f(x) = x3 − 12x for −3 ≤ x ≤ 5. Both endpoints are included, so compare them with every interior local maximum and minimum. These are the possible places for a global extreme value.
  2. Read the marked hilltop (−2, 16) and valley (2, −16) in the example. By the local-extreme rule, a hilltop is highest nearby and a valley is lowest nearby. A table alone cannot prove that no turning point lies between its samples; use the marked features and the formula check below.
  3. Evaluate all four candidates by substitution: f(−3) = −27 + 36 = 9, f(−2) = −8 + 24 = 16, f(2) = 8 − 24 = −16 and f(5) = 125 − 60 = 65. The rule compares outputs, so keep each height paired with its input.
  4. Compare the heights: 65 > 16 > 9 > −16. The local maximum is 16 at x = −2 and the local minimum is −16 at x = 2. The global maximum is 65 at x = 5; the global minimum is −16 at x = 2.
  5. Check the bounds over the whole interval using the example’s factorizations. Since x + 4 is positive there and a square is never negative, f(x) + 16 = (x − 2)2(x + 4) ≥ 0. Thus f(x) ≥ −16. Also 65 − f(x) = (5 − x)(x2 + 5x + 13) ≥ 0: the first factor is never negative, and the second equals (x + 2.5)2 + 6.75, which is positive. Thus f(x) ≤ 65. Substitution shows both bounds are reached. Near −2, 16 − f(x) = (x + 2)2(4 − x) ≥ 0, confirming the local maximum.

Worked example

Worked example

A hilltop that is not the highest point

The picture shows points on the graph of f(x) = x3 − 12x for −3 ≤ x ≤ 5, and the table lists the same points. Find every local maximum and local minimum. Then find the global maximum and the global minimum on this interval.

What it asks. Find local and global extrema, giving each value and its input.

left end (−3, 9)hilltop (−2, 16)(−1, 11)(1, −11)valley (2, −16)(3, −9)(4, 16)right end (5, 65)−4−2246−20204060
The dots are points on the graph of f(x) = x3 − 12x from x = −3 to x = 5, and the curve between them is not…
Show the steps and the answer

The plan. Locate hills and valleys, include allowed endpoints, then compare heights.

input xoutput f(x)−39−216−111001−112−163−9416565↑ solve: output given, read every input above it
In the output row for f(x) = x3 − 12x the largest entry, 65, sits under the last input, x = 5.
  1. Plan. Locate hills and valleys, include allowed endpoints, then compare heights.
  1. Say what is asked. Find the hilltops and valley bottoms between x=−3 and x=5. Then find the highest and the lowest heights the graph reaches anywhere on that stretch.Local means compared with nearby points. Global means compared with every point on the interval.
  2. Mark the two ends. Left end: x=−3, where the graph is at height 9, the point (−3,9). Right end: x=5, at height 65, the point (5, 65).Both ends are included in −3 ≤ x ≤ 5, so both are candidates.
  3. Read the dots from the left. They rise from (−3,9) to (−2,16), then fall to (−1,11). The change from rising to falling is at (−2,16).Rising then falling points to a hilltop: f has a local maximum of 16 at x = −2, which the check proves.
  4. Keep reading. The dots fall through (−1,11) and (1,−11) down to (2,−16), then rise to (3,−9). The change from falling to rising is at (2,−16).Falling then rising points to a valley bottom: f has a local minimum of −16 at x = 2, which the check proves.
  5. Read to the end. From (2,−16) the dots only rise: through (3,−9) and (4, 16) to the right end (5, 65).The dots turn no more, and past x = 2 the quantity f(x) + 16 = (x − 2)2(x + 4) only grows, so there is no other hilltop or valley.
  6. List the candidate heights: left end 9, hilltop 16, valley −16, right end 65.The global maximum and the global minimum can only be at a hilltop, a valley bottom or an end.
  7. Pick the largest, 65, and the smallest, −16.65 > 16 > 9 > −16. The right end beats the hilltop, so here the local maximum is not the global maximum.
Answer
  • Local maximum: 16, at x = −2
  • Local minimum: −16, at x = 2
  • Global maximum on −3 ≤ x ≤ 5: 65, at x = 5 (the right end)
  • Global minimum on −3 ≤ x ≤ 5: −16, at x = 2 (the valley)
Double-check Compute from the formula in place of reading the picture. f(−3) = (−3)3 − 12(−3) = −27 + 36 = 9. f(−2) = −8 + 24 = 16. f(2) = 8 − 24 = −16. f(5) = 125 − 60 = 65. In the table of all nine integer inputs, no output is above 65 and none is below −16. Exactly, for every x on the interval: f(x) + 16 = (x − 2)2(x + 4) and 65 − f(x) = (5 − x)(x2 + 5x + 13), and neither is negative, since x2 + 5x + 13 is always positive. Near x = −2, 16 − f(x) = (x + 2)2(4 − x) is never negative either, which makes −2 a hilltop. The outputs 9, 16, 11 go up then down around x = −2, and −11, −16, −9 go down then up around x = 2.

The trap

Wrong: choose the highest hill and ignore the ends. Right: compare every hilltop and valley inside the interval with every included end.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Ties

The picture shows points on the graph of w(x) = x4 − 8x2 for −3 ≤ x ≤ 3. Find every local maximum and local minimum, then the global maximum and the global minimum.

What it asks. Find local and global extrema, giving each value and its input.

left end (−3, 9)valley (−2, −16)(−1, −7)hilltop (0, 0)(1, −7)valley (2, −16)right end (3, 9)−4−224−18−12−6612
The dots are points on the graph of w(x) = x4 − 8x2, and the curve between them is not drawn.
Show the steps and the answer

The plan. Locate hills and valleys, include allowed endpoints, then compare heights.

  1. Plan. Locate hills and valleys, include allowed endpoints, then compare heights.
  1. Say what is asked: find all hilltops and valleys, then the highest and lowest heights reached from x=−3 to x=3.There may be more than one of each, so read the whole interval.
  2. Mark the ends: (−3,9) and (3, 9).Both ends are included, so both are candidates.
  3. Read the dots from the left: down from (−3,9) to (−2,−16), then up. Local minimum of −16 at x=−2.Falling then rising points to a valley; the check proves it.
  4. Keep reading: up to (0, 0), then down. Local maximum of 0 at x=0.Rising then falling points to a hilltop; the check proves it.
  5. Keep reading: down to (2,−16), then up to the right end (3, 9). Local minimum of −16 at x=2.Falling then rising points to a second valley; the check proves it.
  6. List the candidates: 9, −16, 0, −16, 9. The largest is 9 and the smallest is −16.The hilltop at height 0 loses to the ends, so it is local only.
  7. Report each winning value once and list both places where it occurs.A global maximum is one number, even when two points reach it.
Answer
  • Local maximum: 0, at x = 0
  • Local minimum: −16, at x = −2 and at x = 2
  • Global maximum on −3 ≤ x ≤ 3: 9, at x = −3 and at x = 3 (both ends)
  • Global minimum on −3 ≤ x ≤ 3: −16, at x = −2 and at x = 2
Double-check Compute: w(−3) = 81 − 72 = 9, w(−2) = 16 − 32 = −16, w(−1) = 1 − 8 = −7, w(0) = 0. The inputs 1, 2 and 3 give the same outputs, because x4 and x2 come out the same for x and −x: 22 = (−2)2 = 4. A second way for the minimum: w(x) + 16 = x4 − 8x2 + 16 = (x2 − 4)2, a square, so w(x) + 16 is never negative and w(x) is never below −16. For the maximum: 9 − w(x) = (9 − x2)(x2 + 1), never negative on −3 ≤ x ≤ 3. For the hilltop: w(x) = x2(x2 − 8) is never positive while x2 ≤ 8, so 0 is the top near x = 0.

14 Dividing polynomials

about 25 min5 lessonsOpen the unit's crash course

14.1 Polynomial long division

about 4 minOpen the full lesson

The rule

Divide, multiply, subtract, bring down.

Write powers in descending order with zero placeholders. Stop only when every term is down and the remainder is zero or has lower degree than the divisor.

How

  1. Use the descending-powers rule to line up 2x2 − 5x − 1 and x − 3. Every power is present, so no zero placeholder is needed; matching powers keeps subtraction in the right columns.
  2. Use the divide step: 2x2 ÷ x = 2x. Write 2x in the quotient because multiplying x by 2x will cancel the dividend’s highest power.
  3. Use the multiply step on the whole divisor: 2x(x − 3) = 2x2 − 6x. The distributive rule includes both terms because the quotient counts copies of the whole divisor.
  4. Use the subtract step: (2x2 − 5x) − (2x2 − 6x) = x. Change both signs in the row being subtracted; −5x + 6x = x. Bring down −1 to use the next dividend term, giving x − 1.
  5. Repeat divide, multiply, subtract: x ÷ x = 1, so add 1 to the quotient. Multiply 1(x − 3) = x − 3. Subtract (x − 1) − (x − 3) = 2 because −1 + 3 = 2.
  6. Use the stopping rule: every term is down and the remainder 2 has degree 0, below the divisor’s degree 1. Stop with quotient 2x + 1 and remainder 2.
  7. Check with dividend = divisor × quotient + remainder: (x − 3)(2x + 1) + 2 = 2x2 + x − 6x − 3 + 2 = 2x2 − 5x − 1. Rebuilding every term confirms the division.

Worked example

Worked example

A full division with a minus sign in the divisor

Divide (2x2 − 5x − 1) ÷ (x − 3). Give the quotient and the remainder.

What it asks. Find the quotient and remainder when dividing by x − 3.

Show the steps and the answer

The plan. Align powers, then divide, multiply, subtract and bring down. Finish by multiplying back.

x−3)2x2−5x−1

Round 1: 2x2 ÷ x = 2x

2x(x−3)=2x2−6x

(2x2−5x)−(2x2−6x)=x

Round 2: x ÷ x = 1

1(x−3)=x−3

(x−1)−(x−3)=2

Quotient 2x + 1, remainder 2

  1. Plan. Align powers, then divide, multiply, subtract and bring down. Finish by multiplying back.
  1. Identify dividend 2x2−5x−1 and divisor x−3.The dividend goes under the bar, the divisor to the left, and the quotient on top.
  2. Set up x−3 ) 2x2−5x−1. All powers are present and in order.Each power needs its own column, so that like terms sit under like terms when you subtract.
  3. Divide: 2x2÷x=2x. Write 2x on the top line, above the x term.Multiplying x by 2x produces the leading term to cancel.
  4. Multiply: 2x(x−3)=2x2−6x. Write it under 2x2−5x.Each quotient term multiplies the whole divisor.
  5. Subtract: (2x2−5x)−(2x2−6x). Change both signs of the product and add: 2x2−5x−2x2+6x=x.Subtracting a whole expression flips every sign in it. The 2x2 terms cancel, as planned, and −5x + 6x = x.
  6. Bring down the −1. You now have x−1.The constant term joins the leftover from this round.
  7. The leftover x−1 and divisor x−3 both have degree 1. Divide again.You stop only when the degree of what is left is lower than the degree of the divisor.
  8. Divide: x÷x=1. Write +1 on the top line. The top line now reads 2x+1.1 times x gives x, the leading term you want to cancel now.
  9. Multiply: 1(x−3)=x−3. Write it under x−1.Again the new piece multiplies the whole divisor.
  10. Subtract: (x−1)−(x−3)=x−1−x+3=2.The x terms cancel. Subtracting −3 is the same as adding 3, and −1 + 3 = 2.
  11. Compare degrees: 2 is a plain number, so its degree is 0, which is lower than 1. Nothing is left to bring down. Stop.x does not go into a plain number without putting x in the bottom of a fraction.
  12. Read the answer: the top line 2x+1 is the quotient, and the 2 at the bottom is the remainder.The top collects the quotient terms; the bottom holds the leftover.
Answer
  • Quotient: 2x + 1
  • Remainder: 2
Double-check Multiply back: (x − 3)(2x + 1) + 2 = 2x2 − 5x − 1. The remainder 2 has degree 0, below the divisor's degree 1. Spot check at x = 10: the dividend is 200 − 50 − 1 = 149, the divisor is 7, the quotient is 21, and 7 × 21 + 2 = 149.

The trap

Wrong: change only the first sign when subtracting a row. Right: change every sign, then add.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A cubic, so three rounds

Divide (x3 − 4x2 + x + 10) ÷ (x − 3).

What it asks. Find the quotient and remainder.

Show the steps and the answer

The plan. Run long division one column at a time, then multiply back.

  1. Plan. Run long division one column at a time, then multiply back.
  1. Say what is asked: the dividend is x3−4x2+x+10, the divisor is x−3. Find the quotient and the remainder. The powers run x3,x2, x, number, with none missing.A dividend of degree 3 and a divisor of degree 1 means a quotient that starts with x2, so expect three rounds.
  2. Round 1. Divide: x3÷x=x2. Multiply: x2(x−3)=x3−3x2. Subtract: (x3−4x2)−(x3−3x2)=−4x2+3x2=−x2.x3 cancels. Subtracting −3x2 means adding 3x2.
  3. Bring down +x. You have −x2+x. Its degree is 2, so go on.Degree 2 is higher than the degree of the divisor.
  4. Round 2. Divide: −x2÷x=−x. Write −x on top. Multiply: −x(x−3)=−x2+3x. Subtract: (−x2+x)−(−x2+3x)=x−3x=−2x.A negative times −3 gives + 3x. Then −x2 cancels and x − 3x = −2x.
  5. Bring down +10. You have −2x+10. Its degree is 1, so go on.Degree 1 is equal to the degree of the divisor, not lower.
  6. Round 3. Divide: −2x÷x=−2. Write −2 on top. Multiply: −2(x−3)=−2x+6. Subtract: (−2x+10)−(−2x+6)=10−6=4.−2x cancels and the plain numbers give 4.
  7. Stop. 4 has degree 0. The top line reads x2−x−2.The degree of what is left is lower than the degree of the divisor, and nothing remains to bring down.
Answer
  • Quotient: x2 − x − 2
  • Remainder: 4
Double-check Multiply back: (x − 3)(x2 − x − 2) = x3 − x2 − 2x − 3x2 + 3x + 6 = x3 − 4x2 + x + 6. Add the remainder 4: x3 − 4x2 + x + 10, the dividend. With x = 1: the dividend is 1 − 4 + 1 + 10 = 8, the divisor is −2, the quotient is 1 − 1 − 2 = −2, and (−2)(−2) + 4 = 8.

14.2 Dividend = divisor times quotient plus remainder

about 6 minOpen the full lesson

The rule

The division algorithm: for a dividend P(x) and a divisor D(x) that is not 0, there is exactly one quotient Q(x) and exactly one remainder R(x) with P(x)=D(x)·Q(x)+R(x), where R(x) is 0 or has a lower degree than D(x).source 1

Dividing both sides by D(x) gives the fraction form: P(x)D(x)=Q(x)+R(x)D(x), wherever D(x)≠0.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.5 Dividing Polynomials. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Label the pieces in P = D × Q + R: P = 2x3 − 3x2 − 8x + 7, D = x − 3, Q = 2x2 + 3x + 1, R = 10. These are the reported dividend, divisor, quotient and remainder to check.
  2. Use the remainder-degree rule: 10 has degree 0, below the degree 1 of x − 3. This makes 10 an allowed remainder, though the multiplication must also agree.
  3. Use the distributive rule to multiply the entire divisor and quotient: (x − 3)(2x2 + 3x + 1) = 2x3 + 3x2 + x − 6x2 − 9x − 3 = 2x3 − 3x2 − 8x − 3. Combine like powers so each coefficient can be compared.
  4. Use P = D × Q + R to add the remainder: 2x3 − 3x2 − 8x − 3 + 10 = 2x3 − 3x2 − 8x + 7. Every coefficient matches P, proving the reported division. Write P = (x − 3)(2x2 + 3x + 1) + 10.
  5. Use the fraction form of the rule by dividing both sides of P = D × Q + R by D: 2x3−3x2−8x+7x−3 = 2x2 + 3x + 1 + 10x−3. Require x ≠ 3 because division by zero is undefined.
  6. Check both forms at the allowed input x = 2. The dividend is 16 − 12 − 16 + 7 = −5; D × Q + R is (−1)(15) + 10 = −5. The fraction form gives −5−1 = 15 + 10−1 = 5. This spot check supports the coefficient check above.

Worked example

Worked example

Checking a cubic divided by x − 3 and writing the answer two ways

Long division of 2x3 − 3x2 − 8x + 7 by x − 3 gave quotient 2x2 + 3x + 1 and remainder 10. Check the division, then write the result in both forms.

What it asks. Verify the result and write the multiplication identity and fraction form.

Show the steps and the answer

The plan. Check the remainder's degree, multiply back and add 10. Divide the identity by x − 3, with x ≠ 3.

x·(2x2+3x+1)=2x3+3x2+x

−3·(2x2+3x+1)=−6x2−9x−3

Sum: 2x3 − 3x2 − 8x − 3

Add the remainder 10: 2x3 − 3x2 − 8x + 7

  1. Plan. Check the remainder's degree, multiply back and add 10. Divide the identity by x − 3, with x ≠ 3.
  1. Name the pieces. Dividend: 2x3−3x2−8x+7. Divisor: x−3. Quotient: 2x2+3x+1. Remainder: 10.The division algorithm puts each piece in a fixed place, so you need to know which is which before you start.
  2. Test the remainder. The remainder 10 is a plain number, so its degree is 0. The divisor x−3 has degree 1. Since 0 < 1, the remainder is small enough.A remainder with degree 1 or more could still be divided by x − 3, which would mean the division was not finished.
  3. Multiply the x of the divisor by every term of the quotient: x·(2x2+3x+1)=2x3+3x2+x.Multiplying a polynomial by a binomial starts with the first term of the binomial times each term of the polynomial.
  4. Multiply the −3 of the divisor by every term of the quotient: −3·(2x2+3x+1)=−6x2−9x−3.The second term of the binomial also multiplies each term, and a negative number times a positive term gives a negative term.
  5. Add the two rows and collect like terms: 2x3+(3x2−6x2)+(x−9x)−3=2x3−3x2−8x−3.Only terms with the same power of x combine: 3 − 6 = −3 and 1 − 9 = −8.
  6. Add the remainder: 2x3−3x2−8x−3+10=2x3−3x2−8x+7.The remainder is a plain number, so it combines with the plain number −3, and −3 + 10 = 7.
  7. Compare with the dividend 2x3−3x2−8x+7. The coefficients are 2, −3,−8 and 7 on both sides.Two polynomials are the same only when every coefficient matches, so you compare one power at a time.
  8. Write the multiplication form: 2x3−3x2−8x+7=(x−3)(2x2+3x+1)+10.This is the division algorithm with the four pieces put in their places.
  9. Write the fraction form: 2x3−3x2−8x+7x−3=2x2+3x+1+10x−3, for x≠3.Dividing both sides by x − 3 turns the product into the quotient alone and leaves the remainder over the divisor. Setting x − 3 = 0 gives x = 3. This finds the one input that would make the bottom zero, so it is ruled out. Plug it in to see: 3 − 3 = 0.
Answer
  • The division is correct.
  • 2x3−3x2−8x+7=(x−3)(2x2+3x+1)+10
  • 2x3−3x2−8x+7x−3 = 2x2 + 3x + 1 + 10x−3, for x ≠ 3
Double-check Put x = 2 into both sides of the multiplication form. Left: 2(8) − 3(4) − 8(2) + 7 = 16 − 12 − 16 + 7 = −5. Right: (2 − 3)(2 · 4 + 3 · 2 + 1) + 10 = (−1)(15) + 10 = −5. Both sides give −5. The fraction form agrees too: the left is −5−1 = 5 and the right is 15 + 10−1 = 15 − 10 = 5.

The trap

Wrong: check with divisor × quotient alone. Right: add the remainder too, including its sign.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Catching a wrong remainder

A friend divides x3 − 2x2 + 4x − 5 by x − 1 and reports the quotient x2 − x + 3 and the remainder 2. Check the result and correct the remainder if needed.

What it asks. Find and correct the reported remainder.

Show the steps and the answer

The plan. Multiply the divisor by the reported quotient. Subtract that product from the dividend to find the remainder.

=x³ − 2x² + 4x− 5(x − 1)(x² − x+ 3) + (−2)do the same thing to both sides
The scale balances with −2 on the right. With + 2 the right side would be 4 too heavy.
  1. Plan. Multiply the divisor by the reported quotient. Subtract that product from the dividend to find the remainder.
  1. Test the remainder: 2 has degree 0, the divisor x−1 has degree 1, and 0 < 1.The size test passes, so any mistake is in the numbers, not in stopping early.
  2. Multiply x by the quotient: x·(x2−x+3)=x3−x2+3x.The first term of the divisor multiplies every term of the quotient.
  3. Multiply −1 by the quotient: −1·(x2−x+3)=−x2+x−3.Multiplying by −1 flips the sign of every term.
  4. Add the rows: x3+(−x2−x2)+(3x+x)−3=x3−2x2+4x−3.Like terms combine: −1 − 1 = −2 and 3 + 1 = 4.
  5. Add the reported remainder: x3−2x2+4x−3+2=x3−2x2+4x−1.This is what the reported answer claims the dividend is.
  6. Compare with the dividend x3−2x2+4x−5. The x3,x2 and x terms match. The plain numbers do not: −1 is not −5.One mismatch is enough to show the reported answer is wrong. The matching higher terms show the quotient is fine and the error is in the remainder.
  7. Find the true remainder: remainder = dividend − divisor × quotient =(x3−2x2+4x−5)−(x3−2x2+4x−3)=−5+3=−2.Moving divisor × quotient to the other side of the division algorithm leaves the remainder alone. This finds the one leftover that makes the two sides balance.
  8. Plug it back in: x3−2x2+4x−3+(−2)=x3−2x2+4x−5.Adding −2 is the same as subtracting 2, and −3 − 2 = −5, which is the dividend.
Answer
  • The reported remainder is wrong.
  • The quotient x2 − x + 3 is right, and the remainder is −2.
  • x3−2x2+4x−5=(x−1)(x2−x+3)+(−2)
Double-check Put x = 2 into both sides. Dividend: 8 − 8 + 8 − 5 = 3. With remainder −2: (2 − 1)(4 − 2 + 3) − 2 = 5 − 2 = 3, which matches. With the reported remainder 2: 5 + 2 = 7, which does not.

14.3 Synthetic division by x − c

about 4 minOpen the full lesson

The rule

This short table works for a divisor of the form x−c.source 1

Write c in a box and the coefficients of the dividend in a row, in descending powers, with 0 for every missing power. Bring down the first coefficient. Then repeat: multiply the newest bottom number by c, write the product under the next coefficient, and add the column. The last bottom number is the remainder. The numbers before it are the coefficients of the quotient, whose degree is one less than the degree of the dividend when the dividend has degree 1 or more.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.5 Dividing Polynomials. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Use the x − c rule: the divisor x − 3 has c = 3. Put 3 in the box: x = 3 makes the divisor zero, since 3 − 3 = 0. Its x coefficient is 1, so the quotient needs no scaling.
  2. Use the coefficient-order rule: write 2, −7, 4, 5 for 2x3 − 7x2 + 4x + 5. Every power is present, so no zero is needed; each column keeps its power of x.
  3. Use the bring-down rule: put 2 below the first coefficient. The leading coefficient stays 2 because the divisor starts with 1x.
  4. Use multiply, then add: 2 × 3 = 6; write 6 under −7 and add −7 + 6 = −1. This produces the next quotient coefficient by the table’s rule.
  5. Repeat multiply, then add with the newest bottom number: (−1) × 3 = −3; write −3 under 4 and add 4 − 3 = 1. Advancing one column gives the next quotient coefficient.
  6. Repeat once more: 1 × 3 = 3; write 3 under 5 and add 5 + 3 = 8. The last-number rule makes 8 the remainder because this is the constant column.
  7. Use the quotient-degree rule to read the bottom row 2, −1, 1, 8. Start one power below the cubic dividend: the quotient is 2x2 − x + 1. Keep the remainder 8 separate.
  8. Check with P = D × Q + R: (x − 3)(2x2 − x + 1) + 8 = 2x3 − 7x2 + 4x − 3 + 8 = 2x3 − 7x2 + 4x + 5. Rebuilding the dividend checks every coefficient.

Worked example

Worked example

A cubic divided by x − 3

Use synthetic division to divide 2x3 − 7x2 + 4x + 5 by x − 3. State the quotient and the remainder.

What it asks. Find the quotient and remainder using synthetic division.

Show the steps and the answer

The plan. Use 3 in the box. Bring down once, then multiply and add; read the last number as the remainder.

Box: 3

Top row: 2 −7 4 5

Middle row: empty 6 −3 3

Bottom row: 2 −1 1 8

Quotient: 2x2 − x + 1

Remainder: 8

  1. Plan. Use 3 in the box. Bring down once, then multiply and add; read the last number as the remainder.
  1. Say what the question asks. The dividend is 2x3−7x2+4x+5 and the divisor is x−3. Find the quotient and the remainder.Every division question asks for these two results, so name the pieces before you start.
  2. Read c from the divisor. x − 3 has the form x − c with c = 3. Test it: 3−3=0.c is the number subtracted from x. It is also the one number that makes the divisor 0, and plugging it back in confirms you read it correctly.
  3. Check the dividend. The powers 3, 2, 1 and 0 are all there, in descending order. Top row: 2, −7, 4, 5.Each column stands for one power of x, so no power may be skipped. A dividend of degree 3 needs 4 numbers.
  4. Bring the 2 straight down to the bottom row.The divisor starts with 1x, so the first coefficient of the quotient equals the first coefficient of the dividend.
  5. Multiply 2 × 3 = 6. Write 6 under the −7. Add the column: −7+6=−1.Multiply by c, then add. This replaces the multiply and subtract step of long division.
  6. Multiply −1 × 3 = −3. Write −3 under the 4. Add the column: 4+(−3)=1.The same two moves, applied to the newest bottom number.
  7. Multiply 1 × 3 = 3. Write 3 under the 5. Add the column: 5+3=8.This is the last column, so the sum is the remainder.
  8. Read the bottom row 2, −1, 1, 8. The last number, 8, is the remainder. The numbers 2, −1, 1 are the coefficients of the quotient, starting at x2: 2x2−x+1.Dividing a polynomial of degree 3 by a divisor of degree 1 leaves a quotient of degree 2.
Answer
  • Quotient: 2x2 − x + 1
  • Remainder: 8
  • In full: 2x3 − 7x2 + 4x + 5 = (x − 3)(2x2 − x + 1) + 8
Double-check Multiply back. (x − 3)(2x2 − x + 1) = 2x3 − x2 + x − 6x2 + 3x − 3 = 2x3 − 7x2 + 4x − 3. Add the remainder 8 to get 2x3 − 7x2 + 4x + 5, which is the dividend. Second look: put x = 3 into the dividend. 2(27) − 7(9) + 4(3) + 5 = 54 − 63 + 12 + 5 = 8, the remainder. These must match because at x = 3 the divisor x − 3 is 0, so divisor × quotient is 0 and only the remainder is left.

The trap

Wrong: omit a missing power from the coefficient row. Right: write a zero in that place before starting.

Quick check

Try it before you open its steps. It is question 5 of 10 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 10

Out of order, with two missing terms

Use synthetic division to divide 5 − 3x2 + 2x4 by x + 1.

What it asks. Find the quotient and remainder for the given divisor.

Show the steps and the answer

The plan. Order the powers first and insert zeros for gaps. Then use −1 in the box.

2x4+0x3−3x2+0x+5

Box: −1

Top row: 2 0 −3 0 5

Middle row: empty −2 2 1 −1

Bottom row: 2 −2 −1 1 4

Quotient: 2x3 − 2x2 − x + 1, remainder: 4

  1. Plan. Order the powers first and insert zeros for gaps. Then use −1 in the box.
  1. Say what is asked. The dividend is 5−3x2+2x4 and the divisor is x+1. Find the quotient and the remainder.The dividend is written from the lowest power up, so it must be reordered before any numbers go in the row.
  2. Read c. x + 1 = x − (−1), so c = −1. Test: −1+1=0.Plus in the divisor means a negative number in the box.
  3. Reorder to descending powers: 2x4−3x2+5. List the powers 4, 3, 2, 1, 0. The x3 term and the x term are missing. Rewrite as 2x4+0x3−3x2+0x+5. Top row: 2, 0, −3, 0, 5.The row must run from the highest power to the constant with one number for every power. Degree 4 needs 5 numbers.
  4. Bring down the 2.The first coefficient drops straight down.
  5. Multiply 2 × (−1) = −2. Write it under the first 0. Add: 0+(−2)=−2.Multiply by c, then add.
  6. Multiply −2 × (−1) = 2. Write it under the −3. Add: −3+2=−1.A negative times a negative is positive.
  7. Multiply −1 × (−1) = 1. Write it under the second 0. Add: 0+1=1.The same two moves again.
  8. Multiply 1 × (−1) = −1. Write it under the 5. Add: 5+(−1)=4.Last column, so 4 is the remainder.
  9. Read the bottom row 2, −2,−1, 1, 4. Quotient: 2x3−2x2−x+1. Remainder: 4.A dividend of degree 4 gives a quotient of degree 3, so the first number goes with x3.
Answer
  • Quotient: 2x3 − 2x2 − x + 1
  • Remainder: 4
Double-check Multiply back. (x + 1)(2x3 − 2x2 − x + 1) = 2x4 − 2x3 − x2 + x + 2x3 − 2x2 − x + 1 = 2x4 − 3x2 + 1. Add the remainder 4 to get 2x4 − 3x2 + 5, the dividend. Second look: put x = −1 into the dividend. 5 − 3(1) + 2(1) = 4, the remainder.

14.4 Dividing by a divisor of degree two

about 5 minOpen the full lesson

The rule

Use long division for a quadratic divisor.

Stop when all terms are down and the remainder is zero or has degree below two. The remainder may be mx +n, a constant or zero.

How

  1. Use the quadratic-divisor rule to choose long division for (2x3 + 5x2 + x + 4) ÷ (x2 + x − 2). Both polynomials have every power in descending order, so no zero placeholders are needed.
  2. Use the leading-term division rule: 2x3 ÷ x2 = 2x. Write 2x in the quotient because its product with x2 cancels the cubic term.
  3. Use the distributive rule to multiply the whole divisor: 2x(x2 + x − 2) = 2x3 + 2x2 − 4x. Every divisor term must be included.
  4. Use the subtraction rule on the whole row: (2x3 + 5x2 + x) − (2x3 + 2x2 − 4x) = 3x2 + 5x. In particular, x − (−4x) = 5x. Bring down +4 to include the last dividend term.
  5. Apply the degree rule: 3x2 + 5x + 4 has the same degree as the divisor, so divide again. Use 3x2 ÷ x2 = 3 and multiply 3(x2 + x − 2) = 3x2 + 3x − 6 to cancel the next highest power.
  6. Use whole-row subtraction: (3x2 + 5x + 4) − (3x2 + 3x − 6) = 2x + 10. Subtracting −6 adds 6, so the constant is 10.
  7. Use the stopping rule: all terms are down and 2x + 10 has degree 1, below 2. The quotient is 2x + 3 and the remainder is 2x + 10; a remainder can contain x when the divisor is quadratic.
  8. Check with P = D × Q + R: (x2 + x − 2)(2x + 3) = 2x3 + 5x2 − x − 6. Add 2x + 10 to get 2x3 + 5x2 + x + 4. Every term matches the dividend.

Worked example

Worked example

A third degree dividend and a divisor with three terms

Divide 2x3 + 5x2 + x + 4 by x2 + x − 2. Give the quotient and the remainder.

What it asks. Find the quotient and the remainder, which may contain x.

Show the steps and the answer

The plan. Use long division. Cancel the cubic term, then the quadratic term; check by multiplying back.

=PD × Q + Rdo the same thing to both sides
P is the dividend, D the divisor, Q the quotient and R the remainder. The scale shows P = D × Q + R.
  1. Plan. Use long division. Cancel the cubic term, then the quadratic term; check by multiplying back.
  1. Say what is asked: find how many times x2+x−2 goes into 2x3+5x2+x+4 (the quotient) and what is left over (the remainder).Naming the two things you are looking for tells you when you are done.
  2. Look at the divisor: x2+x−2 has degree 2. Choose long division.The synthetic table fits a linear divisor, with quotient scaling for ax + b. A divisor of degree two needs long division.
  3. Check the order and the powers. The dividend has x3,x2, x and a number. The divisor has x2, x and a number. No placeholders are needed.Every power needs its own column so that like terms line up when you subtract.
  4. Predict: the quotient will have degree 3−2=1.Dividing by x2 lowers the degree by 2. This tells you to expect two rounds: an x term and a number.
  5. Round 1, divide the leading terms: 2x3÷x2=2x. Write 2x in the quotient.2 ÷ 1 = 2, and x3 ÷ x2 = x. Matching the leading terms is what makes them cancel.
  6. Multiply the whole divisor by 2x: 2x(x2+x−2)=2x3+2x2−4x.The 2x counts copies of the entire divisor, so all three terms are multiplied.
  7. Subtract the whole row: (2x3+5x2+x)−(2x3+2x2−4x)=3x2+5x.2x3−2x3=0.5x2−2x2=3x2.x−(−4x)=x+4x=5x.
  8. Bring down the +4. What is left is 3x2+5x+4.The 4 has not been used yet. The degree of what is left is 2, which is not less than 2, so another round is needed.
  9. Round 2, divide the leading terms: 3x2÷x2=3. Write +3 in the quotient.x2 goes into 3x2 three times.
  10. Multiply the whole divisor by 3: 3(x2+x−2)=3x2+3x−6.Again, all three terms of the divisor are multiplied.
  11. Subtract the whole row: (3x2+5x+4)−(3x2+3x−6)=2x+10.3x2−3x2=0.5x−3x=2x.4−(−6)=4+6=10.
  12. Stop. The remainder is 2x+10.Its degree is 1, and 1 < 2. There is nothing left to bring down, and x2 does not go into 2x.
Answer
  • Quotient: 2x + 3
  • Remainder: 2x + 10
  • In the division algorithm form: 2x3 + 5x2 + x + 4 = (x2 + x − 2)(2x + 3) + (2x + 10)
Double-check Multiply back: (x2 + x − 2)(2x + 3) = 2x3 + 3x2 + 2x2 + 3x − 4x − 6 = 2x3 + 5x2 − x − 6. Add the remainder 2x + 10 to get 2x3 + 5x2 + x + 4, which is the dividend. A second check with a number: at x = 2 the dividend is 16 + 20 + 2 + 4 = 42, the divisor is 4, the quotient is 7 and the remainder is 14, and 4 × 7 + 14 = 42.

The trap

Wrong: subtract only two terms of a three-term product. Right: change all three signs, then add.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Minus signs in the divisor

Divide 3x3 − 4x2 + 7x − 5 by x2 − 2x + 3.

What it asks. Find a polynomial quotient and a remainder of degree below two.

Show the steps and the answer

The plan. Change every sign when subtracting each product, including negative terms.

  1. Plan. Change every sign when subtracting each product, including negative terms.
  1. Say what is asked: find the quotient and the remainder. No power is missing in either polynomial.The setup is the same as before. The new difficulty is subtracting negative terms.
  2. Round 1: 3x3÷x2=3x. Write 3x in the quotient.3 ÷ 1 = 3 and x3 ÷ x2 = x.
  3. Multiply: 3x(x2−2x+3)=3x3−6x2+9x.3x × (−2x) = −6x2, and 3x × 3 = 9x.
  4. Subtract: (3x3−4x2+7x)−(3x3−6x2+9x)=2x2−2x. Bring down −5 to get 2x2−2x−5.3x3 cancels. −4x2 − (−6x2) = −4x2 + 6x2 = 2x2. 7x − 9x = −2x.
  5. Round 2: 2x2÷x2=2. Write +2 in the quotient.The degree of what is left is 2, so one more round is needed.
  6. Multiply: 2(x2−2x+3)=2x2−4x+6.Multiply every term of the divisor by 2.
  7. Subtract: (2x2−2x−5)−(2x2−4x+6)=2x−11. Stop.2x2 cancels. −2x − (−4x) = −2x + 4x = 2x. −5 − 6 = −11. The degree is 1, and 1 < 2.
Answer
  • Quotient: 3x + 2
  • Remainder: 2x − 11
Double-check Multiply back: (x2 − 2x + 3)(3x + 2) = 3x3 + 2x2 − 6x2 − 4x + 9x + 6 = 3x3 − 4x2 + 5x + 6. Add 2x − 11 to get 3x3 − 4x2 + 7x − 5, the dividend. With a number: at x = 1 the dividend is 3 − 4 + 7 − 5 = 1, the divisor is 2, the quotient is 5, the remainder is −9, and 2 × 5 + (−9) = 1.

14.5 What a zero remainder means

about 5 minOpen the full lesson

The rule

If a division gives remainder 0, the divisor is a factor of the dividend, and dividend = divisor × quotient.

If the remainder is not 0, the divisor is not a factor. For a divisor x−c, with P(x) standing for the dividend and Q(x) for the quotient: remainder 0 means P(x)=(x−c)·Q(x).

How

  1. Use the synthetic-division rule to test the proposed factor x − 4 of x3 + 3x2 − 18x − 40. Put 4 in the box: x = 4 makes the divisor zero, since 4 − 4 = 0. Write the complete coefficient row 1, 3, −18, −40.
  2. Use bring down, multiply, add: bring down 1, multiply 1 × 4 = 4, and add 3 + 4 = 7. This starts the quotient row one power below the cubic dividend.
  3. Repeat multiply, add: 7 × 4 = 28 and −18 + 28 = 10; then 10 × 4 = 40 and −40 + 40 = 0. Using each newest bottom number gives the bottom row 1, 7, 10, 0.
  4. Use the zero-remainder rule: the last entry is 0, so x − 4 is a factor. The other entries give quotient x2 + 7x + 10. Write x3 + 3x2 − 18x − 40 = (x − 4)(x2 + 7x + 10) because the division identity has no leftover term.
  5. Use the quadratic factoring rule: find two numbers whose product is 10 and whose sum is 7. They are 2 and 5, so x2 + 7x + 10 = (x + 2)(x + 5). Keep the original divisor to get (x − 4)(x + 2)(x + 5); every factor is linear.
  6. Check by multiplication: (x − 4)(x + 2) = x2 − 2x − 8. Then (x2 − 2x − 8)(x + 5) = x3 + 5x2 − 2x2 − 10x − 8x − 40 = x3 + 3x2 − 18x − 40. This recovers every coefficient of the original polynomial.

Worked example

Worked example

Show a factor, then factor completely

Show that x − 4 is a factor of x3 + 3x2 − 18x − 40. Then factor x3 + 3x2 − 18x − 40 completely.

What it asks. Confirm the proposed factor and factor the whole polynomial.

Show the steps and the answer

The plan. Divide by x − 4, check for remainder zero, then factor the quadratic quotient and multiply all factors back.

Dividing by x − 4: use c = 4

Top row: 1 3 −18 −40

Middle row: 4 28 40

Bottom row: 1 7 10 0

Quotient: x2 + 7x + 10

Remainder: 0, so x − 4 is a factor

  1. Plan. Divide by x − 4, check for remainder zero, then factor the quadratic quotient and multiply all factors back.
  1. Say what the question asks. Show that x−4 is a factor means: divide by x−4 and get remainder 0. Factor completely means: write the polynomial as a product of pieces that cannot be split again.Knowing the target tells you when to stop: a remainder of 0 for the first part, no more splitting for the second.
  2. Choose the method and the number. The divisor x−4 has the form x−c with c=4, so use synthetic division with 4.Synthetic division is built for a divisor of the form x − c. The number 4 is the one that makes the divisor equal 0: 4 − 4 = 0.
  3. Write the coefficients of the dividend in descending powers as the top row: 1, 3, −18,−40.The dividend has an x3 term, an x2 term, an x term and a constant, so no power is missing and no 0 is needed.
  4. Bring down the 1. Multiply 1 × 4 = 4, write it under the 3, and add: 3+4=7.Each new bottom number is the top number plus 4 times the bottom number before it.
  5. Multiply 7 × 4 = 28, write it under the −18, and add: −18+28=10.Same move, one column to the right.
  6. Multiply 10×4=40, write it under the −40, and add: −40+40=0. The bottom row is 1, 7, 10, 0.The last number of the bottom row is the remainder, and here it is 0.
  7. Read the bottom row: the remainder is 0 and the quotient is x2+7x+10.The numbers before the last one are the coefficients of the quotient, and the quotient starts one degree below the dividend, so x3 drops to x2.
  8. Write the multiplication: x3+3x2−18x−40=(x−4)(x2+7x+10).The division algorithm says dividend = divisor × quotient + remainder, and the remainder is 0. This shows x − 4 is a factor.
  9. Factor the quotient x2+7x+10. Look for two numbers that multiply to 10 and add to 7. They are 2 and 5, so x2+7x+10=(x+2)(x+5).2 × 5 = 10 and 2 + 5 = 7, which match the last number and the middle number of the quotient.
  10. Put every piece in one product: (x−4)(x+2)(x+5).The divisor stays in the answer because it is one of the factors. Each piece now has degree 1, so nothing can be split again.
Answer
  • x − 4 is a factor, because the remainder is 0.
  • x3+3x2−18x−40=(x−4)(x+2)(x+5)
Double-check Multiply back. (x − 4)(x + 2) = x2 + 2x − 4x − 8 = x2 − 2x − 8. Then (x2 − 2x − 8)(x + 5) = x3 + 5x2 − 2x2 − 10x − 8x − 40 = x3 + 3x2 − 18x − 40, the original dividend. A number test agrees: at x = 1 the original is 1 + 3 − 18 − 40 = −54, and the factored form is (−3)(3)(6) = −54.

The trap

Wrong: give only the factored quotient. Right: include the divisor too, so the product rebuilds the original polynomial.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 8

A divisor x + c and a missing term

Show that x + 3 is a factor of x3 − 13x − 12. Then factor x3 − 13x − 12 completely.

What it asks. Confirm the proposed factor and factor completely.

Show the steps and the answer

The plan. Use −3 in the box with a zero for the missing x2 term. Factor the quadratic quotient.

Dividing by x + 3: use c = −3

Top row: 1 0 −13 −12

Middle row: −3 9 12

Bottom row: 1 −3 −4 0

Quotient: x2 − 3x − 4

Remainder: 0

  1. Plan. Use −3 in the box with a zero for the missing x2 term. Factor the quadratic quotient.
  1. Say what the question asks: divide by x+3, get remainder 0, then keep splitting until no piece can be split again.Remainder 0 proves the factor, and completely means no piece is left that still factors.
  2. Find the number for synthetic division. Write x+3 as x−(−3), so c=−3.Synthetic division uses the number that makes the divisor 0, and −3 + 3 = 0.
  3. Write the top row with a 0 for the missing x2 term: 1, 0, −13,−12.x3 − 13x − 12 is x3 + 0x2 − 13x − 12. Without the 0, every later number lands in the wrong column.
  4. Bring down the 1. Multiply 1 × (−3) = −3 and add: 0+(−3)=−3.Top number plus −3 times the bottom number before it.
  5. Multiply −3 × (−3) = 9 and add: −13+9=−4.A negative times a negative is positive.
  6. Multiply −4×(−3)=12 and add: −12+12=0. The bottom row is 1, −3,−4, 0.The last bottom number is the remainder, and it is 0, so x + 3 is a factor.
  7. Write x3−13x−12=(x+3)(x2−3x−4).Remainder 0 gives dividend = divisor × quotient, and 1, −3, −4 are the coefficients of the quotient starting at x2.
  8. Factor x2−3x−4. Two numbers that multiply to −4 and add to −3 are −4 and 1. So x2−3x−4=(x−4)(x+1).−4 × 1 = −4 and −4 + 1 = −3.
  9. Write every factor: (x+3)(x−4)(x+1).The divisor x + 3 is a factor and stays in the answer.
Answer
  • x + 3 is a factor, because the remainder is 0.
  • x3−13x−12=(x+3)(x−4)(x+1)
Double-check Multiply back: (x + 3)(x − 4) = x2 − 4x + 3x − 12 = x2 − x − 12. Then (x2 − x − 12)(x + 1) = x3 + x2 − x2 − x − 12x − 12 = x3 − 13x − 12. Number test at x = 2: the original is 8 − 26 − 12 = −30, and the factored form is (5)(−2)(3) = −30.

15 Zeros of polynomial functions

about 35 min7 lessonsOpen the unit's crash course

15.1 The Remainder Theorem

about 3 minOpen the full lesson

The rule

Remainder Theorem: if a polynomial f(x) is divided by x − c, the remainder is f(c).source 1

In symbols, for any number c: f(x)=(x−c)·q(x)+r, and r=f(c).

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.6 Zeros of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For f(x) = 2x3 − 5x2 + x − 4, find f(3). By the Remainder Theorem, use the divisor x − 3 and c = 3: the output equals the remainder.
  2. Write 2, −5, 1, −4 in descending powers. Synthetic division needs a place for every power so the columns line up; here none is missing.
  3. Bring down 2. Follow the synthetic division rule, multiply by 3 then add: −5 + 6 = 1, then 1 + 3 = 4, then −4 + 12 = 8. Each new bottom entry supplies the next multiplication.
  4. Read the last entry as the remainder. The Remainder Theorem gives f(3) = 8; the other entries give the quotient 2x2 + x + 4.
  5. Check by substitution into the original: 2·33 − 5·32 + 3 − 4 = 54 − 45 + 3 − 4 = 8. Substitution and division must agree because both compute f(3).

Worked example

Worked example

Finding f(3) with the table

Let f(x) = 2x3 − 5x2 + x − 4. Use synthetic division and the Remainder Theorem to find f(3).

What it asks. Find a function value or a remainder.

Show the steps and the answer

The plan. Find c, run the multiply-and-add row, then check by substitution.

divide 2x3 − 5x2 + x − 4 by x − 3: c = 3

top row: 2, −5, 1, −4

products (bottom number · 3): 6, 3, 12

bottom row: 2, 1, 4, 8

remainder: 8 = f(3)

  1. Plan. Find c, run the multiply-and-add row, then check by substitution.
  1. Say what the question asks: the input is 3, so find the output f(3). The Remainder Theorem lets us get it as the remainder when f(x) is divided by x−3.f(3) and that remainder are the same number, so we may take the table road instead of cubing 3.
  2. Find c: set the divisor equal to 0. x−3=0 gives x=3, so c=3. Plug back: 3−3=0.This finds the one input that makes the divisor zero, and that input is the number the table runs on.
  3. Write the coefficients from the highest power down: 2, −5, 1, −4.Every power from x3 down to the constant is present, so no 0 is needed. The x term has an invisible 1 in front, and −5 and −4 keep their minus signs.
  4. Bring down the 2.The first bottom number is always the leading coefficient; nothing has been added to it yet.
  5. Multiply 2 · 3 = 6, write 6 under −5, and add: −5+6=1.Each round multiplies the newest bottom number by c and adds the product to the next coefficient.
  6. Multiply 1 · 3 = 3, write 3 under 1, and add: 1+3=4.The same round, one column to the right.
  7. Multiply 4 · 3 = 12, write 12 under −4, and add: −4+12=8.This last column holds the constant term, so its sum is the leftover of the whole division.
  8. Read the bottom row: 2, 1, 4, 8. The remainder is 8, so f(3)=8.The Remainder Theorem says the remainder from dividing by x − 3 is f(3). The numbers before it, 2, 1, 4, are the quotient 2x2 + x + 4.
Answer
  • The remainder is 8.
  • f(3) = 8.
Double-check Plug 3 in directly: 2 · 33 − 5 · 32 + 3 − 4 = 2 · 27 − 5 · 9 + 3 − 4 = 54 − 45 + 3 − 4 = 8. Both roads give 8. Multiplying back agrees too: (x − 3)(2x2 + x + 4) + 8 = 2x3 − 5x2 + x − 4.

The trap

Wrong: divide by x + 6 with c = 6. Right: set x + 6 = 0, so c = −6.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Missing powers (gotcha: write a 0 for each one)

Let f(x) = x4 − 5x2 + 3. Use synthetic division to find f(2).

What it asks. Find a function value or a remainder.

Show the steps and the answer

The plan. Find c, run the multiply-and-add row, then check by substitution.

f(x)=x4−5x2+3

powers: x4, x3, x2, x, constant

coefficients: 1, 0, −5, 0, 3

bottom row for c = 2: 1, 2, −1, −2, −1

  1. Plan. Find c, run the multiply-and-add row, then check by substitution.
  1. Say what it asks: the input is 2, so find the output f(2). By the Remainder Theorem it is the remainder when f(x) is divided by x−2.The question names f(2), so the divisor to use is x − 2.
  2. c=2: x−2=0 gives x=2. Plug back: 2−2=0.The table runs on the input that makes the divisor zero.
  3. Write the coefficients with placeholders: 1, 0, −5, 0, 3.The powers run x4, x3, x2, x, constant. There is no x3 term and no x term, so each gets a 0. Without them, −5 would land in the x3 column and the table would work on a different polynomial.
  4. Bring down 1. Multiply 1 · 2 = 2 and add to 0: 0+2=2.A placeholder 0 takes part like any other coefficient.
  5. Multiply 2 · 2 = 4 and add to −5: −5+4=−1.Newest bottom number times c, added to the next coefficient.
  6. Multiply −1 · 2 = −2 and add to 0: 0+(−2)=−2.A negative times a positive is negative.
  7. Multiply −2 · 2 = −4 and add to 3: 3+(−4)=−1.This last column holds the constant, so this sum is the remainder.
  8. The bottom row is 1, 2, −1,−2,−1. The remainder is −1, so f(2)=−1.A remainder here can be negative: it is an output of f, and outputs can be any number.
Answer
f(2)=−1.
Double-check Plug in 2: 24 − 5 · 22 + 3 = 16 − 5 · 4 + 3 = 16 − 20 + 3 = −1. Same number.

15.2 The Factor Theorem

about 5 minOpen the full lesson

The rule

Factor Theorem.

For a polynomial f(x) and a number c: x−c is a factor of f(x) exactly when f(c)=0.source 1 When that happens, f(x)=(x−c)·q(x), where q(x) is the quotient from dividing f(x) by x−c.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.6 Zeros of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For f(x) = x3 − 2x2 − 19x + 20, test x − 5. Set x − 5 = 0 to get c = 5, the input the Factor Theorem requires.
  2. Use coefficients 1, −2, −19, 20. Synthetic division keeps one entry per power. Bring down 1, then multiply by 5 and add: −2 + 5 = 3, −19 + 15 = −4, and 20 − 20 = 0.
  3. The Remainder Theorem gives f(5) = 0. The Factor Theorem therefore confirms x − 5 as a factor. Read the other entries one degree lower to get f(x) = (x − 5)(x2 + 3x − 4).
  4. Factor the quadratic using two numbers with product −4 and sum 3: 4 and −1. The product-and-sum rule gives x2 + 3x − 4 = (x + 4)(x − 1), so keep all factors: f(x) = (x − 5)(x + 4)(x − 1).
  5. Check by expanding the factors to recover x3 − 2x2 − 19x + 20; the distributive rule verifies the whole polynomial. Also substitute x = 2: both forms give −18, as the worked example shows.

Worked example

Worked example

Confirm a factor, then factor a cubic completely

Show that x − 5 is a factor of f(x) = x3 − 2x2 − 19x + 20. Then factor f(x) completely.

What it asks. Test a factor and factor the polynomial.

Show the steps and the answer

The plan. Confirm a zero remainder, factor the quotient, and check with a test value.

c = 5

Top row: 1, −2, −19, 20

Numbers added: 5, 15, −20

Bottom row: 1, 3, −4, 0

Last number 0: x − 5 is a factor

Quotient: x2 + 3x − 4

x + 4x − 1x − 5
The ticks sit at the zeros −4, 1 and 5, and each one carries the factor that is 0 there.
  1. Plan. Confirm a zero remainder, factor the quotient, and check with a test value.
  1. Say what the question asks. To show that x−5 is a factor means: put 5 in and show the output is 0. To factor completely means: write f(x) as a product of pieces that cannot be split any further.Knowing the target tells you when you are done: first a remainder of 0, then a product of the simplest factors.
  2. Read c from the factor: x−5 has c=5.The Factor Theorem is stated for x − c. Matching x − 5 to x − c gives c = 5.
  3. Set up synthetic division with 5 outside and the coefficients 1, −2,−19, 20 in the top row.The powers x3, x2, x and the constant are all present, so no 0 placeholder is needed.
  4. Bring down the 1. Then multiply by 5 and add, column by column. 5×1=5 and −2+5=3. 5×3=15 and −19+15=−4. 5×(−4)=−20 and 20+(−20)=0. The bottom row is 1, 3, −4, 0.This is the synthetic division routine. Each new bottom number is the top number plus 5 times the bottom number before it.
  5. Read the last number: 0. So f(5)=0, and x−5 is a factor.The Remainder Theorem says the last number is f(5). The Factor Theorem says a remainder of 0 means x − 5 divides f(x) with nothing left over.
  6. Read the quotient from the rest of the bottom row: 1, 3, −4 means x2+3x−4. So f(x)=(x−5)(x2+3x−4).Dividing a cubic by x − 5 lowers the degree by one, so the three numbers stand for x2, x and the constant.
  7. Factor the quotient x2+3x−4. Two numbers that multiply to −4 and add to 3 are 4 and −1, so x2+3x−4=(x+4)(x−1).4 × (−1) = −4 and 4 + (−1) = 3. A quadratic with leading coefficient 1 factors from such a pair.
  8. Write the full answer: f(x)=(x−5)(x+4)(x−1). Then plug the two new zeros back into the original. f(−4)=−64−32+76+20=0 and f(1)=1−2−19+20=0.Each factor promises a zero: x + 4 promises −4 and x − 1 promises 1. Putting them into the original polynomial shows that both promises hold.
Answer
  • x − 5 is a factor, because f(5) = 0.
  • f(x)=(x−5)(x+4)(x−1)
Double-check Put x = 2 into both forms. Original: 23 − 2·22 − 19·2 + 20 = 8 − 8 − 38 + 20 = −18. Factored: (2 − 5)(2 + 4)(2 − 1) = (−3)(6)(1) = −18. The two outputs match. At x = 0 the original gives 20 and the factored form gives (−5)(4)(−1) = 20, which also matches.

The trap

Wrong: turn the zero c into x + c. Right: use x − c and substitute c to check.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 8

A missing power needs a 0 placeholder

The number 4 is a zero of f(x) = x3 − 21x + 20. Factor f(x) completely.

What it asks. Factor the polynomial completely from a known zero.

Show the steps and the answer

The plan. Divide out the known zero, factor the quotient, and check with a test value.

  1. Plan. Divide out the known zero, factor the quotient, and check with a test value.
  1. Say what the question asks. You are told that f(4)=0. Write f(x) as a product of the simplest factors.The zero 4 gives the factor x − 4 by the Factor Theorem. Division finds the rest.
  2. Write the top row with a 0 for the missing x2 term: 1, 0, −21, 20.Synthetic division keeps one column for each power. Skipping the x2 column would push every later number into the wrong power.
  3. Divide with 4. Bring down 1. 4×1=4 and 0+4=4. 4×4=16 and −21+16=−5. 4×(−5)=−20 and 20+(−20)=0. Bottom row: 1, 4, −5, 0.The last number is 0, which confirms that 4 is a zero.
  4. Read the quotient: x2+4x−5. So f(x)=(x−4)(x2+4x−5).The numbers 1, 4, −5 stand for x2, x and the constant, one degree below the cubic.
  5. Factor x2+4x−5. The numbers 5 and −1 multiply to −5 and add to 4, so it is (x+5)(x−1).5 × (−1) = −5 and 5 + (−1) = 4.
Answer
f(x)=(x−4)(x+5)(x−1)
Double-check At x = 2 the original gives 8 − 42 + 20 = −14. The factored form gives (2 − 4)(2 + 5)(2 − 1) = (−2)(7)(1) = −14. They match. Also f(1) = 1 − 21 + 20 = 0, as the factor x − 1 promises.

15.3 The Rational Zero Theorem

about 4 minOpen the full lesson

The rule

Let f(x)=anxn+ ...

+a1x+a0, where every coefficient is an integer, an≠0 and a0≠0. If pq is a rational zero of f written in lowest terms, then p is a factor of the constant term a0 and q is a factor of the leading coefficient an.source 1 So every rational zero is on the list ±factorofa0factorofan.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.6 Zeros of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For f(x) = 2x3 + 3x2 − 8x + 3, check the Rational Zero Theorem’s conditions: the coefficients are integers and the constant 3 is nonzero. These conditions let us list every rational candidate.
  2. List the positive factors of the constant 3: 1 and 3. The Rational Zero Theorem puts these in the numerator because a reduced rational zero’s numerator divides the constant.
  3. List the positive factors of the leading coefficient 2: 1 and 2. The same theorem puts these in the denominator because a reduced rational zero’s denominator divides the leading coefficient.
  4. Pair every numerator with every denominator: 11, 31, 12, 32. Reduce fractions and remove duplicates, because different fractions can name the same input. Here the distinct values are 1, 3, 12, 32.
  5. Include both signs: ±1, ±3, ±12, ±32. The theorem allows positive and negative rational zeros. Report these as candidates, since the Factor Theorem requires an output of zero before any candidate becomes a zero.
  6. Check completeness: 2 numerators times 2 denominators give 4 distinct values and both signs give 8 candidates. To check the distinction, substitution gives f(1) = 0 but f(3) = 60. The list includes actual zeros and unsuccessful candidates.

Worked example

Worked example

List the possible rational zeros of a cubic

List every possible rational zero of f(x) = 2x3 + 3x2 − 8x + 3. In plain words: write down every whole number or fraction that could make f(x) equal 0. You are not asked which ones actually do.

What it asks. List every possible rational zero.

Show the steps and the answer

The plan. Put constant factors over leading factors, reduce, remove repeats, and use both signs.

−3−3/2−1−1/21/213/23
The eight marked spots are the only places where a rational zero of 2x3 + 3x2 − 8x + 3 can sit.
  1. Plan. Put constant factors over leading factors, reduce, remove repeats, and use both signs.
  1. Check the setup. The powers run 3, 2, 1, 0 in descending order. The coefficients 2, 3, −8 and 3 are all integers, and the constant term 3 is not 0.The Rational Zero Theorem only speaks about polynomials with integer coefficients and a nonzero constant term.
  2. Read the constant term: 3. Its positive factors are 1 and 3. These are the tops, p.The top of any rational zero must divide the constant term. 3 = 1 × 3, and no other positive whole number divides 3 evenly.
  3. Read the leading coefficient: 2. Its positive factors are 1 and 2. These are the bottoms, q.The bottom of any rational zero must divide the leading coefficient. 2 = 1 × 2, and nothing else divides 2 evenly.
  4. Write every top over every bottom: 11,31,12,32. This is the grid in the table: the row q=1, then the row q=2.2 tops and 2 bottoms make 2 × 2 = 4 fractions. Going row by row means none is skipped.
  5. Reduce: 11=1 and 31=3. The fractions 12 and 32 are already in lowest terms. No value appears twice.A fraction over 1 is a whole number, and repeats would be crossed out here if there were any.
  6. Put ± in front of each value: ±1,±3,±12,±32.A zero can sit on either side of 0 on the number line, so each candidate comes with its opposite.
Answer
  • ±1,±3,±12,±32
  • Written out, that is 8 candidates: 1, −1, 3, −3, 12, −12, 32, −32.
Double-check Count: 2 tops × 2 bottoms = 4 fractions, no repeats, doubled for the signs gives 8, which matches. Then compare the list with real zeros by plugging in, which by the Remainder Theorem gives the same number as the remainder from synthetic division. f(1) = 2 + 3 − 8 + 3 = 0. f(−3) = −54 + 27 + 24 + 3 = 0. f(12) = 14 + 34 − 4 + 3 = 0. The zeros 1, −3 and 12 are all on the list. Also f(3) = 54 + 27 − 24 + 3 = 60, so 3 is on the list without being a zero.

The trap

Wrong: leading factors over constant factors. Right: constant factors over leading factors.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 8

Three bottoms and four repeats

List the possible rational zeros of f(x) = 4x3 − 12x2 + 5x + 6. In plain words: write every whole number or fraction that could make f(x) equal 0, each one once.

What it asks. List every possible rational zero.

Show the steps and the answer

The plan. Put constant factors over leading factors, reduce, remove repeats, and use both signs.

tops p: 1, 2, 3, 6

bottoms q: 1, 2, 4

over 1: 1, 2, 3, 6

over 2: 12, 1, 32, 3

over 4: 14, 12, 34, 32

new values in each row: 4, then 2, then 2

  1. Plan. Put constant factors over leading factors, reduce, remove repeats, and use both signs.
  1. Find the constant term: 6. Positive factors: 1, 2, 3, 6.These are the possible tops.
  2. Find the leading coefficient: 4. Positive factors: 1, 2, 4.These are the possible bottoms. 4 = 1 × 4 = 2 × 2. The number 3 does not divide 4 evenly, so it is not a factor.
  3. Row for bottom 1: 1, 2, 3, 6.Every top over 1 is the top itself.
  4. Row for bottom 2: 12,22=1,32,62=3.Reduce as you go. The values 1 and 3 repeat the first row.
  5. Row for bottom 4: 14,24=12,34,64=32.Divide top and bottom by 2 where you can. The values 12 and 32 repeat the second row.
  6. Cross out the four repeats. What is left: 1, 2, 3, 6, 12,32,14,34.Each value is listed once.
  7. Attach both signs: ±1,±2,±3,±6,±12,±32,±14,±34.Each candidate could be positive or negative.
Answer
  • ±1,±2,±3,±6,±12,±32,±14,±34
  • 16 candidates.
Double-check Count: 4 tops × 3 bottoms = 12 fractions, minus 4 repeats leaves 8, doubled is 16. Then plug in: f(2) = 32 − 48 + 10 + 6 = 0. f(32) = 272 − 27 + 152 + 6 = 21 − 27 + 6 = 0. f(−12) = −12 − 3 − 52 + 6 = 0. The zeros 2, 32 and −12 are all on the list.

15.4 Finding every zero, step by step

about 7 minOpen the full lesson

The rule

If c is a zero of f, then f(x)=(x−c)·q(x), and the zeros of f are c together with the zeros of the quotient q(x).

Take f with integer coefficients and a nonzero constant term (if the constant term is 0, factor out x and work with what is left). Every rational zero of a quotient is also a rational zero of f, so keep testing the same candidates ±factoroftheconstanttermfactoroftheleadingcoefficient of f on each quotient. When the quotient is a quadratic, the quadratic formula gives its last two zeros. If no candidate is a zero of a quotient of degree 3 or more, that quotient has no rational zero, and its zeros need another method.

How

  1. For f(x) = x3 − 8x + 8, write coefficients 1, 0, −8, 8. Synthetic division needs the zero placeholder for x2. The nonzero constant 8 means x is not a factor.
  2. Use the Rational Zero Theorem to list ±1, ±2, ±4, ±8: factors of the constant 8 over factors of the leading coefficient 1. Every rational zero must be on this list.
  3. Test by substitution: f(1) = 1 and f(−1) = 15. Neither output is 0, so neither input is a zero. By the Factor Theorem, neither x − 1 nor x + 1 is a factor.
  4. Test 2 by synthetic division. Bring down 1; multiply by 2 and add to get 0 + 2 = 2, −8 + 4 = −4, and 8 − 8 = 0. The Remainder Theorem gives f(2) = 0, and the Factor Theorem gives f(x) = (x − 2)(x2 + 2x − 4).
  5. Set the quadratic factor equal to zero. The zero-product rule says each factor can supply zeros. Use the quadratic formula with a = 1, b = 2, c = −4: x = −2±202 = −1 ± 5. It solves the remaining factor without more candidate tests.
  6. Keep 2 from division and both values −1 + 5 and −1 − 5 from the formula. The zero-product rule makes this the full list because every factor has been solved.
  7. Check by expansion: (x − 2)(x2 + 2x − 4) = x3 − 8x + 8. Substituting either −1 ± 5 into x2 + 2x − 4 gives 0, and substituting 2 into x − 2 gives 0. Thus every listed input makes the original product zero.

Worked example

Worked example

Every zero of x3 − 8x + 8

Find every zero of f(x) = x3 − 8x + 8, real or complex. In plain words: find every input x that makes the output 0, and stop only when none is left.

What it asks. Find every zero, counting repeats.

Show the steps and the answer

The plan. Find one zero by testing, divide it out, and solve the quadratic that is left; keep all three zeros.

Test 2: divide x3 + 0x2 − 8x + 8 by x − 2

Top row: 1, 0, −8, 8

Added in: 2, 4, −8

Bottom row: 1, 2, −4, 0

Remainder 0, so 2 is a zero

Quotient: x2 + 2x − 4

  1. Plan. Find one zero by testing, divide it out, and solve the quadratic that is left; keep all three zeros.
  1. Write f(x) with every power, top power first: x3+0x2−8x+8. The coefficients are 1, 0, −8, 8.There is no x2 term, so its slot holds a 0. Synthetic division lines the numbers up by power, and an empty slot would push every number into the wrong column.
  2. The constant term is 8, not 0, so there is no x to pull out. List the candidates: the factors of 8 are 1, 2, 4, 8, and the leading coefficient 1 has only the factor 1. Candidates: ±1,±2,±4,±8.The Rational Zero Theorem: every rational zero is ±factorof8factorof1, and dividing by 1 changes nothing. No rational zero can be off this list.
  3. Test 1 by plugging in: f(1)=1−8+8=1.1 is the quickest candidate to test. The output is 1, not 0, so 1 is not a zero: cross it off.
  4. Test −1: f(−1)=(−1)3−8(−1)+8=−1+8+8=15.(−1)3 = −1, and −8 times −1 is +8. The output is 15, not 0, so −1 is not a zero.
  5. Test 2 with synthetic division. Top row 1, 0, −8, 8. Bring down the 1. 1×2=2, and 0+2=2. 2×2=4, and −8+4=−4. −4×2=−8, and 8+(−8)=0. Bottom row: 1, 2, −4, 0.By the Remainder Theorem the last number in the bottom row is f(2). It is 0, so 2 is a zero. Testing with synthetic division in place of plugging in hands us the quotient at the same time.
  6. Read the bottom row as a factorization: x3−8x+8=(x−2)(x2+2x−4).The Factor Theorem: remainder 0 means x − 2 is a factor. The numbers 1, 2, −4 are the quotient, one power lower than x3, so they mean x2 + 2x − 4.
  7. The quotient is a quadratic, so stop testing. Set x2+2x−4=0, with a=1,b=2,c=−4.This finds the inputs that make the second factor 0, and any input that makes one factor 0 makes the whole product 0. The formula finishes any quadratic, so the rest of the list (−2, ±4, ±8) never needs testing. Here c is the quadratic's constant term, not a tested number.
  8. Find the discriminant: b2−4ac=22−4(1)(−4)=4+16=20.Subtracting −16 is adding 16. The result is positive but not a perfect square, so both zeros are real and carry a square root.
  9. Use the formula: x=−2±202=−2±252=−1±5.20 = 4·5 = 25. Then divide each term on top by the 2 underneath: −2 ÷ 2 = −1 and 25 ÷ 2 = 5.
  10. Gather the zeros: 2 from testing, then −1+5 and −1−5 from the formula.The product (x − 2)(x2 + 2x − 4) is 0 only when one of its pieces is 0, so these three numbers are every zero.
Answer
  • x = 2
  • x = −1 + 5 (≈ 1.24, rounded)
  • x = −1 − 5 (≈ −3.24, rounded)
Double-check Multiply the pieces back: (x − 2)(x2 + 2x − 4) = x3 + 2x2 − 4x − 2x2 − 4x + 8 = x3 − 8x + 8, the polynomial we started with. Then plug −1 + 5 into the quadratic: (−1 + 5)2 = 1 − 25 + 5 = 6 − 25, and 6 − 25 + 2(−1 + 5) − 4 = 6 − 25 − 2 + 25 − 4 = 0.

The trap

Wrong: keep testing the original polynomial. Right: test the quotient and keep every zero already found.

Quick check

Try it before you open its steps. It is question 7 of 13 in the full lesson, where they run from easy to exam-hard.

Try it · level 7 of 13

Fractions, two divisions and square roots

Find every zero of f(x) = 3x4 − 11x3 + 2x2 + 14x + 4, real or complex: every input that makes the output 0.

What it asks. Find every zero, counting repeats.

Show the steps and the answer

The plan. Find a zero, divide it out, and repeat; finish the quadratic and keep all roots.

3x4−11x3+2x2+14x+4

divide by x − 2: bottom row 3, −5, −8, −2, 0

3x3−5x2−8x−2

divide by x + 13: bottom row 3, −6, −6, 0

3x2 − 6x − 6, divided by 3: x2 − 2x − 2

formula: x = 1 ± 3

  1. Plan. Find a zero, divide it out, and repeat; finish the quadratic and keep all roots.
  1. List: the factors of 4 are 1, 2, 4, and the factors of 3 are 1 and 3. Candidates: ±1,±2,±4,±13,±23,±43.Each candidate is ±factorof4factorof3; dividing by 3 gives the thirds.
  2. Test 1: 3−11+2+14+4=12. Test −1: 3+11+2−14+4=6.Neither is 0, so cross off 1 and −1. For −1 the odd powers flip sign: −11x3 becomes +11 and 14x becomes −14.
  3. Test 2. Top row 3, −11, 2, 14, 4. Bring down 3. 3×2=6, and −11+6=−5. −5×2=−10, and 2+(−10)=−8. −8×2=−16, and 14+(−16)=−2. −2×2=−4, and 4+(−4)=0. Bottom row: 3, −5,−8,−2, 0.Remainder 0: 2 is a zero, and the quotient is 3x3 − 5x2 − 8x − 2.
  4. Make a new list from the quotient: the factors of 2 over the factors of 3 give ±1,±2,±13,±23. Cross off 1 and −1 at once. Test 2 again: 24−20−16−2=−14. Test −2: −24−20+16−2=−30.The list shrank because the constant term is now −2. A number that failed on f fails on the quotient too, since every zero of the quotient is a zero of f. 2 gets a second test because a zero can repeat; it fails here, and so does −2.
  5. Test the thirds. 13 gives the bottom row 3, −4,−283,−469, so its remainder is not 0. Try −13: top row 3, −5,−8,−2. Bring down 3. 3×(−13)=−1, and −5+(−1)=−6. −6×(−13)=2, and −8+2=−6. −6×(−13)=2, and −2+2=0. Bottom row: 3, −6,−6, 0.Remainder 0: −13 is a zero, and the quotient is 3x2 − 6x − 6.
  6. Divide by 3: solve x2−2x−2=0.Every coefficient of 3x2 − 6x − 6 is a multiple of 3, and dividing both sides by 3 keeps the same solutions.
  7. a=1,b=−2,c=−2. Discriminant: 4−4(1)(−2)=4+8=12, and 12=4·3=23. So x=2±232=1±3.This finds the inputs that make the last quotient 0; divide each term on top by 2.
  8. Gather: 2, −13,1+3,1−3.Two zeros from testing and two from the formula.
Answer
  • x = 2
  • x=−13
  • x = 1 + 3 (≈ 2.73, rounded)
  • x = 1 − 3 (≈ −0.73, rounded)
Double-check The bottom rows say f(x) = (x − 2)(x + 13)(3x2 − 6x − 6). Move the 3 out of the last piece into the middle one: 3 × (x + 13) = 3x + 1, so f(x) = (x − 2)(3x + 1)(x2 − 2x − 2). Multiply: (x − 2)(3x + 1) = 3x2 − 5x − 2, and (3x2 − 5x − 2)(x2 − 2x − 2) = 3x4 − 6x3 − 6x2 − 5x3 + 10x2 + 10x − 2x2 + 4x + 4 = 3x4 − 11x3 + 2x2 + 14x + 4, the starting polynomial.

15.5 The Fundamental Theorem of Algebra and complex conjugate pairs

about 6 minOpen the full lesson

The rule

Fundamental Theorem of Algebra: every polynomial of degree n ≥ 1 has at least one zero among the complex numbers, so it has exactly n zeros counted with multiplicity; written as a product, f(x) = an(x − c1)(x − c2) ··· (x − cn), where an is the leading coefficient (the Linear Factorization Theorem).source 1

Complex conjugate pairs: if every coefficient of f is real and a + bi with b ≠ 0 is a zero, then its conjugate a − bi is also a zero.source 1

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.6 Zeros of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For f(x) = 2x3 − 3x2 + 8x + 5 with given zero 1 + 2i, read degree 3. The Fundamental Theorem of Algebra gives 3 zeros counted with repeats, so it sets the target count.
  2. All coefficients are real. Apply the complex conjugate pairs rule to add 1 − 2i. These two zeros leave one place; that zero must be real because a nonreal zero would need another partner.
  3. Use the Rational Zero Theorem to list ±1, ±5, ±12, ±52. The numerators divide 5 and the denominators divide 2. Test small candidates: f(1) = 12, f(−1) = −8, and f(12) = 172; none gives zero.
  4. Test −12 by synthetic division with 2, −3, 8, 5. Bring down 2, then multiply and add: −3 − 1 = −4, 8 + 2 = 10, and 5 − 5 = 0. The Remainder Theorem identifies the final 0 as f(−12). The other bottom entries give the quotient 2x2 − 4x + 10, and the Factor Theorem gives f(x) = (x + 12)(2x2 − 4x + 10).
  5. Collect −12, 1 + 2i and 1 − 2i. The Fundamental Theorem’s count is met and the nonreal pair is complete, so the search is finished.
  6. Check the quotient with the quadratic formula: x = 4±−644 = 4±8i4 = 1 ± 2i. Also substitute −12 into f to get −14 − 34 − 4 + 5 = 0. These checks recover the pair and verify the real zero.

Worked example

Worked example

Every zero of a cubic, starting from one complex zero

The number 1 + 2i is a zero of f(x) = 2x3 − 3x2 + 8x + 5. Find every zero of f.

What it asks. Complete the zeros of a polynomial with real coefficients.

Show the steps and the answer

The plan. Add the conjugate partner, count what is missing, and test rational candidates for the real zero.

degree 3 → 3 zeros

given: 1 + 2i

partner: 1 − 2i (real coefficients)

one missing, so it is real

found by testing: −12

−1/2
The whole line is the real numbers, and only −12 lands on it; 1 + 2i and 1 − 2i are not on the line at all.
  1. Plan. Add the conjugate partner, count what is missing, and test rational candidates for the real zero.
  1. Say what the question asks: find every input x that makes the output f(x) equal 0. One of them, 1+2i, is handed to you.A zero is an input whose output is 0, so the job is to name all of them, not only the given one.
  2. Read the degree: the biggest exponent on x is 3, so f has exactly 3 zeros, counting repeats.The Fundamental Theorem of Algebra: a polynomial of degree n has exactly n zeros among the complex numbers.
  3. Look at the coefficients 2, −3, 8 and 5. All are real, so the conjugate of 1+2i, which is 1−2i, is a zero too.Nonreal zeros of a polynomial with real coefficients come in complex conjugate pairs. The conjugate keeps the real part 1 and flips the sign of the i part.
  4. Count: 1+2i and 1−2i make 2 zeros, so 3−2=1 zero is missing, and it must be real.If the missing zero were nonreal, its own partner would be a zero too, making 4 zeros, more than degree 3 allows.
  5. List the rational candidates. The factors of the constant term 5 are 1 and 5, and the factors of the leading coefficient 2 are 1 and 2, so the candidates are ±1,±5,±12 and ±52.The Rational Zero Theorem: any rational zero is ± a factor of the constant term over a factor of the leading coefficient.
  6. Test the small ones first by plugging in: f(1)=2−3+8+5=12,f(−1)=−2−3−8+5=−8, and f(12)=2·18−3·14+8·12+5=14−34+4+5=172.A zero must give the output 0, and 12, −8 and 172 are not 0. Small candidates keep the arithmetic small; any order would work.
  7. Test −12 with synthetic division on the coefficients 2, −3, 8, 5. Bring down 2. Then 2×(−12)=−1 and −3+(−1)=−4. Then −4×(−12)=2 and 8+2=10. Then 10×(−12)=−5 and 5+(−5)=0.The last number is the remainder, which is f(−12) by the Remainder Theorem. It is 0, so −12 is a zero, and the other numbers 2, −4 and 10 give the quotient 2x2 − 4x + 10.
  8. Plug −12 back in to see it: f(−12)=2·(−18)−3·14+8·(−12)+5=−14−34−4+5=0.This confirms that the step found an input whose output is 0. Here (−12)3 = −18 and (−12)2 = 14.
  9. Collect the zeros: −12,1+2i and 1−2i. That makes 3, the degree, so the search is over.The Fundamental Theorem of Algebra promised exactly 3, and the one nonreal pair is complete.
Answer
  • −12
  • 1 + 2i
  • 1−2i
Double-check Solve the leftover quadratic 2x2 − 4x + 10 = 0 with the quadratic formula: a = 2, b = −4 and c = 10, so b2 − 4ac = 16 − 80 = −64 and −64 = 8i. Then x = 4±8i4 = 1 ± 2i. The given zero and its partner come back, so all three zeros agree.

The trap

Wrong: count only distinct intercepts. Right: count real and nonreal zeros with multiplicity to the degree.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

Which mixes are possible

A polynomial has real coefficients and degree 5. How many of its zeros, counted with multiplicity, can be real?

What it asks. Decide which real and nonreal zero counts are possible.

Show the steps and the answer

The plan. Check the degree total and require nonreal zeros to come in pairs.

  1. Plan. Check the degree total and require nonreal zeros to come in pairs.
  1. Say what it asks: list every possible number of real zeros that the degree and the pairing rule allow.No formula is given, so the answer is a list of possibilities, not one number.
  2. Total: exactly 5 zeros.The Fundamental Theorem of Algebra, degree 5.
  3. The nonreal zeros come two at a time, so there are 0, 2 or 4 of them.Each nonreal zero brings its conjugate, so the nonreal count is even, and it cannot pass 5.
  4. The real zeros fill the rest: 5−0=5,5−2=3 or 5−4=1.Real zeros plus nonreal zeros must make 5.
Answer
  • 5, 3 or 1 real zeros
  • never 0, 2 or 4, so always at least one
Double-check Each answer really happens. (x − 1)5 has 5 real zeros, 1 counted five times. (x − 1)3(x2 + 1) has 3 real zeros and the pair i, −i. (x − 1)(x2 + 1)(x2 + 4) has 1 real zero and the pairs i, −i and 2i, −2i. And 0, 2 or 4 real zeros would leave 5, 3 or 1 nonreal zeros, an odd number that cannot be split into pairs.

15.6 Building a polynomial from its zeros

about 7 minOpen the full lesson

The rule

A polynomial of degree n whose zeros are exactly c1,c2, ..., cn, each listed as often as its multiplicity, has the form f(x)=a(x−c1)(x−c2) ...

(x−cn), where a is any nonzero number.source 1 With real coefficients, a complex conjugate pair p+ qi and p− qi contributes the factor (x−p)2+q2. A point (x0,y0) on the graph that is not a zero fixes a: solve y0=a(x0−c1)(x0−c2) ... (x0−cn).

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.6 Zeros of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Build the degree 3 polynomial with real coefficients, zeros 3 and 1 + 2i, and point (0, −30). The complex conjugate pairs rule adds 1 − 2i; the three zeros fill the required degree.
  2. Use the Factor Theorem to turn zero 3 into x − 3. For the pair, use the conjugate-factor rule: (x − 1)2 + 22 = x2 − 2x + 5. Multiplying conjugates removes i because i2 = −1.
  3. Write f(x) = a(x − 3)(x2 − 2x + 5), with a nonzero. The linear factorization rule allows this multiplier because multiplying by a nonzero number preserves the zeros.
  4. Use the given point to substitute x = 0 and f(x) = −30: −30 = a(−3)(5) = −15a. Divide both sides by −15 to get a = 2. The point fixes the multiplier left open by the zeros.
  5. Give the factored form 2(x − 3)(x2 − 2x + 5). The question also asks for standard form, so distribute and collect like powers: f(x) = 2x3 − 10x2 + 22x − 30.
  6. Check every condition. The degree is 3 and the coefficients are real. Synthetic division with input 3 gives remainder 0 and quotient 2x2 − 4x + 10; the quadratic formula gives its zeros 1 ± 2i. Finally f(0) = −30, so the zeros and point agree with the question.

Worked example

Worked example

A cubic from a real zero, a complex zero and a point

Find the polynomial f(x) of degree 3 with real coefficients that has zeros 3 and 1 + 2i and whose graph passes through (0, −30). Give it in factored form and in standard form.

What it asks. Build a polynomial from zeros and a point.

02(x − 3)(x² − 2x +5)inputoutput−30
The finished polynomial must turn the input 0 into the output −30, and it does.
Show the steps and the answer

The plan. Build the factors, use the point to find the multiplier, and expand if asked.

  1. Plan. Build the factors, use the point to find the multiplier, and expand if asked.
  1. Say what is asked. Two zeros are given, the degree must be 3, the coefficients must be real numbers, and the input 0 must give the output −30. Find the one polynomial that does all of that.Knowing the target tells you when you are finished: three zeros, no i left in the answer, and f(0) = −30.
  2. Add the missing zero 1−2i. The full list is 3, 1+2i,1−2i.Nonreal zeros of a polynomial with real coefficients come as a complex conjugate pair, so 1 + 2i brings 1 − 2i with it. That makes three zeros, which matches degree 3.
  3. Turn the real zero into a factor: 3 gives (x−3).By the Factor Theorem, 3 is a zero exactly when (x − 3) is a factor. Plug 3 in to see it: 3 − 3 = 0.
  4. Turn the pair into one factor. Here p=1 and q=2, so the factor is (x−1)2+22=(x−1)2+4.(x − (1 + 2i))(x − (1 − 2i)) = ((x − 1) − 2i)((x − 1) + 2i) = (x − 1)2 − (2i)2 = (x − 1)2 − 4i2 = (x − 1)2 + 4, since i2 = −1.
  5. Expand it: (x−1)2+4=x2−2x+1+4=x2−2x+5.(x − 1)2 means (x − 1)(x − 1) = x2 − x − x + 1 = x2 − 2x + 1. Then add the 4.
  6. Put an unknown number a in front: f(x)=a(x−3)(x2−2x+5).The zeros do not fix the height of the graph. Multiplying by any nonzero a keeps every zero, so a stays unknown until the point is used.
  7. Use the point (0,−30): replace x with 0 and f(x) with −30. This gives −30=a(0−3)(02−2·0+5)=a(−3)(5)=−15a.The point says the input 0 gives the output −30. This step turns that fact into an equation whose only unknown is a.
  8. Solve −15a = −30 by dividing both sides by −15: a=2.Dividing undoes multiplying, and a negative divided by a negative is positive. Plug back to confirm: −15 · 2 = −30, which matches.
  9. Write the factored form: f(x)=2(x−3)(x2−2x+5).Every piece is now known: the factor from the real zero, the factor from the pair, and the number in front.
  10. Multiply the brackets: (x−3)(x2−2x+5)=x3−2x2+5x−3x2+6x−15=x3−5x2+11x−15.Multiply x by each of the three terms, then −3 by each of the three terms, then combine like terms: −2x2 − 3x2 = −5x2 and 5x + 6x = 11x.
  11. Multiply by a = 2: f(x)=2x3−10x2+22x−30.Saving a for last keeps the numbers small while the brackets are multiplied.
Answer
  • Factored form: f(x) = 2(x − 3)(x2 − 2x + 5)
  • Standard form: f(x) = 2x3 − 10x2 + 22x − 30
Double-check Run the search forward on the answer. Synthetic division of 2, −10, 22, −30 by 3 gives the bottom row 2, −4, 10, 0. The remainder is 0, so 3 is a zero. The quotient is 2x2 − 4x + 10 = 2(x2 − 2x + 5), and the quadratic formula on x2 − 2x + 5 gives x = 2±4−202 = 2±−162 = 2±4i2 = 1 ± 2i. The constant term −30 is f(0), so the graph passes through (0, −30).

The trap

Wrong: assume the multiplier is one. Right: use the given point to find it.

Quick check

Try it before you open its steps. It is question 5 of 9 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 9

Degree 4, a pair, and a fraction in front

Find the polynomial f(x) of degree 4 with real coefficients that has zeros −1, 2 and 3i and satisfies f(1) = 10.

What it asks. Build a polynomial from zeros and a point.

Show the steps and the answer

The plan. Build the factors, use the point to find the multiplier, and expand if asked.

input xoutput f(x)−1011020↑ solve: output given, read every input above it
The two 0s in the output row sit under the real zeros −1 and 2, and the 10 sits under the input 1.
  1. Plan. Build the factors, use the point to find the multiplier, and expand if asked.
  1. Say what is asked. Three zeros are given, the coefficients are real, and f(1)=10 means the input 1 gives the output 10, which is the point (1, 10).A statement like f(1) = 10 is a point on the graph written another way.
  2. Add the conjugate −3i. The list is −1, 2, 3i, −3i.3i is 0 + 3i, so its conjugate is 0 − 3i. Four zeros match degree 4.
  3. Write the factors: (x+1), (x−2), and for the pair with p=0 and q=3,(x−0)2+32=x2+9.Each real zero c gives (x − c), and the pair gives (x − p)2 + q2.
  4. Write f(x)=a(x+1)(x−2)(x2+9).The number in front is unknown until the point is used.
  5. Use the point (1, 10): 10=a(1+1)(1−2)(12+9)=a(2)(−1)(10)=−20a.Replace x with 1 in every bracket and f(x) with 10. Then 2 · (−1) · 10 = −20.
  6. Divide both sides by −20: a=10−20=−12.Divide top and bottom by 10 to reduce the fraction. Plug back to confirm: −20 · (−12) = 10.
  7. Write f(x)=−12(x+1)(x−2)(x2+9).This is the factored form with every piece known.
  8. Multiply the brackets: (x+1)(x−2)=x2−x−2, then (x2−x−2)(x2+9)=x4+9x2−x3−9x−2x2−18=x4−x3+7x2−9x−18.Multiply each of the three terms by x2 and by 9, then combine 9x2 − 2x2 = 7x2.
  9. Multiply every term by −12: f(x)=−12x4+12x3−72x2+92x+9.Half of each coefficient, with every sign flipped. Half of −18 with the sign flipped is 9.
Answer
  • Factored form: f(x) = −12(x + 1)(x − 2)(x2 + 9)
  • Standard form: f(x) = −12x4 + 12x3 − 72x2 + 92x + 9
Double-check From the standard form, f(1) = −12 + 12 − 72 + 92 + 9 = 0 + 1 + 9 = 10. The bracket product x4 − x3 + 7x2 − 9x − 18 gives 1 + 1 + 7 + 9 − 18 = 0 at x = −1 and 16 − 8 + 28 − 18 − 18 = 0 at x = 2. At x = 3i the factor x2 + 9 is (3i)2 + 9 = −9 + 9 = 0, so f(3i) = 0, and the same holds at −3i.

15.7 Descartes' Rule of Signs

about 4 minOpen the full lesson

The rule

Descartes' Rule of Signs.

Let f(x) be a polynomial with real coefficients, written from the highest power down, with missing terms skipped. (1) The number of positive real zeros equals the number of sign changes in f(x), or is less than that by an even number. (2) The number of negative real zeros equals the number of sign changes in f(−x), or is less than that by an even number.source 1 Zeros are counted with multiplicity, and a zero at x=0 belongs to neither group.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.6 Zeros of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. For f(x) = x3 − 4x2 + x + 6, keep the terms in descending powers, as Descartes’ Rule of Signs requires. The constant 6 is nonzero, so 0 is not a zero to count separately.
  2. Read the signs +, −, +, +. There are 2 changes between neighbors. Descartes’ rule gives 2 or 0 positive real zeros, counting repeats, because the count can drop by an even number.
  3. Substitute −x for x to study negative zeros. The rule for powers of a negative flips only odd-power terms: f(−x) = −x3 − 4x2 − x + 6. The even-power term and constant keep their signs.
  4. Read −, −, −, +: one change. Apply Descartes’ rule to f(−x), giving exactly 1 negative real zero. Subtracting 2 would give a negative count, which is impossible.
  5. Use the Fundamental Theorem’s degree count of 3. The possibilities are 2 positive, 1 negative, 0 nonreal; or 0 positive, 1 negative, 2 nonreal. The complex conjugate pairs rule requires an even nonreal count.
  6. Check against the worked example’s factorization f(x) = (x + 1)(x2 − 5x + 6) = (x + 1)(x − 2)(x − 3). The Factor Theorem gives zeros −1, 2 and 3: one negative and two positive, matching the first possibility. This separate check finds the actual count; the sign rule alone gave the possibilities.

Worked example

Worked example

Counting the possible positive and negative zeros of a cubic

Use Descartes' Rule of Signs on f(x) = x3 − 4x2 + x + 6. In plain words: without solving anything, say how many zeros could sit to the right of 0 and how many could sit to the left of 0.

What it asks. List possible positive and negative zero counts.

Show the steps and the answer

The plan. Count sign changes before and after replacing x with negative x; list options two apart.

f(x)=x3−4x2+x+6

signs: + − + +

changes: + to − (1), − to + (2)

positive real zeros: 2 or 0

f(−x)=−x3−4x2−x+6

signs: − − − +

changes: − to + (1)

negative real zeros: exactly 1

  1. Plan. Count sign changes before and after replacing x with negative x; list options two apart.
  1. Check the order: the powers run 3, 2, 1, then the constant.The rule reads the signs in order of the powers. Here the order is already right and no term is missing.
  2. Write the sign of each term: +x3,−4x2,+x,+6 gives the row +−++.Only the signs matter. The sizes 1, 4, 1 and 6 play no part in the count. The first term has no sign written, so it is +.
  3. Count the changes, one neighbor pair at a time: + to − is change 1, − to + is change 2, + to + is no change. Total: 2 sign changes.A sign change is a place where two terms side by side have opposite signs.
  4. Positive real zeros: 2 or 0.Descartes' Rule of Signs says the count is the number of sign changes, or less by an even number. 2 − 2 = 0, and a count cannot go below 0, so the list stops there.
  5. Build f(−x). Flip the sign of the odd power terms x3 and x, and keep −4x2 and +6: f(−x)=−x3−4x2−x+6.(−x)3 = −x3 and (−x) = −x, so those two terms flip. (−x)2 = x2, so the x2 term keeps its sign. The constant has no x in it, so it cannot change.
  6. Write the signs of f(−x): −−−+. Count: − to − is no change, − to − is no change, − to + is change 1. Total: 1 sign change.The same left to right reading, done on f(−x), reports on the left side of 0.
  7. Negative real zeros: exactly 1.The options are 1, then 1 − 2 = −1. A count cannot be negative, so 1 is the only option. One sign change always means exactly one zero on that side.
  8. List the full picture. The degree is 3, so there are 3 zeros in all. Either 2 positive +1 negative +0 nonreal, or 0 positive +1 negative +2 nonreal.The Fundamental Theorem of Algebra gives 3 zeros counted with multiplicity, and nonreal zeros come as a complex conjugate pair, so the leftover count must be 0 or 2. The table in this lesson shows both rows.
Answer
  • Positive real zeros: 2 or 0
  • Negative real zeros: exactly 1
  • The three zeros are either 2 positive and 1 negative, or 1 negative and 2 nonreal.
Double-check Find the zeros a second way and compare. The rule promises one negative zero, so test the negative candidates from the Rational Zero Theorem first. Synthetic division by x + 1 (so c = −1) on the coefficients 1, −4, 1, 6: bring down 1; −4 + (−1) = −5; 1 + 5 = 6; 6 + (−6) = 0. The remainder is 0, so −1 is a zero and the quotient is x2 − 5x + 6. Setting x2 − 5x + 6 = 0 finds the two zeros that are left: x = 5±25−242 = 5±12, so x = 3 or x = 2. The zeros are −1, 2 and 3: two positive and one negative. That is the first row of the table, so the counts agree.

The trap

Wrong: call the sign-change count exact. Right: list that count, then 2 less, then 4 less, stopping at 0 or 1.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

Degree 4 with a full table of options

List every possible split of the zeros of f(x) = x4 + x3 − x2 + x − 2 into positive real, negative real and nonreal. In plain words: count both rows of signs, then make the options add up to 4.

What it asks. List possible positive and negative zero counts.

Show the steps and the answer

The plan. Count sign changes before and after replacing x with negative x; list options two apart.

degree 4: four zeros in all

Split A: 3 positive + 1 negative + 0 nonreal = 4

Split B: 1 positive + 1 negative + 2 nonreal = 4

the true one here: Split B (1, −2, i, −i)

  1. Plan. Count sign changes before and after replacing x with negative x; list options two apart.
  1. Write the signs of f(x): ++−+−. Count: + to + is no change, + to − is change 1, − to + is change 2, + to − is change 3. So 3 or 1 positive real zeros.Three sign changes allow 3 or 1.
  2. Build f(−x)=x4−x3−x2−x−2.The odd power terms flip: +x3 becomes −x3 and +x becomes −x. The terms x4, −x2 and −2 stay.
  3. Write the signs of f(−x): +−−−−. Count: + to − is change 1, then three pairs with no change. So exactly 1 negative real zero.One sign change is always exact.
  4. Fill the table. The degree is 4. Split A: 3 positive +1 negative +0 nonreal. Split B: 1 positive +1 negative +2 nonreal.Nonreal = 4 − positive − negative. Both rows give an even number, 0 or 2, as a complex conjugate pair requires.
Answer
  • Positive real zeros: 3 or 1
  • Negative real zeros: exactly 1
  • Split A: 3 positive, 1 negative, 0 nonreal
  • Split B: 1 positive, 1 negative, 2 nonreal
Double-check Find the zeros and see which split is true. Synthetic division by x − 1 on 1, 1, −1, 1, −2: bring down 1; 1 + 1 = 2; −1 + 2 = 1; 1 + 1 = 2; −2 + 2 = 0. The remainder is 0, so 1 is a zero, with quotient x3 + 2x2 + x + 2. Then divide that by x + 2 (so c = −2) on 1, 2, 1, 2: bring down 1; 2 + (−2) = 0; 1 + 0 = 1; 2 + (−2) = 0. The remainder is 0, so −2 is a zero, with quotient x2 + 1, whose zeros are i and −i. The zeros 1, −2, i and −i are split B, one of the two rows the rule listed.

16 Rational functions

about 33 min7 lessonsOpen the unit's crash course

16.1 The reciprocal function and arrow notation

about 5 minOpen the full lesson

The rule

The reciprocal function is f(x)=1x.

Its domain and its range are both (−∞,0)∪(0,∞): every real number except 0. Near zero: as x→0+,f(x)→∞, and as x→0−,f(x)→−∞. Far away: as x→∞,f(x)→0, and as x→−∞,f(x)→0. In arrow notation the arrow reads "approaches" or "goes to", a raised + means from the right, and a raised − means from the left.

How

  1. Cross out x = 0. The division 1 ÷ 0 has no value, so the graph has no point on the y-axis.
  2. Plot three anchor points on the right: (12, 2), (1, 1) and (2, 12).
  3. Plot the matching points on the left by switching both signs: (−12, −2), (−1, −1) and (−2, −12). A negative input gives the same size of output with a minus sign.
  4. Near zero, test inputs closer and closer to 0 from each side. From the right the outputs climb without bound. From the left they drop without bound.
  5. Far away, test inputs of larger and larger size. The outputs close in on 0, from above on the right and from below on the left.
  6. Draw two separate smooth branches, one in Quadrant I and one in Quadrant III. Do not join them across x = 0.
  7. Write each trend in arrow notation: first where x heads, then where f(x) heads.

Worked example

Worked example

From a table to a sketch to four arrow statements

Sketch the graph of f(x) = 1x and write, in arrow notation, what it does near zero and far away. In plain words: find enough points to draw the curve, then say where the outputs head as the inputs slide toward 0 from each side and as they run off to the right and to the left.

Show the steps and the answer
input xoutput f(x)−0.1−10−0.01−100−0.001−10000.00110000.011000.110
Near zero.
input xoutput f(x)−1000−0.001−100−0.01−10−0.1100.11000.0110000.001
Far away: the farther the input is from 0, the closer the output is to 0.
(0.5, 2)(1, 1)(2, 0.5)(−0.5, −2)(−1, −1)(−2, −0.5)−4−224−4−224
Six anchor points, three on each branch, with 0.5 standing for 12: the two branches never meet.
  1. Try the input 0: f(0) would be 1÷0, which has no value. Leave x=0 out and put no point on the y-axis.No number times 0 gives 1, so the division has no answer. This step finds the one input the function refuses, so we know where the graph breaks.
  2. Compute three points on the right: f(12)=2,f(1)=1,f(2)=12. Plot (12,2), (1, 1) and (2,12).Dividing 1 by 12 means multiplying 1 by the flip, 2. Dividing 1 by 1 gives 1. Dividing 1 by 2 gives 12.
  3. Compute three points on the left: f(−12)=−2,f(−1)=−1,f(−2)=−12. Plot (−12,−2),(−1,−1) and (−2,−12).A positive divided by a negative is negative, so each output keeps its size and takes a minus sign.
  4. Slide toward 0 from the right. In the first table, the columns under 0.1, 0.01 and 0.001 hold 10, 100 and 1000. Write: as x→0+,f(x)→∞.The outputs grow past every number, and the raised + records that the inputs came in from the right.
  5. Slide toward 0 from the left. In the first table, the columns under −0.1,−0.01 and −0.001 hold −10,−100 and −1000. Write: as x→0−,f(x)→−∞.The outputs fall below every number, and the raised − records that the inputs came in from the left.
  6. Run far to the right. In the second table, the columns under 10, 100 and 1000 hold 0.1, 0.01 and 0.001. Write: as x→∞,f(x)→0.The outputs close in on 0 and stay positive.
  7. Run far to the left. In the second table, the columns under −10,−100 and −1000 hold −0.1,−0.01 and −0.001. Write: as x→−∞,f(x)→0.The outputs close in on 0 and stay negative.
  8. Join the three right points with one smooth curve that climbs steeply beside the y-axis and flattens toward the x-axis. Draw a second, separate curve through the three left points. Do not connect the two curves across x=0.There is no point at x = 0, and the outputs head in opposite directions on the two sides, so nothing joins the branches.
Answer
  • Two separate branches: one in Quadrant I through (12, 2), (1, 1), (2, 12) and one in Quadrant III through (−12, −2), (−1, −1), (−2, −12).
  • As x → 0+, f(x) → ∞.
  • As x → 0−, f(x) → −∞.
  • As x → ∞, f(x) → 0.
  • As x → −∞, f(x) → 0.
Double-check A second way: every point on this graph must satisfy x × y = 1, because y is 1 divided by x. Test the six plotted points: 12 × 2 = 1, 1 × 1 = 1, 2 × 12 = 1, (−12) × (−2) = 1, (−1) × (−1) = 1, (−2) × (−12) = 1. All six pass. The same product explains the arrows: when x is tiny, y must be huge to keep the product at 1, and when x is huge, y must be tiny. The product is positive, so x and y share a sign, which puts the branches in Quadrants I and III.

The trap

The most common mistake is running the two behaviors together: thinking a small input gives a small output, or writing "as x → 0, f(x) → 0". It is the reverse. Inputs near 0 give outputs far from 0, and inputs far from 0 give outputs near 0. Before you write any arrow statement, plug in one test number, such as 0.01 or 1000, and look at both the size and the sign of the answer.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

How far out is far enough

For f(x) = 1x with positive x, how large must x be before the output drops below 1500? In plain words: the output has a ceiling of 1500. Find the inputs that keep the output under it.

Show the steps and the answer
  1. Find the border input, where the output is exactly 1500: 1x=1500 gives x=500.Two fractions with the same top, 1, are equal only when their bottoms match. This finds the one input that sits exactly on the ceiling, so we know where to look on each side of it.
  2. Plug it back in: f(500)=1500=0.002.Plugging the value back in shows it does what we wanted: the output equals the ceiling, not below it.
  3. Test a larger input: f(1000)=11000=0.001, and 0.001 < 0.002.A larger bottom makes a smaller fraction, so inputs past 500 fall under the ceiling.
  4. Test a smaller input: f(100)=1100=0.01, and 0.01 > 0.002.A smaller bottom makes a larger fraction, so inputs before 500 are over the ceiling.
  5. State the result: the output is below 1500 for every x > 500.The border is at 500 and the outputs keep shrinking as x grows.
Answer
x > 500
Double-check Try the neighbors of the border. f(501) = 1501 ≈ 0.001996 (rounded), which is below 0.002. f(499) = 1499 ≈ 0.002004 (rounded), which is above 0.002. The switch happens at 500, as found. Any positive ceiling you choose, however low, has a border like this one. That is what "as x → ∞, f(x) → 0" promises.

16.2 The domain of a rational function

about 4 minOpen the full lesson

The rule

A rational function has the form f(x)=P(x)Q(x), where P(x) and Q(x) are polynomials and Q(x) is not the zero polynomial.

Domain of f: every real number x with Q(x)≠0. Solve Q(x)=0 on the original formula, before any canceling, and leave out each solution.

How

  1. Say what is asked. 'Find the domain' means: list every input x that gives an output.
  2. Cover the top. Copy down only the bottom of the formula as it was given. Do not cancel anything first.
  3. Set the bottom equal to 0. This hunts for the inputs that would make the machine divide by 0.
  4. Solve that equation. If the bottom is a line, undo the adding and the multiplying. If it has x2 or higher, factor it and set each factor equal to 0.
  5. Plug each solution back into the original bottom and confirm that you get 0.
  6. Write the domain: all real numbers except those solutions. On a number line, put an open dot at each excluded number and write the pieces between them in interval notation, joined by ∪.

Worked example

Worked example

A quadratic bottom with two excluded inputs

Find the domain of f(x) = 2x+1x2−x−12. In plain words: list every input x that gives an output, by first finding the inputs that do not.

Show the steps and the answer
−34(−∞, −3) ∪ (−3, 4) ∪ (4, ∞)
Open dots at −3 and 4 cut the line into the three pieces of the domain.
  1. Cover the top, 2x+1. Write down only the bottom: x2−x−12.The top is a polynomial, and a polynomial accepts every real number. Only the bottom can stop the division.
  2. Set the bottom equal to 0: x2−x−12=0.This step hunts for the inputs that would make the machine divide by 0, so they can be thrown out. It is not solving f(x) = 0.
  3. Factor the bottom. Find two numbers that multiply to −12 and add to −1. They are −4 and 3, so x2−x−12=(x−4)(x+3).(−4) × 3 = −12 and −4 + 3 = −1. A factored bottom shows its zeros one factor at a time.
  4. Set each factor equal to 0. x−4=0 gives x=4. x+3=0 gives x=−3.A product is 0 only when one of its factors is 0, so these two small equations find every zero of the bottom.
  5. Plug each value back into the original bottom. At x=4: 42−4−12=16−4−12=0. At x=−3: (−3)2−(−3)−12=9+3−12=0.Both make the bottom 0. The top is 9 at x = 4 and −5 at x = −3, so f(4) would be 9 ÷ 0 and f(−3) would be −5 ÷ 0. Neither has an answer.
  6. Throw out −3 and 4 and keep everything else. On the number line, put an open dot at −3 and an open dot at 4, then shade the three stretches around them.Two excluded numbers cut the line into three pieces: left of −3, between −3 and 4, and right of 4.
  7. Write the pieces in interval notation from left to right: (−∞,−3)∪(−3,4)∪(4,∞).A round parenthesis means that end is left out, and ∪ joins the pieces into one set.
Answer
  • Excluded inputs: x = −3 and x = 4
  • Domain: (−∞, −3) ∪ (−3, 4) ∪ (4, ∞)
  • In words: all real numbers except −3 and 4
Double-check A second way, in two parts. First, multiply the factors back out: (x − 4)(x + 3) = x2 + 3x − 4x − 12 = x2 − x − 12, which matches the bottom, so the factoring is right. Second, test one number from each piece in the bottom: x = −4 gives 16 + 4 − 12 = 8, x = 0 gives −12, and x = 5 gives 25 − 5 − 12 = 8. None is 0, so all three pieces belong to the domain, and f(0) = 1−12 = −112 is a real output.

The trap

Canceling before you find the domain. f(x) = x2−1x−1 factors to (x−1)(x+1)x−1 and cancels to x + 1, which looks as if it accepts every number. But the original formula at x = 1 is 0 ÷ 0, which has no answer. The domain is still (−∞, 1) ∪ (1, ∞). Always solve bottom = 0 on the formula as it was given, and simplify only after that.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A bottom that is never zero

Find the domain of h(x) = x−3x2+9. In plain words: is there any input that makes the bottom 0?

Show the steps and the answer
no square ever lands below 0(−3, 9)(3, 9)(0, 0)−33−49
The graph of y = x2 never dips below the x-axis, so x2 plus a positive number can never be 0.
  1. Write the bottom and set it equal to 0: x2+9=0.Same hunt as always: look for inputs that make the bottom zero.
  2. Subtract 9 from both sides: x2=−9.This asks which number, multiplied by itself, gives −9.
  3. Stop. No real number squared is negative, so this equation has no solution.x2 is 0 or more for every real x, so x2 + 9 is 9 or more. The bottom never reaches 0.
  4. Exclude nothing. Domain: (−∞,∞).With no input that breaks the division, every real number is allowed.
Answer
  • Excluded inputs: none
  • Domain: (−∞, ∞), all real numbers
Double-check Test the tempting numbers. At x = 3 the bottom is 32 + 9 = 18. At x = −3 it is (−3)2 + 9 = 18. At x = 0 it is 9, the smallest value it ever takes. It is never 0. The gotcha: x2 + 9 is not (x − 3)(x + 3). That product is x2 − 9. Also, x = 3 makes the top 0, which gives h(3) = 018 = 0, an ordinary output.

16.3 Vertical asymptotes and holes

about 4 minOpen the full lesson

The rule

Factor the top and the bottom and cancel every common factor.

If x = a still makes the bottom zero after canceling, the line x = a is a vertical asymptote. If x = a makes the original bottom zero but no longer makes the simplified bottom zero, the graph has a hole (a removable discontinuity) at x = a, and the height of the hole is the value of the simplified formula at a.

How

  1. Factor the top and the bottom completely.
  2. Set the original bottom equal to 0 and solve. These are the inputs the function cannot take. Every break in the graph sits at one of them.
  3. Cancel every factor that appears in both the top and the bottom. Write the simplified formula, and keep a note of every input you excluded in step 2.
  4. Test each excluded input in the simplified bottom. If the bottom is still zero there, the line x = a is a vertical asymptote.
  5. If the simplified bottom is no longer zero there, the graph has a hole at x = a. Plug a into the simplified formula to get the height b, and write the hole as the point (a, b).
  6. Count. The vertical asymptotes and the holes together must account for every excluded input from step 2.

Worked example

Worked example

One wall and one hole in the same function

Find every vertical asymptote and every hole of f(x) = 2x−6x2−4x+3. In plain words: find each input where the graph breaks, and say whether the break is a wall or a single missing point.

hole (3, 1)−224−6−4−2246
The curve is y = 2x−1.
Show the steps and the answer
  1. Factor the top: 2x−6=2(x−3).Both terms share a 2. Pulling it out shows the factor (x − 3).
  2. Factor the bottom: x2−4x+3=(x−1)(x−3).You need two numbers that multiply to 3 and add to −4. Those are −1 and −3.
  3. Set the original bottom equal to 0: (x−1)(x−3)=0, so x=1 or x=3.This finds the inputs that make the bottom zero, the only places the graph can break. Plug back in: 12 − 4(1) + 3 = 0 and 32 − 4(3) + 3 = 9 − 12 + 3 = 0.
  4. Cancel the common factor (x−3): f(x)=2(x−3)(x−1)(x−3)=2x−1, for x≠3.x−3x−3 is 1 for every x except 3. The note x ≠ 3 keeps the record that 3 is still not allowed.
  5. Test x=1 in the simplified bottom: 1−1=0. Still zero, so x=1 is a vertical asymptote.The factor (x − 1) did not cancel. Near 1 the top is 2 and the bottom is tiny, so the outputs are huge.
  6. Test x=3 in the simplified bottom: 3−1=2. Not zero, so there is a hole at x=3.The factor that made the bottom zero at 3 canceled away, so the simplified formula has an ordinary value there.
  7. Find the height of the hole: 23−1=22=1. The hole is at (3, 1).The graph follows the simplified formula everywhere else, so the missing point sits where that formula would have put it.
  8. Describe the wall in arrow notation: as x→1+,f(x)→∞, and as x→1−,f(x)→−∞.A little right of 1 the bottom x − 1 is a small positive number, and 2 over a small positive number is large and positive. A little left of 1 the bottom is a small negative number, so the output is large and negative.
Answer
  • Vertical asymptote: x = 1
  • Hole: (3, 1)
Double-check Use the original formula on a calculator. Near 1: f(1.01) = 2(1.01)−61.012−4(1.01)+3 = −3.98−0.0199 = 200 and f(0.99) = −4.020.0201 = −200. Huge outputs with opposite signs: a wall, with the signs the arrows predicted. Near 3: f(2.9) = −0.2−0.19 ≈ 1.053 and f(3.1) = 0.20.21 ≈ 0.952. Both sit close to 1: a hole at height 1. Two excluded inputs, one wall and one hole, so every one is accounted for.

The trap

The most common mistake is to stop at the domain: you find the zeros of the bottom and call every one of them a vertical asymptote. Some of them may be holes. Always factor and cancel first, then sort each excluded input by whether it still makes the simplified bottom zero. Still zero means a wall. No longer zero means a hole, with its height taken from the simplified formula.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

One wall and one hole

Find the vertical asymptotes and holes of f(x) = x+3x2+x−6. In plain words: find the two inputs that make the bottom zero and sort each one into wall or hole.

Show the steps and the answer
hole−4−2246−4−224
The wall stands at x = 2, and the open circle at (−3, −15), a little below the x-axis.
  1. Factor the bottom: x2+x−6=(x+3)(x−2).You need two numbers that multiply to −6 and add to 1. Those are 3 and −2.
  2. Set the bottom equal to 0: (x+3)(x−2)=0, so x=−3 or x=2.This finds the excluded inputs. Plug back in: (−3)2 + (−3) − 6 = 9 − 3 − 6 = 0 and 22 + 2 − 6 = 0.
  3. Cancel (x+3): f(x)=x+3(x+3)(x−2)=1x−2, for x≠−3.When the whole top cancels, a 1 is left on top, not a 0, because x+3x+3 is 1.
  4. Test x=2 in the simplified bottom: 2−2=0. Still zero, so x=2 is a vertical asymptote.The factor (x − 2) stayed in the bottom.
  5. Test x=−3 in the simplified bottom: −3−2=−5. Not zero, so there is a hole at x=−3.The factor (x + 3) canceled completely.
  6. Find the height: 1−3−2=1−5=−15. The hole is at (−3,−15).Plug the excluded input into the simplified formula, never into the original.
Answer
  • Vertical asymptote: x = 2
  • Hole: (−3, −15)
Double-check Original formula near −3: f(−2.9) = 0.18.41−2.9−6 = 0.1−0.49 ≈ −0.204, close to −15 = −0.2. Near 2: f(2.1) = 5.14.41+2.1−6 = 5.10.51 = 10 and f(2.01) = 5.010.0501 = 100. The outputs settle near −3 and blow up near 2.

16.4 Horizontal and slant asymptotes

about 3 minOpen the full lesson

The rule

For a top that is not the constant 0, compare the degree of the top with the degree of the bottom.

Top degree < bottom degree: horizontal asymptote y=0. Degrees equal: horizontal asymptote y=leadingcoefficientofthetopleadingcoefficientofthebottom. Top degree = bottom degree +1: no horizontal asymptote, and the slant asymptote is y= the quotient of top ÷ bottom with the remainder dropped. Top degree bigger by 2 or more: neither.

How

  1. Find the degree of the top and the degree of the bottom: the highest power of x in each. Write both numbers down. A top that is the constant 0 has no degree: that function is 0 wherever it is defined.
  2. If the top's degree is smaller, the horizontal asymptote is y = 0. Stop.
  3. If the degrees are equal, divide the leading coefficient of the top by the leading coefficient of the bottom, keeping both signs. That number is the height of the horizontal asymptote. Stop.
  4. If the top's degree is exactly one more, divide the top by the bottom with polynomial division. The quotient, without the remainder, is the slant asymptote.
  5. If the top's degree is two or more above the bottom's, report that there is no horizontal asymptote and no slant asymptote.
  6. As a consistency check, try a big input such as x = 100 or x = 1000; the output is usually close to the line you found. The degrees or the division decide the asymptote; the number only checks it.

Worked example

Worked example

Equal degrees: reading the horizontal asymptote

Find the horizontal asymptote of f(x) = 8x2−3x+12x2+7. In plain words: when x is huge, positive or negative, what height does the graph settle at?

input xoutput f(x)103.7251003.98410003.998
x: 10, 100, 1000; f(x): 3.725, 3.984, 3.998.
Show the steps and the answer
input xoutput f(x)103.7251003.98410003.998
Outputs of f rounded to three decimals: each step farther out lands closer to 4.
  1. Find the degree of the top: 8x2−3x+1 has highest power x2, so the degree is 2.The degree is the highest power of x. It measures how strong the top is when x is huge.
  2. Find the degree of the bottom: 2x2+7 has highest power x2, so the degree is 2.The same measurement for the other side of the tug of war.
  3. Compare the degrees: 2=2. They are equal.Equal degrees means neither side wins, so the graph levels off at a number that is not 0.
  4. Read the leading coefficients: 8 on the top and 2 on the bottom.Far out, −3x + 1 and + 7 are tiny next to the x2 terms, so the fraction behaves like 8x22x2.
  5. Divide: 8÷2=4. The horizontal asymptote is y=4.In 8x22x2 the x2 on the top and the bottom cancel, leaving 82 = 4.
  6. Say it in arrow notation: as x→∞,f(x)→4, and as x→−∞,f(x)→4.A horizontal asymptote describes both far ends of the graph, and a rational function settles at the same height on both.
Answer
The horizontal asymptote is the line y = 4.
Double-check Plug in big inputs, the columns of the table. f(100) = 7970120007 ≈ 3.984 and f(1000) = 79970012000007 ≈ 3.998 (both rounded). The outputs close in on 4. A third way: divide every term by x2 to get (8 − 3x + 1x2) ÷ (2 + 7x2). The small fractions go to 0, leaving 8 ÷ 2 = 4.

The trap

Dividing the leading coefficients without first comparing the degrees. The ratio of leading coefficients is the horizontal asymptote only when the two degrees are equal. For 3x+1x2−4 the tempting answer y = 3 is wrong: the bottom is stronger, so the answer is y = 0. Write the two degrees down before you touch the coefficients.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

Factored form

Find the horizontal asymptote of m(x) = (2x−1)(x+3)(x−2)(4x+5). In plain words: what height do the outputs settle at when x is huge?

Show the steps and the answer
  1. Leading term of the top: multiply the x terms of the two brackets, 2x·x=2x2. The degree is 2 and the leading coefficient is 2.When brackets are multiplied out, the highest power comes only from multiplying the highest terms together. You do not need the rest of the expansion.
  2. Leading term of the bottom: x·4x=4x2. The degree is 2 and the leading coefficient is 4.The same shortcut on the bottom.
  3. Compare: the degrees are equal.So divide the leading coefficients.
  4. Divide: 2÷4=12. The horizontal asymptote is y=12.24 reduces to 12. A fraction is a perfectly good height for a horizontal line.
Answer
Horizontal asymptote: y = 12.
Double-check Multiplying out fully gives 2x2+5x−34x2−3x−10, with the same leading coefficients 2 and 4. With numbers: m(100) = 2049739690 ≈ 0.516 and m(1000) = 20049973996990 ≈ 0.502 (both rounded). The outputs close in on 0.5.

16.5 Intercepts of a rational function

about 5 minOpen the full lesson

The rule

Let f(x)=p(x)q(x) be a rational function, where p(x) is the top and q(x) is the bottom.

y-intercept: the point (0, f(0)), when q(0) ≠ 0. When q(0) = 0 there is no y-intercept.
x-intercepts: every point (a, 0) where p(a) = 0 and q(a) ≠ 0. A zero of the top that also makes the bottom 0 is never an x-intercept.

How

  1. Factor the top and the bottom. Use the original bottom to list the domain: every x except the ones that make the bottom 0.
  2. For the y-intercept, ask whether 0 is in the domain. If it is, compute f(0) and write the point (0, f(0)). If it is not, write: no y-intercept.
  3. For the x-intercepts, set the top equal to 0 and solve. These answers are the candidates.
  4. Test each candidate in the original bottom. Cross out any candidate that makes the bottom 0.
  5. Write each surviving candidate a as the point (a, 0).
  6. Check: put each surviving candidate into the original formula. You should get 0 over a number that is not 0.

Worked example

Worked example

Both intercepts when a factor cancels

Find the y-intercept and every x-intercept of f(x) = x2−x−6x2−4. In plain words: first, the input is 0, find the output. Second, the output is 0, find every input that gives it.

Show the steps and the answer
(0, 1.5)(3, 0)hole (−2, 5/4)−4−2246−4−2246
The curve crosses the y-axis at (0, 32) and the x-axis at (3, 0), and the open circle at (−2, 54) is the hole.
  1. Factor the top: x2−x−6=(x−3)(x+2).Two numbers that multiply to −6 and add to −1 are −3 and 2. Multiply back to be sure: x2 + 2x − 3x − 6 = x2 − x − 6.
  2. Factor the bottom: x2−4=(x−2)(x+2).It is a difference of squares: x2 − 22 = (x − 2)(x + 2).
  3. Set the bottom equal to 0: (x−2)(x+2)=0, so x=2 or x=−2. The domain is every real number except −2 and 2.This finds the inputs that would make the bottom zero, so we can throw them out. Plug back: 22 − 4 = 0 and (−2)2 − 4 = 0.
  4. y-intercept: 0 is in the domain, so compute f(0)=02−0−602−4=−6−4=32. The point is (0,32).Every point on the y-axis has x = 0. A negative divided by a negative is positive, and 64 reduces to 32 when top and bottom are both divided by 2.
  5. x-intercept candidates: set the top equal to 0. (x−3)(x+2)=0, so x=3 or x=−2.A fraction is 0 only when its top is 0. This step finds the only inputs that could give an output of 0.
  6. Test x=3 in the original bottom: 32−4=5. Keep x=3.5 ≠ 0, so 3 is in the domain and f(3) = 05 = 0.
  7. Test x=−2 in the original bottom: (−2)2−4=0. Throw out x=−2.The bottom is 0, so −2 is not in the domain. f(−2) would be 0 ÷ 0, which is undefined.
  8. See what the graph does at x=−2. Cancel the common factor: f(x)=x−3x−2 for x≠−2. Put −2 into this shorter form: −2−3−2−2=−5−4=54. The graph has a hole at (−2,54).This factor cancels with no copy of it left in the bottom, so it gives a hole, also called a removable discontinuity. The hole sits at height 54, above the x-axis, so the graph does not meet the x-axis there.
  9. Write the x-intercept: (3, 0).3 is the only candidate that survived the test.
Answer
  • y-intercept: (0, 32)
  • x-intercept: (3, 0)
  • Not an intercept: x = −2, where the graph has a hole at (−2, 54)
Double-check Second way for the y-intercept: use the shorter form x−3x−2 at x = 0. It gives −3−2 = 32, the same value. For the x-intercept, put 3 into the original formula: 9−3−69−4 = 05 = 0. For x = −2, the original formula gives 4+2−64−4 = 00, which is undefined, so there is no point there.

The trap

Keeping a zero of the top that also makes the bottom zero. For f(x) = x2−1x−1, the top is 0 at x = 1 and at x = −1. But x = 1 makes the bottom 0 too, so f(1) is 0 ÷ 0, which is undefined. The graph has a hole at (1, 2) there, and the only x-intercept is (−1, 0). Test every candidate in the original bottom before you call it an intercept.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Two x-intercepts

Find the intercepts of f(x) = x2−4x+3x+3. In plain words: find the output when the input is 0, then find every input whose output is 0.

Show the steps and the answer
  1. Set the bottom equal to 0: x+3=0, so x=−3. The domain is every x except −3.This finds the input to throw out. Plug back: −3 + 3 = 0.
  2. y-intercept: f(0)=0−0+30+3=33=1. The point is (0, 1).0 is in the domain, and every term with x becomes 0.
  3. Factor the top: x2−4x+3=(x−1)(x−3).Two numbers that multiply to 3 and add to −4 are −1 and −3.
  4. Set the top equal to 0: (x−1)(x−3)=0, so x=1 or x=3.If a product is 0, one of its factors is 0. These are the candidates.
  5. Test the bottom. At x=1: 1+3=4. At x=3: 3+3=6. Keep both.Neither bottom is 0, so both inputs are in the domain.
Answer
  • y-intercept: (0, 1)
  • x-intercepts: (1, 0) and (3, 0)
Double-check f(1) = 1−4+31+3 = 04 = 0. f(3) = 9−12+33+3 = 06 = 0. Both outputs are 0.

16.6 Graphing a rational function from its features

about 7 minOpen the full lesson

The rule

For a top that is not the constant 0, split the x-axis at every x-intercept, every vertical asymptote and every hole.

On each interval between neighboring split points, f(x) keeps one sign, so one test point tells whether the graph is above or below the x-axis there. The sketch is: dashed asymptotes, plotted intercepts, an open circle at each hole, one test point per interval, then smooth branches that never cross a vertical asymptote and, at the far left and far right, level toward the horizontal asymptote or slant asymptote. When the top's degree is two or more above the bottom's, there is neither, and the far ends follow the polynomial quotient that division gives.

How

  1. Factor the top and the bottom completely. Set the original bottom equal to 0 to find the inputs to throw out, and write the domain.
  2. Cancel any factor the top and bottom share. Each canceled factor (x − a) with no copy of it left in the bottom marks a hole at x = a: plug a into the simplified formula to get the hole's height, and plan an open circle there.
  3. Set the simplified bottom equal to 0. Each solution is a vertical asymptote. Draw a dashed vertical line at each one.
  4. Compare the degrees of top and bottom to get the horizontal asymptote, or divide when the top's degree is one more to get the slant asymptote. Draw it dashed.
  5. Find the intercepts: f(0) for the y-intercept when 0 is in the domain, and for the x-intercepts the zeros of the simplified top where the original bottom is not 0. Plot them.
  6. Mark every x-intercept, vertical asymptote and hole on the x-axis; with a top that is not the constant 0 there are finitely many. These split points cut the axis into intervals.
  7. Pick one test point inside each interval, plug it in, and plot the point. A positive output means that stretch is above the x-axis. A negative output means it is below.
  8. Draw each branch last: through its plotted points, climbing or diving beside each vertical asymptote on the side its test point says, and, at the far left and far right, leveling toward the horizontal or slant asymptote, or following the quotient from division when there is neither. Put the open circle at each hole.
  9. Check with one input very close to each vertical asymptote and one input far out, such as x = 100.

Worked example

Worked example

A sketch with a hole, a wall and a level line

Sketch the graph of f(x) = x2−x−2x2−4. In plain words: find every feature of the graph from the formula, then draw the one curve that fits all of them.

Show the steps and the answer
−2−12+−++
Three split points, four intervals, four test points: above, below, above, above.
(−3, 2)(−1.5, −1)(−1, 0)(0, 1/2)(3, 4/5)hole (2, 3/4)−8−44−4−2246
The finished sketch: the open circle at (2, 34) marks the hole, because the function has no output at x = 2.
  1. Factor the top and the bottom: f(x)=(x−2)(x+1)(x−2)(x+2).Factors show where the top and bottom are zero. For the top, −2 and 1 multiply to −2 and add to −1. The bottom is a difference of squares.
  2. Set the original bottom equal to 0: (x−2)(x+2)=0 gives x=2 and x=−2. The domain is all real numbers except −2 and 2.This finds the two inputs that would make the bottom zero, so we can throw them out. Plug back: 22 − 4 = 0 and (−2)2 − 4 = 0.
  3. Cancel the shared factor (x−2). The simplified formula is x+1x+2, with x≠2. The hole is at x=2, at height 2+12+2=34. Plan an open circle at (2,34).This factor cancels with no copy of it left in the bottom, so it gives a hole, also called a removable discontinuity, not a wall. The simplified formula tells the height the curve is heading for.
  4. Set the simplified bottom equal to 0: x+2=0 gives x=−2. Draw a dashed vertical line at x=−2.A zero of the bottom that survives canceling is a vertical asymptote. Plug back: −2 + 2 = 0, and the top there is −1, not zero.
  5. Compare degrees: top degree 2, bottom degree 2. The leading coefficients are 1 and 1, so the horizontal asymptote is y=11=1. Draw a dashed level line at y=1.When the degrees are equal, the far-out height is the ratio of the leading coefficients.
  6. Find the intercepts. Simplified top: x+1=0 gives x=−1, so the x-intercept is (−1,0). At x=0: f(0)=0−0−20−4=−2−4=12, so the y-intercept is (0,12).The graph meets the x-axis where the simplified top is zero and the original bottom is not, and it meets the y-axis at the input 0. A negative divided by a negative is positive.
  7. Mark the split points −2,−1 and 2 on the x-axis. They make four intervals: (−∞,−2),(−2,−1),(−1,2) and (2,∞).The sign of f can change only at an x-intercept, a vertical asymptote or a hole. Look at the open dots on the sign chart.
  8. Test one input in each interval with the simplified formula. f(−3)=−2−1=2. f(−1.5)=−0.50.5=−1. f(0)=12. f(3)=45. Plot (−3,2),(−1.5,−1) and (3,45).One output per interval tells the side of the x-axis for the whole interval: above, below, above, above. The y-intercept already serves as the test point for (−1, 2).
  9. Draw the left branch. It passes through (−3,2), climbs without bound as x approaches −2 from the left, and levels toward y=1 at the far left.The test point says this stretch is above the x-axis, so beside the wall the curve must go up. Far out it must follow the horizontal asymptote.
  10. Draw the right branch. It starts far below, immediately right of x=−2, rises through (−1.5,−1),(−1,0) and (0,12), has an open circle at (2,34), passes (3,45), and levels toward y=1.The test point −1.5 says the curve is below the x-axis next to the wall, so it comes up from below. The open circle shows that x = 2 is not in the domain.
Answer
  • Domain: all real numbers except −2 and 2.
  • Hole (removable discontinuity): open circle at (2, 34).
  • Vertical asymptote: x = −2.
  • Horizontal asymptote: y = 1.
  • Intercepts: (−1, 0) and (0, 12).
  • Left branch: above y = 1, through (−3, 2), climbing as x approaches −2 from the left.
  • Right branch: rising from far below beside x = −2, through (−1.5, −1), (−1, 0), (0, 12), the open circle at (2, 34) and (3, 45), leveling toward y = 1 from below.
Double-check Test the sketch with numbers it has not seen. Near the wall: f(−2.1) = −1.1−0.1 = 11, large and positive, and f(−1.9) = −0.90.1 = −9, large and negative. Both match the branches. Far out: f(98) = 99100 = 0.99, close to 1 and below it. Near the hole: f(2.1) = 3.14.1 ≈ 0.756 (rounded), close to 34, so nothing blows up there. The original formula agrees with the simplified one at x = 3: 9−3−29−4 = 45.

The trap

The most common mistake is to plot a handful of points and join them all in one stroke, straight through a vertical asymptote. The function has no output at a vertical asymptote, so no part of the curve may pass through that dashed line. Draw every asymptote first, lift the pencil at each vertical one, and let the test point on each side decide whether that side climbs or dives.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Both sides of the wall go the same way

Sketch the graph of f(x) = x2−4x+3x2−4x+4. In plain words: find the features from the formula, then draw the curve that fits them.

Show the steps and the answer
123+−−+
Notice the two minus signs on either side of 2: the sign does not flip at this wall.
(0, 3/4)(1, 0)(1.5, −3)(2.5, −3)(3, 0)(4, 3/4)−4−22468−8−6−4−224
Both branches dive beside x = 2, as the two test points next to the wall confirm.
  1. Factor. Top: −1 and −3 multiply to 3 and add to −4, so the top is (x−1)(x−3). Bottom: −2 and −2 multiply to 4 and add to −4, so the bottom is (x−2)2. Set the bottom equal to 0: x=2. The domain is all real numbers except 2.This finds the one input that would make the bottom zero, so we can throw it out. Plug back: 4 − 8 + 4 = 0.
  2. No factor is shared, so there is no hole. The vertical asymptote is x=2.The top's factors are (x − 1) and (x − 3). Neither one matches (x − 2).
  3. Compare degrees: 2 and 2, with leading coefficients 1 and 1. The horizontal asymptote is y=1.Equal degrees give the ratio of the leading coefficients.
  4. Intercepts: (x−1)(x−3)=0 gives x=1 and x=3, so the x-intercepts are (1, 0) and (3, 0). f(0)=34, so the y-intercept is (0,34).Zeros of the simplified top where the original bottom is not 0 are x-intercepts. At x = 0 only the constants remain.
  5. Split points: 1, 2 and 3. Intervals: (−∞,1), (1, 2), (2, 3), (3,∞). Test with the factored form: f(0)=34. f(1.5)=(0.5)(−1.5)(−0.5)2=−0.750.25=−3. f(2.5)=(1.5)(−0.5)(0.5)2=−0.750.25=−3. f(4)=(3)(1)(2)2=34.The signs are +, −, −, +. The sign does not change across x = 2, because the squared bottom is positive on both sides.
  6. Left branch: leveling near y=1 at the far left, through (0,34) and (1, 0), then diving through (1.5,−3) as x approaches 2 from the left. Right branch: coming up from far below beside x=2, through (2.5,−3), (3, 0) and (4,34), leveling toward y=1.Both test points next to the wall are negative, so both branches dive beside it.
Answer
  • Domain: all real numbers except 2.
  • No hole.
  • Vertical asymptote: x = 2, with the graph diving on both sides.
  • Horizontal asymptote: y = 1.
  • Intercepts: (1, 0), (3, 0) and (0, 34).
  • Both branches stay below y = 1 and mirror each other across x = 2.
Double-check Near the wall: f(1.9) = (0.9)(−1.1)0.01 = −99 and f(2.1) = (1.1)(−0.9)0.01 = −99, both large and negative. Far out: f(102) = 101·991002 = 999910000 = 0.9999, close to 1 and below it.

16.7 Writing a rational function from its graph

about 4 minOpen the full lesson

The rule

The first candidate formula, with the simplest factors, for a graph that crosses the x-axis at x=p and x=q, has vertical asymptotes at x=r and x=s, and has a hole at x=c is f(x)=a·(x−p)(x−q)(x−c)(x−r)(x−s)(x−c) with a≠0.

With no hole, leave out both (x−c) factors. Find a by plugging in one more point of the graph that is not on the x-axis. If the graph goes the same way on both sides of a vertical asymptote, square that bottom factor, the simplest even power. If the graph touches the x-axis at an intercept and turns back, square that top factor. Check the candidate against the rest of the graph: a graph can call for higher powers or for factors with no real zero, such as x2+1.

How

  1. Say what the question asks: build the fraction whose graph has exactly the features you see.
  2. List the x-intercepts. For a crossing at x = p, write the factor (x − p) on the top, and for a touch that turns back, (x − p)2. If there are no x-intercepts, try a top with no x in it, the simplest choice; the rest of the graph can still call for a factor with no real zero, such as x2 + 1.
  3. List the vertical asymptotes. For a wall at x = r, write the factor (x − r) on the bottom. If the graph goes the same way (both up or both down) on the two sides of the wall, write (x − r)2 instead.
  4. Look for a hole (an open circle). For a hole at x = c, write (x − c) on both the top and the bottom.
  5. Put an unknown number a in front of the fraction.
  6. Pick one point on the graph that is not on the x-axis and is not the hole. The y-intercept is usually the most convenient. Plug in its x and its y, then solve for a.
  7. Write the finished formula. Check it against a feature you did not use: the horizontal asymptote or a second point.

Worked example

Worked example

One crossing, one wall, one point

The graph shows a rational function. It has a vertical asymptote at x = −2, crosses the x-axis at (1, 0), crosses the y-axis at (0, −1), and levels off at the horizontal asymptote y = 2. Write a formula for it. In plain words: build the fraction whose graph has exactly these features.

(1, 0)(0, −1)−8−44−8−44812
Notice the wall at x = −2, the crossing at (1, 0), the point (0, −1) and the level line y = 2.
Show the steps and the answer
  1. List what the graph tells you: a wall at x=−2, a crossing at x=1, the point (0,−1), and a horizontal asymptote at y=2.These four facts are everything the picture gives. The first three build the formula. The fourth is saved for the check.
  2. The x-intercept is at x=1, so write (x−1) on the top.(x − 1) is 0 when x = 1, since 1 − 1 = 0. A top of 0 gives an output of 0, which is a crossing.
  3. The vertical asymptote is at x=−2, so write (x+2) on the bottom.x − (−2) = x + 2, and −2 + 2 = 0. A bottom of 0 that does not cancel makes the wall.
  4. There is no hole, so no factor is shared. Put a in front: f(x)=a·x−1x+2.The crossing and the wall fix the factors. They cannot fix the number in front, so it stays a letter for now.
  5. Plug in the point (0, −1): −1=a·0−10+2=a·−12.The point is on the graph, so its input 0 and output −1 must make the formula true. This step finds the one value of a that does it.
  6. Multiply both sides by −2: a=2.−12 times −2 is 1, which leaves a alone. On the other side, (−1)(−2) = 2.
  7. Write the formula: f(x)=2(x−1)x+2.Every piece is now known. Multiplied out, the top is 2x − 2.
Answer
f(x) = 2(x−1)x+2, which multiplies out to 2x−2x+2
Double-check Use the feature that was held back. The top and the bottom both have degree 1, so the horizontal asymptote is the ratio of leading coefficients: y = 21 = 2. The graph levels off at y = 2. Plugging back in also works: f(1) = 2(0)3 = 0 and f(0) = 2(−1)2 = −1.

The trap

Stopping after the factors. x−1x+2 has the right crossing and the right wall, but its graph passes through (0, −12) and levels off at y = 1. The graph in the example passes through (0, −1) and levels off at y = 2. Always write a in front and use a point to find it, even when a turns out to be 1.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Both sides of the wall go up

The graph of a rational function has a vertical asymptote at x = 1. On both sides of the wall the graph shoots up. It never crosses the x-axis, its horizontal asymptote is y = 0, and it passes through (2, 3) and (0, 3). Write a formula. In plain words: find the fraction whose graph climbs on both sides of the wall and passes through these points.

(2, 3)(0, 3)−4−2246−2246810
Notice that the graph goes up on both sides of the wall at x = 1 and sits at height 3 one step to each side.
Show the steps and the answer
  1. There are no x-intercepts, so try the simplest top: only the number a.The graph never reaches height 0, so the top can never be 0.
  2. The wall is at x=1, so the bottom needs the factor (x−1). Try the first power: ax−1.(x − 1) is 0 when x = 1, which makes the wall.
  3. Test the trial against the two points. At x=2 the bottom is 2−1=1. At x=0 the bottom is 0−1=−1. The bottoms have opposite signs, so the two outputs would have opposite signs. The graph shows both at height 3.A first power changes sign as x passes the wall, which sends one side up and the other side down. That is not this graph.
  4. Square the factor: f(x)=a(x−1)2.A square is never negative: (1)2 = 1 and (−1)2 = 1. Both sides of the wall now have the same sign, so both go the same way.
  5. Plug in the point (2, 3): 3=a(2−1)2=a1=a. So a=3.The point is on the graph, so it must make the formula true. This finds a.
  6. Write the formula: f(x)=3(x−1)2.Every piece is now known.
Answer
f(x)=3(x−1)2
Double-check Use the other point. At x = 0: 3(0−1)2 = 31 = 3, and the graph passes through (0, 3). The top has degree 0 and the bottom has degree 2, so the horizontal asymptote is y = 0, as on the graph.

17 Inverses and radical functions

about 21 min6 lessonsOpen the unit's crash course

17.1 Why a quadratic needs its domain cut to have an inverse

about 5 minOpen the full lesson

The rule

A quadratic f(x)=a(x−h)2+k, with a≠0, has its vertex at (h, k).

On all real numbers it is not a one-to-one function, so it has no inverse function. On the restricted domain x≥h (the right half) or x≤h (the left half) it is a one-to-one function, so it has an inverse function. The range does not change: y≥k when a > 0, and y≤k when a < 0.

How

  1. Find the vertex (h, k). In the form a(x − h)2 + k, read it off, remembering that the sign inside the parentheses is the opposite of h. In the form ax2 + bx + c, compute h = −b2a, then k = f(h).
  2. Picture the vertical line x = h through the vertex. It splits the parabola into a left half and a right half that mirror each other.
  3. Choose one half. If the problem names a side, use that side. If it does not, keep the right half.
  4. Write the restricted domain: x ≥ h, which is [h, ∞), for the right half, or x ≤ h, which is (−∞, h], for the left half. The vertex stays in either way.
  5. Write the range. If a is positive the parabola opens up and the range is y ≥ k. If a is negative it opens down and the range is y ≤ k.
  6. Check with two inputs the same distance from h, such as h − 1 and h + 1. They give the same output, and only one of them is still allowed.

Worked example

Worked example

Cutting (x − 2)2 + 1 at its vertex

Let f(x) = (x − 2)2 + 1. First show that f, used on all real numbers, is not a one-to-one function. Then cut its domain at the vertex, keeping the right half, and give the restricted domain and the range. In plain words: find two different inputs with the same output, then choose which inputs to keep so that this can never happen.

Show the steps and the answer
(2, 1)(0, 5)(4, 5)vertex (2, 1)24246810
Before the cut: the line at height 5 meets the parabola at x = 0 and at x = 4.
(2, 1)(4, 5)vertex (2, 1)24246810
After the cut: only the half with x ≥ 2 is drawn, and the line at height 5 meets it once.
input xoutput f(x)213245510↑ solve: output given, read every input above it
On the kept half the output 5 sits in one cell, under the input 4.
  1. Read the vertex off the formula. f(x)=(x−2)2+1 matches a(x−h)2+k with a=1,h=2 and k=1. The vertex is (2, 1).The squared part (x − 2)2 is smallest, namely 0, when x = 2, and then f(2) = 0 + 1 = 1. The sign inside the parentheses is the opposite of h: x − 2 means h = 2.
  2. Pick two inputs the same distance from 2, one on each side: x=0 and x=4. Each is 2 units from the vertex.The parabola is a mirror image across the line x = 2, so a mirrored pair like this is where a repeated output shows up.
  3. Compute both outputs. f(0)=(0−2)2+1=(−2)2+1=4+1=5. f(4)=(4−2)2+1=22+1=4+1=5.Squaring erases the sign: (−2)2 and 22 are both 4.
  4. Conclude that f on all real numbers is not a one-to-one function: the inputs 0 and 4 are different, and both give 5.A one-to-one function never sends two inputs to the same output. On the first graph, the horizontal line at height 5 meets the parabola at (0, 5) and at (4, 5).
  5. Cut at the vertex and keep the right half. The restricted domain is x≥2, which is [2,∞) in interval notation.To the right of the vertex the curve only climbs, so no height can come up twice. The 2 itself stays in, because the output 1 is made by the input 2 alone.
  6. Look again at the pair from step 3. The input 0 is less than 2, so it is no longer allowed. The input 4 is still allowed. The output 5 now comes from 4 and from nothing else.The cut removes exactly one input from every mirrored pair. The second graph shows the line at height 5 meeting the kept half once.
  7. Write the range: y≥1, which is [1,∞).a = 1 is positive, so the parabola opens up and the vertex is its lowest point. (x − 2)2 is never negative, so f(x) is never below 0 + 1 = 1, and the right half alone still climbs through every height from 1 upward.
Answer
  • On all real numbers f is not a one-to-one function, because f(0) = 5 and f(4) = 5.
  • Restricted domain: x ≥ 2, or [2, ∞).
  • Range: y ≥ 1, or [1, ∞).
  • On this restricted domain f is a one-to-one function, so it has an inverse function.
Double-check A second way, with algebra instead of the picture. Ask which inputs give the output 5: solve (x − 2)2 + 1 = 5. Subtract 1 from both sides: (x − 2)2 = 4. Two numbers square to 4, so x − 2 = 2 or x − 2 = −2, which gives x = 4 or x = 0. On all real numbers that is two inputs. On x ≥ 2 only x = 4 is allowed, so it is one input. The table of the kept half agrees: read along its output row and the numbers only rise, with none appearing twice.

The trap

Cutting at x = 0 out of habit. That works only when the vertex sits on the y-axis, as in x2 or x2 + 5. For (x − 4)2, the inputs 3 and 5 are both positive and both give 1, so x ≥ 0 fixes nothing. Find the vertex first, every time, and cut at its x value h.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A plus sign inside, and the left half

f(x) = (x + 3)2 − 2. Cut the domain so that f is a one-to-one function, this time keeping the left half. Give the restricted domain and the range. In plain words: find the turning point, then keep the inputs at or to the left of it.

Show the steps and the answer
−3(−∞, −3]
The restricted domain x ≤ −3: a filled dot at −3 and shading to the left.
input xoutput f(x)−67−52−4−1−3−2↑ solve: output given, read every input above it
On the left half the output −1 appears once, under the input −4.
  1. Rewrite x+3 as x−(−3). So h=−3 and k=−2. The vertex is (−3,−2).The form a(x − h)2 + k has a subtraction inside, so a plus 3 means h = −3. Plug it in to confirm: f(−3) = (−3 + 3)2 − 2 = 0 − 2 = −2.
  2. Test a mirrored pair: f(−4)=(−4+3)2−2=(−1)2−2=1−2=−1, and f(−2)=(−2+3)2−2=12−2=1−2=−1.−4 and −2 are each 1 unit from −3, on opposite sides.
  3. Keep the left half: x≤−3, or (−∞,−3].The left half is the inputs at or to the left of the vertex. The square bracket sits on −3 because the vertex stays in.
  4. Write the range: y≥−2, or [−2,∞).a = 1 is positive, so the parabola opens up and its lowest output is k = −2. Moving left from the vertex, the left half climbs through every height above −2.
Answer
  • Restricted domain: x ≤ −3, or (−∞, −3].
  • Range: y ≥ −2, or [−2, ∞).
Double-check In the table of the kept half, no number appears twice in the output row. The output −1 from step 2 sits under the input −4 alone, because −2 is to the right of the vertex and is not an allowed input.

17.2 Finding the inverse of a quadratic on a cut domain

about 4 minOpen the full lesson

The rule

For f(x)=a(x−h)2+k on the restricted domain x≥h, the inverse function is f−1(x)=h+(x−k)÷a.

On the restricted domain x≤h it is f−1(x)=h−(x−k)÷a. The domain of f−1 is the range of f, and the range of f−1 is the restricted domain of f.

How

  1. Write y in place of f(x), and write the restricted domain (the cut domain) beside it as a note, for example x ≥ 3.
  2. Swap x and y everywhere: in the equation and in the note. The note x ≥ 3 becomes y ≥ 3, because y now stands for the old inputs.
  3. Solve for y. Undo the outside steps first, in backward order: the number added or subtracted, then the number multiplying, until the squared part stands alone.
  4. Take the square root of both sides and write ± in front of the root. Both signs are candidates at this point.
  5. Choose the sign by reading the note. If the note says y ≥ h, keep the plus sign. If it says y ≤ h, keep the minus sign.
  6. Finish getting y alone, then rename y as f⁻¹(x).
  7. State the domain of f⁻¹. It is the range of f: the outputs of f are the inputs of f⁻¹.
  8. Check with one number that is not the vertex. Put it through f, put the result through f⁻¹, and confirm you are back where you started.

Worked example

Worked example

A shifted parabola with the right half kept

Find the inverse function of f(x) = (x − 3)2 + 2 on the restricted domain x ≥ 3, and state the domain of the inverse.

Show the steps and the answer
5f: subtract 3,square, add 2f⁻¹: subtract2, take theroot, add 3firstsecond65
The number 5 goes through f and comes out as 6, then goes through f⁻¹ and comes back as 5.
  1. Say what is asked. f takes an input that is 3 or more and gives an output. You want the rule that takes each output back to the input that made it.That is what an inverse function does: it runs f backward.
  2. Write y=(x−3)2+2, with the note x≥3.y is a shorter name for the output f(x), and the note keeps the restricted domain in view.
  3. Swap x and y: x=(y−3)2+2, with the note y≥3.The inverse trades the roles of input and output. The note swaps too, since y now stands for the old inputs.
  4. Subtract 2 from both sides: x−2=(y−3)2.Adding 2 was the last thing f did, so it is the first thing to undo. This leaves the squared bracket alone.
  5. Take the square root of both sides: y−3=±x−2.Two numbers have the same square, so the root step must offer both signs for now.
  6. Choose the sign. The note says y ≥ 3, so y − 3 is 0 or more. Keep the plus sign: y−3=x−2.The symbol √ never gives a negative number, so the plus root matches a quantity that is 0 or more. The minus root would make y − 3 negative for every x above 2, which the note forbids.
  7. Add 3 to both sides: y=3+x−2. Rename y: f−1(x)=3+x−2.y is now alone, and y is the output of the inverse.
  8. State the domain of the inverse: x≥2.The inverse takes the outputs of f as its inputs. A square is 0 or more, so (x − 3)2 + 2 is 2 or more. The root agrees: x − 2 must not be negative.
Answer
  • f⁻¹(x)=3+x−2
  • Domain of f⁻¹: x ≥ 2, which is [2, ∞)
  • Range of f⁻¹: y ≥ 3, the restricted domain of f
Double-check Send a number on a round trip. Start with 5, which is in the restricted domain. f(5) = (5 − 3)2 + 2 = 4 + 2 = 6. Then f⁻¹(6) = 3 + 6−2 = 3 + 4 = 3 + 2 = 5. You are back at 5. The other sign fails: 3 − 4 = 1, and 1 is not in x ≥ 3. A second trip: f(7) = 42 + 2 = 18, and f⁻¹(18) = 3 + 16 = 3 + 4 = 7.

The trap

Writing the plus root out of habit. The root step always produces ±, and the plus sign is right only when the right half of the parabola was kept. When the restricted domain is x ≤ h, the answer needs the minus sign. To avoid the mistake, carry the domain note through the swap, read it before you choose the sign, and test one number that is not the vertex.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

The left half, so the minus sign

Find the inverse function of f(x) = x2 − 4 on the restricted domain x ≤ 0, and state its domain.

Show the steps and the answer
(−4, 0)(−3, −1)(5, −3)domainrange−448−4−22
The graph of −x+4 starts at x = −4 and never rises above 0, so every output lands in the kept half x ≤ 0.
  1. Say what is asked: f squares an input that is 0 or less, then subtracts 4. Find the rule that returns that input, which is 0 or negative.The answers of the inverse must land back in x ≤ 0, the half that was kept.
  2. Write y=x2−4, with the note x≤0. Swap: x=y2−4, with the note y≤0.The letters trade places, and the note now speaks about y.
  3. Add 4 to both sides: x+4=y2.Subtracting 4 was the last step of f, so adding 4 undoes it and leaves the square alone.
  4. Take the square root of both sides: y=±x+4.Both signs are candidates until the note is read.
  5. Choose the sign. The note says y≤0, so keep the minus sign: y=−x+4. Rename: f−1(x)=−x+4.x+4 is 0 or more, so its negative is 0 or less for every x in the domain. The plus root is above 0 for every x except −4.
  6. State the domain: x≥−4.x2 is 0 or more, so the outputs of f are −4 or more. The root agrees: x + 4 must be 0 or more.
Answer
  • f⁻¹(x)=−x+4
  • Domain of f⁻¹: x ≥ −4, which is [−4, ∞)
Double-check f(−3) = 9 − 4 = 5, then f⁻¹(5) = −5+4 = −9 = −3. The plus root would give 3, which is not in x ≤ 0. Again with −1: f(−1) = 1 − 4 = −3, then f⁻¹(−3) = −−3+4 = −1 = −1.

17.3 Inverses of other polynomials

about 4 minOpen the full lesson

The rule

A cubic of the form f(x)=a(x−h)3+k, with a≠0, is a one-to-one function on all real numbers, so it has an inverse function with no restricted domain.

To find it: write y=f(x), swap x and y, and solve for y, using a cube root to undo the cube. A cube root has one value and takes no ± sign. The result is f−1(x)=(x−ka)3+h, with domain (−∞,∞) and range (−∞,∞).

How

  1. Look at the shape. If x appears once, inside a single cube, the function is x3 shifted, stretched or flipped. It is one-to-one and needs no cut.
  2. Write y in place of f(x).
  3. Swap x and y. The equation now describes the inverse.
  4. Undo whatever sits outside the cube, last thing done first: move an added or subtracted number to the other side, then divide or multiply away the number in front.
  5. With the cube alone on its side, take the cube root of both sides. Write no ± sign.
  6. If anything is still attached to y, such as y − 2, undo it. That number lands outside the root.
  7. Rename y as f−1(x). State the domain and the range: both are all real numbers.
  8. Check with a number. Put an input into f, feed the output into f−1, and confirm that the input comes back.

Worked example

Worked example

The inverse of a stretched and raised cubic

Find the inverse function of f(x) = 2x3 + 6, and state its domain and range.

Show the steps and the answer
input xoutput f(x) = 2x³ + 6−2−10−140618222↓ evaluate: input given, read the output below it
Every output in the bottom row appears once, so each one can be traced back to a single input.
2f: cube,double, add 6f inverse:subtract 6,halve, cuberootfirstsecond222
The second machine reverses the first, step by step, so the input 2 comes back out.
  1. Say what the question asks: build the rule that takes each output of f back to the one input it came from.An inverse function runs the original function backward. If f turns 2 into 22, the inverse must turn 22 into 2.
  2. Check the shape: x appears once, inside one cube. This is x3 stretched by 2 and raised by 6.A stretched and raised copy of x3 still meets every horizontal line once, so f is a one-to-one function and no restricted domain is needed.
  3. Write y=2x3+6.y is the name of the output. Naming it makes the swap in the next step visible.
  4. Swap x and y: x=2y3+6.The inverse trades the roles of input and output, so the two letters trade places.
  5. Subtract 6 from both sides: x−6=2y3.f cubes first, then doubles, then adds 6. Adding 6 was done last, so it is undone first. This step clears everything from the right side except the term holding y.
  6. Divide both sides by 2: x−62=y3.Doubling is the next thing to undo. This step leaves the cube alone on its side, ready for the cube root.
  7. Take the cube root of both sides: y=(x−62)3.The cube root undoes the cube. Only one number has a given cube, so there is one answer and no ± sign.
  8. Rename y: f−1(x)=(x−62)3. Domain: (−∞,∞). Range: (−∞,∞).f accepts every real number and its outputs cover every real number. The inverse's inputs are f's outputs, and the inverse's outputs are f's inputs, so both lists are all real numbers.
Answer
  • f−1(x)=∛(x−62)
  • Domain: (−∞, ∞)
  • Range: (−∞, ∞)
Double-check A round trip with numbers. In the table, the column under 2 shows f(2) = 2 · 8 + 6 = 22. Then f−1(22) = ∛(22−62) = ∛(162) = 83 = 2, the starting input. A negative input works too: f(−1) = 2 · (−1) + 6 = 4, and f−1(4) = ∛(4−62) = ∛(−1) = −1. A second way to the formula: f cubes, doubles, then adds 6, so the reverse is subtract 6, halve, then cube root, which is the same rule.

The trap

The most common mistake is carrying square root habits into cube roots: writing ± in front of the cube root, or cutting the domain as if the cubic were a parabola. A cube root has one value. 83 is 2 only, because (−2)3 is −8 and not 8. Before writing ±, ask whether the power being undone is even or odd. Only an even power loses the sign.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A negative number in front

Find the inverse function of f(x) = 1 − 2x3.

Show the steps and the answer
  1. Write y = 1 − 2x3, then swap x and y: x=1−2y3.The swap describes the inverse.
  2. Subtract 1 from both sides: x−1=−2y3.The 1 is not attached to the cube, so it moves first. The minus sign stays with the 2.
  3. Divide both sides by −2: x−1−2=y3.The cube is multiplied by −2, so dividing by −2 leaves the cube alone.
  4. Tidy the sign: x−1−2=1−x2, so 1−x2=y3.Multiplying the top and the bottom of a fraction by −1 does not change its value: the top x − 1 becomes 1 − x and the bottom −2 becomes 2.
  5. Take the cube root of both sides and rename: f−1(x)=(1−x2)3.The cube is alone, and the cube root has one value.
Answer
  • f−1(x)=∛(1−x2)
  • Domain: (−∞, ∞)
  • Range: (−∞, ∞)
Double-check f(2) = 1 − 2 · 8 = 1 − 16 = −15, and f−1(−15) = ∛(1−(−15)2) = ∛(162) = 83 = 2. Also f(−1) = 1 − 2 · (−1) = 3, and f−1(3) = ∛(1−32) = ∛(−1) = −1.

17.4 Radical functions and their domains

about 3 minOpen the full lesson

The rule

Square root (and every even root): f(x)=ax+b gives a real number only when ax+b≥0.

Solve that inequality. Its solution is the domain.
Cube root (and every odd root): g(x)=(ax+b)3 gives a real number for every x. Its domain is (−∞,∞).

How

  1. Find the root sign and name it: square root (even) or cube root (odd). These steps are for an inside of the form ax + b with a ≠ 0.
  2. If it is a cube root, stop: a cube root accepts every real number, so the domain is every real number, (−∞, ∞).
  3. If it is a square root, copy everything under the root sign and write: inside ≥ 0.
  4. Solve the inequality for x the way you solve an equation: undo the adding or subtracting first, then undo the multiplying. If you multiply or divide both sides by a negative number, flip the sign.
  5. Write the domain as an inequality and as an interval. When the root is not the bottom of a fraction, the endpoint gets a square bracket, because an inside of 0 is allowed: 0 = 0.
  6. Check with three numbers: the endpoint (the inside should be 0), one number in the domain (the inside should be positive), and one number outside it (the inside should be negative).

Worked example

Worked example

The domain of a square root function

Find the domain of f(x) = 2x+6.

Show the steps and the answer
−3failsworks[−3, ∞)
The test input 5 sits in the shaded domain of 2x+6 and the test input −4 sits outside it.
  1. Say what the question asks. Find the domain means: find every x you can put into f and get a real number out.The domain is the set of inputs the function accepts.
  2. Name the root. It is a square root, and the inside is 2x+6.A square root is an even root, so its inside may not be negative. A cube root would have no condition at all.
  3. Write the condition: 2x+6≥0.This sentence says the inside is 0 or more, which is exactly what the square root needs.
  4. Subtract 6 from both sides: 2x≥−6.Subtracting the same number from both sides keeps an inequality true, and it leaves the x term alone on the left.
  5. Divide both sides by 2: x≥−3.2 is positive, so the sign does not flip. This step finds the edge of the domain: −3 is the one input that makes the inside exactly 0, and every x to its right makes the inside positive.
  6. Plug the edge back in: 2·(−3)+6=−6+6=0, and 0=0.The edge gives a real output, so −3 belongs to the domain and gets a square bracket.
  7. Write the domain as an interval: [−3,∞).The square bracket at −3 says −3 is included. Infinity always gets a round bracket because it is never reached.
Answer
  • Domain: x ≥ −3
  • Interval notation: [−3, ∞)
Double-check Test a number on each side of −3. In the domain, x = 5: 2 · 5 + 6 = 16 and 16 = 4, a real number. Outside it, x = −4: 2 · (−4) + 6 = −2, and −2 is not a real number. The graph agrees: the curve starts at (−3, 0) and nothing is drawn to its left.

The trap

Writing x ≥ 0 out of habit. The condition belongs to the whole inside, not to x alone. For f(x) = 2x+6, the answer x ≥ 0 throws away every input from −3 up to, but not including, 0, and those inputs work: x = −1 gives 4 = 2. To avoid it, copy everything under the root sign first, write ≥ 0 after it, and only then solve.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A negative number multiplying x

Find the domain of f(x) = 10−2x.

Show the steps and the answer
5(−∞, 5]
The domain of 10−2x ends at the filled dot at 5 and runs left forever.
00252 < 5: 5 is further right−2−5times −1: −2 > −5, the order reversed
2 is less than 5, but −2 is greater than −5.
  1. Say what the question asks: find every x that f accepts.The domain is the set of allowed inputs.
  2. Name the root: a square root with inside 10−2x. Write 10−2x≥0.The inside of a square root must be 0 or more.
  3. Subtract 10 from both sides: −2x≥−10.Undo the adding first. The x term keeps its negative sign.
  4. Divide both sides by −2 and flip the sign: x≤5.Dividing by a negative number reverses the order of numbers, so ≥ becomes ≤. And −10 ÷ (−2) = 5, since a negative divided by a negative is positive. This finds the edge: 5 is the one input that makes the inside exactly 0.
  5. Plug the edge back in: 10−2·5=0, and 0=0.The edge gives a real output, so it is included.
  6. Write the interval: (−∞,5].x ≤ 5 means everything to the left of 5, with 5 included. The domain runs left this time.
Answer
  • Domain: x ≤ 5
  • Interval notation: (−∞, 5]
Double-check Solve a second way that needs no flip: add 2x to both sides of 10 − 2x ≥ 0 to get 10 ≥ 2x, then divide by 2 to get 5 ≥ x, which is the same as x ≤ 5. Test x = 3: 10 − 6 = 4 and 4 = 2. Test x = 6: 10 − 12 = −2, and −2 is not a real number.

17.5 Inverses of rational functions

about 5 minOpen the full lesson

The rule

For f(x)=ax+bcx+d with c≠0 and ad−bc≠0, swap and solve gives f−1(x)=−dx+bcx−a.

Domain of f: x≠−dc. Range of f: y≠ac. Domain of f−1= range of f. Range of f−1= domain of f.

How

  1. Find the input f cannot take: set the bottom of f equal to 0 and solve. Leave that number out of the domain of f.
  2. Write y in place of f(x).
  3. Swap x and y everywhere.
  4. Multiply both sides by the whole bottom, written in brackets, so the fraction disappears.
  5. Distribute to remove the brackets.
  6. Gather: move every term that contains y to one side and every term without y to the other side.
  7. Factor y out of the side that holds it, so y appears once, times a bracket.
  8. Divide both sides by that bracket. Rename y as f⁻¹(x).
  9. Find the input f⁻¹ cannot take: set the bottom of f⁻¹ equal to 0 and solve. That number is left out of the domain of f⁻¹ and out of the range of f.
  10. Trade: the range of f⁻¹ is the domain of f from step 1.
  11. Check with one number: pick an input, run f, feed the output to f⁻¹, and confirm you get the input back.

Worked example

Worked example

Inverse of a line over a line, with domain and range

Find the inverse function of f(x) = 2x+1x−3. Then give the domain and range of f and of f⁻¹.

Show the steps and the answer
=x(y − 3)2y + 1do the same thing to both sides
After multiplying by the bottom, the fraction is gone and y sits on both pans.
3(−∞, 3) ∪ (3, ∞)
The domain of f is every number except 3, shown as an open dot at 3.
2(−∞, 2) ∪ (2, ∞)
The domain of f⁻¹ is every number except 2, which is also the range of f.
  1. Say what the question asks. f takes an input x and gives an output. The inverse function takes that output and hands back the input. Find its formula, then list which numbers each function takes in (domain) and gives out (range).Knowing the goal in plain words tells you when you are finished: one formula and four sets of numbers.
  2. Find the input f cannot take. Set the bottom equal to 0: x−3=0, so x=3. Domain of f: x≠3.This step finds the one input that would put 0 in the bottom, so we can throw it out. Plug it in to see: 2(3)+13−3 = 70, which has no value.
  3. Write y for f(x): y=2x+1x−3.y is a shorter name for the output, and it makes the swap possible to write.
  4. Swap x and y: x=2y+1y−3.The inverse function trades the jobs of input and output. After the swap, x is the old output and y is the old input we want back.
  5. Multiply both sides by (y − 3): x(y−3)=2y+1.y is trapped in a bottom. Multiplying a fraction by its own bottom leaves only the top, so the fraction disappears. The brackets make x multiply the whole bottom.
  6. Distribute on the left: xy−3x=2y+1.x multiplies both things inside the brackets: x · y and x · (−3).
  7. Gather the y terms. Subtract 2y from both sides, then add 3x to both sides: xy−2y=3x+1.y sits in two terms, xy and 2y. Put both on the left and everything without y on the right, so y can be pulled out.
  8. Factor y out of the left side: y(x−2)=3x+1.Both left terms contain y: xy = y · x and 2y = y · 2. Check by distributing back: y(x − 2) = xy − 2y.
  9. Divide both sides by (x − 2): y=3x+1x−2.y is now multiplied by one bracket, and division undoes multiplication. The division is allowed only when x − 2 is not 0, which is where the next restriction comes from.
  10. Rename y: f−1(x)=3x+1x−2.The y we solved for is the old input written in terms of the old output. That is the inverse function.
  11. Find the input f−1 cannot take. Set its bottom equal to 0: x−2=0, so x=2. Domain of f−1: x≠2.This finds the one input that would put 0 in the bottom of the inverse. Plug it in to see: 3(2)+12−2 = 70, which has no value.
  12. Trade the sets. Range of f= domain of f−1: y≠2. Range of f−1= domain of f: y≠3.The outputs of f are exactly the inputs of f⁻¹, and the outputs of f⁻¹ are exactly the inputs of f.
Answer
  • f⁻¹(x)=3x+1x−2
  • Domain of f: x ≠ 3, or (−∞, 3) ∪ (3, ∞)
  • Range of f: y ≠ 2, or (−∞, 2) ∪ (2, ∞)
  • Domain of f⁻¹: x ≠ 2, or (−∞, 2) ∪ (2, ∞)
  • Range of f⁻¹: y ≠ 3, or (−∞, 3) ∪ (3, ∞)
Double-check Run a number through both machines. f(4) = 2(4)+14−3 = 91 = 9. Then f⁻¹(9) = 3(9)+19−2 = 287 = 4, the input we started with. A second pair: f(10) = 217 = 3 and f⁻¹(3) = 101 = 10. For the range, ask f for the output 2 directly: 2x+1x−3 = 2 means 2x + 1 = 2x − 6, so 1 = −6, which is false. No input gives 2, as claimed.

The trap

After the fraction is cleared, y sits in two terms on opposite sides, as in xy − 3x = 2y + 1. The common mistake is to divide right away and write y = 2y+3x+1x. That is not solved, because y is still on the right. Gather every y term on one side first, factor y out, and only then divide.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A number in front of x in the bottom

Find the inverse function of f(x) = 3x−22x+1, with the domain and range of both functions.

Show the steps and the answer
−0.5(−∞, −0.5) ∪ (−0.5, ∞)
The domain of f is every number except −12, the one input that makes 2x + 1 equal 0.
  1. Say what the question asks: the function that undoes f, and the numbers each one leaves out. Expect fractions among those numbers.The 2 in front of x in the bottom means the forbidden input will not be a whole number.
  2. Set the bottom equal to 0: 2x+1=0, so 2x=−1 and x=−12. Domain of f: x≠−12.This finds the input that makes the bottom 0. Plug it in: 2(−12) + 1 = −1 + 1 = 0.
  3. Write y=3x−22x+1, then swap: x=3y−22y+1.The swap trades input and output.
  4. Multiply both sides by (2y + 1): x(2y+1)=3y−2.This clears the fraction.
  5. Distribute: 2xy+x=3y−2.x multiplies both 2y and 1.
  6. Subtract 3y from both sides, then subtract x from both sides: 2xy−3y=−x−2.The y terms are 2xy and 3y. Gather them on the left. The x that has no y moves to the right.
  7. Factor y out: y(2x−3)=−x−2.2xy = y · 2x and 3y = y · 3. Distribute back to check: y · 2x − y · 3 = 2xy − 3y.
  8. Divide by (2x−3): y=−x−22x−3. So f−1(x)=−x−22x−3.Division undoes the multiplication by the bracket.
  9. Set the bottom of f−1 equal to 0: 2x−3=0, so 2x=3 and x=32. Domain of f−1: x≠32. Trade: range of f is y≠32, and range of f−1 is y≠−12.This finds the input the inverse cannot take. Plug it in: 2(32) − 3 = 3 − 3 = 0 in the bottom.
Answer
  • f⁻¹(x) = −x−22x−3, which can also be written x+23−2x by multiplying top and bottom by −1
  • f: domain x ≠ −12, range y ≠ 32
  • f⁻¹: domain x ≠ 32, range y ≠ −12
Double-check f(−1) = 3(−1)−22(−1)+1 = −5−1 = 5. Then f⁻¹(5) = −5−22(5)−3 = −77 = −1, the input we started with. The shortcut agrees on the range: the numbers in front of x are 3 on top and 2 on the bottom, and 32 is the missing output.

17.6 A function and its inverse undo each other

Open the full lesson

The rule

Two functions f and g are inverses of each other exactly when g(f(x))=x for every x in the domain of f, and f(g(x))=x for every x in the domain of g.

Then g=f−1, the domain of g is the range of f, the range of g is the domain of f, and the point (a, b) is on the graph of f exactly when (b, a) is on the graph of g. The two graphs are mirror images across the line y=x.

How

  1. Write the domain beside each function, including any cut. The domains decide the last step of the check.
  2. Build f(g(x)): copy the rule of f, and wherever f has x, write the whole rule of g in parentheses.
  3. Tidy up. Squaring undoes a square root, cubing undoes a cube root, and opposite steps such as + 3 and − 3 cancel. The result must be exactly x, with nothing left over.
  4. Build g(f(x)) the same way, with the whole rule of f inside g, and tidy up.
  5. If a square root of a square appears, such as x2, write it as |x| first. Then use the domain to decide whether |x| is x or −x.
  6. If both orders give x, the two functions are inverses. Say where each result holds: f(g(x)) = x on the domain of g, and g(f(x)) = x on the domain of f.
  7. Check with a number. Pick an allowed input a, compute b = f(a), and confirm that g(b) = a. The points (a, b) and (b, a) are mirror images across y = x.

Worked example

Worked example

Checking both orders for a cut parabola and its square root function

Let f(x) = x2 + 3 on the restricted domain x ≥ 0, and let g(x) = x−3. Show that g is the inverse function of f by checking both orders, and name a pair of mirrored points.

Show the steps and the answer
2f: square,then add 3g: subtract 3,then take thesquare rootfirstsecond72
The input 2 goes through f and becomes 7, then goes through g and comes out as 2 again.
  1. Say what the question asks. Feed the output of g into f, then feed the output of f into g. Each time the result must be the x you started with.Inverses must undo each other in both orders. One order alone can pass by accident.
  2. Write the domains. f accepts x≥0, which is the cut. For g, the inside of the root must be 0 or more: x−3≥0, so x≥3.Solving x − 3 ≥ 0 finds the inputs the root accepts. At x = 3 the inside is 0, which is allowed. At x = 2 the inside is −1, which is not.
  3. Build the first order: f(g(x))=(x−3)2+3.f(g(x)) means g works first. The whole rule of g goes where f has x.
  4. Square the root: (x−3)2=x−3.Squaring undoes a square root when the inside is 0 or more, and x ≥ 3 makes x − 3 at least 0.
  5. Finish: x−3+3=x. So f(g(x))=x for every x≥3.−3 and + 3 add to 0. The result holds on the domain of g, the function that worked first.
  6. Build the second order: g(f(x))=(x2+3)−3=x2.Now f works first, so the whole rule of f goes where g has x, and + 3 − 3 cancels under the root.
  7. Write the root of a square with bars: x2=|x|.The root sign always gives the answer that is 0 or more. For example (−5)2 = 25 = 5, not −5.
  8. Use the domain of f. Since x≥0,|x|=x. So g(f(x))=x for every x≥0.The bars change nothing on a number that is already 0 or more. This is the step the cut domain was made for.
  9. Name mirrored points. f(2)=22+3=7, so (2, 7) is on the graph of f. Swap the numbers: (7, 2) is on the graph of g, and g(7)=7−3=4=2 agrees.If f sends a to b, the inverse sends b to a, so every point (a, b) on f has the partner (b, a) on the inverse.
Answer
  • f(g(x)) = x for every x ≥ 3
  • g(f(x)) = x for every x ≥ 0
  • So g = f⁻¹ on these domains. The point (2, 7) on f mirrors to (7, 2) on g.
Double-check Use numbers in both orders. Start with 4: f(4) = 16 + 3 = 19, then g(19) = 16 = 4. Start with 12: g(12) = 9 = 3, then f(3) = 9 + 3 = 12. Both numbers came back. The domains also match: the smallest output of f is f(0) = 3, so the range of f is [3, ∞), which is exactly the domain of g.

The trap

Checking one order only, or dropping the domain. With f(x) = x2 on all real numbers and g(x) = x, the order f(g(x)) = (x)2 = x works, yet g(f(−3)) = 9 = 3, not −3. Always work both orders, write x2 as |x|, and write the domain beside each result.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A cubic and a cube root function

Show that f(x) = 2x3 + 1 and g(x) = ∛(x−12) are inverses. Does either one need a restricted domain?

Show the steps and the answer
(0, 1)(1, 0)(1, 3)(3, 1)(−1, −1)−4−224−4−224
The solid cubic and the dashed cube root trade the numbers of each point.
  1. Write the domains. Both accept every real number.A cube root function takes negative numbers too, and this cubic is a one-to-one function without any cut.
  2. f(g(x))=2((x−12)3)3+1.The whole rule of g goes where f has x.
  3. Cube the cube root: 2·x−12+1.Cubing undoes a cube root for every real number.
  4. 2·x−12=x−1, so the result is (x−1)+1=x.Twice a half of something is the something, and −1 and + 1 cancel.
  5. g(f(x))=((2x3+1)−12)3=(2x32)3=(x3)3.The whole rule of f goes where g has x. Then + 1 − 1 cancels and 2 ÷ 2 = 1.
  6. (x3)3=x for every real x, with no absolute value bars.A cube keeps the sign of its number: (−2)3 = −8 and ∛(−8) = −2. So the cube root hands back the original number, negative or not.
Answer
  • f(g(x)) = x and g(f(x)) = x for every real x
  • They are inverses, and no restricted domain is needed.
Double-check Try a positive and a negative number. f(2) = 2 · 8 + 1 = 17, and g(17) = ∛(162) = 83 = 2. f(−1) = −2 + 1 = −1, and g(−1) = ∛(−22) = ∛(−1) = −1. Both came back.