Question
Question: Solve for x and y: \( ax+by-2a+3b=0 \) \( bx-ay=3a+2b \)...
Solve for x and y:
ax+by−2a+3b=0
bx−ay=3a+2b
Solution
Check for the consistency of the pair of equations by comparing the ratios of the coefficients of a and y in both the equations (see Note below).
A pair of simultaneous linear equations in two variables can be solved by either Cramer's rule (see Note below), by elimination, or by substitution.
The given system of equations can be solved quickly by eliminating one of the variables. In order to eliminate one of the variables, make its coefficient equal in both the equations by multiplying the equations by a proper number and then add/subtract the equations.
Complete step-by-step answer:
Rearranging the terms so as to keep only the variables on one side, the given equations are:
ax+by=2a−3b ... (1)
bx−ay=3a+2b ... (2)
We find that the ratio of the coefficients of x is a:b and the ratio of the coefficients of y is b:−a . Since, the ratios are not equal, the given system of equations has a unique solution (see Note below).
To find the solution, let us eliminate y by making its coefficients equal in both the equations.
Multiplying the equation (1) by a , and equation (2) by b , we get:
a2x+aby=2a2−3ab ... (3)
b2x−aby=3ab+2b2 ... (4)
Adding the equations (3) and (4), we get:
a2x+b2x=2a2+2b2
Separating the common factors, we can write:
⇒ x(a2+b2)=2(a2+b2)
Assuming that a,b=0 , (a2+b2) is always positive (why?).
Therefore, on dividing both sides by (a2+b2) , we get:
⇒ x=2
Substituting this value of x in equation (1) [or equation (2)], we get:
2a+by=2a−3b
Subtracting 2a from both the sides and dividing by b , we get:
⇒ by=−3b
Dividing both sides by b , we get:
⇒ y=−3
Therefore, the solution of the given set of equations is x=2 and y=−3.
Note: The consistency of a pair of equations a1x+b1y=c1 and a2x+b2y=c2 , is determined as follows:
a2a1=b2b1 : The system is consistent and has a unique solution.
The pair of equations represent a pair of intersecting lines.
a2a1=b2b1=c2c1 : The system is consistent and has infinitely many solutions.
The pair of equations represent the same line.
a2a1=b2b1=c2c1 : The system is inconsistent, i.e. it has no solutions.
The pair of equations represent a pair of parallel lines.
The solutions to the equations a1x+b1y=c1 and a2x+b2y=c2 can be determined using Cramer's rule:
D=a1 b1 a2b2 , Dx=c1 b1 c2b2 , Dy=a1 c1 a2c2 .
The values of the variables x and y are given by: x=DDx and y=DDy .
If, D = 0, the system is:
Either consistent and has infinitely many solutions. In this case Dx=Dy=0 .
Or it is inconsistent, i.e. it has no solutions. In this case Dx=0 and Dy=0 .