This equation solves a system of simultaneous linear equations in two variables using Cramer's Rule.
The two equations solved for here are of the form:
a1⋅x+b1⋅y=c1
a2⋅x+b2⋅y=c2
This equation returns the solution value for x.
Inputs
a1 - the coefficient of the x term in the first equation
b1 - the coefficient of the y term in the first equation
c1 - the solution term in the first equation
a2 - the coefficient of the x term in the second equation
'b_2` - the coefficient of the y term in the second equation
c2 - the solution term in the second equation
Derivation
Given a system of simultaneous equations:
a1⋅x+b1⋅y=c1
a2⋅x+b2⋅y=c2
We can represent these two equation in matrix form using a coefficient matrix, as [a1b1a2b2][xy]=[c1c2], where we refer to [a1b1a2b2] as the coefficient matrix.
Using Cramer's rule we compute the determinants of the coefficient matrix: D=|a1b1a2b2|=a1⋅b2-b1⋅a2
We also form the Dx determinants as:
Dx=|c1b1c2b2| and
Continuing with Cramer's Rule, we compute the solution for x as: