Class 12 Maths, Worked in Full Past papersGet updates
CBSE Board Examination 2025 · Section D · 5 marks

Q35: Students in the Sports, Music and Drama clubs by the matrix method

The question

A school wants to allocate students into three clubs : Sports, Music and Drama, under following conditions :

  • The number of students in Sports club should be equal to the sum of the number of students in Music and Drama club.
  • The number of students in Music club should be 20 more than half the number of students in Sports club.
  • The total number of students to be allocated in all three clubs are 180.

Find the number of students allocated to different clubs, using matrix method.

Exam answer

Let xx⁠, yy and zz be the numbers of students allocated to the Sports, Music and Drama clubs respectively. Then x=y+zx = y + z⁠, y=x2+20y = \frac{x}{2} + 20 and x+y+z=180x + y + z = 180⁠, that is

x−y−z=0x−2y=−40x+y+z=180\begin{aligned} x - y - z &= 0 \\ x - 2y &= -40 \\ x + y + z &= 180 \end{aligned}
Why?

Turn each condition into an equation. "Sports equals Music plus Drama" gives x=y+zx = y + z⁠. "Music is 20 more than half of Sports" gives y=x2+20y = \frac{x}{2} + 20⁠.

Then bring the unknowns to the left side. Multiplying y=x2+20y = \frac{x}{2} + 20 by 22 gives 2y=x+402y = x + 40⁠, that is x−2y=−40x - 2y = -40⁠.

x=y+zx−y−z=0y=x2+202y=x+402y−x=40x−2y=−40(× −1)\begin{aligned} x &= y + z \\ x - y - z &= 0 \\[4pt] y &= \frac{x}{2} + 20 \\ 2y &= x + 40 \\ 2y - x &= 40 \\ x - 2y &= -40 \quad (\times\, -1) \end{aligned}

These can be written as AX=BAX = B⁠, where

A=[1−1−11−20111]A = \begin{bmatrix} 1 & -1 & -1 \\ 1 & -2 & 0 \\ 1 & 1 & 1 \end{bmatrix} X=[xyz],B=[0−40180]X = \begin{bmatrix} x \\ y \\ z \end{bmatrix},\quad B = \begin{bmatrix} 0 \\ -40 \\ 180 \end{bmatrix}
Why?

Row ii of AA holds the coefficients of x,y,zx, y, z in equation ii⁠, always in that order. The second equation has no zz⁠, so its coefficient is 00⁠. BB holds the right-hand sides.

∣A∣=1(−2−0)+1(1−0)−1(1+2)=−2+1−3=−4≠0\begin{aligned} |A| &= 1(-2 - 0) + 1(1 - 0) \\ &\quad - 1(1 + 2) \\ &= -2 + 1 - 3 = -4 \ne 0 \end{aligned}
Why?

Expand along the first row, with the signs +,−,++, -, +⁠:

1[(−2)(1)−(0)(1)]−(−1)[(1)(1)−(0)(1)]+(−1)[(1)(1)−(−2)(1)]\begin{aligned} &1\big[(-2)(1) - (0)(1)\big] \\ &- (-1)\big[(1)(1) - (0)(1)\big] \\ &+ (-1)\big[(1)(1) - (-2)(1)\big] \end{aligned}

Each 2×22 \times 2 determinant is (top left)(bottom right) minus (top right)(bottom left):

∣−2011∣=(−2)(1)−(0)(1)=−2−0=−2∣1011∣=(1)(1)−(0)(1)=1−0=1∣1−211∣=(1)(1)−(−2)(1)=1+2=3\begin{aligned} \begin{vmatrix} -2 & 0 \\ 1 & 1 \end{vmatrix} &= (-2)(1) - (0)(1) \\ &= -2 - 0 = -2 \\[4pt] \begin{vmatrix} 1 & 0 \\ 1 & 1 \end{vmatrix} &= (1)(1) - (0)(1) \\ &= 1 - 0 = 1 \\[4pt] \begin{vmatrix} 1 & -2 \\ 1 & 1 \end{vmatrix} &= (1)(1) - (-2)(1) \\ &= 1 + 2 = 3 \end{aligned}

Multiply by the entries and their signs, then add:

1(−2)=−2−(−1)(1)=+1(−1)(3)=−3−2+1=−1−1−3=−4\begin{aligned} 1(-2) &= -2 \\ -(-1)(1) &= +1 \\ (-1)(3) &= -3 \\[4pt] -2 + 1 &= -1 \\ -1 - 3 &= -4 \end{aligned}

Watch out: the middle entry is −1-1⁠, so its term −(−1)[… ]-(-1)[\dots] becomes +1(1−0)+1(1 - 0)⁠.

So A−1A^{-1} exists, and the system has a unique solution X=A−1BX = A^{-1}B⁠.

Why?

A square matrix has an inverse exactly when its determinant is not zero. Multiplying AX=BAX = B on the left by A−1A^{-1} gives X=A−1BX = A^{-1}B⁠, so there is exactly one solution.

