Systems of Equations

A system of linear equations is a collection of two or more equations involving the same set of variables. Solving a system means finding the point where all represented lines intersect.

Types of Systems

The relationship between two lines determines the number of solutions:

  • Consistent & Independent: Lines intersect at exactly one point. (One solution).
  • Consistent & Dependent: Lines are identical (collinear). (Infinite solutions).
  • Inconsistent: Lines are parallel and never intersect. (No solution).

Note

Adjust the slopes and intercepts of two lines to visualize their intersection. Notice how parallel lines (equal slopes) result in no solution.

Systems of Linear Equations Explorer

Equation 1 (Blue)

m1 (Slope)1
b1 (Intercept)2
y=x+2y = x + 2

Equation 2 (Purple)

m2 (Slope)-0.5
b2 (Intercept)-1
y=0.5x1y = -0.5x - 1

Determinant Test:

D=m2m1=1.50D = m_2 - m_1 = -1.50

System Status:

Consistent Independent (Unique Solution)

(x,y)=(2.00,0.00)(x, y) = (-2.00, 0.00)
(-2.0, 0.0)xy

Methods of Solving

Choose the most efficient method based on the structure of the equations:

  1. Substitution: Solve one equation for a variable and plug it into the other. Best when a coefficient is 11 or 1-1.
  2. Elimination: Add or subtract equations to "cancel out" a variable. Best when equations are in Standard Form (Ax+By=CAx + By = C).
  3. Graphing: Plotting both lines. Best for visual estimation and conceptual understanding.
  4. Cramer's Rule (Matrices): Uses determinants to solve the system. It is extremely fast for finding a single variable in large systems if the determinant of the coefficient matrix is non-zero.

Note

Use the interactive solver below to practice the Substitution and Elimination methods. Adjust the coefficients of the two linear equations to see the exact step-by-step algebraic derivations update instantly.

Algebraic Systems Solver Lab

Equation 1: a1x+b1y=c1a_1x + b_1y = c_1
2x+1y=42x + 1y = 4
Equation 2: a2x+b2y=c2a_2x + b_2y = c_2
1x1y=21x - 1y = 2
Algebraic Step Solver
Step 1: Solve Eq 1 for y
y=42x1y = \frac{4 - 2x}{1}
Step 2: Substitute into Eq 2
1x1(42x1)=21x - 1\left(\frac{4 - 2x}{1}\right) = 2
Step 3: Solve for x and y
x=2.00,y=0.00x = 2.00, \quad y = 0.00
Determinant (D)-3.0
X Solution2.00
Y Solution0.00

Homogeneous vs. Non-Homogeneous Systems

Systems of equations can be classified based on the constants on the right side of the equations. This classification dictates the possible types of solutions.

Homogeneous Systems

Systems where all constant terms are zero (e.g., Ax+By=0Ax + By = 0). They always have at least one solution, known as the trivial solution (all variables are zero). If there are more unknowns than equations, or if the determinant of the coefficient matrix is zero, there are infinitely many solutions.

Non-Homogeneous Systems

Systems where at least one constant term is non-zero. These can have a unique solution, no solution, or infinitely many solutions.

Systems of Three Variables

Systems involving three variables (x,y,zx, y, z) are visually represented as planes in a 3D space. The solution to the system is the point (x,y,zx, y, z) where all three planes intersect. These systems frequently arise in physics, circuit design, and structural analysis.

  1. Use elimination to combine pairs of equations and eliminate one variable, reducing the 3x3 system to a 2x2 system.
  2. Solve the resulting 2x2 system using standard methods (substitution or elimination).
  3. Substitute the known variables back into one of the original 3x3 equations to find the final variable.

Cramer's Rule

Cramer's Rule uses determinants to solve systems of linear equations. It is particularly useful for small systems (like 2x2 or 3x3) where the determinant of the coefficient matrix is non-zero.

  1. Create the Coefficient Matrix (DD) containing all the coefficients of the variables.
  2. Compute the determinant of DD. If D=0D = 0, Cramer's Rule cannot be used (the system is either inconsistent or dependent).
  3. For each variable (e.g., xx), create a new matrix DxD_x by replacing the xx-column in the coefficient matrix with the column vector of constants from the right side of the equations.
  4. Calculate the determinant of this new matrix (DxD_x).
  5. The solution for the variable is the ratio of its determinant to the coefficient determinant: x=DxDx = \frac{D_x}{D}, y=DyDy = \frac{D_y}{D}, etc.

Interactive Simulation

Note

Use this interactive linear system solver to explore how changing slopes and intercepts dynamically affects the unique, parallel, or collinear state of a 2D linear system.

System of Linear Equations Explorer

Equation 1 (Blue)y1=x+2y_1 = x + 2
Slope m1m_11.0
Y-Intercept b1b_12
Equation 2 (Rose)y2=x1y_2 = -x - 1
Slope m2m_2-1.0
Y-Intercept b2b_2-1

Algebraic Solver

Consistent & Independent

The lines have different slopes, intersecting at exactly one point:

(x,y)=(1.50,0.50)(x, y) = (-1.50, 0.50)
xy(-1.5, 0.5)
Equation 1
Equation 2
Intersection
Key Takeaways
  • Special Cases: If variables cancel and you get 0=00 = 0, there are infinite solutions. If you get 0=50 = 5, there are no solutions.
  • Efficiency: Use elimination if both equations are in Ax+By=CAx+By=C form. Use substitution if one variable is already isolated.
  • Checking Work: Always plug your solution (x,y)(x, y) back into BOTH original equations to verify.
  • 3D Systems: A system of 3 equations with 3 variables represents the intersection of planes in 3D space.