\left\{ \begin{array} { l } { h x + 3 y = - 6 } \\ { 2 x - 5 y = 16 } \end{array} \right.
Solve for x, y
x=\frac{18}{5h+6}
y=-\frac{4\left(4h+3\right)}{5h+6}
h\neq -\frac{6}{5}
Graph
Share
Copied to clipboard
hx+3y=-6,2x-5y=16
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.
hx+3y=-6
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
hx=-3y-6
Subtract 3y from both sides of the equation.
x=\frac{1}{h}\left(-3y-6\right)
Divide both sides by h.
x=\left(-\frac{3}{h}\right)y-\frac{6}{h}
Multiply \frac{1}{h} times -3y-6.
2\left(\left(-\frac{3}{h}\right)y-\frac{6}{h}\right)-5y=16
Substitute -\frac{3\left(2+y\right)}{h} for x in the other equation, 2x-5y=16.
\left(-\frac{6}{h}\right)y-\frac{12}{h}-5y=16
Multiply 2 times -\frac{3\left(2+y\right)}{h}.
\left(-5-\frac{6}{h}\right)y-\frac{12}{h}=16
Add -\frac{6y}{h} to -5y.
\left(-5-\frac{6}{h}\right)y=16+\frac{12}{h}
Add \frac{12}{h} to both sides of the equation.
y=-\frac{4\left(4h+3\right)}{5h+6}
Divide both sides by -\frac{6}{h}-5.
x=\left(-\frac{3}{h}\right)\left(-\frac{4\left(4h+3\right)}{5h+6}\right)-\frac{6}{h}
Substitute -\frac{4\left(3+4h\right)}{6+5h} for y in x=\left(-\frac{3}{h}\right)y-\frac{6}{h}. Because the resulting equation contains only one variable, you can solve for x directly.
x=\frac{12\left(4h+3\right)}{h\left(5h+6\right)}-\frac{6}{h}
Multiply -\frac{3}{h} times -\frac{4\left(3+4h\right)}{6+5h}.
x=\frac{18}{5h+6}
Add -\frac{6}{h} to \frac{12\left(3+4h\right)}{h\left(6+5h\right)}.
x=\frac{18}{5h+6},y=-\frac{4\left(4h+3\right)}{5h+6}
The system is now solved.
hx+3y=-6,2x-5y=16
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}h&3\\2&-5\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-6\\16\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}h&3\\2&-5\end{matrix}\right))\left(\begin{matrix}h&3\\2&-5\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}h&3\\2&-5\end{matrix}\right))\left(\begin{matrix}-6\\16\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}h&3\\2&-5\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}h&3\\2&-5\end{matrix}\right))\left(\begin{matrix}-6\\16\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}h&3\\2&-5\end{matrix}\right))\left(\begin{matrix}-6\\16\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{5}{h\left(-5\right)-3\times 2}&-\frac{3}{h\left(-5\right)-3\times 2}\\-\frac{2}{h\left(-5\right)-3\times 2}&\frac{h}{h\left(-5\right)-3\times 2}\end{matrix}\right)\left(\begin{matrix}-6\\16\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\\y\end{matrix}\right)=\left(\begin{matrix}\frac{5}{5h+6}&\frac{3}{5h+6}\\\frac{2}{5h+6}&-\frac{h}{5h+6}\end{matrix}\right)\left(\begin{matrix}-6\\16\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{5}{5h+6}\left(-6\right)+\frac{3}{5h+6}\times 16\\\frac{2}{5h+6}\left(-6\right)+\left(-\frac{h}{5h+6}\right)\times 16\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{18}{5h+6}\\-\frac{4\left(4h+3\right)}{5h+6}\end{matrix}\right)
Do the arithmetic.
x=\frac{18}{5h+6},y=-\frac{4\left(4h+3\right)}{5h+6}
Extract the matrix elements x and y.
hx+3y=-6,2x-5y=16
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.
2hx+2\times 3y=2\left(-6\right),h\times 2x+h\left(-5\right)y=h\times 16
To make hx and 2x equal, multiply all terms on each side of the first equation by 2 and all terms on each side of the second by h.
2hx+6y=-12,2hx+\left(-5h\right)y=16h
Simplify.
2hx+\left(-2h\right)x+6y+5hy=-12-16h
Subtract 2hx+\left(-5h\right)y=16h from 2hx+6y=-12 by subtracting like terms on each side of the equal sign.
6y+5hy=-12-16h
Add 2hx to -2hx. Terms 2hx and -2hx cancel out, leaving an equation with only one variable that can be solved.
\left(5h+6\right)y=-12-16h
Add 6y to 5hy.
\left(5h+6\right)y=-16h-12
Add -12 to -16h.
y=-\frac{4\left(4h+3\right)}{5h+6}
Divide both sides by 6+5h.
2x-5\left(-\frac{4\left(4h+3\right)}{5h+6}\right)=16
Substitute -\frac{4\left(3+4h\right)}{6+5h} for y in 2x-5y=16. Because the resulting equation contains only one variable, you can solve for x directly.
2x+\frac{20\left(4h+3\right)}{5h+6}=16
Multiply -5 times -\frac{4\left(3+4h\right)}{6+5h}.
2x=\frac{36}{5h+6}
Subtract \frac{20\left(3+4h\right)}{6+5h} from both sides of the equation.
x=\frac{18}{5h+6}
Divide both sides by 2.
x=\frac{18}{5h+6},y=-\frac{4\left(4h+3\right)}{5h+6}
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}