// Numbas version: exam_results_page_options {"name": "Alex's copy of Simon's copy of Find eigenvalues and eigenvectors of matrices, and power of one matrix", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "advice": "

a)

\n

Matrix $A$

\n

\\[A - \\lambda I_2 = \\begin{pmatrix} \\var{a11}-\\lambda & \\var{a12}\\\\ \\var{a21} & \\var{a22}-\\lambda \\end{pmatrix}\\]
Hence the characteristic polynomial $p(\\lambda)$ is: \\[\\begin{eqnarray*} \\mathrm{det}\\left(A-\\lambda I_2 \\right)&=&\\simplify[zeroTerm]{({a11}-lambda)({a22}-lambda)-{a12}*{a21}}\\\\ &=& \\simplify[std]{lambda^2-{trA}*lambda+{dA}}\\\\ &=&\\simplify[std]{(lambda-{a})(lambda-{b})} \\end{eqnarray*} \\]
We see that on solving $p(\\lambda)=0$ we get the eigenvalues:
\\[\\lambda_1=\\var{mnA},\\;\\;\\;\\lambda_2=\\var{mxA}\\]
Note: We could have found the characteristic polynomial by noting that for a 2 × 2 matrix $A$ then the characteristic polynomial is
\\[\\lambda^2-\\mathrm{trace}(A)+\\mathrm{det}(A)\\]
where $\\mathrm{trace}(A) = \\var{trA},\\;\\;\\;\\mathrm{det}(A)=\\var{dA}$

\n

b)

\n

Finding the eigenvectors:

\n

1. $\\lambda=\\var{mnA}$

\n

We have the eigenspace is given by all $v=(x,y)$ such that $(\\simplify{A-{mnA}}I_2)v=(0,0)$ i.e.

\n

\\[\\begin{pmatrix} \\var{a11-mnA}&\\var{a12}\\\\ \\var{a21}&\\var{a22-mnA} \\end{pmatrix}\\begin{pmatrix} x \\\\ y \\end{pmatrix} =\\begin{pmatrix} 0 \\\\ 0 \\end{pmatrix}\\]

\n

This gives the two equations:

\n

\\[ \\begin{eqnarray*} \\simplify[std]{{a11-mnA}x + {a12}y}&=&0\\\\ \\simplify[std]{{a21}x + {a22-mnA}y}&=&0 \\end{eqnarray*} \\]
There is only one equation here as we see that the equations are the same (one is a multiple of the other).

\n

So putting $x=1$ in the first equation we get $y_1=\\var{-s*(a11-mnA)}$

\n

Hence the eigenvector we want is \\[\\begin{pmatrix} 1 \\\\ \\var{-s*(a11-mnA)} \\end{pmatrix}\\]

\n

2. $\\lambda=\\var{mxA}$

\n

In this case we have the equations:

\n

\\[ \\begin{eqnarray*} \\simplify[std]{{a11-mxA}x + {a12}y}&=&0\\\\ \\simplify[std]{{a21}x + {a22-mxA}y}&=&0 \\end{eqnarray*} \\]

\n

Once again there is only one equation, so putting $x=1$ in the first equation we get $y_2=\\var{-s*(a11-mxA)}$

\n

Hence the eigenvector we want is \\[\\begin{pmatrix} 1 \\\\ \\var{-s*(a11-mxA)} \\end{pmatrix}\\]

", "name": "Alex's copy of Simon's copy of Find eigenvalues and eigenvectors of matrices, and power of one matrix", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "functions": {}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Find the eigenvalues and eigenvectors for the matrix $A$ where:
\\[ A=\\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22} \\end{pmatrix}\\;\\;\\;\\;\\;\\]

", "parts": [{"gaps": [{"minValue": "{mnA}", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "type": "numberentry", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "marks": 1, "variableReplacements": [], "maxValue": "{mnA}", "scripts": {}}, {"minValue": "{mxA}", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "type": "numberentry", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "marks": 1, "variableReplacements": [], "maxValue": "{mxA}", "scripts": {}}], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "type": "gapfill", "scripts": {}, "prompt": "

Find the eigenvalues of $A$.

\n

Let $a_1$ be the least eigenvalue of $A,\\;\\;\\; a_1=\\;\\;$[[0]]

\n

Let $a_2$ be the greatest eigenvalue of $A,\\;\\; a_2=\\;\\;$[[1]]

"}, {"gaps": [{"minValue": "{s*(mnA-a11)}", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "type": "numberentry", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "marks": 1, "variableReplacements": [], "maxValue": "{s*(mnA-a11)}", "scripts": {}}, {"minValue": "{s*(mxA-a11)}", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "type": "numberentry", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "marks": 1, "variableReplacements": [], "maxValue": "{s*(mxA-a11)}", "scripts": {}}], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "type": "gapfill", "scripts": {}, "prompt": "

Find eigenvectors for $A$.

\n

Let $(1,y_1)$ be an eigenvector corresponding to $a_1,\\;\\;\\;\\;y_1=\\;\\;$[[0]]

\n

Let $(1,y_2)$ be an eigenvector corresponding to $a_2,\\;\\;\\;\\;y_2=\\;\\;$[[1]]

"}], "variables": {"that": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "if(mxB<0,mxB+random(1..6),mxB-random(1..6))", "name": "that"}, "test": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-8..8)", "name": "test"}, "x1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "s*(b22-mnB)", "name": "x1"}, "a1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-8..8)", "name": "a1"}, "a12": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "s", "name": "a12"}, "mxa": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "max(a,b)", "name": "mxa"}, "a11": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "switch(test=a,this,test=b,this,test)", "name": "a11"}, "a21": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "-s*(a*b-a11*a-a11*b+a11^2)", "name": "a21"}, "s": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1,-1)", "name": "s"}, "c2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-8..8)", "name": "c2"}, "b1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "if(c2=a1,a1+random(1..3),c2)", "name": "b1"}, "this": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "if(mxA<0,mxA+random(1..6),mxA-random(1..6))", "name": "this"}, "b21": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "-s", "name": "b21"}, "mxb": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "max(a1,b1)", "name": "mxb"}, "b11": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "switch(test1=a1,that,test1=b1,that,test1)", "name": "b11"}, "b12": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "s*(a1*b1-b11*a1-b11*b1+b11^2)", "name": "b12"}, "n": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(4,5,6)", "name": "n"}, "b": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "if(c1=a,a+random(1..3),c1)", "name": "b"}, "c1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-8..8)", "name": "c1"}, "a": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-8..8)", "name": "a"}, "b22": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "a1+b1-b11", "name": "b22"}, "cn22": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "mxB^n*x1-mnB^n*x2", "name": "cn22"}, "a22": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "a+b-a11", "name": "a22"}, "cn11": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "mnB^n*x1-mxB^n*x2", "name": "cn11"}, "s1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1,-1)", "name": "s1"}, "x2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "s*(b22-mxB)", "name": "x2"}, "bn22": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "round(s*cn22/f)", "name": "bn22"}, "trb": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{b11+b22}", "name": "trb"}, "test1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-8..8)", "name": "test1"}, "mna": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "min(a,b)", "name": "mna"}, "s2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1,-1)", "name": "s2"}, "bn11": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "round(s*cn11/f)", "name": "bn11"}, "bn12": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "round(s*cn12/f)", "name": "bn12"}, "da": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{a11*a22-a12*a21}", "name": "da"}, "f": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "abs(x1-x2)", "name": "f"}, "cn12": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "x1*x2*(mxB^n-mnB^n)", "name": "cn12"}, "bn21": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "round(s*cn21/f)", "name": "bn21"}, "db": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{b11*b22-b12*b21}", "name": "db"}, "cn21": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "mnB^n-mxB^n", "name": "cn21"}, "tra": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{a11+a22}", "name": "tra"}, "mnb": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "min(a1,b1)", "name": "mnb"}}, "ungrouped_variables": ["test1", "a21", "a22", "bn22", "bn21", "b22", "b21", "b1", "cn11", "mna", "mnb", "cn12", "s2", "s1", "a12", "b12", "b11", "test", "cn21", "cn22", "a11", "that", "db", "bn12", "bn11", "da", "a1", "x2", "c2", "c1", "x1", "mxb", "mxa", "a", "b", "f", "tra", "trb", "n", "this", "s"], "metadata": {"description": "

$A,\\;B$ $2 \\times 2$ matrices. Find eigenvalues and eigenvectors of both. Hence or otherwise, find $B^n$ for largish $n$.

", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "preamble": {"css": "", "js": ""}, "type": "question", "contributors": [{"name": "Alex Van den Hof", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1273/"}]}]}], "contributors": [{"name": "Alex Van den Hof", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1273/"}]}