// Numbas version: finer_feedback_settings {"name": "Question 4 MATH 6005 Assessment 1 Determinant and Inverse of 2x2 matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Find the determinant and inverse of three $2 \\times 2$ invertible matrices.
"}, "functions": {"inverse": {"parameters": [["m", "matrix"]], "definition": "matrix([\n [m[1][1],-m[0][1]],\n [-m[1][0],m[0][0]]\n])/det(m)", "type": "matrix", "language": "jme"}}, "variable_groups": [{"name": "Matrix A", "variables": ["a11", "a12", "a21", "a22", "a"]}, {"name": "Matrix B", "variables": ["b11", "b12", "b21", "b22", "b"]}, {"name": "Matrix C", "variables": ["c11", "c12", "c21", "c22", "c"]}], "preamble": {"css": "", "js": ""}, "ungrouped_variables": [], "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "Do the following matrix problems.
", "name": "Question 4 MATH 6005 Assessment 1 Determinant and Inverse of 2x2 matrices", "advice": "The determinant of a matrix $\\mathrm{M} = \\begin{pmatrix} a&b \\\\ c&d \\end{pmatrix}$ is given by
\n\\[ \\det\\left(\\mathrm{M}\\right) = ad-bc \\]
\nIf we have two $n \\times n$ matrices $M$ and $N$, then
\n\\[ \\det\\left(\\mathrm{MN}\\right) = \\det\\left(\\mathrm{M}\\right)\\det\\left(\\mathrm{N}\\right) \\]
\nAnd it follows that if we have a third matrix $P$,
\n\\[ \\det\\left(\\mathrm{MNP}\\right) = \\det\\left(\\mathrm{M}\\right)\\det\\left(\\mathrm{N}\\right)\\det\\left(\\mathrm{P}\\right) \\]
\nThus for our example we have:
\n\\begin{align}
\\det\\left(\\mathrm{A}\\right) &= \\simplify[]{{a11}*{a22}-{a12}*{a21} = {det(a)}} \\\\
\\det\\left(\\mathrm{B}\\right) &= \\simplify[]{{b11}*{b22}-{b12}*{b21} = {det(b)}} \\\\
\\det\\left(\\mathrm{C}\\right) &= \\simplify[]{{c11}*{c22}-{c12}*{c21} = {det(c)}}
\\end{align}
\\begin{align}
\\det\\left( \\mathrm{ABC} \\right) &= \\det(\\mathrm{A}) \\det(\\mathrm{B}) \\det(\\mathrm{C}) \\\\
&= \\simplify[]{{det(a)}*{det(b)}*{det(c)}} \\\\
&= \\var{det(a*b*c)}
\\end{align}
Suppose $\\mathrm{M} = \\begin{pmatrix} a&b \\\\ c&d \\end{pmatrix}$ is a $2 \\times 2$ matrix and $\\det\\left(\\mathrm{M}\\right) = \\Delta \\neq 0$.
\nThen $\\mathrm{M}$ is invertible and
\n\\[ \\mathrm{M}^{-1} = \\frac{1}{\\Delta} \\begin{pmatrix} d & -b\\\\ -c& a \\end{pmatrix}=\\begin{pmatrix} \\frac{d}{\\Delta} & -\\frac{b}{\\Delta}\\\\ -\\frac{c}{\\Delta}& \\frac{a}{\\Delta} \\end{pmatrix}\\]
\nApplying this to these examples we obtain:
\n\\[ \\simplify[fractionnumbers]{matrix:A^(-1)={inverse(a)}} \\]
\n\\[ \\simplify[fractionnumbers]{matrix:B^(-1)={inverse(b)}} \\]
\n\\[ \\simplify[fractionnumbers]{matrix:C^(-1)={inverse(c)}} \\]
", "variables": {"c21": {"name": "c21", "description": "", "definition": "random(2..5)", "templateType": "anything", "group": "Matrix C"}, "c": {"name": "c", "description": "", "definition": "matrix([\n [c11,c12],\n [c21,c22]\n])", "templateType": "anything", "group": "Matrix C"}, "c11": {"name": "c11", "description": "", "definition": "random(1,2,4)", "templateType": "anything", "group": "Matrix C"}, "b11": {"name": "b11", "description": "", "definition": "random(1..9 except a11)\n//if(a11=tr2,tr2+1,tr2)", "templateType": "anything", "group": "Matrix B"}, "c22": {"name": "c22", "description": "", "definition": "random(1..9 except c21*c12/c11)", "templateType": "anything", "group": "Matrix C"}, "a": {"name": "a", "description": "", "definition": "matrix([\n [a11,a12],\n [a21,a22]\n])", "templateType": "anything", "group": "Matrix A"}, "b12": {"name": "b12", "description": "", "definition": "random(-5..5)", "templateType": "anything", "group": "Matrix B"}, "a21": {"name": "a21", "description": "", "definition": "random(-6..6 except 0) ", "templateType": "anything", "group": "Matrix A"}, "a11": {"name": "a11", "description": "", "definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Matrix A"}, "a22": {"name": "a22", "description": "", "definition": "random(1..9 except a21*a12/a11)", "templateType": "anything", "group": "Matrix A"}, "b22": {"name": "b22", "description": "", "definition": "random(-9..9 except [0,b21*b12/b11])", "templateType": "anything", "group": "Matrix B"}, "a12": {"name": "a12", "description": "", "definition": "random(-5..5)", "templateType": "anything", "group": "Matrix A"}, "b": {"name": "b", "description": "", "definition": "matrix([\n [b11,b12],\n [b21,b22]\n])", "templateType": "anything", "group": "Matrix B"}, "b21": {"name": "b21", "description": "", "definition": "random(-6..6 except 0)", "templateType": "anything", "group": "Matrix B"}, "c12": {"name": "c12", "description": "", "definition": "a12+b12", "templateType": "anything", "group": "Matrix C"}}, "tags": [], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "parts": [{"type": "gapfill", "marks": 0, "gaps": [{"maxValue": "det(a)", "type": "numberentry", "marks": 0.5, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showCorrectAnswer": true, "allowFractions": false, "minValue": "det(a)", "mustBeReduced": false, "mustBeReducedPC": 0, "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "scripts": {}}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "showCorrectAnswer": true, "prompt": "Let
\n\\[\\mathrm{A} = \\var{a},\\;\\; \\]
\nCalculate the determinant of A:
\n$\\det\\left(\\mathrm{A}\\right) = $ [[0]]
\n"}, {"type": "gapfill", "marks": 0, "gaps": [{"numRows": "2", "type": "matrix", "marks": "0.5", "markPerCell": false, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showCorrectAnswer": true, "correctAnswer": "inverse(a)", "correctAnswerFractions": true, "tolerance": "0.01", "allowFractions": true, "numColumns": "2", "showFeedbackIcon": true, "allowResize": false, "scripts": {}}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "showCorrectAnswer": true, "prompt": "Find the inverse matrix $A^{-1}$. Input all matrix entries as fractions or integers and not as decimals.
\n$\\mathrm{A}^{-1} = $ [[0]]
"}], "type": "question", "contributors": [{"name": "Violeta CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/"}]}]}], "contributors": [{"name": "Violeta CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/"}]}