Skip to main content
Solve for x, y
Tick mark Image
Graph

Similar Problems from Web Search

Share

7x-4y=5,ax+8y=13
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.
7x-4y=5
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
7x=4y+5
Add 4y to both sides of the equation.
x=\frac{1}{7}\left(4y+5\right)
Divide both sides by 7.
x=\frac{4}{7}y+\frac{5}{7}
Multiply \frac{1}{7} times 4y+5.
a\left(\frac{4}{7}y+\frac{5}{7}\right)+8y=13
Substitute \frac{4y+5}{7} for x in the other equation, ax+8y=13.
\frac{4a}{7}y+\frac{5a}{7}+8y=13
Multiply a times \frac{4y+5}{7}.
\left(\frac{4a}{7}+8\right)y+\frac{5a}{7}=13
Add \frac{4ay}{7} to 8y.
\left(\frac{4a}{7}+8\right)y=-\frac{5a}{7}+13
Subtract \frac{5a}{7} from both sides of the equation.
y=\frac{91-5a}{4\left(a+14\right)}
Divide both sides by \frac{4a}{7}+8.
x=\frac{4}{7}\times \frac{91-5a}{4\left(a+14\right)}+\frac{5}{7}
Substitute \frac{91-5a}{4\left(14+a\right)} for y in x=\frac{4}{7}y+\frac{5}{7}. Because the resulting equation contains only one variable, you can solve for x directly.
x=\frac{91-5a}{7\left(a+14\right)}+\frac{5}{7}
Multiply \frac{4}{7} times \frac{91-5a}{4\left(14+a\right)}.
x=\frac{23}{a+14}
Add \frac{5}{7} to \frac{91-5a}{7\left(14+a\right)}.
x=\frac{23}{a+14},y=\frac{91-5a}{4\left(a+14\right)}
The system is now solved.
7x-4y=5,ax+8y=13
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}7&-4\\a&8\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}5\\13\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}7&-4\\a&8\end{matrix}\right))\left(\begin{matrix}7&-4\\a&8\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}7&-4\\a&8\end{matrix}\right))\left(\begin{matrix}5\\13\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}7&-4\\a&8\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}7&-4\\a&8\end{matrix}\right))\left(\begin{matrix}5\\13\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}7&-4\\a&8\end{matrix}\right))\left(\begin{matrix}5\\13\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{8}{7\times 8-\left(-4a\right)}&-\frac{-4}{7\times 8-\left(-4a\right)}\\-\frac{a}{7\times 8-\left(-4a\right)}&\frac{7}{7\times 8-\left(-4a\right)}\end{matrix}\right)\left(\begin{matrix}5\\13\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{2}{a+14}&\frac{1}{a+14}\\-\frac{a}{4\left(a+14\right)}&\frac{7}{4\left(a+14\right)}\end{matrix}\right)\left(\begin{matrix}5\\13\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{2}{a+14}\times 5+\frac{1}{a+14}\times 13\\\left(-\frac{a}{4\left(a+14\right)}\right)\times 5+\frac{7}{4\left(a+14\right)}\times 13\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{23}{a+14}\\\frac{91-5a}{4\left(a+14\right)}\end{matrix}\right)
Do the arithmetic.
x=\frac{23}{a+14},y=\frac{91-5a}{4\left(a+14\right)}
Extract the matrix elements x and y.
7x-4y=5,ax+8y=13
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.
a\times 7x+a\left(-4\right)y=a\times 5,7ax+7\times 8y=7\times 13
To make 7x and ax equal, multiply all terms on each side of the first equation by a and all terms on each side of the second by 7.
7ax+\left(-4a\right)y=5a,7ax+56y=91
Simplify.
7ax+\left(-7a\right)x+\left(-4a\right)y-56y=5a-91
Subtract 7ax+56y=91 from 7ax+\left(-4a\right)y=5a by subtracting like terms on each side of the equal sign.
\left(-4a\right)y-56y=5a-91
Add 7ax to -7ax. Terms 7ax and -7ax cancel out, leaving an equation with only one variable that can be solved.
\left(-4a-56\right)y=5a-91
Add -4ay to -56y.
y=-\frac{5a-91}{4\left(a+14\right)}
Divide both sides by -4a-56.
ax+8\left(-\frac{5a-91}{4\left(a+14\right)}\right)=13
Substitute -\frac{5a-91}{4\left(a+14\right)} for y in ax+8y=13. Because the resulting equation contains only one variable, you can solve for x directly.
ax-\frac{2\left(5a-91\right)}{a+14}=13
Multiply 8 times -\frac{5a-91}{4\left(a+14\right)}.
ax=\frac{23a}{a+14}
Add \frac{2\left(5a-91\right)}{a+14} to both sides of the equation.
x=\frac{23}{a+14}
Divide both sides by a.
x=\frac{23}{a+14},y=-\frac{5a-91}{4\left(a+14\right)}
The system is now solved.