Write an equation from a graph
Quick review (2 minutes)
A graph can tell you the recipe that made it.
Vertex form is f(x) = a|x − h| + k. From vertex (h, k) and another point (p, q) with p ≠ h: a = , 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.
Read the corner from the grid: its horizontal position is h and its height is k.
Write f(x) = a|x − h| + k, leaving the stretch factor a unknown.
Read another clear point (p, q). Go to the x-axis to read p and to the y-axis to read q.
Subtract the corner height k from q and divide by the horizontal distance |p − h|. This finds the stretch factor a.
Put the resulting a into the formula and check it at a second point.
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.
Write the equation of the V in the picture and find its x-intercepts.
f(x) = 2|x − 3| − 2
Zeros: x = 2 and x = 4
x-intercepts: (2, 0) and (4, 0)
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.
Read the corner (h, k).
Write a|x − h| + k.
Read a different point and find its height change and horizontal distance from the corner.
Divide height change by distance to find a.
Check the formula at a second point.
distance
Distance tells how far apart two places or numbers are. On a number line, the distance from A to B is |A − B|.
input
An input is a value supplied to a function. On its graph, the input is the horizontal coordinate x.
output
An output is the value a function returns for an input. On its graph, the output is the vertical coordinate y = f(x).
graph
A graph is a picture of input-output pairs. Each point (x, y) shows the output y that belongs to the input x.
vertex
For an absolute value V, the vertex is its corner point. In a|x − h| + k with a ≠ 0, it is (h, k).
domain
The domain is the set of inputs a function allows. Every real input is allowed in a full absolute value V.
zero
A zero of a function is an input where its output is 0. On the graph, that input locates an x-intercept.
x-intercept
An x-intercept is a graph point on the x-axis, where y = 0. Its x-coordinate is a zero of the function.
x-axis
The x-axis is the horizontal coordinate line. Its points have y = 0, and it records the inputs of a function graph.
y-axis
The y-axis is the vertical coordinate line. Its points have x = 0, and it records the outputs of a function graph.
horizontal intercept
A horizontal intercept is a point where a graph meets the horizontal axis. It is an x-intercept, so the output is 0 there.
nonnegative
Nonnegative means zero or positive. It excludes every negative number.
vertex form
Vertex form writes a V as a|x − h| + k, with a ≠ 0, so its corner (h, k) is visible in the formula.
1 In plain words
A graph can tell you the recipe that made it. Think of inspecting two ramps at a building entrance. Their meeting point tells you where they begin and at what height. One other point tells you how steep they are. For a V, write a|x − h| + k using the corner's address (h, k). The missing number a is the stretch factor: height change per unit of distance from the corner. Read a point's horizontal position and height from the grid, and put both numbers into your recipe. This also recovers a distance model from measurements. A graph of distance from a bus stop can reveal where you pass the stop.
2 Picture it
Reminder
Reminder: Reading coordinates, Subtracting a negative center, Dividing by a fraction
- Reading coordinates. Read the horizontal x position first and the vertical y height second. A point at x = 1, y = 2 is (1, 2).
- Subtracting a negative center. x − (−1) = x + 1, so a corner at x = −1 uses |x + 1|.
- Dividing by a fraction. 6 ÷ = 6 × = 4. The flipped fraction undoes multiplication by .
3 Why
At another point (p, q), |p − h| is its horizontal distance from the corner, and q − k is its height change. The recipe says q − k = a|p − h|, so dividing by that distance finds a. A point directly on the corner has distance zero and gives no steepness information. For an upward V, a horizontal cut D units above the corner meets each arm D ÷ a units from the center. The total width is 2D ÷ a. A narrower width at the same relative height therefore means a greater stretch factor.
4 The rule
Vertex form is .
From vertex (h, k) and another point (p, q) with : , where horizontal distance . For an upward V, width at height D above the corner is , with D > 0. An x-intercept, or horizontal intercept, is a point (x, 0); its input is called a zero.
The same idea, five ways
Say find the formula from the corner and a point on the V.
The corner determines the two shifts; another point determines the stretch factor.
- a =
- horizontal distance = |p − h|
Inspect a ramp's starting address and compare its rise with the distance walked.
The same idea, other ways
Step 1 to the right of the corner. The change in height is a. From (3, −2) to (4, 0), the rise is 2, so the formula uses a = 2.
A point (1, 2) means input 1 must produce output 2. In a|x − 3| − 2, this gives 2 = 2a − 2. Add 2 and divide by 2 to obtain a = 2.
At 4 above the corner, the parent V reaches 4 each side, giving width 8. This V reaches 2 each side, giving width 4. It reaches the same height in half the horizontal distance, so each unit must rise twice as much.
Height above corner: 4
Parent width: 8
Observed width: 4
Stretch factor: 8 ÷ 4 = 2
Part 1: Recover the bus-stop distance rule
A distance graph can be a set of measurements rather than a formula. When its corner says minute 5 and distance 0, that tells you when you passed the stop. If one minute later the distance is 1 block, the distance rises one block per minute away from that moment.
- A graph with corner (5, 0) and height 1 at t = 6 gives d(t) = |t − 5|.
- For this walking story, the time domain is t ≥ 0.
Worked example
A formula from distance measurements
The distance graph has corner (5, 0) and passes through (6, 1). Recover the distance formula for nonnegative times.
What it asks. Write the distance rule from the turning time and pace shown by the graph.
Show the steps and the answer
The plan. Use the corner for the center, then divide the height change by the time difference.
- Plan. Use the corner for the center, then divide the height change by the time difference.
- Zero distance occurs at time 5.
- One block per minute gives factor 1.
- Write .The corner's time is 5 and its height is 0.
- Insert (6, 1): , so .The measured output is one block at a time one minute from the corner.
- Write for .The model's measurements start at time zero.
- Time domain: [0, ∞)
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- A recovered formula must reproduce the measured corner time and one other measurement.
5 How
- Read the corner from the grid: its horizontal position is h and its height is k.
- Write f(x) = a|x − h| + k, leaving the stretch factor a unknown.
- Read another clear point (p, q). Go to the x-axis to read p and to the y-axis to read q.
- Subtract the corner height k from q and divide by the horizontal distance |p − h|. This finds the stretch factor a.
- Put the resulting a into the formula and check it at a second point.
- 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.
Recover a V formula from a graph
- Read the corner (h, k).
- Write a|x − h| + k.
- Read a different point and find its height change and horizontal distance from the corner.
- Divide height change by distance to find a.
- Check the formula at a second point.
6 Worked example
Worked example
Read a V from its picture
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.
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.
- Plan. Locate the corner, count a one-step rise, write the formula, check another point, and find ground-level positions.
- The lowest point is the corner. Read horizontal position first and height second.
- One step right from the corner reveals a when the rise is readable.
- The lowest point reads , so and . Write .The V turns where its distance part is zero; its grid address gives both shifts.
- From the corner move 1 right to . The graph height is 0, which is above the corner. Thus .The stretch factor measures height change per unit of distance from the corner.
- Write .The corner and one-step height have supplied all three numbers in vertex form.
- Check the point (1, 2): .Another readable point must agree with the formula, including on the left arm.
- Set the output to zero: . Add 2, then divide by 2 to get .A horizontal intercept has height zero. Undoing the outside operations identifies its required distance from 3.
- A distance of 1 from 3 occurs at or . Equivalently, or .The distance picture places one input on each side of the center.
- At height , the graph meets and . Its width is , and that height is 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.
- Zeros: x = 2 and x = 4
- x-intercepts: (2, 0) and (4, 0)
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 5
The stretch factor is given
An upward V has vertex (2, 1) and the same steepness as |x|. Write its formula.
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.
- Plan. Use the corner to write vertex form, find the stretch factor from the other information, and check a point.
- The corner supplies both shifts.
- Divide the height change by horizontal distance, which is positive.
- .The parent graph has one unit of rise per unit of distance.
- Use and to write .These numbers place the corner at the stated address.
Rung 2 of 5
One point reveals the stretch factor
Find a V with vertex (−1, 2) passing through (1, 8).
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.
- Plan. Use the corner to write vertex form, find the stretch factor from the other information, and check a point.
- The corner supplies both shifts.
- Divide the height change by horizontal distance, which is positive.
- .The center is −1, and x − (−1) = x + 1. The corner height is 2.
- Put (1, 8) into the formula: .That point requires input 1 to give output 8, and the distance from −1 to 1 is 2.
- Subtract 2 on both sides: . Divide by 2 to get .Removing the corner height leaves the rise, and dividing by distance finds the stretch factor.
Rung 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.
- Plan. Use the corner to write vertex form, find the stretch factor from the other information, and check a point.
- The corner supplies both shifts.
- Divide the height change by horizontal distance, which is positive.
- .The corner fixes center 4 and height 6.
- Insert (0, 4): .The given point lies four units horizontally from the corner.
- Subtract 6: . Divide by 4: .The height change is a fall of 2 over distance 4. Dividing those numbers finds the signed stretch factor.
Rung 4 of 5
Fractional coordinates
Find a V with vertex (, −1) passing through (2, 5).
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.
- Plan. Use the corner to write vertex form, find the stretch factor from the other information, and check a point.
- The corner supplies both shifts.
- Divide the height change by horizontal distance, which is positive.
- .The corner supplies center and height −1.
- Write 2 as , so .Matching fraction bottoms allows subtraction, and the positive result is the horizontal distance.
- Insert (2, 5): . Add 1 to obtain .The point gives the output equation, and adding 1 removes the downward shift.
- .The reciprocal undoes multiplication by , isolating the stretch factor.
Rung 5 of 5
Read a downward V from a picture
Read the downward V in the picture and write its formula.
What it asks. Recover the center, highest height, and signed stretch factor directly from the grid.
Show the steps and the answer
The plan. Read the corner and one step to its right. Check a point on the other arm.
- Plan. Read the corner and one step to its right. Check a point on the other arm.
- The corner is the highest point for a downward V.
- A fall gives a negative stretch factor.
- The highest point reads , so write .The corner gives h = −2, and x − (−2) = x + 2.
- One step right reaches . The height change is over distance 1, so .A downward change is negative, while horizontal distance is positive.
- Write .The corner and one-step fall determine the V.
- Check the left point (−3, 1): .The recovered formula must fit the other arm too.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- From the corner, one step right gives a directly if that point is readable.
- A second point checks the entire formula. Always choose a point away from the corner to find a.
- For an upward V, compare widths at the same height above each corner, rather than at the same y-coordinate when corner heights differ.
7 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.
Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.