120d + 50c = 960
c + d = 50
You asked:
MathBot Answer:
The system of equations has one solution.\[c = 72\] \[d = -22\]
Solve by substitution:
Solve \(50 c + 120 d = 960\) for \(c\). \[c = \frac{96}{5} - \frac{12 d}{5}\]
Substitute \(\frac{96}{5} - \frac{12 d}{5}\) for \(c\) in \(c + d = 50\) and simplify. $$\begin{aligned}c + d &= 50 \\ \left(\frac{96}{5} - \frac{12 d}{5}\right) + d &= 50 \\ d &= -22 \end{aligned}$$
Use substitution of the numerical value of \(d\) to get the values of \(c\). $$\begin{aligned}c &= \frac{96}{5} - \frac{12 d}{5} \\ c &= \frac{96}{5} - 12 \left(-22\right) \frac{1}{5} \\ c &= 72\end{aligned}$$
Solve by Gauss-Jordan Elimination:
Begin by writing the augmented matrix of the system of equations. $$\begin{bmatrix}50 & 120 &\bigm |& 960\\1 & 1 &\bigm |& 50\end{bmatrix}$$
Then use a series of elementary row operations to convert the matrix into reduced-row echelon form. The three elementary row operations are:
1. Swap the positions of any two rows.
2. Multiply any row by a nonzero scalar.
3. Multiply a row by a nonzero scalar and add it to any other row.
First, switch the rows in the matrix such that the row with the leftmost non-zero entry with the greatest magnitude is at the top.
$$\begin{bmatrix}50 & 120 &\bigm |& 960\\1 & 1 &\bigm |& 50\end{bmatrix}$$
Multiply row \(1\) by scalar \(\frac{1}{50}\) to make the leading term \(1\).
$$\begin{bmatrix}1 & \frac{12}{5} &\bigm |& \frac{96}{5}\\1 & 1 &\bigm |& 50\end{bmatrix}$$
Multiply row \(1\) by scalar \(-1\) and add it to row \(2\).
$$\begin{bmatrix}1 & \frac{12}{5} &\bigm |& \frac{96}{5}\\0 & - \frac{7}{5} &\bigm |& \frac{154}{5}\end{bmatrix}$$
Multiply row \(2\) by scalar \(- \frac{5}{7}\) to make the leading term \(1\).
$$\begin{bmatrix}1 & \frac{12}{5} &\bigm |& \frac{96}{5}\\0 & 1 &\bigm |& -22\end{bmatrix}$$
Multiply row \(2\) by scalar \(- \frac{12}{5}\) and add it to row \(1\).
$$\begin{bmatrix}1 & 0 &\bigm |& 72\\0 & 1 &\bigm |& -22\end{bmatrix}$$
Once the matrix is in reduced-row echelon form, convert the matrix back into linear equations to find the solution. $$\begin{aligned}1 \cdot c+ 0 \cdot d = 72 \\ c = 72\end{aligned}$$$$\begin{aligned}0 \cdot c+ 1 \cdot d = -22 \\ d = -22\end{aligned}$$
Solve by matrix inversion:
In cases where the coefficient matrix of the system of equations is invertible, we can use the inverse to solve the system. Use this method with care as matrix inversion can be numerically unstable for ill-conditioned matrices.
Express the linear equations in the form \(A \times X = B\) where \(A\) is the coefficient matrix, \(X\) is the matrix of unknowns, and \(B\) is the constant matrix.$$\left[\begin{matrix}50 & 120\\1 & 1\end{matrix}\right] \times \left[\begin{matrix}c\\d\end{matrix}\right] = \left[\begin{matrix}960\\50\end{matrix}\right]$$
The product of \(A\) and its inverse \(A^{-1}\) is the identity matrix. Any matrix multiplied by the identity matrix remains unchanged, so this yields the matrix of unknowns on the left hand side of the equation, and the solution matrix on the right. $$\begin{aligned} A \times X &= B\\ A^{-1} \times A \times X &= A^{-1} \times B \\ I \times X &= A^{-1} \times B \\ X &= A^{-1} \times B \end{aligned}$$
Using a computer algebra system, calculate \(A^{-1}\). $$\left[\begin{matrix}- \frac{1}{70} & \frac{12}{7}\\\frac{1}{70} & - \frac{5}{7}\end{matrix}\right]$$
Multiply both sides of the equation by the inverse. $$\left[\begin{matrix}- \frac{1}{70} & \frac{12}{7}\\\frac{1}{70} & - \frac{5}{7}\end{matrix}\right] \times \left[\begin{matrix}50 & 120\\1 & 1\end{matrix}\right] \times \left[\begin{matrix}c\\d\end{matrix}\right] = \left[\begin{matrix}- \frac{1}{70} & \frac{12}{7}\\\frac{1}{70} & - \frac{5}{7}\end{matrix}\right] \times \left[\begin{matrix}960\\50\end{matrix}\right]$$ $$\left[\begin{matrix}c\\d\end{matrix}\right] = \left[\begin{matrix}72\\-22\end{matrix}\right]$$
\[c = 72\]\[d = -22\]