Solve for x_1, x_2
x_{1}=-\frac{4994}{68089}\approx -0.073345181
x_{2} = \frac{365783}{68089} = 5\frac{25338}{68089} \approx 5.372130594
Share
Copied to clipboard
0.398x_{1}+0.761x_{2}=4.059
Consider the first equation. Swap sides so that all variable terms are on the left hand side.
1.284x_{2}+0.761x_{1}=6.842
Consider the second equation. Swap sides so that all variable terms are on the left hand side.
0.398x_{1}+0.761x_{2}=4.059,0.761x_{1}+1.284x_{2}=6.842
To solve a pair of equations using substitution, first solve one of the equations for one of the variables. Then substitute the result for that variable in the other equation.
0.398x_{1}+0.761x_{2}=4.059
Choose one of the equations and solve it for x_{1} by isolating x_{1} on the left hand side of the equal sign.
0.398x_{1}=-0.761x_{2}+4.059
Subtract \frac{761x_{2}}{1000} from both sides of the equation.
x_{1}=\frac{500}{199}\left(-0.761x_{2}+4.059\right)
Divide both sides of the equation by 0.398, which is the same as multiplying both sides by the reciprocal of the fraction.
x_{1}=-\frac{761}{398}x_{2}+\frac{4059}{398}
Multiply \frac{500}{199} times \frac{-761x_{2}+4059}{1000}.
0.761\left(-\frac{761}{398}x_{2}+\frac{4059}{398}\right)+1.284x_{2}=6.842
Substitute \frac{-761x_{2}+4059}{398} for x_{1} in the other equation, 0.761x_{1}+1.284x_{2}=6.842.
-\frac{579121}{398000}x_{2}+\frac{3088899}{398000}+1.284x_{2}=6.842
Multiply 0.761 times \frac{-761x_{2}+4059}{398}.
-\frac{68089}{398000}x_{2}+\frac{3088899}{398000}=6.842
Add -\frac{579121x_{2}}{398000} to \frac{321x_{2}}{250}.
-\frac{68089}{398000}x_{2}=-\frac{365783}{398000}
Subtract \frac{3088899}{398000} from both sides of the equation.
x_{2}=\frac{365783}{68089}
Divide both sides of the equation by -\frac{68089}{398000}, which is the same as multiplying both sides by the reciprocal of the fraction.
x_{1}=-\frac{761}{398}\times \frac{365783}{68089}+\frac{4059}{398}
Substitute \frac{365783}{68089} for x_{2} in x_{1}=-\frac{761}{398}x_{2}+\frac{4059}{398}. Because the resulting equation contains only one variable, you can solve for x_{1} directly.
x_{1}=-\frac{278360863}{27099422}+\frac{4059}{398}
Multiply -\frac{761}{398} times \frac{365783}{68089} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
x_{1}=-\frac{4994}{68089}
Add \frac{4059}{398} to -\frac{278360863}{27099422} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
x_{1}=-\frac{4994}{68089},x_{2}=\frac{365783}{68089}
The system is now solved.
0.398x_{1}+0.761x_{2}=4.059
Consider the first equation. Swap sides so that all variable terms are on the left hand side.
1.284x_{2}+0.761x_{1}=6.842
Consider the second equation. Swap sides so that all variable terms are on the left hand side.
0.398x_{1}+0.761x_{2}=4.059,0.761x_{1}+1.284x_{2}=6.842
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}0.398&0.761\\0.761&1.284\end{matrix}\right)\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=\left(\begin{matrix}4.059\\6.842\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}0.398&0.761\\0.761&1.284\end{matrix}\right))\left(\begin{matrix}0.398&0.761\\0.761&1.284\end{matrix}\right)\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=inverse(\left(\begin{matrix}0.398&0.761\\0.761&1.284\end{matrix}\right))\left(\begin{matrix}4.059\\6.842\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}0.398&0.761\\0.761&1.284\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=inverse(\left(\begin{matrix}0.398&0.761\\0.761&1.284\end{matrix}\right))\left(\begin{matrix}4.059\\6.842\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=inverse(\left(\begin{matrix}0.398&0.761\\0.761&1.284\end{matrix}\right))\left(\begin{matrix}4.059\\6.842\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=\left(\begin{matrix}\frac{1.284}{0.398\times 1.284-0.761\times 0.761}&-\frac{0.761}{0.398\times 1.284-0.761\times 0.761}\\-\frac{0.761}{0.398\times 1.284-0.761\times 0.761}&\frac{0.398}{0.398\times 1.284-0.761\times 0.761}\end{matrix}\right)\left(\begin{matrix}4.059\\6.842\end{matrix}\right)
For the 2\times 2 matrix \left(\begin{matrix}a&b\\c&d\end{matrix}\right), the inverse matrix is \left(\begin{matrix}\frac{d}{ad-bc}&\frac{-b}{ad-bc}\\\frac{-c}{ad-bc}&\frac{a}{ad-bc}\end{matrix}\right), so the matrix equation can be rewritten as a matrix multiplication problem.
\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=\left(\begin{matrix}-\frac{1284000}{68089}&\frac{761000}{68089}\\\frac{761000}{68089}&-\frac{398000}{68089}\end{matrix}\right)\left(\begin{matrix}4.059\\6.842\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=\left(\begin{matrix}-\frac{1284000}{68089}\times 4.059+\frac{761000}{68089}\times 6.842\\\frac{761000}{68089}\times 4.059-\frac{398000}{68089}\times 6.842\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x_{1}\\x_{2}\end{matrix}\right)=\left(\begin{matrix}-\frac{4994}{68089}\\\frac{365783}{68089}\end{matrix}\right)
Do the arithmetic.
x_{1}=-\frac{4994}{68089},x_{2}=\frac{365783}{68089}
Extract the matrix elements x_{1} and x_{2}.
0.398x_{1}+0.761x_{2}=4.059
Consider the first equation. Swap sides so that all variable terms are on the left hand side.
1.284x_{2}+0.761x_{1}=6.842
Consider the second equation. Swap sides so that all variable terms are on the left hand side.
0.398x_{1}+0.761x_{2}=4.059,0.761x_{1}+1.284x_{2}=6.842
In order to solve by elimination, coefficients of one of the variables must be the same in both equations so that the variable will cancel out when one equation is subtracted from the other.
0.761\times 0.398x_{1}+0.761\times 0.761x_{2}=0.761\times 4.059,0.398\times 0.761x_{1}+0.398\times 1.284x_{2}=0.398\times 6.842
To make \frac{199x_{1}}{500} and \frac{761x_{1}}{1000} equal, multiply all terms on each side of the first equation by 0.761 and all terms on each side of the second by 0.398.
0.302878x_{1}+0.579121x_{2}=3.088899,0.302878x_{1}+0.511032x_{2}=2.723116
Simplify.
0.302878x_{1}-0.302878x_{1}+0.579121x_{2}-0.511032x_{2}=3.088899-2.723116
Subtract 0.302878x_{1}+0.511032x_{2}=2.723116 from 0.302878x_{1}+0.579121x_{2}=3.088899 by subtracting like terms on each side of the equal sign.
0.579121x_{2}-0.511032x_{2}=3.088899-2.723116
Add \frac{151439x_{1}}{500000} to -\frac{151439x_{1}}{500000}. Terms \frac{151439x_{1}}{500000} and -\frac{151439x_{1}}{500000} cancel out, leaving an equation with only one variable that can be solved.
0.068089x_{2}=3.088899-2.723116
Add \frac{579121x_{2}}{1000000} to -\frac{63879x_{2}}{125000}.
0.068089x_{2}=0.365783
Add 3.088899 to -2.723116 by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
x_{2}=\frac{365783}{68089}
Divide both sides of the equation by 0.068089, which is the same as multiplying both sides by the reciprocal of the fraction.
0.761x_{1}+1.284\times \frac{365783}{68089}=6.842
Substitute \frac{365783}{68089} for x_{2} in 0.761x_{1}+1.284x_{2}=6.842. Because the resulting equation contains only one variable, you can solve for x_{1} directly.
0.761x_{1}+\frac{117416343}{17022250}=6.842
Multiply 1.284 times \frac{365783}{68089} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
0.761x_{1}=-\frac{1900217}{34044500}
Subtract \frac{117416343}{17022250} from both sides of the equation.
x_{1}=-\frac{4994}{68089}
Divide both sides of the equation by 0.761, which is the same as multiplying both sides by the reciprocal of the fraction.
x_{1}=-\frac{4994}{68089},x_{2}=\frac{365783}{68089}
The system is now solved.
Examples
Quadratic equation
{ x } ^ { 2 } - 4 x - 5 = 0
Trigonometry
4 \sin \theta \cos \theta = 2 \sin \theta
Linear equation
y = 3x + 4
Arithmetic
699 * 533
Matrix
\left[ \begin{array} { l l } { 2 } & { 3 } \\ { 5 } & { 4 } \end{array} \right] \left[ \begin{array} { l l l } { 2 } & { 0 } & { 3 } \\ { -1 } & { 1 } & { 5 } \end{array} \right]
Simultaneous equation
\left. \begin{cases} { 8x+2y = 46 } \\ { 7x+3y = 47 } \end{cases} \right.
Differentiation
\frac { d } { d x } \frac { ( 3 x ^ { 2 } - 2 ) } { ( x - 5 ) }
Integration
\int _ { 0 } ^ { 1 } x e ^ { - x ^ { 2 } } d x
Limits
\lim _{x \rightarrow-3} \frac{x^{2}-9}{x^{2}+2 x-3}