Quarry School

Write an equation from a graph

Subject: MathematicsLeans on: Reading coordinatesLeans on: Subtracting a negative centerLeans on: Dividing by a fraction
Level 2 · BuildingAbout 11 min read8 new terms
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    A graph can tell you the recipe that made it.

    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.

    Step

    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.

    Question

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

    Answer

    f(x) = 2|x − 3| − 2
    Zeros: x = 2 and x = 4
    x-intercepts: (2, 0) and (4, 0)

    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.

    Strategy

    1. Read the corner (h, k).

    2. Write a|x − h| + k.

    3. Read a different point and find its height change and horizontal distance from the corner.

    4. Divide height change by distance to find a.

    5. Check the formula at a second point.

    Term

    distance

    Definition

    Distance tells how far apart two places or numbers are. On a number line, the distance from A to B is |A − B|.

    Term

    input

    Definition

    An input is a value supplied to a function. On its graph, the input is the horizontal coordinate x.

    Term

    output

    Definition

    An output is the value a function returns for an input. On its graph, the output is the vertical coordinate y = f(x).

    Term

    graph

    Definition

    A graph is a picture of input-output pairs. Each point (x, y) shows the output y that belongs to the input x.

    Term

    vertex

    Definition

    For an absolute value V, the vertex is its corner point. In a|x − h| + k with a ≠ 0, it is (h, k).

    Term

    domain

    Definition

    The domain is the set of inputs a function allows. Every real input is allowed in a full absolute value V.

    Term

    zero

    Definition

    A zero of a function is an input where its output is 0. On the graph, that input locates an x-intercept.

    Term

    x-intercept

    Definition

    An x-intercept is a graph point on the x-axis, where y = 0. Its x-coordinate is a zero of the function.

    Term

    x-axis

    Definition

    The x-axis is the horizontal coordinate line. Its points have y = 0, and it records the inputs of a function graph.

    Term

    y-axis

    Definition

    The y-axis is the vertical coordinate line. Its points have x = 0, and it records the outputs of a function graph.

    Term

    horizontal intercept

    Definition

    A horizontal intercept is a point where a graph meets the horizontal axis. It is an x-intercept, so the output is 0 there.

    Term

    nonnegative

    Definition

    Nonnegative means zero or positive. It excludes every negative number.

    Term

    vertex form

    Definition

    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

    (3, −2)(1, 2)246−2246(3, −2)(1, 2)−11234567−2246
    The point (1, 2) is two units sideways and four units above the corner, giving a = 2.

    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 ÷ 32 = 6 × 23 = 4. The flipped fraction undoes multiplication by 32.

    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 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.

    The same idea, five ways

    Say it

    Say find the formula from the corner and a point on the V.

    Write it

    The corner determines the two shifts; another point determines the stretch factor.

    In math
    • f(x)=a|x−h|+k
    • q=a|p−h|+k
    • a = q−khorizontaldistance
    • horizontal distance = |p − h|
    • f(x)=2|x−3|−2
    Like

    Inspect a ramp's starting address and compare its rise with the distance walked.

    See it
    cornerknown point246−2246
    The corner and another point determine the formula of this V.

    The same idea, other ways

    Count the rise from the corner

    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.

    corner1 right, 2 up246−224
    One horizontal unit from the corner reveals the stretch factor.
    Put another point into the recipe

    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.

    =22a − 2do the same thing to both sides
    The given point supplies an equation for the unknown stretch factor.
    Compare widths

    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.
    cornerone minute later246810246
    The corner and one-minute measurement recover the walking model.

    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.

    (5, 0)(6, 1)246810246
    The recovered formula passes through both distance measurements.
    Show the steps and the answer

    The plan. Use the corner for the center, then divide the height change by the time difference.

    1. Plan. Use the corner for the center, then divide the height change by the time difference.
    2. Zero distance occurs at time 5.
    3. One block per minute gives factor 1.
    1. Write d(t)=a|t−5|.The corner's time is 5 and its height is 0.
    2. Insert (6, 1): 1=a|6−5|=a×1, so a=1.The measured output is one block at a time one minute from the corner.
    3. Write d(t)=|t−5| for t≥0.The model's measurements start at time zero.
    Answer
    • d(t)=|t−5|
    • Time domain: [0, ∞)
    Double-check At t = 5, the distance is 0. At t = 6, it is 1. Both observed measurements fit.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: A corner at time 5 gives d(t) = |t + 5|.
    That formula is zero at time −5, rather than at the observed time 5.
    ✓ Instead: Use d(t) = |t − 5|.

    Tips and tricks

    • A recovered formula must reproduce the measured corner time and one other measurement.

    5 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.

    Recover a V formula from a graph

    1
    Can you read the graph one unit right of the corner?
    YesThe rise or fall from the corner is a.
    NoUse another clear point and divide height change by horizontal distance.
    ↓
    2
    Is the selected point horizontally at the corner?
    YesChoose a different point. Distance zero cannot determine steepness.
    NoIts positive horizontal distance can be used in the division.
    ↓
    3
    Is the other point below the corner?
    YesThe height change is negative, so a is negative and the V opens down.
    NoA point above the corner gives positive a and upward arms.
    1. Read the corner (h, k).
    2. Write a|x − h| + k.
    3. Read a different point and find its height change and horizontal distance from the corner.
    4. Divide height change by distance to find a.
    5. Check the formula at a second point.

    6 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.

    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.

    corner1 right, 1 up−2246246
    The supplied steepness gives a rise of 1 per unit of distance.
    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. a=1.The parent graph has one unit of rise per unit of distance.
    2. Use h=2 and k=1 to write f(x)=|x−2|+1.These numbers place the corner at the stated address.
    Answer
    f(x)=|x−2|+1.
    Double-check f(2) = 1 and f(3) = 2, so the corner and one-unit rise agree.

    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.

    cornergiven point−4−222610
    Two units from the corner raise the output by 6, so a = 3.
    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+1|+2.The center is −1, and x − (−1) = x + 1. The corner height is 2.
    2. Put (1, 8) into the formula: 8=a|1+1|+2=2a+2.That point requires input 1 to give output 8, and the distance from −1 to 1 is 2.
    3. Subtract 2 on both sides: 6=2a. Divide by 2 to get a=3.Removing the corner height leaves the rise, and dividing by distance finds the stretch factor.
    Answer
    f(x) = 3|x + 1| + 2.
    Double-check At x = 1, 3 × 2 + 2 = 8; at x = −1, the distance vanishes and the height is 2.

    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.

    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.

    Rung 4 of 5

    Fractional coordinates

    Find a V with vertex (12, −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.

    (1/2, −1)(2, 5)2−22468
    The height change 6 divided by distance three halves gives a = 4.
    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−12|−1.The corner supplies center 12 and height −1.
    2. Write 2 as 42, so |2−12|=|42−12|=32.Matching fraction bottoms allows subtraction, and the positive result is the horizontal distance.
    3. Insert (2, 5): 5=a×32−1. Add 1 to obtain 6=a×32.The point gives the output equation, and adding 1 removes the downward shift.
    4. a=6÷32=6×23=123=4.The reciprocal undoes multiplication by 32, isolating the stretch factor.
    Answer
    f(x)=4|x−12|−1.
    Double-check At x = 2 the output is 4 × 32 − 1 = 6 − 1 = 5. At the vertex it is −1.

    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.

    −4−2−6−4−2246
    Read the highest point and a one-step fall from this unlabeled graph.
    Show the steps and the answer

    The plan. Read the corner and one step to its right. Check a point on the other arm.

    1. Plan. Read the corner and one step to its right. Check a point on the other arm.
    2. The corner is the highest point for a downward V.
    3. A fall gives a negative stretch factor.
    1. The highest point reads (−2,4), so write f(x)=a|x+2|+4.The corner gives h = −2, and x − (−2) = x + 2.
    2. One step right reaches (−1,1). The height change is 1−4=−3 over distance 1, so a=−3.A downward change is negative, while horizontal distance is positive.
    3. Write f(x)=−3|x+2|+4.The corner and one-step fall determine the V.
    4. Check the left point (−3, 1): f(−3)=−3|−3+2|+4=−3×1+4=1.The recovered formula must fit the other arm too.
    Answer
    f(x)=−3|x+2|+4
    Double-check At x = −2, output is 4. One step left or right lowers it to 1, matching the grid and its downward opening.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Use (2 − (−2)) ÷ (1 − 3) = −2 for the V through (1, 2) with corner (3, −2).
    The denominator must be distance, which is positive, even for a point left of the corner. The wrong formula gives −2|1 − 3| − 2 = −6, missing height 2.
    ✓ Instead: a=4÷|1−3|=4÷2=2.

    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.