Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Exercise 3.2 · Q21 (MCQ): When is PY+WYPY+WY defined?

Exercise 3.2Orders of sums and products · Section 3.4
The question

Assume X, Y, Z, W and P are matrices of order 2×n2\times n⁠, 3×k3\times k⁠, 2×p2\times p⁠, n×3n\times3 and p×kp\times k⁠, respectively.

The restriction on nn⁠, kk and pp so that PY+WYPY + WY will be defined are:

(A) k=3k = 3⁠, p=np = n
(B) kk is arbitrary, p=2p = 2
(C) pp is arbitrary, k=3k = 3
(D) k=2k = 2⁠, p=3p = 3

Exam answer

PYPY is defined only if columns of PP = rows of YY⁠, so k=3k = 3⁠. Then PYPY is of order p×3p\times3⁠.

WYWY is (n×3)(3×k)(n\times3)(3\times k)⁠, of order n×3n\times3⁠.

The sum needs equal orders, so p=np = n⁠.

Answer: (A) k=3k = 3⁠, p=np = n

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Two rules decide everything. A product UVUV is defined only when the number of columns of UU equals the number of rows of VV⁠, and then UVUV has the rows of UU and the columns of VV⁠. A sum is defined only when both terms have the same order. So: make PYPY defined, make WYWY defined, then make their orders equal.

Given, to find, and the plan
Given
PP is p×kp\times k⁠, YY is 3×k3\times k⁠, WW is n×3n\times3⁠. (XX and ZZ are not involved.)
To find
The conditions on nn⁠, kk⁠, pp under which PY+WYPY + WY is defined.
Plan
(1) Condition for PYPY and its order. (2) Condition for WYWY and its order. (3) Condition for the sum. (4) Combine, and examine every option.

Basics you need

1When a product exists

UVUV is defined when (columns of UU⁠) = (rows of VV⁠). If UU is m×nm\times n and VV is n×qn\times q⁠, then UVUV is m×qm\times q⁠. Basics: pair up, multiply, add

2When a sum exists

U+VU + V is defined only when UU and VV have the same order, and then it has that order. Basics: adding only like with like

3Order "rows × columns"

An m×nm\times n matrix has mm rows and nn columns; the first number is always the rows. Basics: rows, columns and addresses

Solution

  1. When is PYPY defined, and what is its order?

    PP is p×kp\times k⁠, so it has kk columns. YY is 3×k3\times k⁠, so it has 3 rows. The product PYPY needs

    columns of P=rows of Y,\text{columns of } P = \text{rows of } Y,

    that is, k=3k = 3⁠.

    When k=3k = 3⁠, PYPY has the rows of PP and the columns of YY⁠: it is of order p×kp\times k⁠, that is, p×3p\times3⁠.

    Each entry of PYPY pairs a row of PP (which has kk entries) with a column of YY (which has 3 entries). The pairing only works if the two lengths are equal, so k=3k = 3 is forced.
    (m×n)(n×q)=m×q(m\times n)(n\times q) = m\times q⁠; the inner numbers must match. Lesson: matrix multiplication
  2. When is WYWY defined, and what is its order?

    WW is n×3n\times3⁠, so it has 3 columns; YY has 3 rows. These always match, so WYWY is defined for every nn and kk⁠, and its order is n×kn\times k⁠.

    Here the inner numbers are both 3 by the way the orders were given, so WYWY imposes no condition at all.
  3. When is the sum PY+WYPY + WY defined?

    From Steps 1 and 2, PYPY is p×kp\times k and WYWY is n×kn\times k⁠. A sum needs equal orders:

    p×k=n×k  ⟺  p=n.p\times k = n\times k \iff p = n.

    (The column counts are both kk⁠, so they already agree; only the row counts can differ.)

    PY: (p×k) (3×k) must match: k = 3 gives p × k WY: (n×3) (3×k) always match gives n × k The sum needs p × k = n × k, so p = n.
    For a product the inner numbers must match; the outer numbers give the order of the result. PYPY forces k=3k = 3⁠; WYWY is always defined; the sum forces p=np = n⁠.
    Putting the three conditions together: PY+WYPY + WY is defined exactly when k=3k = 3 and p=np = n⁠. Both are needed, and together they are enough, since then PYPY and WYWY are both n×3n\times3⁠.
    Matrices of different orders cannot be added. Lesson: addition of matrices
  4. Examine every option

    OptionClaimVerdict
    (A)k=3k = 3⁠, p=np = nCorrect. Exactly the two conditions from Steps 1 and 3; with them, both products are n×3n\times3 and the sum is defined.
    (B)kk arbitrary, p=2p = 2Wrong. If k≠3k \ne 3⁠, say k=4k = 4⁠, then PP has 4 columns but YY has 3 rows, so PYPY is not defined. Also p=2p = 2 does not give p=np = n unless nn happens to be 2.
    (C)pp arbitrary, k=3k = 3Wrong. k=3k = 3 makes both products defined, but PYPY is p×3p\times3 and WYWY is n×3n\times3⁠. For example p=1p = 1⁠, n=2n = 2 gives orders 1×31\times3 and 2×32\times3⁠, which cannot be added.
    (D)k=2k = 2⁠, p=3p = 3Wrong. With k=2k = 2⁠, PP has 2 columns but YY has 3 rows, so PYPY is not defined.
    To reject an option, one choice of values allowed by that option for which PY+WYPY + WY fails is enough; the table gives one for each wrong option.
Result

The correct answer is (A): PY+WYPY + WY is defined exactly when k=3k = 3 and p=np = n⁠. (Textbook answer: A.)

Check it with numbers

Take n=p=2n = p = 2 and k=3k = 3⁠: PP is 2×32\times3⁠, YY is 3×33\times3⁠, WW is 2×32\times3⁠. Then PYPY is 2×32\times3 and WYWY is 2×32\times3⁠, and the sum is a 2×32\times3 matrix ✓ (the verification script multiplies and adds actual matrices of these sizes). Now change only pp to 1: PYPY becomes 1×31\times3 while WYWY stays 2×32\times3⁠, and the sum fails ✓. Change only kk to 4: PP is 2×42\times4 and YY is 3×43\times4⁠, and PYPY fails ✓.

Common mistakes
  1. Matching the wrong numbers. For PYPY compare the columns of PP with the rows of YY (the inner numbers kk and 3), not the two kk's.
  2. Stopping after the products. Both products can exist and the sum can still fail; (C) is the trap for this.
  3. Reading the order backwards. n×3n\times3 means nn rows and 3 columns.
What to take away
  1. Product: inner numbers must match, outer numbers give the result. Sum: orders must be identical.
  2. For an expression with several operations, check each operation in turn, using the orders of the intermediate results.
  3. The next question, Exercise 3.2 Q22, uses the same orders for 7X−5Z7X - 5Z⁠.

Every fact used, and where it comes from

FactUsed inSource
Order m×nm\times n⁠: mm rows, nn columnsSteps 1, 2Section 3.2.1 (Lesson: what a matrix is)
UVUV defined when columns of UU = rows of VV⁠; (m×n)(n×q)=m×q(m\times n)(n\times q) = m\times qSteps 1, 2, 4Section 3.4.5 (Lesson: multiplication)
Sum defined only for matrices of the same orderSteps 3, 4Section 3.4.1 and its Note
Orders and the counterexamplesStep 4, CheckRecomputed in the site's verification script with actual matrices
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →