1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matrices - 3 part problem

  1. Apr 3, 2009 #1
    I don't know if this is the correct place to post this thread, but I have come across a few problems which I do not know how to approach.

    1. A shop sells TVs at $300, DVDs at $20 and Radios at $50. Put these into a row matrix.
    Here is what I did:
    Code (Text):
    300
    20
    50
    Is this correct? Should it be [300, 20, 50] (horizontally, if it matters)?

    2. On Monday they sell 5 TVs, 2 DVDs and 3 Radios.
    On Tuesday they sell 7 TVs, 3 DVDs, and 2 Radios.
    On Wednesday they sell 5 TVs, 6 DVDs and 4 Radios.
    Set out the costs and the quantities into 2 matrices.
    Here is what I did:
    Code (Text):

    300      5  7  5
    20       2  3  6
    50       3  2  4
    3. Calculate the product of the cost and quantity matrices to form the income matrix.
    Should I multiply them? Use dot product?
     
  2. jcsd
  3. Apr 3, 2009 #2
    For part 1, no it is not correct. What you have written is a column matrix. Your other suggestion is correct.

    Have you done matrix multiplication before? You cannot multiply a 3x1 matrix and a 3x3 matrix. However, you can multiply a 1x3 and a 3x3. That is why it matters whether your write a row or a column matrix.
     
  4. Apr 3, 2009 #3
    I've multiplied 2 2x2 matrices before. So it is okay for me to multiply [300, 20, 50] with the 3x3 matrix?

    How about questions 2 and 3? Is my 3x3 matrix correct or should the numbers be in a different order?
     
  5. Apr 3, 2009 #4

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    Well, if you are multiplying with "price matrix" on the left, then it must be a row matrix:
    [tex]\begin{bmatrix} 300 & 20 & 50\end{bmatrix}\begin{bmatrix}5 & 7 & 5 \\ 2 & 3 & 6 \\ 3 & 2 & 4\end{bmatrix}[/tex]

    If you choose, instead, to multiply with price on the right, then it would be a column matrix, but also with the transpose of the price matrix:
    [tex]\begin{bmatrix}5 & 2 & 3 \\ 7 & 3 & 2 \\ 5 & 6 & 4\end{bmatrix}\begin{bmatrix} 300 \\ 20 \\ 50\end{bmatrix}[/tex]

    Edit:
    It occurs to me after writing this that how you set the matrix multiplication up depends on what, exactly, "income matrix" means. Is it income summed over different kinds of product per day or summed over the three different days per kind of product.

    The total would be either of those "dot product" [1 1 1].
     
    Last edited: Apr 3, 2009
  6. Apr 3, 2009 #5
    Your first suggestion is what I'm going to go with I think as it seems to fit the question.
    However, is my 3x3 matrix okay? Is the order of the values like this...
    Code (Text):

    5  7  5
    2  3  6
    3  2  4

    ...okay, or should it be:

    5  2  3
    7  3  2
    5  6  4
     
    It doesn't specify whether it is the total income or just the income per day, but since the question prior to the last asks me to create a matrix to hold all the income of the 3 days then I guess it would be logical to calculate the total. You say that I must use the dot product on the two matrices? Why would this be?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Matrices - 3 part problem
  1. Matrices & word problem (Replies: 11)

  2. Matrices problem (Replies: 7)

Loading...