Solve for x, y, z
x=-2
y=-2
z=-5
Share
Copied to clipboard
-2x-y-5z=31 -2x-2y-4z=28 -5x-5y+5z=-5
Reorder the equations.
y=-2x-5z-31
Solve -2x-y-5z=31 for y.
-2x-2\left(-2x-5z-31\right)-4z=28 -5x-5\left(-2x-5z-31\right)+5z=-5
Substitute -2x-5z-31 for y in the second and third equation.
x=-17-3z z=-\frac{16}{3}-\frac{1}{6}x
Solve these equations for x and z respectively.
z=-\frac{16}{3}-\frac{1}{6}\left(-17-3z\right)
Substitute -17-3z for x in the equation z=-\frac{16}{3}-\frac{1}{6}x.
z=-5
Solve z=-\frac{16}{3}-\frac{1}{6}\left(-17-3z\right) for z.
x=-17-3\left(-5\right)
Substitute -5 for z in the equation x=-17-3z.
x=-2
Calculate x from x=-17-3\left(-5\right).
y=-2\left(-2\right)-5\left(-5\right)-31
Substitute -2 for x and -5 for z in the equation y=-2x-5z-31.
y=-2
Calculate y from y=-2\left(-2\right)-5\left(-5\right)-31.
x=-2 y=-2 z=-5
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}