Q.Solve the following system of linear equations using the matrix method: 2x−y=−2 3x+4y=3
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 10-day free trial to unlock the full solution →Concept understanding — Matrix Equation Solving
Solving a System of Equations by the Matrix Method
A system of linear equations can be written as a single matrix equation and solved in one clean step using the inverse of a matrix. This is the Class-12 "matrix method" for simultaneous equations.
Writing the system as AX=B
Take the system
a1x+b1y+c1z=d1,a2x+b2y+c2z=d2,a3x+b3y+c3z=d3.
Collect the coefficients, the unknowns, and the constants into matrices:
A=a1a2a3b1b2b3c1c2c3,X=xyz,B=d1d2d3.
Then the whole system is just
AX=B.
Solving when A is invertible
If det(A)=0, then A−1 exists, and multiplying both sides on the left by A−1 gives
X=A−1B,where A−1=det(A)1adj(A).
So you compute det(A), then adj(A), form A−1, and multiply by B. The single column X=A−1B hands you x, y, z at once, and because A−1 is unique, the solution is unique.
Multiply in the correct order: X=A−1B, not BA−1. Matrix multiplication is not commutative, and BA−1 is not even defined here.
When det(A)=0
If det(A)=0, A−1 does not exist and the inverse method fails. The system is then either inconsistent (no solution) or has infinitely many solutions. Decide which by computing (adjA)B:
- (adjA)B=O → no solution (inconsistent).
- (adjA)B=O → infinitely many solutions (consistent, dependent). …
The key idea is to solve a system of linear equations using the matrix method, where we write the system as Ax=b and find x=A−1b.
Step 1: Write the system in matrix form.
[23−14][xy]=[−23]
Step 2: Find the inverse of the coefficient matrix. The determinant is det(A)=(2)(4)−(−1)(3)=8+3=11. So,
A−1=111[4−312]
Step 3: Multiply A−1 by b. …
This is a system of two linear equations in two variables. The key idea is to solve by elimination: multiply the first equation so that the coefficients of y cancel when added to the second. The solution is x=−115, y=1112.
We have two equations:
2x−y=−2(1)
3x+4y=3(2)
The goal is to find a pair (x,y) that satisfies both simultaneously. The most reliable method here is elimination — we manipulate the equations so that adding them cancels one variable. Why elimination? Because it avoids fractions early and works cleanly with integer coefficients.
-
Choose which variable to eliminate.
Look at the coefficients: y has −1 in equation (1) and +4 in equation (2). If we multiply equation (1) by 4, the y terms become −4y and +4y, which cancel when added. That’s a clean move.
-
Multiply equation (1) by 4:
4⋅(2x−y)=4⋅(−2)⇒8x−4y=−8
Call this equation (1′).
- Add equation (1′) to equation (2):
(8x−4y)+(3x+4y)=−8+3
The −4y and +4y cancel perfectly, leaving:
11x=−5
- Solve for x:
x=−115
A common mistake is forgetting to multiply the entire equation — including the constant term — when scaling. Here we multiplied −2 by 4 to get −8, not just the x and y terms.
- Substitute x back into one original equation to find y. …
Method: Solving a 2×2 System by the Matrix Inverse, With Fractional Values
The matrix method works identically whether the final answer comes out as whole numbers or fractions — the fraction only appears at the very last step, when dividing by the determinant.
Steps
Step 1: Write AX=B from the two equations
A=(acbd),B=(pq)
Step 2: Compute det(A)=ad−bc carefully, watching the signs
When b or c is itself negative, −bc can flip from subtraction to addition — write out ad−bc term by term rather than doing it mentally, to avoid a sign slip here.
Step 3: Build A−1=det(A)1(d−c−ba)
Keep the det(A)1 factor attached symbolically rather than dividing early — this keeps the numbers as clean integers for as long as possible. …
Common Mistakes
Mistake 1: Dropping the double-negative when computing det(A)
Why it's wrong: here det(A)=(2)(4)−(−1)(3); the second term is −(−1)(3)=+3, not −3, so the correct total is 8+3=11. A student who forgets the double-negative computes 8−3=5 instead, and every later step (the inverse, and hence x,y) inherits this wrong determinant. Correct approach: expand −bc term by term when b or c is negative, writing −(−1)(3) explicitly rather than simplifying by eye.
Mistake 2: Forgetting to divide by the determinant after building the swap-negate matrix …
Showing the 12 most recent of 38 on this concept.
- JEE Main 2026Set 2026-04-02-s14 marksMCQQ.Let A = [[1, 2], [1, α]] and B = [[3, 3], [β, 2]]. If A^2 − 4A + I = O and B^2 − 5B − 6I = O, then among the two statements : (S1) : [(B−A)(B+A)]^T = [[13, 15], [7, 10]] and (S2) : det(adj(A+B)) = −5, (A) only (S1) is correct (B) only (S2) is correct (C) both (S1) and (S2) are correct (D) both (S1) and (S2) are wrong
›Reveal solutionSolution
Matching each matrix equation to the Cayley–Hamilton form pins down α=3,β=4; direct computation then shows S1 is false (the transpose doesn't match) and S2 is true, so only S2 is correct.
Every 2×2 matrix satisfies its own characteristic equation λ2−tr(M)λ+det(M)=0; matching the given quadratic matrix equations to this form is the fastest way to read off trace and determinant without solving for individual entries.
- For A: comparing A2−4A+I=O to λ2−tr(A)λ+det(A)=0 gives tr(A)=4,det(A)=1. tr(A)=1+α=4⇒α=3; check det(A)=1⋅3−2⋅1=1 ✓.
- For B: B2−5B−6I=O⇒tr(B)=5,det(B)=−6. tr(B)=3+2=5 ✓; det(B)=3⋅2−3β=6−3β=−6⇒β=4.
- So A=(1123), B=(3432).
- B−A=(231−1), B+A=(4555).
- (B−A)(B+A)=(2⋅4+1⋅53⋅4−1⋅52⋅5+1⋅53⋅5−1⋅5)=(1371510). …
- JEE Main 2026Set 2026-01-21-s14 marksQ.For some α, β ∈ R, let A = [[α, 2], [1, 2]] and B = [[1, 1], [1, β]] be such that A² − 4A + 2I = B² − 3B + I = O. Then (det(adj(A³ − B³)))² is equal to ____.
›Reveal solutionSolution
Matching the given matrix equations to the Cayley-Hamilton characteristic polynomials fixes α=β=2; computing A3,B3 via the reduction relations and using det(adj M)=detM for 2×2 matrices gives 225.
Every 2×2 matrix automatically satisfies its own characteristic equation λ2−(tr)λ+det=0; matching the given quadratic relations to this identifies the unknown entries.
- A=(α122): trA=α+2=4⇒α=2; check detA=2(2)−2(1)=2 ✓, matching the given A2−4A+2I=O.
- B=(111β): trB=1+β=3⇒β=2; detB=2−1=1 ✓. …
- JEE Main 2026Set 2026-01-21-s24 marksMCQQ.For the matrices A = [[3, −4], [1, −1]] and B = [[−29, 49], [−13, 18]], if (A^15 + B)[x; y] = [0; 0], then among the following which one is true? (A) x = 5, y = 7 (B) x = 16, y = 3 (C) x = 18, y = 11 (D) x = 11, y = 2
›Reveal solutionSolution
A has a repeated eigenvalue with AneqI, so A−I is nilpotent of index 2 — this makes A15 easy to compute in closed form without diagonalizing. Add B, and the resulting homogeneous system picks out exactly one of the four option pairs.
NoteOur derivation below (checked twice against independent re-computation, and matching a separately published worked solution of this exact question) gives (x,y)=(11,2), which is option (D) — not the stored official option (C), x=18,,y=11. Substituting (18,11) into 2x−11y gives 36−121=−85neq0, so it does not satisfy the equation at all; (11,2) is the only one of the four pairs that does. We're presenting this as our honest best-effort answer rather than forcing a match to the stored key.
-
Characteristic polynomial of A: texttr(A)=3+(−1)=2, det(A)=(3)(−1)−(−4)(1)=1. So lambda2−2lambda+1=0Rightarrow(lambda−1)2=0 — a repeated eigenvalue lambda=1.
-
A−I is nilpotent: Let N=A-I=\\begin{pmatrix}2&-4\\\\1&-2\\end{pmatrix}. Direct multiplication gives N^2=\\begin{pmatrix}0&0\\\\0&0\\end{pmatrix} (Cayley–Hamilton guarantees this since the minimal polynomial divides (lambda−1)2).
-
Closed form for powers: since N2=0, An=(I+N)n=I+nN for every nge1 (all higher binomial terms vanish). So:
A15=I+15N=15A−14I
- Compute A15: …
-
- JEE Main 2026Set 2026-04-02-s24 marksQ.Consider the matrices A = [[2, -2], [4, -2]] and B = [[3, 9], [1, 3]]. If matrices P and Q are such that PA = B and AQ = B, then the absolute value of the sum of the diagonal elements of 2(P + Q) is __________.
›Reveal solutionSolution
The trace identity tr(AB)=tr(BA) shows P and Q share the same trace, cutting the work in half; computing just tr(BA−1) and doubling gives the answer, 34.
Solving for P and Q fully isn't necessary — only their traces are needed, and a trace identity shortcuts most of the matrix algebra.
- From PA=B: P=BA−1. From AQ=B: Q=A−1B.
- Trace is invariant under cyclic permutation: tr(A−1B)=tr(BA−1). So tr(Q)=tr(P), and tr(2(P+Q))=2(tr(P)+tr(Q))=4tr(P)=4tr(BA−1).
- Find A−1: detA=2(−2)−(−2)(4)=−4+8=4. So A−1=41(−2−422)=(−0.5−10.50.5). …
- JEE Main 2026Set 2026-04-08-s24 marksMCQQ.If the system of linear equations : x+y+z=6, x+2y+5z=10, 2x+3y+λz=μ has infinitely many solutions, then the value of λ+μ equals : (A) 12 (B) 16 (C) 22 (D) 28
›Reveal solutionSolution
Infinitely many solutions require the third equation to be a linear combination (here, the sum) of the first two equations.
Step-by-step:
- Equations: x+y+z=6 …(i); x+2y+5z=10 …(ii); 2x+3y+λz=μ …(iii).
- Add (i)+(ii): 2x+3y+6z = 16.
- Compare with (iii): the x and y coefficients (2,3) already match exactly. For the system to be dependent (infinitely many solutions, not inconsistent), the z-coefficient and RHS must also match: λ=6, μ=16. …
- JEE Main 2026Set 2026-01-23-s24 marksQ.Let A = [[0, 2, −3], [−2, 0, 1], [3, −1, 0]] and B be a matrix such that B(I − A) = I + A. Then the sum of the diagonal elements of BᵀB is equal to _____
›Reveal solutionSolution
B(I-A)=I+A defines B as the Cayley transform of the skew-symmetric A, which is always orthogonal; so B^T*B=I and its trace is 3.
Recognising the Cayley transform pattern avoids any need to actually invert (I-A) and multiply out a 3x3 matrix by hand.
- Check A is skew-symmetric: A = [[0,2,-3],[-2,0,1],[3,-1,0]]. Transpose: A^T = [[0,-2,3],[2,0,-1],[-3,1,0]] = -A. Confirmed skew-symmetric.
- From B(I-A)=I+A, solve for B: B = (I+A)(I-A)^(-1) (valid since I-A is invertible for skew-symmetric A, as its eigenvalues are never 1).
The Cayley transform B=(I+A)(I-A)^(-1) of any skew-symmetric matrix A is always ORTHOGONAL: B^T*B = I
- This is a standard linear-algebra identity -- no need to compute B's entries explicitly. …
- JEE Main 2026Set 2026-01-28-s14 marksMCQQ.Let A, B and C be three 2×2 matrices with real entries such that B = (I + A)^(-1) and A + C = I. If BC = [[1, -5], [-1, 2]] and CB [x1; x2] = [12; -6], then x1 + x2 is (A) -2 (B) 0 (C) 4 (D) 2
›Reveal solutionSolution
Since B and C are both polynomials in A, they commute, so CB=BC=(1−1−52); solving the resulting linear system gives x1+x2=0.
We're told B=(I+A)−1 and C=I−A (from A+C=I).
- (I+A)−1 can be expressed as a polynomial in A (via the Cayley–Hamilton theorem, since A is 2×2), and I−A is trivially a polynomial in A. Any two polynomials in the same matrix A commute with each other.
If P(A) and Q(A) are both polynomials in the same matrix A, then P(A)Q(A)=Q(A)P(A).
- Therefore BC=CB. We're given BC=(1−1−52), so CB is the same matrix.
- Now solve CB(x1x2)=(12−6): (1−1−52)(x1x2)=(12−6) …
- JEE Main 2025Set 2025-04-08-s24 marksMCQQ.Let α be a solution of x² + x + 1 = 0, and for some a and b in ℝ, [4 a b] × [[1, 16, 13], [-1, -1, 2], [-2, -14, -8]] = [0 0 0]. If 4/α⁴ + m/α^a + n/α^b = 3, then m + n is equal to _______ (A) 11 (B) 3 (C) 8 (D) 7
›Reveal solutionSolution
Solving [4 a b]⋅M=0 column by column gives a=−6,b=5; reducing 4/α4+m/α−6+n/α5=3 with α3=1 and splitting into real/imaginary parts gives n=4,m=7, so m+n=11.
Intuition: α is a non-real cube root of unity, so every power of α cycles with period 3 (α3=1); any real-coefficient expression in α that equals a REAL number forces the imaginary part to vanish separately from the real part — two equations from one.
- [4 a b]⋅M=0 means for each column j: 4M1j+aM2j+bM3j=0. Column 1: 4−a−2b=0. Column 2: 64−a−14b=0. Column 3: 52+2a−8b=0.
- From column 1: a=4−2b. Substitute into column 2: 64−(4−2b)−14b=0⇒60−12b=0⇒b=5,a=−6 (column 3 checks: 52−12−40=0 ✓).
- α3=1⇒α4=α, α−6=(α3)−2=1, α5=α2. The equation becomes α4+m+α2n=3. …
- JEE Main 2025Set 2025-01-23-s24 marksMCQQ.Let A=[aij] be a 3×3 matrix such that A010=001, A413=010 and A212=100, then a23 equals : (A) 2 (B) -1 (C) 1 (D) 0
›Reveal solutionSolution
Treating the given matrix-vector products as linear combinations of A's columns lets us solve directly for column 3 of A, from which a23=−1.
If A has columns c1,c2,c3, then Av=v1c1+v2c2+v3c3 for any vector v=(v1,v2,v3)T — multiplying by a vector always produces a linear combination of the columns, weighted by the vector's entries. This turns the three given equations into linear equations relating c1,c2,c3.
Step 1 — Read off c2 directly.
A(0,1,0)T=(0,0,1)T means c2=(0,0,1)T.
Step 2 — Write the second equation in terms of columns.
A(4,1,3)T=(0,1,0)T⇒4c1+c2+3c3=(0,1,0)T
⇒4c1+3c3=(0,1,0)−(0,0,1)=(0,1,−1)(∗)
Step 3 — Write the third equation in terms of columns.
A(2,1,2)T=(1,0,0)T⇒2c1+c2+2c3=(1,0,0)T
⇒2c1+2c3=(1,0,0)−(0,0,1)=(1,0,−1)⇒c1+c3=(21,0,−21)(∗∗) …
- JEE Main 2025Set 2025-04-04-s24 marksMCQQ.Let the matrix A = [[1, 0, 0], [1, 0, 1], [0, 1, 0]] satisfy Aⁿ = Aⁿ⁻² + A² - I for n ≥ 3. Then the sum of all the elements of A⁵⁰ is : (A) 44 (B) 39 (C) 52 (D) 53
›Reveal solutionSolution
The recurrence A^n = A^{n-2}+A^2-I is linear, so it passes directly to the sum-of-entries function S(n); this turns a matrix power problem into a simple arithmetic recurrence.
Since sum of all elements is a linear functional on matrices, applying it termwise to the given identity yields a scalar recurrence for S(n)= sum of entries of An.
- Compute A2 directly from A=110001010: row i of A2 is the combination of rows of A dictated by row i of A. This gives A2=111010001.
- So S(1)=4 (sum of entries of A), S(A2)=5, and S(I)=3.
- Apply sum-of-entries to An=An−2+A2−I: S(n)=S(n−2)+S(A2)−S(I)=S(n−2)+5−3=S(n−2)+2 for n≥3. …
- JEE Main 2025Set 2025-01-29-s14 marksQ.Let S = {m ∈ Z : A^(m²) + A^m = 3I − A^(−6)}, where A = [[2, −1], [1, 0]]. Then n(S) is equal to _________.
›Reveal solutionSolution
A is a shear-type matrix with a single repeated eigenvalue 1, so (A−I)2=0 and every integer power of A is linear in that nilpotent part; the matrix equation then reduces to one quadratic in m.
- trA=2, detA=2(0)−(−1)(1)=1, so the characteristic equation is λ2−2λ+1=(λ−1)2=0; by Cayley–Hamilton (A−I)2=0.
- Let N=A−I=(11−1−1); direct computation confirms N2=0.
- Since N2=0, Ak=(I+N)k=I+kN for every integer k (this also extends to negative k because A−1=I−N, as (I+N)(I−N)=I−N2=I). …
- JEE Main 2025Set 2025-01-29-s24 marksMCQQ.Let α, β (α ≠ β) be the values of m, for which the equations x + y + z = 1, x + 2y + 4z = m and x + 4y + 10z = m^2 have infinitely many solutions. Then the value of Σ_{n=1}^{10} (n^α + n^β) is equal to : (A) 3410 (B) 560 (C) 3080 (D) 440
›Reveal solutionSolution
Infinitely many solutions requires the system to be consistent after elimination — that consistency condition is itself a quadratic in m, whose two roots are α,β.
- Eliminate x: (eq2−eq1) gives y+3z=m−1; (eq3−eq2) gives 2y+6z=m2−m⇒y+3z=2m2−m.
- For the (now 2-equation, 3-unknown) system to have infinitely many solutions, these two expressions for y+3z must be identical: m−1=2m2−m.
- ⇒2m−2=m2−m⇒m2−3m+2=0⇒(m−1)(m−2)=0⇒m=1 or 2. …
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.