While working on a problem, I came upon a system of four equations. Namely, $$\begin{align*} & 4+b=d\\ & 4c=4d+36+i\\ & 2c=d+2i+6\\ & 2c=2d+2b+3\end{align*}\tag1$$ And I'm wondering if there are other conventional methods for solving system of $4$ equations without the use of Mathematica, or matrices since I won't be able to have a calculator on the test.
The method that I proposed was to rearrange all the variables to the LHS to get$$\begin{align*} & b-d=-4\\ & 2c-d-2i=6\\ & -2b+2c-2d=3\\ & 4c-4d-i=36\end{align*}\tag{2}$$ And multiply the first three equations by $A,B,C$ respectively and add them together. Thus, getting$$(A-2C)b+(2B+2C+4)c+(-A-B-4)d+(-2B-1)i=-4A+6B+3C+36\tag{3}$$ And to solve for $b$, set the other coefficients equal to zero to find $A,B,C$ and thus, $b$ is found by$$b=\frac{-4A+6B+3C+36}{A-2C}\tag{4}$$
The only problem with that method is how lengthy it gets. You can't reuse $A,B,C$; the values change for each variable you want to find. So my actual questions...
Questions:
- How would you solve this system of $4$ equations?
- Can this method be generalized to any system of $4$ equations?
- Is there an underlying method to solve an $n$ system of equations? (Miscellaneous question; you don't have to answer that!)
This is a method I used as a student for linear and non linear equations.
It can run into problems with linearly dependent equations and non linear equations where a variable cannot be isolated but it's still useful.
Write the equations in the format: EquationNumber(ListOfVariables)
List the variables alphabetically
Your equations from $(2)$ become
$$1(b,d)$$ $$2(c,d,i)$$ $$3(b,c,d)$$ $$4(c,d,i)$$
You want to perform substitutions by combining equations to create new equations and isolate each variable.
I try to get rid of the alphabetically last variable first i.e. $i$ then $d$ then $c$.
Combine equations $2$ and $4$ to get rid of $i$
$$2,4 \to 5(c,d)$$
To get rid of $d$ combine equations $1$ and $3$ , $1$ and $5$
$$1,3 \to 6(b,c)$$
$$1,5 \to 7(b,c)$$
To get rid of $c$ combine equations $6$ and $7$
$$6,7 \to 8(b) $$
So $b$ is isolated, substitute it back up the chain to solve for $c$ then $d$ then $i$.
The actual calculations:
$$2,4 \to 5(6c - 7d = 66)$$
$$1,3 \to 6(4b - 2c = -11)$$
$$1,5 \to 7(7b - 6c = -94)$$
$$6,7 \to 8(5b = 61) $$
from equation $8$ $$b = \frac{61}{5}$$ Substitute $b$ into equation $7$ , $$c = \frac{299}{10}$$
Substitute $c$ into equation $5$ , $$d = \frac{81}{5}$$
Substitute $c$ and $d$ into equation $2$ , $(2c-d-2i=6)$, $$i = \frac{94}{5}$$
sanity check with Maxima
$$\left[ b={{61}\over{5}} , c={{299}\over{10}} , d={{81}\over{ 5}} , i={{94}\over{5}} \right] $$