Linear Function Solver
Identify, build and graph linear functions with AI-powered step-by-step working
What Makes a Function Linear
A linear function changes by the same amount for every equal step in . That constant rate of change is the slope, and it is what makes the graph a straight line.
The algebraic test is about the shape of the equation. Every variable must appear to the first power, alone, and never in a denominator or under a root:
| Equation | Linear? | Reason |
|---|---|---|
| yes | degree 1 in | |
| yes | rearranges to | |
| no | is squared | |
| no | is in the denominator | |
| no | variables multiplied together | |
| yes | slope 0, a horizontal line |
The numerical test is just as reliable: if equally spaced values give values with a constant first difference, the relationship is linear.
Three Forms, and How to Build the Equation
From two points, and :
- Slope — rise over run.
- Put and either point into point-slope form.
- Expand and rearrange into .
From a table, the slope is the change in divided by the change in between consecutive rows, and is the value at .
To graph , plot , then step 1 right and up (down if is negative) to get a second point, and draw the line through them. Slope written as a fraction is a ready-made instruction: means down 2, right 3.
Common Mistakes to Avoid
- Inverting the slope. It is , rise over run. Using run over rise gives the reciprocal, a different line.
- Subtracting the coordinates in different orders. If the numerator is , the denominator must be — the same point first in both.
- Assuming is the last number you see. In the intercept is , not 6; you have to solve for first.
- Confusing with . The first is a horizontal line and a perfectly good linear function; the second is vertical, has undefined slope, and is not a function at all.
- Calling a curve linear because it rises steadily. increases the whole way for , but its first differences grow, so it is not linear.
Examples
Frequently Asked Questions
Every variable must appear to the first power, on its own, and never under a root or in a denominator. So 2x + 3y = 6 is linear while y = x squared, y = 5/x and y = xy are not. Numerically, equal steps in x must produce equal steps in y.
Yes. It is a horizontal line with slope 0, which is a perfectly valid constant rate of change. The vertical line x = 5 is different: its slope is undefined and it fails the vertical line test, so it is not a function at all.
Compute the slope as the difference in y divided by the difference in x, keeping the same point first in both subtractions. Then substitute that slope and either point into y - y1 = m(x - x1) and rearrange into y = mx + b. Verify by checking that the other point satisfies your equation.
It is the amount y changes for every one-unit increase in x. In a real context that is a rate: dollars per hour, kilometres per litre, degrees per minute. A negative slope means the quantity falls as x increases, and a slope of zero means it does not change.
Related Solvers
Related Guides
Try AI-Math for Free
Get step-by-step solutions to any math problem. Upload a photo or type your question.
Start Solving