Linear Equations
In this lesson, you will learn
- What a linear equation is, and how to tell it apart from a non-linear equation
- The three major forms of a linear equation: slope-intercept, point-slope and general form
- Two less common forms: functions and the intercept form
- How to model a real-life situation with a linear equation
What Is a Linear Equation?
Linear equations are equations that have the following form: y = ax + b, where a and b are real numbers and are called constants.
In y = ax + b, x is called the independent variable and y is called the dependent variable.
Some examples of linear equations are y = 2x + 5 with a = 2 and b = 5, y = โ3x + 2 with a = โ3 and b = 2, and y = 4x โ 1 with a = 4 and b = โ1.

In y = โ7x + 3, what are a and b?
Show answer
a = โ7 and b = 3. Compare y = โ7x + 3 with y = ax + b: the number in front of x is a, and the number added at the end is b.
Linear and Non-Linear Equations
Notice that all linear equations are equations of degree 1, meaning that the variable cannot be raised to a power other than 1. If the degree of the equation is not 1, you are dealing with non-linear equations.
For example, y = 3x, y = x2 โ 3x + 2, y = โx, and y = x โ 3x + 2 are non-linear equations.
It may not be obvious why y = x โ 3x + 2 is not a linear equation. Let us rewrite the equation by multiplying each side of the equation by x + 2.
y(x + 2) = (x โ 3)
xy + 2y = x โ 3
xy + 2y โ x + 3 = 0
The term that is not of degree 1 is xy. This term can also give us the degree of this equation. Just add the exponents for each variable to get the degree. Therefore the degree is 2 since xy = x1y1.
y = โx is not a linear equation either since it can be written as y = xยฝ and xยฝ is not a term of degree 1.
Mixing up y = 3x and y = 3x. In y = 3x, x is multiplied by 3, so the equation is linear. In y = 3x, x is an exponent, so the equation is not linear.
Is y = 7 โ 2x a linear equation?
Show answer
Yes. It can be written as y = โ2x + 7, which has the form y = ax + b with a = โ2 and b = 7. The power of x is 1.
Forms of Linear Equations
A linear equation can have different forms. There are three major forms. The other forms, which are less common, are writing linear equations as functions and the intercept form.
Here are the three major forms of linear equations
- Slope-intercept form
- Point-slope form
- General form or standard form of a linear equation
Slope-intercept form of a linear equation
where m is the slope, b is the y-intercept, x is the coordinate of the x-axis, and y is the coordinate of the y-axis.
The name "slope-intercept form" came from the fact that you can clearly and quickly identify the slope and the y-intercept in the equation. This can help to quickly graph the line of the equation.
For example, y = 5x โ 6 is in slope-intercept form where 5 is the slope and โ6 is the y-intercept.
What are the slope and the y-intercept of y = โ2x + 9?
Show answer
The slope is โ2 and the y-intercept is 9. In y = mx + b, m is the slope and b is the y-intercept.
Point-Slope Form of a Linear Equation
where m is the slope and (x1, y1) is a point on the line.
The name "point-slope form" also came from the fact that you can clearly and quickly identify the slope and a point just by looking at the equation. This can help you quickly graph the line of the equation. You do this by putting the point first on the coordinate plane. Then, use the slope to find one more point. Finally draw a straight line between the two points. See how this is done in the lesson about graphing slope.
For example, y = 5x โ 6 can be written in point-slope form as y + 1 = 5(x โ 1) or y โ (โ1) = 5(x โ 1).
5 is the slope and (1, โ1) is a point on the line.
Reading the point with the wrong signs. In y + 1 = 5(x โ 1), write y + 1 as y โ (โ1), so y1 = โ1 and x1 = 1. The point is (1, โ1), not (โ1, 1).
What are the slope and the point in y โ 4 = 3(x + 2)?
Show answer
The slope is 3 and the point is (โ2, 4). x + 2 = x โ (โ2), so x1 = โ2, and y1 = 4.
General Form of a Linear Equation
where A, B, and C are real numbers and A and B are not both zero.
The name "general form" most likely came from the fact that you cannot quickly identify anything specific in the equation such as the slope. However, the general form can be used to quickly find the x-intercept and the y-intercept.
For example, the general form of y = 5x โ 6 is 5x โ y = 6.
The standard form of linear equations with two variables can be written as Ax + By = C where A, B, and C are real numbers and A and B are not both zero.
When either B or A is equal to zero, we get Ax = C or By = C.
An equation of the form Ax = C or By = C is called a linear equation with one variable. A and B cannot be zero.
- The slope is 2 (the number in front of x).
- Find a point on the line: when x = 1, y = 2(1) โ 3 = โ1. So (1, โ1) is on the line.
- Point-slope form: y โ (โ1) = 2(x โ 1), which is y + 1 = 2(x โ 1).
- General form: subtract 2x from each side of y = 2x โ 3 to get โ2x + y = โ3. Then multiply each side by โ1 to get 2x โ y = 3.
- Check with the point (1, โ1): 2(1) โ (โ1) = 2 + 1 = 3, so the general form is correct.
Point-slope form: y + 1 = 2(x โ 1). General form: 2x โ y = 3.
Find the x-intercept and the y-intercept of 2x + 3y = 12.
Show answer
The x-intercept is 6 and the y-intercept is 4. Let y = 0: 2x = 12, so x = 6. Let x = 0: 3y = 12, so y = 4.
Less Common Forms of Linear Equations
As a function
The equation y = 5x โ 6 can also be written as a function with f(x), g(x), h(x) ... instead of y.
f(x) = 5x โ 6
g(x) = 5x โ 6
h(x) = 5x โ 6
The intercept form
where a is the x-intercept and b is the y-intercept.
For example, y = 5x โ 6 can be written in intercept form as x1.2 + yโ6 = 1.
What are the x-intercept and the y-intercept of x4 + y3 = 1?
Show answer
The x-intercept is 4 and the y-intercept is 3. In the intercept form, the number under x is the x-intercept and the number under y is the y-intercept.
An Interesting Math Problem Leading to a Linear Equation
I am thinking of a number. If I add 2 to that number, I will get 5. What is the number?
Although it may be fairly easy to guess that the number is 3, you can model the situation above with a linear equation.
Let x be the number in my mind.
Add 2 to x to get 5.
Adding 2 to x to get 5 means that whatever x is, when I add 2 to x, it has to equal 5.
The equation is 2 + x = 5
I am thinking of a number. If I subtract 4 from that number, I get 10. Which equation models this?
Show answer
x โ 4 = 10. Let x be the number. Subtracting 4 from x gives 10. The number is 14.
A Real-Life Example Leading to a Linear Equation
Sooner or later, we need the service of a taxi driver. Taxi drivers usually charge an initial fixed fee as part of using their services. Then, for each mile, they charge a certain amount.
Say for instance the initial fee is 4 dollars and each mile costs 2 dollars.
The total cost can be modeled with an equation that is linear.
Let y be the total cost.
Let n be the number of miles.
Total cost = 4 + cost for n miles.
Notice that cost for n miles = n ร 2.
Therefore, y = 4 + n ร 2.
y = 4 + n ร 2 is the same as y = 2n + 4. It has the form y = ax + b: a = 2 is the cost per mile and b = 4 is the fixed fee.
Say for instance, a taxi driver takes you a distance of 20 miles, how much money do you have to pay using y = 4 + n ร 2?
When n = 20, y = 4 + 20 ร 2 = 4 + 40 = 44 dollars
Now, let's ask the question the other way around!
If you pay 60 dollars, how far did the taxi driver take you?
This time, y = 60.
Replacing y with 60 in the equation gives you the following equation:
60 = 4 + n ร 2
It is not obvious that n = 28.
That is why it is important to learn to solve linear equations!
Real life examples or word problems on linear equations are numerous.
With the same taxi (4 dollars plus 2 dollars per mile), how much does a 15-mile ride cost?
Show answer
34 dollars. y = 4 + 15 ร 2 = 4 + 30 = 34.
Summary
- A linear equation has the form y = ax + b, where a and b are constants. Its degree is 1.
- Equations such as y = x2 โ 3x + 2, y = 3x and y = โx are not linear.
- Slope-intercept form y = mx + b shows the slope m and the y-intercept b.
- Point-slope form y โ y1 = m(x โ x1) shows the slope m and a point (x1, y1).
- General form Ax + By = C makes it quick to find the x-intercept and the y-intercept.
- Real-life situations, like a taxi fare with a fixed fee and a cost per mile, can be modeled with a linear equation.
Test Yourself: Interactive 10-Question Quiz
Now check what you learned. Every answer is explained, and each time you play you get new questions.
Quiz complete!