A linear function changes by the same amount each time its input changes by the same amount. If you’re given a combination of function values rather than the rule, write and use a matched-list regression in Desmos to fit both conditions at once. Don’t treat an output at a nonzero input as the starting value.
Hints
- Hint 1
Write the linear function as . The constants and must be the same in both conditions. What do , , and become?
- Hint 2
A matched-list regression pairs entries by position. Put the two expressions from your conditions in one list and their stated values in the other, so Desmos fits one pair of constants.
- Hint 3
The fitted constants describe the function, but the question asks for an output at a new input. After the fit, define using those constants and evaluate the requested input.
Step-by-step
Approach 1: Fit the linear function in Desmos
Step 1Turn both conditions into equations
For a linear function, : is the change in output when the input rises by , and . Replace each function value with its expression:
The same and appear in both equations. Don’t set ; is , not .
- Step 2
Fit both conditions together
Type . The regression pairs the first expressions and values, then the second, while fitting one shared pair of constants. Desmos reports and under PARAMETERS.
- Step 3
Evaluate the requested output
Below the regression, type , then . Desmos uses the fitted constants and displays . So the output at input is . Grid in 2.
Approach 2: Use equal spacing instead
Step 1Find the midpoint relationship
The inputs , , and are equally spaced. Equal input steps mean equal output steps for a linear function, so is the midpoint of the other two outputs:
- Step 2
Match the coefficient of the first output
Double the midpoint equation so its term will match the given condition:
- Step 3
Cancel the matching terms
Subtract the given condition from the doubled equation; the terms cancel:
- Step 4
Continue the equal output change
The inputs , , and also step by , so add the same output change from to once more:
The output at input is . Grid in 2.