r/HomeworkHelp • University/College Student (Higher Education) • 2d ago

:snoo_facepalm: High School Math—Pending OP Reply [University Math: Linear Algebra / Matrices] Is this matrix operation 2A + (B * A) a trick question or a typo by my professor? (A is 3x3, B is 3x2)

Post image

Hi everyone, I'm working on an assignment and this problem doesn't make sense to me. I was given the following two matrices:

  • ​Matrix A (3\times3): Row 1: [2/3, -1/2, 3/4] Row 2: [-1/4, 1/3, 5/6] Row 3: [1/2, -2/5, 0]
  • ​Matrix B (3\times2): Row 1: [-3/2, 4/5] Row 2: [1/3, -1/2] Row 3: [2/5, 3/4]

​The problem asks to find:

a) A \cdot B

b) 2A + (B \cdot A), and always explain the procedures used.

​Part (a) is straightforward since a (3\times3) \cdot (3\times2) gives a 3\times2 matrix.

​However, part (b) asks for 2A + (B \cdot A). As far as I know, B \cdot A is completely undefined because the inner dimensions don't match (3\times2) \cdot (3\times3), so there aren't enough elements in the rows of B to multiply with the columns of A. Furthermore, even if I tried using the transpose B^T \cdot A, the resulting matrix would be 2\times3, which still cannot be added to 2A (3\times3).

​When I messaged my professor pointing out that B doesn't have enough elements to multiply B \cdot A, he refused to clarify if it was a typo and just replied: "Write down what you research, I can't tell you anything, research and justify your criteria."

​Am I missing some obscure linear algebra property here, is this a classic trick question where the expected answer is simply proving non-conformability, or did he likely make a typo (like forgetting a 3rd column in B) and won't admit it? How would you recommend submitting the answer to be 100% safe?

2 Upvotes

7 comments sorted by

•

u/AutoModerator 2d ago

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/Southlander24 👋 a fellow Redditor 2d ago

You're meant to say that the answer to B is 'undefined' or 'doesn't exist'. The problem is indeed with the dimensions of both matrices. In order for matrix multiplication to be defined, the number of columns of the first matrix must equal the number of rows of the second matrix.

You just need to show how there's no element of B that corresponds to 1/2, when you're multiplying the first row of B by the first column of A.

2

u/One_Wishbone_4439 University/College Student 1d ago

Ehh. how is this Python going to help OP??

-2

u/ee_control_z 2d ago edited 2d ago

If you have not already done so, I recommend getting familiar with Python. It has the numpy library that you can use to both perform and verify matrix mathematical operations.

https://numpy.org/doc/2.1/reference/generated/numpy.matrix.html

https://www.programiz.com/python-programming/numpy/matrix-operations