Skip to main content

Simultaneous Equations Solver

Solve systems of 2 or 3 simultaneous equations using elimination and substitution. Enter values for instant results with step-by-step formulas.

Share this calculator

Formula

x = Dx/D, y = Dy/D (Cramer's Rule)

Where D is the determinant of the coefficient matrix, Dx is the determinant with the x-column replaced by the constants, and Dy is the determinant with the y-column replaced by the constants. For 3x3 systems, Dz is computed similarly. The system has a unique solution when D is not zero.

Worked Examples

Example 1: 2x2 System - Supply and Demand

Problem: Solve the system: 2x + 3y = 8 and 4x - y = 2

Solution: Using Cramer's Rule:\nD = (2)(-1) - (4)(3) = -2 - 12 = -14\nDx = (8)(-1) - (2)(3) = -8 - 6 = -14\nDy = (2)(2) - (4)(8) = 4 - 32 = -28\nx = Dx/D = -14/-14 = 1\ny = Dy/D = -28/-14 = 2\nVerify: 2(1) + 3(2) = 8, 4(1) - 2 = 2

Result: x = 1, y = 2

Example 2: 3x3 System - Three Planes

Problem: Solve: x + y + z = 6, 2x - y + z = 3, x + 2y - z = 2

Solution: Coefficient matrix determinant:\nD = 1(-1*-1 - 1*2) - 1(2*-1 - 1*1) + 1(2*2 - (-1)*1)\nD = 1(-1) - 1(-3) + 1(5) = -1 + 3 + 5 = 7\nDx = 6(1-2) - 1(3*-1 - 1*2) + 1(3*2 - (-1)*2) = 7\nDy = 1(-3-2) - 6(-2-1) + 1(4-3) = 14\nDz = 1(-2-6) - 1(4-3) + 6(4+1) = 21\nx = 7/7 = 1, y = 14/7 = 2, z = 21/7 = 3

Result: x = 1, y = 2, z = 3

Frequently Asked Questions

What are simultaneous equations and when do they arise?

Simultaneous equations are a set of two or more equations that share the same variables and must be satisfied at the same time. They arise whenever you need to find values that satisfy multiple conditions simultaneously. Common real-world examples include finding the break-even point where revenue equals cost (two linear equations), determining mixture proportions when blending ingredients with different concentrations, calculating forces in equilibrium in physics problems, and solving supply and demand models in economics. A system of two equations with two unknowns represents two lines in a plane, and the solution is their intersection point. A system of three equations with three unknowns represents three planes in space.

What methods can be used to solve simultaneous equations?

The three primary methods for solving simultaneous equations are substitution, elimination, and matrix methods including Cramer's rule. In substitution, you solve one equation for one variable and substitute that expression into the other equation. In elimination, you multiply equations by constants and add or subtract them to eliminate one variable. Matrix methods use determinants and linear algebra to find solutions systematically. Each method has advantages depending on the system. Substitution works best when one variable has a coefficient of 1 or negative 1. Elimination is efficient for systems with convenient coefficients. Cramer's rule using determinants is systematic and easily programmable, making it ideal for computer implementations like Simultaneous Equations Solver.

How does Cramer's rule work for solving simultaneous equations?

Cramer's rule solves a system of n linear equations with n unknowns using determinants. For a 2x2 system ax + by = e and cx + dy = f, the solution is x = Dx/D and y = Dy/D, where D is the determinant of the coefficient matrix (ad - bc), Dx replaces the x-coefficients column with the constants (ed - bf), and Dy replaces the y-coefficients column with the constants (af - ce). The rule extends to 3x3 systems by computing 3x3 determinants using cofactor expansion. Cramer's rule only works when the determinant D is non-zero, meaning the system has a unique solution. While computationally less efficient than Gaussian elimination for large systems, Cramer's rule is elegant and provides a direct formula for each variable.

How do I set up simultaneous equations from a word problem?

Setting up simultaneous equations from word problems requires identifying the unknowns, assigning variables, and translating each condition into an equation. First, identify what quantities you need to find and assign a variable to each one such as x, y, and z. Then read the problem carefully to identify distinct relationships between the unknowns, each of which becomes an equation. For example, if tickets cost 5 dollars for adults and 3 dollars for children, and 100 tickets were sold for 420 dollars total, the equations are x + y = 100 (total tickets) and 5x + 3y = 420 (total revenue). You need at least as many independent equations as unknowns for a unique solution. Practice helps in recognizing which phrases translate to which mathematical operations.

Can simultaneous equations have non-integer solutions?

Yes, simultaneous equations frequently produce non-integer solutions including fractions, decimals, and irrational numbers. For example, the system 3x + 2y = 7 and x - y = 1 yields x = 9/5 (1.8) and y = 4/5 (0.8). Simultaneous Equations Solver displays solutions as decimal values with up to six decimal places for precision. In many real-world applications, non-integer solutions are the norm rather than the exception. Temperature conversions, financial calculations, physics problems, and engineering computations almost always produce non-integer results. When checking your work, substitute the decimal solutions back into the original equations to verify they satisfy both equations within acceptable rounding error.

What are some real-world applications of simultaneous equations?

Simultaneous equations are used extensively across many fields. In business, they determine break-even points, optimal pricing strategies, and resource allocation among multiple products. In chemistry, they balance chemical equations and solve concentration mixture problems. In physics, they resolve force components in static equilibrium, analyze electrical circuits using Kirchhoff laws, and solve kinematics problems with multiple moving objects. In engineering, they are fundamental to structural analysis, signal processing, and control systems. In nutrition, they calculate meal plans meeting multiple dietary requirements simultaneously. Computer graphics use systems of equations for coordinate transformations and ray tracing. Network flow problems in logistics and transportation also reduce to simultaneous equations.

References