Ask Experts Questions for FREE Help !
Ask
    lemon14's Avatar
    lemon14 Posts: 143, Reputation: 9
    Junior Member
     
    #1

    Oct 29, 2011, 11:43 AM
    Matrix - calculate A^n
    Given the matrix:


    Calculate:

    Solution:














    ... and here I get stuck. How should I calculate from ?
    lemon14's Avatar
    lemon14 Posts: 143, Reputation: 9
    Junior Member
     
    #2

    Oct 29, 2011, 11:46 AM
    There should have been A^{n+1} and (a_n) + (b_n) instead of (a_n)(b_n). I don't know what went wrong. :|
    jcaron2's Avatar
    jcaron2 Posts: 986, Reputation: 204
    Senior Member
     
    #3

    Oct 31, 2011, 08:51 AM
    Quote Originally Posted by lemon14 View Post



    ...and here I get stuck. How should I calculate from ?

    Consider instead that



    That gives you a recursive relationship to find .

    Getting from there to a closed-form equation for is pretty complicated. I'll give you an abridged version of how I did it:

    First, let's start expanding the nth term into subsequent lower-order terms. Since I'm too lazy to write b's and subscripts over and over again, I'm going to use a boldface italic number m to indicate . For example, 32 means ; 125 means ; etc.

    0 (i.e. )
    22+1
    64+53
    226+215
    868+857
    ...

    There are several things to see here: First, notice that the coefficient on the left is always equal to twice the sum of the two coefficients from the previous line. Second, notice the coefficient on the right is always equal to the sum of the left-hand coefficient from the previous line, plus three times the right-hand coefficient. More importantly, however, notice that the coefficient on the right is also always simply one less than the one on the left. Finally, notice that if we continue this process as far as we can go (about n/2 iterations), we're eventually going to end up with terms containing either and or and , depending whether n is odd or even, respectively. Either way, we know a priori that , , and . So as long as we can find the coefficients, we can calculate the value of .

    As I said before, each coefficient on the left is equal to twice the sum of the coefficients from the previous line. Therefore it seems like our formula is going to be some convoluted recursive combination of coefficient pairs. However, things are greatly simplified by the fact that the coefficient on the right is always one less than the one on the left. So if we call our right-hand coefficient a, our left-hand coefficient is always a+1. Adopting this notation instead, let's repeat our expansion from above:

    (a+1)2 + a1
    (4a+2)4 + (4a+1)3
    (16a+6)6 + (16a+5)5
    (64a+22)8 + (64a+21)7
    ...

    Now we can see the pattern. The left-hand coefficient is made up of an a term, whose coefficient is simply increasing powers of 4, and a constant term whose value is a sum of powers of 4 (1+4+16+64+... ). The right-hand coefficient is, as always, simply one less than that on the left.

    So from that pattern, the fact that a=1 (since ), and our prior knowledge of the values of , , and , we can write down the answer:

    If n is odd:



    And if n is even:



    Furthermore, we can write the sum in closed-form as well using the following identity:



    Thus if n is odd:



    And if n is even:

    lemon14's Avatar
    lemon14 Posts: 143, Reputation: 9
    Junior Member
     
    #4

    Oct 31, 2011, 12:25 PM
    Thank you. I've been struggling to solve it for a few days, but now I'm so happy that I finally see the method. However, I didn't quite catch where you got the expressions from when n is odd / even.
    jcaron2's Avatar
    jcaron2 Posts: 986, Reputation: 204
    Senior Member
     
    #5

    Oct 31, 2011, 02:15 PM
    Quote Originally Posted by lemon14 View Post
    I didn't quite catch where you got the expressions from when n is odd / even.
    Assuming you followed my convoluted logic up to the point of

    (a+1)2 + a1
    (4a+2)4 + (4a+1)3
    (16a+6)6 + (16a+5)5
    (64a+22)8 + (64a+21)7
    ...

    I just sort of empirically wrote down the formula, but I think I can explain it:

    First, in the case that n is odd, this procedure will ultimately boil down to coefficients of and , both of which equal 1. Likewise, a=1 as well.

    So in the odd case, the answer for will be the sum of the left- and right-hand coefficients (without the a's). For example, if n=9, my expansion above goes to completion (there's nothing else after the... ).

    The coefficient in front of the a is on the first line, then on the second line, on the third, and on the last line. Notice also that each subsequent line corresponds to an expansion by two more orders of n. In other words, the left-hand coefficient on the first line corresponds to (a.k.a. 2), then 4 on the next line, then 6, then finally 8. That's as far as we need to go because which is where we stop.

    Since we decrease the order by two on each subsequent line, the total number of lines goes like n/2. To be exact, it's actually (n-1)/2, since we start at n and end at 1.

    As for the power-of-4 term in front of the a's, the power goes up with the number of lines. But the exponent starts at 0, not 1, so the final coefficient ends up being . Since, for the odd case, there are two of these terms which add together (one from the left-hand side and one from the right), we finally end up with .

    Meanwhile, for the "constant" term on the right-hand side of each line, you can see that it's simply a sum of powers of 4, starting on the second line. The term is on line 2, then on line 3, then on line 4. Now, since the coefficients don't start adding up until line 2, there are only (n-3)/2 of them. Plus, given the fact that the first term is to the 0 power, not 1, that means that the highest power on the last line is (n-3)/2 - 1 = (n-5)/2. Thus the constant term on the right-hand side is . The constant from the left-hand side is exactly the same, plus 1. Hence for the odd-n case, the total of the constant terms is .

    For the n-is-even case the logic is pretty similar. The big difference there is that the left-hand term vanishes when we're done because we're down to for that side. Hence only the right-hand side matters.

    Given that, the coefficient of the a term is slightly different. Now we're going from order n to 0 by 2 each time, so there are a total of n/2 lines (instead of (n-1)/2 like in the odd case). It still starts with , so the power of 4 on the last line will be one less than the number of lines: . Meanwhile, the summation term follows the same logic as before except that again there are now n/2 lines, rather than (n-1)/2. This time, as I said before, the left-hand term goes to zero, so the +1 doesn't come into play, and the summation does not get doubled. Hence the constant term is .

    That gets you to the point where I provided the expressions. I assume you followed what I did after that to reach a closed-form expression for the summation using the identity I provided. Hope that helps! If I didn't explain it well, let me know and I'll try to clarify.

    Josh
    jcaron2's Avatar
    jcaron2 Posts: 986, Reputation: 204
    Senior Member
     
    #6

    Oct 31, 2011, 02:34 PM
    By the way, if it wasn't self-evident that , you can either solve for it using the recursive relationship for :









    or you could simply consider that any matrix (including A) raised to the 0 power will result in the identity matrix, wherein all of the off-diagonal terms (i.e. the b's) are 0. Hence .
    lemon14's Avatar
    lemon14 Posts: 143, Reputation: 9
    Junior Member
     
    #7

    Nov 1, 2011, 11:26 AM
    Thanks a lot!
    ebaines's Avatar
    ebaines Posts: 12,131, Reputation: 1307
    Expert
     
    #8

    Nov 1, 2011, 04:23 PM
    This is an amazing thread - thanks lemon14 and JC2!
    jcaron2's Avatar
    jcaron2 Posts: 986, Reputation: 204
    Senior Member
     
    #9

    Nov 1, 2011, 07:36 PM
    Quote Originally Posted by ebaines View Post
    This is an amazing thread - thanks lemon14 and JC2!
    Thanks EB! It was a fun challenge trying to figure this one out.

    I just looked back at this and realized something I should have seen the first time. First, let me rewrite the answers using powers of 2, rather than 4, so that the fraction in the exponent goes away:

    odd:

    even:

    Now distribute the coefficient in front of the parentheses:

    odd:

    even:

    Next take the 2 out of the numerator in the odd case and work it into the exponent (i.e. increment the exponent by 1 to account for it).

    odd:

    even:

    Now combine like terms and factor out the .

    odd:

    even:

    Next work the 4's into the exponent by incrementing it by 2 (since ).

    odd:

    even:

    Finally, since the two formulas only differ by a negative sign, just combine them into one:



    Much simpler!!
    jcaron2's Avatar
    jcaron2 Posts: 986, Reputation: 204
    Senior Member
     
    #10

    Nov 1, 2011, 07:49 PM
    Or if you want to be really, REALLY concise:



    That notation means to round to the closest integer.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Further Matrix [ 7 Answers ]

Really helpful. :) By the way I got this question regarding matrix, If A= X1 = T (transpose) Show that the vectors satisfy the linear equation A X1 = λ1.

Matrix Help [ 0 Answers ]

1)Given a circular matrix A=\begin{bmatrix} a& b& c\\ c& a& b\\ b& c& a \end{bmatrix} B=\begin{bmatrix}

Matrix Question [ 1 Answers ]

Two parts to this question have answered the first part, stuck on this area on how to work out: (Note: Matrix A corresponds to a rotation of the plane through theta radians, about the origin, anticlockwise. ii) Find the matrix power A^3, and thus deduce identities for sin(3theta) and cos(3theta)....

AC comes on and off on toyota matrix [ 2 Answers ]

I have a 2004 Toyota Matrix, 4 cylinder 6 speed. The AC comes on fine, but it won't stay on, it turns on 3 or 4 minutes then off 3 or 4 minutes and so on. I recharged the freon to the correct pressure also. Need help to fix this problem. ...


View more questions Search