Linear Equations: Definition, Method and Examples

MathPublished

Understanding Linear Equations

A linear equation is an algebraic equation where every variable is raised to the first power. When represented visually, a linear equation forms a straight line.


Like all equations in math, a linear equation contains an equal sign showing that the expressions on both sides have the exact same value.


Linear equations have no exponents greater than one and no multiplied variables.


An algebraic equation showing 3 x minus 5 equals 10. Labels point out that the variable has an invisible exponent of 1 and the equal sign balances the two expressions.

Recognise linear and nonlinear forms

You can identify a linear equation by looking at its variables. If any variable has an exponent of 22 or higher, or if two variables are multiplied together, the equation is nonlinear.


A linear relationship always has a constant rate of change. A nonlinear relationship has a rate of change that varies, which creates a curved graph.


Linear Equations

Nonlinear Equations

Reason for being nonlinear

y=4x−1y = 4x - 1

y=x2−1y = x^2 - 1

The variable xx is squared.

3x+2y=103x + 2y = 10

3xy=103xy = 10

The variables xx and yy are multiplied.

x=7x = 7

y=5xy = \dfrac{5}{x}

The variable xx is in the denominator.

Two coordinate graphs side by side. The left graph shows a straight blue line representing a linear equation. The right graph shows a curved red parabola representing a nonlinear equation.

Read common linear forms

Linear equations with two variables can be written in several standard arrangements. Each form highlights different information about the line.


The standard form of a linear equation is ax+by=cax + by = c, where aa, bb, and cc are constant numbers. This form is often used when solving systems of equations.


The slope-intercept form is y=mx+by = mx + b. In this form, mm represents the slope of a line and bb represents the yy-intercept.


The point-slope form is y−y1=m(x−x1)y - y_1 = m(x - x_1). Here, mm is the slope and (x1,y1)(x_1, y_1) is a specific point on the line.

The equation y equals 3 x minus 2 mapped to a line on a graph. A blue arrow points from the 3 to the slope of the line, and an orange arrow points from the minus 2 to the y-intercept.

Connect an equation to a line

When graphed on a coordinate plane, a linear equation with two variables forms a slanted straight line. However, an equation with only one variable forms a line perfectly parallel to one of the axes.


An equation written as x=ax = a forms a vertical line. Every point on this line has an xx-coordinate of aa, and the slope is undefined.


An equation written as y=by = b forms a horizontal line. Every point on this line has a yy-coordinate of bb, and the slope is exactly 00.

A coordinate grid showing a vertical blue line at x equals 4 and a horizontal orange line at y equals negative 3.

Solve or graph in context

You can solve a linear equation by finding the value of the variable that makes the equation true. The core strategy is to isolate the variable using inverse operations.

  1. Simplify both sides of the equation by expanding parentheses and combining like terms.
  2. Use addition or subtraction to move all variable terms to one side of the equal sign and all constant numbers to the other side.
  3. Multiply or divide to isolate the variable completely.

Whatever operation you perform on one side of an equation, you must also perform on the other.


This method is essential for finding missing values and is a fundamental step when graphing linear equations from their intercepts. It also helps when writing linear equations to model real-world scenarios, such as calculating a flat service fee plus an hourly rate.

A step-by-step calculation showing how to solve 2 x plus 4 equals 10. Subtracting 4 from both sides gives 2 x equals 6, and dividing by 2 gives x equals 3.

Worked examples

Review these examples to see how to solve linear equations of increasing difficulty.


Example 1: Solving with an unknown on one side


Question: Solve the equation 4x−5=114x - 5 = 11.


Method:

  1. Add 55 to both sides to group the constants on the right.
  2. Divide both sides by 44 to isolate xx.

Answer: x=4x = 4.


Check: Substitute 44 back into the original equation: 4(4)−5=16−5=114(4) - 5 = 16 - 5 = 11. The answer is correct.


Example 2: Solving with an unknown on both sides


Question: Solve the equation 6x+2=2x+186x + 2 = 2x + 18.


Method:

  1. Subtract 2x2x from both sides to collect the variables on the left.
  2. Subtract 22 from both sides to collect the constants on the right.
  3. Divide both sides by 44 to isolate xx.

Answer: x=4x = 4.


Check: Substitute 44 into both sides: 6(4)+2=266(4) + 2 = 26 and 2(4)+18=262(4) + 18 = 26. The two sides match.


Example 3: Solving with parentheses


Question: Solve the equation 3(x−4)=153(x - 4) = 15.


Method:

  1. Distribute the 33 across the terms inside the parentheses.
  2. Add 1212 to both sides.
  3. Divide both sides by 33.

Answer: x=9x = 9.


Check: Substitute 99 back into the parentheses: 3(9−4)=3(5)=153(9 - 4) = 3(5) = 15. The answer is correct.

Common mistakes

Forgetting to apply an operation to both sides: An equation is a balance. If you subtract a number from the left side, you must subtract the exact same amount from the right side. Failing to balance both sides will lead to an incorrect answer.


Distributing incorrectly: When an equation contains parentheses, such as 4(x+2)4(x + 2), you must multiply the outside number by every term inside. A common error is writing 4x+24x + 2 instead of the correct expansion, 4x+84x + 8.


Dropping negative signs: Pay close attention to negative coefficients. When dividing to isolate a variable, ensure you divide by the negative number exactly. For example, if −3x=12-3x = 12, dividing by −3-3 gives x=−4x = -4, not x=4x = 4.

Frequently asked questions

Can a linear equation have more than one solution?

A linear equation with one variable, such as 2x=102x = 10, has exactly one solution. However, a linear equation with two variables, such as y=x+5y = x + 5, has an infinite number of solutions. Every coordinate pair that falls on its graphed line is a valid solution.


What are simultaneous linear equations?

Simultaneous linear equations involve a set of two or more equations that share the same variables. To solve them, you must find a single set of values that makes all the equations true at the same time. This corresponds to the point where their graphed lines intersect.


How does a linear equation differ from a quadratic equation?

A linear equation has variables raised only to the first power and creates a straight line on a graph. A quadratic equation contains a variable raised to the second power, such as x2x^2, and forms a curved U-shape called a parabola.

Practice questions

Question

Four coordinate grids labeled A, B, C, and D. Graph A shows a straight line. Graph B shows a U-shaped parabola. Graph C shows a V-shape. Graph D shows a repeating wave.

Which of the following graphs represents a linear equation?

  • Graph A

  • Graph B

  • Graph C

  • Graph D

Answer:

Graph A

Question

Solve the linear equation: 5x−7=185x - 7 = 18

  • x=2x = 2

  • x=5x = 5

  • x=11x = 11

  • x=25x = 25

Answer:

x=5x = 5

Question

Which equation represents a vertical line on the coordinate plane?

  • y=3y = 3

  • x=−2x = -2

  • y=x+4y = x + 4

  • x+y=0x + y = 0

Answer:

x=−2x = -2

Question

A student is solving the equation 2(x+3)=142(x + 3) = 14. What is the correct first step?

  • Subtract 33 from both sides to get 2x=112x = 11.

  • Distribute the 22 to get 2x+3=142x + 3 = 14.

  • Distribute the 22 to get 2x+6=142x + 6 = 14.

  • Subtract 22 from both sides to get x+3=12x + 3 = 12.

Answer:

Distribute the 22 to get 2x+6=142x + 6 = 14.

Question

Identify the equation that is nonlinear.

  • 3x+4y=123x + 4y = 12

  • y=8−xy = 8 - x

  • y=10xy = \dfrac{10}{x}

  • x=15x = 15

Answer:

y=10xy = \dfrac{10}{x}