Cofactors: A11=−2A_{11} = -2⁠, A12=−1A_{12} = -1⁠, A13=3A_{13} = 3⁠, A21=0A_{21} = 0⁠, A22=2A_{22} = 2⁠, A23=−2A_{23} = -2⁠, A31=−2A_{31} = -2⁠, A32=−1A_{32} = -1⁠, A33=−1A_{33} = -1⁠.

Why?

The cofactor is Aij=(−1)i+jMijA_{ij} = (-1)^{i + j}M_{ij}⁠, where the minor MijM_{ij} is the determinant left after deleting row ii and column jj⁠. The signs (−1)i+j(-1)^{i + j} follow the pattern

[+−+−+−+−+]  on  A=[1−1−11−20111]\begin{bmatrix} + & - & + \\ - & + & - \\ + & - & + \end{bmatrix}\ \text{ on }\ A = \begin{bmatrix} 1 & -1 & -1 \\ 1 & -2 & 0 \\ 1 & 1 & 1 \end{bmatrix}

Row 1 (cover row 1 and one column each time):

A11=+∣−2011∣=+((−2)(1)−(0)(1))=+(−2−0)=−2A12=−∣1011∣=−((1)(1)−(0)(1))=−(1−0)=−1A13=+∣1−211∣=+((1)(1)−(−2)(1))=+(1+2)=3\begin{aligned} A_{11} &= +\begin{vmatrix} -2 & 0 \\ 1 & 1 \end{vmatrix} \\ &= +\big((-2)(1) - (0)(1)\big) \\ &= +(-2 - 0) = -2 \\[4pt] A_{12} &= -\begin{vmatrix} 1 & 0 \\ 1 & 1 \end{vmatrix} \\ &= -\big((1)(1) - (0)(1)\big) \\ &= -(1 - 0) = -1 \\[4pt] A_{13} &= +\begin{vmatrix} 1 & -2 \\ 1 & 1 \end{vmatrix} \\ &= +\big((1)(1) - (-2)(1)\big) \\ &= +(1 + 2) = 3 \end{aligned}

Row 2 (cover row 2):

A21=−∣−1−111∣=−((−1)(1)−(−1)(1))=−(−1+1)=−(0)=0A22=+∣1−111∣=+((1)(1)−(−1)(1))=+(1+1)=2A23=−∣1−111∣=−((1)(1)−(−1)(1))=−(1+1)=−2\begin{aligned} A_{21} &= -\begin{vmatrix} -1 & -1 \\ 1 & 1 \end{vmatrix} \\ &= -\big((-1)(1) - (-1)(1)\big) \\ &= -(-1 + 1) = -(0) = 0 \\[4pt] A_{22} &= +\begin{vmatrix} 1 & -1 \\ 1 & 1 \end{vmatrix} \\ &= +\big((1)(1) - (-1)(1)\big) \\ &= +(1 + 1) = 2 \\[4pt] A_{23} &= -\begin{vmatrix} 1 & -1 \\ 1 & 1 \end{vmatrix} \\ &= -\big((1)(1) - (-1)(1)\big) \\ &= -(1 + 1) = -2 \end{aligned}

Row 3 (cover row 3):

A31=+∣−1−1−20∣=+((−1)(0)−(−1)(−2))=+(0−2)=−2A32=−∣1−110∣=−((1)(0)−(−1)(1))=−(0+1)=−1A33=+∣1−11−2∣=+((1)(−2)−(−1)(1))=+(−2+1)=−1\begin{aligned} A_{31} &= +\begin{vmatrix} -1 & -1 \\ -2 & 0 \end{vmatrix} \\ &= +\big((-1)(0) - (-1)(-2)\big) \\ &= +(0 - 2) = -2 \\[4pt] A_{32} &= -\begin{vmatrix} 1 & -1 \\ 1 & 0 \end{vmatrix} \\ &= -\big((1)(0) - (-1)(1)\big) \\ &= -(0 + 1) = -1 \\[4pt] A_{33} &= +\begin{vmatrix} 1 & -1 \\ 1 & -2 \end{vmatrix} \\ &= +\big((1)(-2) - (-1)(1)\big) \\ &= +(-2 + 1) = -1 \end{aligned}

Watch out for the sign pattern: + − ++\ -\ + in rows 1 and 3, and − + −-\ +\ - in row 2.

adj A=[−20−2−12−13−2−1]\text{adj}\,A = \begin{bmatrix} -2 & 0 & -2 \\ -1 & 2 & -1 \\ 3 & -2 & -1 \end{bmatrix}
Why?

adj A\text{adj}\,A is the transpose of the matrix of cofactors: the cofactors of row 11 are written down column 11⁠, and so on.

