Draft — content is not yet teacher-reviewed
NCMath
NC Math 3
Strands
Number and Quantity1 ✓Algebra13 ✓Functions13 ✓Geometry9 ✓Statistics and Probability5 ✓
Building Functions
So far you have been given a function and asked what it does. Here you go the other way and write the function yourself. You will build polynomials and exponentials from zeros, graphs, tables, ordered pairs and word descriptions (1a). Then you will combine functions with +, − and × to model a situation, such as profit = revenue − cost (1b).
Source: Authored for NCMath (not from the PDF prototype) — needs teacher review
Step one: what type is this table?
Before you can write a function from a table, decide which family it belongs to. The test only works when the x-values go up by the same amount each row. Here they go up by 1.
Use at least four rows so there are two second differences to compare. Look at the changes between rows. Take the differences of the y-values. If you need to, take the differences of those differences.
What you seeTypeForm
First differences are all equalLineary = mx + b
First differences change, but second differences are all equalQuadraticy = ax² + bx + c
Each y is the same multiple of the one before (constant ratio)Exponentialy = a·bx
Check in this order: first differences, then second differences, then ratios.
The three tables side by side
Constant differences: linear
The y-value goes up by 3 every time x goes up by 1. So the slope is 3, and the y-value at x = 0 is 5.
xychange in y
05—
18+3
211+3
314+3
417+3
y = 3x + 5
Example
x = 1, 2, 3, 4 gives y = 9, 7, 5, 3. Write the function.
The differences are −2, −2, −2, so it is linear with slope −2. Then 9 = −2(1) + b gives b = 11. So f(x) = −2x + 11. Check: f(4) = −8 + 11 = 3.
Constant second differences: quadratic
The first differences keep changing, but the differences of those are constant. When x goes up by 1, the second difference equals 2a, so a is half of it.
Here the second difference is 2, so a = 1. The y-value at x = 0 is 1, so c = 1. The first change, from x = 0 to x = 1, equals a + b. It is 1, so b = 0.
xy1st change2nd change
01——
12+1—
25+3+2
310+5+2
417+7+2
y = x² + 1
Example
x = 0, 1, 2, 3 gives y = 3, 2, 3, 6. Write the function.
The first differences are −1, 1, 3 and the second differences are 2, 2. So it is quadratic with a = 1 and c = 3. Then f(1) = 1 + b + 3 = 2 gives b = −2. So f(x) = x² − 2x + 3. Check: f(3) = 9 − 6 + 3 = 6.
Constant ratio: exponential
Divide each y by the one before it. Here every ratio is 2, so b = 2. The y-value at x = 0 is a = 3.
An exponential table never has constant differences. These differences are 3, 6, 12, 24, which double. A constant ratio is the sign to look for.
xyy ÷ previous y
03—
16×2
212×2
324×2
448×2
y = 3·2x
Example
x = 1, 2, 3, 4 gives y = 24, 36, 54, 81. Write the function.
The ratios are 36 ÷ 24 = 1.5, 54 ÷ 36 = 1.5 and 81 ÷ 54 = 1.5, so b = 1.5. The table starts at x = 1, not 0, so a · 1.5 = 24 gives a = 16. So f(x) = 16·1.5x. Check: f(4) = 16 · 5.0625 = 81.
Trap: Do not read a at x = 1. If the table does not start at x = 0, divide the first y by bx using its own x. You can also step back one row by dividing by b.
Polynomial from its zeros and a point
-3-12-10-551520(−2, 0)(1, 0)(3, 0)(0, 12)
Zeros r₁, r₂, r₃ and a point Plug the point in to solve for a. — f(x) = a(x − r₁)(x − r₂)(x − r₃)
If r is a zero of a polynomial, then (x − r) is a factor. So you can write the factors straight from the zeros.
Zeros only fix the shape. Many functions share the same zeros, such as 2(x + 2)(x − 1)(x − 3) and −5(x + 2)(x − 1)(x − 3). One extra point on the graph pins down the leading coefficient a.
  1. Write one factor (x − r) for each zero. A zero of −2 gives (x + 2).
  2. Put an unknown a in front.
  3. Substitute the given point (x, y) and solve for a.
  4. Write the final function with the value of a filled in.
Example
A cubic has zeros at −2, 1 and 3, and passes through (0, 12). Write f(x).
Start with f(x) = a(x + 2)(x − 1)(x − 3). Use (0, 12): a(2)(−1)(−3) = 6a = 12, so a = 2. So f(x) = 2(x + 2)(x − 1)(x − 3). Check: f(−2) = f(1) = f(3) = 0 and f(0) = 12.
Memory hook: Zero at r, factor (x − r). Then a point finds a.
A repeated zero
Sometimes a zero is repeated. The graph touches the x-axis there and turns around instead of crossing. Write that factor twice, as (x − r)².
Example
A cubic has a double zero at 2 and a zero at −1, and passes through (0, 8). Write f(x).
Start with f(x) = a(x − 2)²(x + 1). Use (0, 8): a(4)(1) = 8, so a = 2. So f(x) = 2(x − 2)²(x + 1). Check: f(2) = 0, f(−1) = 0, and f(0) = 8.
Exponential from two points, a table or a description
-2-112342030405060(0, 2)(1, 6)(3, 54)
From two ordered pairs
Exponential form The base b is positive. a is the starting value at x = 0. — f(x) = a·bx
  1. Divide the two y-values: y₂ ÷ y₁. This equals b raised to the gap between the x-values.
  2. Take that root to find b. If the x-values are 2 apart, take a square root.
  3. Put one point into a·bx and solve for a.
  4. Check the other point.
Example
An exponential function passes through (1, 6) and (3, 54). Write f(x).
Divide the y-values: 54 ÷ 6 = 9. The x-values are 2 apart, so b² = 9 and b = 3. Then a · 3 = 6 gives a = 2. So f(x) = 2·3x. Check: f(3) = 2 · 27 = 54.
Trap: Do not subtract the y-values to get b. Exponentials work by ratios, not differences. Here 54 − 6 = 48 tells you nothing.
From a description: growth and decay
Growth — y = a(1 + r)t
Decay — y = a(1 − r)t
A rate of change per period is a ratio. Growth by a rate r multiplies by 1 + r each period. Decay by r multiplies by 1 − r.
Example
A car is worth $24,000 and loses 15% of its value each year. Write V(t), its value after t years.
The starting value is a = 24000. Each year the car keeps 85% of its value, so b = 1 − 0.15 = 0.85. So V(t) = 24000(0.85)t. Check: V(2) = 24000 · 0.7225 = 17340.
Trap: A loss of 15% means b = 0.85, not 0.15. Multiplying by 0.15 would keep only 15% of the value each year.
Combining functions with arithmetic
51015202550100150200250300350RC
Subtract: profit = revenue − cost
Profit — P(x) = R(x) − C(x)
Where R and C cross, revenue equals cost and the profit is 0. That is the break-even point. The graph shows it at x = 5 and x = 15. In between, revenue is above cost, so the profit is positive.
Example
Revenue is R(x) = x(50 − 2x) and cost is C(x) = 150 + 10x. Write P(x) and find the break-even values.
P(x) = R(x) − C(x) = x(50 − 2x) − (150 + 10x) = 50x − 2x² − 150 − 10x. So P(x) = −2x² + 40x − 150. Set it to 0: −2(x − 5)(x − 15) = 0, so x = 5 or x = 15. Check: R(5) = 200 = C(5).
Trap: Subtract the whole cost. The cost has two parts, so it needs parentheses: R − (150 + 10x). Writing R − 150 + 10x gets the sign of 10x wrong.
Add: a fixed amount plus an exponential
Add when two amounts pile up in the same total. The fixed part does not change. The exponential part grows.
Example
A $500 deposit earns 6% interest each year, and the bank adds a one-time $25 bonus to the balance. Write T(t), the total after t years.
The growing part is 500(1.06)t. The bonus is a fixed 25. Add them. So T(t) = 500(1.06)t + 25. Check: T(2) = 500 · 1.1236 + 25 = 586.8.
Trap: Add the 25 after the exponent. 500(1.06)t + 25 is not 500(1.06)t + 25. The bonus does not grow.
-11235-10102030406070(1, 48)(2, 48)
Multiply: area and volume from linear factors
Start with a 10 by 8 sheet of cardboard. Cut a square with side x from each corner and fold up the sides. The box has height x, length 10 − 2x and width 8 − 2x. Both sides lose a square at each end, so each loses 2x.
Volume is length × width × height, so the new function is a product of three linear functions. It is a cubic.
The sides must be positive, so 10 − 2x > 0 and 8 − 2x > 0. The tighter limit wins, so the domain is 0 < x < 4. The graph shows only that part.
Example
Write V(x), the volume of the open box cut from a 10 by 8 sheet with squares of side x.
Length is 10 − 2x, width is 8 − 2x and height is x. Multiply them. So V(x) = x(10 − 2x)(8 − 2x). Check: V(1) = 1 · 8 · 6 = 48, and the expanded form 4x³ − 36x² + 80x gives 4 − 36 + 80 = 48.
Trap: Subtract 2x, not x, from each side. A square is cut from both ends of the side.
Memory hook: Read the story for the word that gives the operation: minus, plus, times.
Practice
1. The table shows a function. Decide whether it is linear, quadratic or exponential, and write the function.
x01234
y47121928
2. Write a polynomial function of degree 3 with zeros at −3, 1 and 4 whose graph passes through (0, −24).
234-14-12-8-6-4246810(1, 0)(5, 0)(0, −10)
3. The graph of a quadratic function is shown. Read the zeros and the marked point from the graph and write f(x) in factored form.
4. The table shows an exponential function f(x) = a·bx. Find a and b and write the function.
x1234
f(x)1236108324
5. An exponential function passes through (1, 48) and (3, 12). Write f(x).
6. A lab starts with 200 bacteria. The number doubles every 3 hours. Write N(t), the number of bacteria after t hours.
7. A club sells x custom T-shirts. The price per shirt is 30 − x dollars, so the revenue is R(x) = x(30 − x). The cost is C(x) = 100 + 5x. Write the profit function P(x) and find the break-even values of x.
8. A 12 by 8 sheet of cardboard has a square of side x cut from each corner. The sides are folded up to make an open box. Write the volume V(x) and give the domain that makes a real box.
a devpromptu thing