This equation solves a system of simultaneous linear equations in three variables for z using Cramer's Rule.
The three equations solved for here are of the form:
a1⋅x+b1⋅y+c1⋅z=d1
a2⋅x+b2⋅y+c2⋅z=d2
a3⋅x+b3⋅y+c3⋅z=d3
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 coefficient of the z term in the first equation
d1 - the solution term in the first equation
a2 - the coefficient of the x term in the second equation
b2 - the coefficient of the y term in the second equation
c2 - the coefficient of the z term in the second equation
d2 - the solution term in the second equation
a3 - the coefficient of the x term in the third equation
b3 - the coefficient of the y term in the third equation
c3 - the coefficient of the z term in the third equation
d3 - the solution term in the third equation
Derivation
Given a system of simultaneous equations:
a1⋅x+b1⋅y+c1=d1
a2⋅x+b2⋅y+c2=d2
a3⋅x+b3⋅y+c3=d3
We can represent these three equations in matrix form using a coefficient matrix, as [a1b1c1a2b2c2a3b3c3][xyz]=[d1d2d3], where we refer to [a1b1c1a2b2c2a3b3c3] as the coefficient matrix.
Using Cramer's rule we compute the determinant of the coefficient matrix: D=|a1b1c1a2b2c2a3b3c3|=a1⋅(b2⋅c3-b3⋅c2)+b1⋅(c2⋅a3-a2⋅c3)+c1⋅(a2⋅b3-b2⋅a3)
We then form the Dzdeterminant as:
Dz=|a1b1d1a2b2d2a3b3d3|
Continuing with Cramer's Rule, we compute the values of y as: