Question 87·Hard·Linear Functions
The linear function satisfies and , where and are distinct real numbers. Which of the following gives in terms of , , and ?
For linear-function questions where you are given values like and , immediately interpret them as points on a line: and . Write the general form , substitute each given condition to create two equations, then use quick elimination or substitution to solve for and . Once you have the slope and intercept, rewrite and match it directly to the answer choices; this avoids guessing and works efficiently even when the parameters are letters instead of numbers.
Hints
Use the general form of a linear function
Think of as a line with equation . How can you use the facts and with this form?
Turn function values into equations
Substitute and into to get two equations involving , , , and .
Eliminate one variable
You will get two equations in and . Try subtracting one equation from the other so that cancels and you can solve for .
Finish the function
Once you know , plug it back into one of your earlier equations to find , then write the full expression for and compare it with the choices.
Desmos Guide
Set specific values for a and b
Pick two convenient distinct numbers for and (for example, and ), and in Desmos type a=2 and b=5 (or your chosen values) so they are defined.
Enter each answer choice as a function
For each option, type it into Desmos as a separate function, for example g1(x)=x+a+b, g2(x)=-x+a+b, g3(x)=(a+b)x-ab, and g4(x)=-x+a/b so you can test them one by one.
Test the conditions g(a)=b and g(b)=a
For each function, create expressions like g1(a), g1(b), g2(a), g2(b), etc. The correct function is the one for which the evaluated results satisfy both conditions: the value at equals your chosen , and the value at equals your chosen .
Step-by-step Explanation
Translate the information into points on the line
The function is linear and satisfies and .
That means the graph of is a straight line that passes through the two points:
Any linear function that passes through two points can be written in the slope-intercept form , where is the slope and is the -intercept.
Write equations using the general linear form
Assume .
Use the two conditions:
- becomes
- becomes
So we have a system of two equations in and :
Solve for the slope m
Subtract the second equation from the first to eliminate :
Because and are distinct, , so we can divide both sides by :
Notice that , so
Find the intercept k and write g(x)
Now plug into one of the equations, for example :
Add to both sides:
So the linear function is
which matches the choice .