A11,A12,A13=−2, −1, 3→col 1A21,A22,A23=0, 2, −2→col 2A31,A32,A33=−2, −1, −1→col 3\begin{aligned} A_{11}, A_{12}, A_{13} &= -2,\ -1,\ 3 \to \text{col } 1 \\ A_{21}, A_{22}, A_{23} &= 0,\ 2,\ -2 \to \text{col } 2 \\ A_{31}, A_{32}, A_{33} &= -2,\ -1,\ -1 \to \text{col } 3 \end{aligned}
A−1=1∣A∣ adj A=14[2021−21−321]\begin{aligned} A^{-1} &= \frac{1}{|A|}\,\text{adj}\,A \\ &= \frac14\begin{bmatrix} 2 & 0 & 2 \\ 1 & -2 & 1 \\ -3 & 2 & 1 \end{bmatrix} \end{aligned}
Why?

1∣A∣=−14\frac{1}{|A|} = -\frac14⁠. Writing it as 14\frac14 times −1-1⁠, the −1-1 changes the sign of every entry of adj A\text{adj}\,A⁠.

A−1=−14[−20−2−12−13−2−1]=14[2021−21−321]\begin{aligned} A^{-1} &= -\frac14\begin{bmatrix} -2 & 0 & -2 \\ -1 & 2 & -1 \\ 3 & -2 & -1 \end{bmatrix} \\ &= \frac14\begin{bmatrix} 2 & 0 & 2 \\ 1 & -2 & 1 \\ -3 & 2 & 1 \end{bmatrix} \end{aligned}
X=A−1B=14[2021−21−321][0−40180]=14[360260100]=[906525]\begin{aligned} X &= A^{-1}B \\ &= \frac14\begin{bmatrix} 2 & 0 & 2 \\ 1 & -2 & 1 \\ -3 & 2 & 1 \end{bmatrix}\begin{bmatrix} 0 \\ -40 \\ 180 \end{bmatrix} \\ &= \frac14\begin{bmatrix} 360 \\ 260 \\ 100 \end{bmatrix} = \begin{bmatrix} 90 \\ 65 \\ 25 \end{bmatrix} \end{aligned}
Why?

Multiply each row by the column BB⁠, entry by entry, and add:

0+0+360=3600+80+180=2600−80+180=100\begin{aligned} 0 + 0 + 360 &= 360 \\ 0 + 80 + 180 &= 260 \\ 0 - 80 + 180 &= 100 \end{aligned}

Each row in full, products first:

Row 1: (2)(0)+(0)(−40)+(2)(180)=0+0+360=360Row 2: (1)(0)+(−2)(−40)+(1)(180)=0+80+180=260Row 3: (−3)(0)+(2)(−40)+(1)(180)=0−80+180=100\begin{aligned} &\text{Row 1: } (2)(0) + (0)(-40) + (2)(180) \\ &= 0 + 0 + 360 = 360 \\[4pt] &\text{Row 2: } (1)(0) + (-2)(-40) + (1)(180) \\ &= 0 + 80 + 180 = 260 \\[4pt] &\text{Row 3: } (-3)(0) + (2)(-40) + (1)(180) \\ &= 0 - 80 + 180 = 100 \end{aligned}

Then divide each by 44⁠.

3604=902604=651004=25\begin{aligned} \frac{360}{4} &= 90 \\ \frac{260}{4} &= 65 \\ \frac{100}{4} &= 25 \end{aligned}

So x=90x = 90⁠, y=65y = 65 and z=25z = 25⁠.

Why?

Check with the conditions: 65+25=9065 + 25 = 90⁠; half of 9090 is 4545⁠, and 45+20=6545 + 20 = 65⁠; 90+65+25=18090 + 65 + 25 = 180⁠.

x−y−z=90−65−25=25−25=0 ✓x−2y=90−2(65)=90−130=−40 ✓x+y+z=90+65+25=155+25=180 ✓\begin{aligned} x - y - z &= 90 - 65 - 25 \\ &= 25 - 25 = 0\ \checkmark \\[4pt] x - 2y &= 90 - 2(65) \\ &= 90 - 130 = -40\ \checkmark \\[4pt] x + y + z &= 90 + 65 + 25 \\ &= 155 + 25 = 180\ \checkmark \end{aligned}

∴\therefore The numbers of students allocated to Sports, Music and Drama are 90, 65 and 25 respectively.

Where this comes from

Chapter 4, Determinants: System of linear equations by the matrix method.

Question type: Solve equations by the matrix method

How to spot it: click to see

Type 9. Solve equations by the matrix method

Spot it: "solve, using the matrix method", with two or three equations. A word problem (prices, three numbers) is the same: write the equations first.

Here: A word problem: Sports xx⁠, Music yy⁠, Drama zz give x−y−z=0x - y - z = 0⁠, x−2y=−40x - 2y = -40⁠, x+y+z=180x + y + z = 180⁠. Then ∣A∣=−4≠0|A| = -4 \ne 0⁠, find adj⁡A\operatorname{adj}A⁠, and X=A−1BX = A^{-1}B gives 90, 65 and 25.

Also uses Chapter 3, Matrices.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →