// Numbas version: finer_feedback_settings {"name": "Owen's copy of Eigenvalues & eigenvectors of a 2x2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"showFeedbackIcon": true, "marks": 0, "gaps": [{"showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "strictPrecision": false, "maxValue": "lambda1", "type": "numberentry", "variableReplacements": [], "correctAnswerFraction": false, "precisionPartialCredit": 0, "marks": 1, "minValue": "lambda1", "scripts": {}, "precision": 0, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "precisionType": "dp", "allowFractions": false, "correctAnswerStyle": "plain"}, {"showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "strictPrecision": false, "maxValue": "lambda2", "type": "numberentry", "variableReplacements": [], "correctAnswerFraction": false, "precisionPartialCredit": 0, "marks": 1, "minValue": "lambda2", "scripts": {}, "precision": 0, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "precisionType": "dp", "allowFractions": false, "correctAnswerStyle": "plain"}], "prompt": "

Calculate the eigenvalues of the matrix A

\n

\\(\\lambda_1\\) is the lesser of the two eigenvalues and \\(\\lambda_2\\) is the greater of the two eigenvalues;

\n

\\(\\lambda_1\\) = [[0]]

\n

\\(\\lambda_2\\) = [[1]]

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true}, {"showFeedbackIcon": true, "marks": 0, "gaps": [{"showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "strictPrecision": false, "maxValue": "{lambda1}-{a22}", "type": "numberentry", "variableReplacements": [], "correctAnswerFraction": false, "precisionPartialCredit": 0, "marks": 1, "minValue": "{lambda1}-{a22}", "scripts": {}, "precision": 0, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "precisionType": "dp", "allowFractions": false, "correctAnswerStyle": "plain"}, {"showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "strictPrecision": false, "maxValue": "{lambda2}-{a22}", "type": "numberentry", "variableReplacements": [], "correctAnswerFraction": false, "precisionPartialCredit": 0, "marks": 1, "minValue": "{lambda2}-{a22}", "scripts": {}, "precision": 0, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "precisionType": "dp", "allowFractions": false, "correctAnswerStyle": "plain"}], "prompt": "

For the lesser eigenvalue \\(\\lambda_1\\) the corresponding eigenvector is \\(v_1=\\begin{pmatrix}x\\\\ \\var{a21}\\\\ \\end{pmatrix}\\)

\n

Enter the value for \\(x=\\) [[0]]

\n

For the greater eigenvalue \\(\\lambda_2\\) the corresponding eigenvector is \\(v_1=\\begin{pmatrix}x\\\\ \\var{a21}\\\\ \\end{pmatrix}\\)

\n

Enter the value for \\(x=\\) [[1]]

\n

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true}], "ungrouped_variables": ["a11", "c1", "a12", "k", "a21", "a22", "lambda1", "lambda2"], "tags": [], "advice": "

The eigenvalues of a matrix are the values of \\(\\lambda\\) that satisfy the relation

\n

\\(|A-\\lambda I| = 0\\)

\n

\\(\\begin{vmatrix} \\var{a11}-\\lambda&\\var{a12}\\\\ \\var{a21}&\\var{a22}-\\lambda\\\\ \\end{vmatrix}=0\\)

\n

This gives:

\n

\\((\\var{a11}-\\lambda)*(\\var{a22}-\\lambda)-(\\var{a12})*(\\var{a21})=0\\)

\n

\\(\\lambda^2-\\simplify{{a11}+{a22}}\\lambda+\\simplify{{a11}*{a22}-{a21}*{a12}}=0\\)

\n

This can be solved using factorisation or by formula to give:

\n

\\(\\lambda =\\var{lambda1}\\) and \\(\\lambda =\\var{lambda2}\\)

\n

An eigenvector \\(v=\\begin{pmatrix} x\\\\ y\\\\ \\end{pmatrix}\\) corresponding to an eigenvalue \\(\\lambda\\) must satisfy the relation:  \\((A-\\lambda I)v = 0\\)

\n

so for \\(\\lambda=\\var{lambda1}\\)  

\n

\\(\\begin{pmatrix} \\simplify{{a11}-{lambda1}}&\\var{a12}\\\\ \\var{a21}&\\simplify{{a22}-{lambda1}}\\\\ \\end{pmatrix}\\begin{pmatrix} x\\\\ \\var{a21}\\\\ \\end{pmatrix}=0\\)           

\n

thus

\n

\\(\\var{a21}x+\\simplify{{a22}-{lambda1}}*\\var{a21}=0\\)

\n

\\(\\var{a21}x=-\\simplify{({a22}-{lambda1})*{a21}}\\)

\n

\\(x=-\\simplify{({a22}-{lambda1})}\\)

\n

", "variable_groups": [], "statement": "

Given the matrix

\n

\\(A =\\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\)

", "variables": {"c1": {"group": "Ungrouped variables", "description": "", "definition": "random(14..20#1)", "templateType": "randrange", "name": "c1"}, "a22": {"group": "Ungrouped variables", "description": "", "definition": "{k}*{a21}+{c1}", "templateType": "anything", "name": "a22"}, "a21": {"group": "Ungrouped variables", "description": "", "definition": "random(1..5#1)", "templateType": "randrange", "name": "a21"}, "k": {"group": "Ungrouped variables", "description": "", "definition": "random(1..6#1)", "templateType": "randrange", "name": "k"}, "lambda1": {"group": "Ungrouped variables", "description": "", "definition": "min({c1},{a11}+{a22}-{c1})", "templateType": "anything", "name": "lambda1"}, "lambda2": {"group": "Ungrouped variables", "description": "", "definition": "max({c1},{a11}+{a22}-{c1})", "templateType": "anything", "name": "lambda2"}, "a11": {"group": "Ungrouped variables", "description": "", "definition": "random(1..10#1)", "templateType": "randrange", "name": "a11"}, "a12": {"group": "Ungrouped variables", "description": "", "definition": "k*(a11-c1)", "templateType": "anything", "name": "a12"}}, "rulesets": {}, "functions": {}, "metadata": {"description": "

This question concerns the evaluation of the eigenvalues and corresponding eigenvectors of a 2x2 matrix.

", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Owen's copy of Eigenvalues & eigenvectors of a 2x2", "type": "question", "contributors": [{"name": "Owen Jepps", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1195/"}]}]}], "contributors": [{"name": "Owen Jepps", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1195/"}]}