Linear System Solver (2×2)
Solve coupled linear equations Ax = b from circuit and mechanics models
Parameters
Controls
Calculated Values
Examples
Sample system
[[2,1],[1,3]] x = [4,5].
- x1:
- x2:
Visualization
Linear Systems in Physics
Many steady-state physics problems reduce to Ax = b: two-loop Kirchhoff laws, coupled spring equilibria, mixing constraints, and network flows. For 2×2 systems, Cramer’s rule and Gaussian elimination are fast and instructive.
The determinant det(A) = a₁₁a₂₂ − a₁₂a₂₁ measures whether the system has a unique solution. det(A) = 0 means the equations are parallel or redundant — physically, the model is under- or over-constrained.
Gaussian elimination subtracts multiples of one equation from another to reach upper-triangular form, then back-substitutes. This scales to large sparse systems in simulation codes.
Always verify by substituting x back into Ax = b. Residuals |Ax − b| reveal round-off or modeling errors — propagate uncertainties with Error Propagation on measured coefficients.
Eigenvalue problems (Power Method) extend linear algebra to normal modes and stability analysis.
Key Concepts
- det(A) ≠ 0 → unique solution
- Cramer: xᵢ = det(Aᵢ)/det(A)
- Elimination: pivot, eliminate, back-substitute
- Residual r = b − Ax checks accuracy
- Ill-conditioned matrices amplify errors
Real-World Applications
- Two-loop DC circuit currents
- Static equilibrium of linked bodies
- Least-squares normal equations (2-parameter fit)
- Small vibration modes (with eigen tools)
Explore Further
- All Computational Physics Calculators
Browse every computational physics solver in this category.
- Statistical & Numerical Methods
Probability and ensemble ideas behind stochastic simulation.
- Statistics in Physics
Why averaging random samples recovers physical expectations.
- Bisection Method
Step in Numerical Methods.
- Newton-Raphson
Step in Numerical Methods.
- ODE Solver
Step in Numerical Methods.
- Monte Carlo Intro
Step in Numerical Methods.
- Physics Constants Reference
SI values for c, G, k_B, ε₀, and more used across solvers.
More computational physics tools
- Gradient Descent
Iteratively minimize f(x) by following the negative gradient with animated path visualization.
- 1D Heat Equation
Finite-difference FTCS solution to the diffusion equation with animated temperature profiles.
- 1D Wave Equation
Leapfrog finite-difference solution to the wave equation with animated wave propagation.
- Numerical Integration
Trapezoidal and Simpson rules to approximate definite integrals with error vs exact solutions.
- ODE Solver
Euler and Runge-Kutta 4 methods for first-order ODEs with comparison to analytic solutions.
- Monte Carlo Intro
Estimate π and integrals by random sampling — introduction to stochastic computational physics.
Physics Equations
Step-by-Step Solution
See how the main results are calculated.
Step 1: Write the 2×2 system
Coupled linear equations from circuit loops, force balance, or network models.
Equation:
Step 2: Determinant
Equation:
Calculation:
Result:
Step 3: Cramer / elimination solution
Equation:
Calculation:
Result:
Step 4: Verify A x = b
Calculation:
Result:
Frequently Asked Questions (FAQ)
What if det(A) = 0?
No unique solution — revise the physical model or remove redundancy.
Does this scale to 3×3?
Same elimination idea; use matrix tools for larger n.
Practice MCQs
- det(A) = 0 implies:
- Gaussian elimination goal:
- Residual b − Ax should be:
- 2×2 Cramer uses:
- Coupled springs at equilibrium give:
Related Calculators
These tools connect to the same physics concepts used in this calculator.