// Numbas version: finer_feedback_settings {"name": "Stephen's copy of Question 3 MATH6005 Assessment 1 Determinant of a 3 x 3 Matrix", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a11", "a12", "a13", "a21", "a22", "a23", "a31", "a32", "a33", "m1", "m2", "m3"], "statement": "
Consider the $3 \\times 3$ matrix,
\n\\begin{align} \\mathrm{A} &= \\var{a} \\end{align}
", "variable_groups": [{"name": "Unnamed group", "variables": ["a"]}], "name": "Stephen's copy of Question 3 MATH6005 Assessment 1 Determinant of a 3 x 3 Matrix", "extensions": [], "preamble": {"js": "", "css": ""}, "functions": {}, "variables": {"a21": {"definition": "random(-5..5)", "templateType": "anything", "description": "Matrix element
", "name": "a21", "group": "Ungrouped variables"}, "a13": {"definition": "random(-5..5)", "templateType": "anything", "description": "Matrix element
", "name": "a13", "group": "Ungrouped variables"}, "a12": {"definition": "random(-5..5)", "templateType": "anything", "description": "Matrix element
", "name": "a12", "group": "Ungrouped variables"}, "a": {"definition": "matrix([ [a11,a12,a13],[a21,a22,a23],[a31,a32,a33] ])", "templateType": "anything", "description": "", "name": "a", "group": "Unnamed group"}, "a31": {"definition": "random(-5..5)", "templateType": "anything", "description": "Matrix element
", "name": "a31", "group": "Ungrouped variables"}, "a32": {"definition": "random(-5..5)", "templateType": "anything", "description": "Matrix element
", "name": "a32", "group": "Ungrouped variables"}, "a22": {"definition": "random(-6..6 except 0)", "templateType": "anything", "description": "Matrix element
", "name": "a22", "group": "Ungrouped variables"}, "a11": {"definition": "random(-6..6 except 0)", "templateType": "anything", "description": "Matrix element
", "name": "a11", "group": "Ungrouped variables"}, "a33": {"definition": "random(-6..6 except 0)", "templateType": "anything", "description": "Matrix element
", "name": "a33", "group": "Ungrouped variables"}, "a23": {"definition": "random(-5..5)", "templateType": "anything", "description": "Matrix element
", "name": "a23", "group": "Ungrouped variables"}, "m2": {"definition": "(a21*a33)-(a23*a31)", "templateType": "anything", "description": "Submatrix
", "name": "m2", "group": "Ungrouped variables"}, "m3": {"definition": "(a21*a32)-(a22*a31)", "templateType": "anything", "description": "Submatrix
", "name": "m3", "group": "Ungrouped variables"}, "m1": {"definition": "(a22*a33)-(a23*a32)", "templateType": "anything", "description": "Submatrix
", "name": "m1", "group": "Ungrouped variables"}}, "parts": [{"showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "mustBeReducedPC": 0, "type": "numberentry", "maxValue": "det(a)", "minValue": "det(a)", "marks": "4", "correctAnswerFraction": false, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}}], "showCorrectAnswer": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "prompt": "Calculate the determinant of the matrix.
\n$\\operatorname{det}\\left( \\mathrm{A}\\right) = $ [[0]]
\n", "marks": 0, "variableReplacements": [], "scripts": {}}], "advice": "The determinant of a matrix $\\mathrm{M} = \\begin{pmatrix} a&b&c \\\\ d&e&f \\\\ g&h&i \\end{pmatrix}$ can be calculated by using cofactor expansion. Expanding along the first row,
\n\\[ \\det\\left(\\mathrm{M}\\right) = a \\cdot \\det \\begin{pmatrix} e&f \\\\ h&i \\end{pmatrix}- b \\cdot \\det \\begin{pmatrix} d&f \\\\ g&i \\end{pmatrix} + c \\cdot \\det \\begin{pmatrix} d&e \\\\ g&h \\end{pmatrix}\\]
\nThus for our example we have:
\n\\[\\begin{align} \\det \\begin{pmatrix} e&f \\\\ h&i \\end{pmatrix} &= \\simplify[]{({a22}*{a33})-({a23}*{a32}) = {m1}} \\\\ \\det \\begin{pmatrix} d&f \\\\ g&i \\end{pmatrix} &= \\simplify[]{({a21}*{a33})-({a23}*{a31}) = {m2}} \\\\ \\det \\begin{pmatrix} d&e \\\\ g&h \\end{pmatrix} &=\\simplify[]{ ({a21}*{a32})-({a22}*{a31}) ={m3}} \\end{align}\\]
\nand so
\n\\[\\begin{align} \\det\\left(\\mathrm{A}\\right) = (\\simplify[]{{a11}*{m1}})-(\\simplify[]{{a12}*{m2}})+(\\simplify[]{{a13}*{m3}}) = \\simplify[]{{det(a)}} \\end{align}\\]
", "metadata": {"description": "Find the determinant of a $3 \\times 3$ matrix.
", "licence": "Creative Commons Attribution 4.0 International"}, "tags": [], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "Stephen Flood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1397/"}]}]}], "contributors": [{"name": "Stephen Flood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1397/"}]}