// Numbas version: exam_results_page_options {"name": "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": [{"name": "Determinant of a 3 x 3 Matrix", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find the determinant of a $3 \\times 3$ matrix.

"}, "ungrouped_variables": ["a11", "a12", "a13", "a21", "a22", "a23", "a31", "a32", "a33", "m1", "m2", "m3"], "extensions": [], "type": "question", "statement": "

Consider the $3 \\times 3$ matrix,

\n

\\begin{align} \\mathrm{A} &= \\var{a} \\end{align}

", "variable_groups": [{"variables": ["a"], "name": "Unnamed group"}], "functions": {}, "variables": {"a12": {"name": "a12", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-5..5)"}, "a32": {"name": "a32", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-5..5)"}, "a21": {"name": "a21", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-5..5)"}, "a11": {"name": "a11", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-6..6 except 0)"}, "a23": {"name": "a23", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-5..5)"}, "m2": {"name": "m2", "templateType": "anything", "group": "Ungrouped variables", "description": "

Submatrix

", "definition": "(a21*a33)-(a23*a31)"}, "a33": {"name": "a33", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-6..6 except 0)"}, "a22": {"name": "a22", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-6..6 except 0)"}, "m1": {"name": "m1", "templateType": "anything", "group": "Ungrouped variables", "description": "

Submatrix

", "definition": "(a22*a33)-(a23*a32)"}, "a31": {"name": "a31", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-5..5)"}, "a13": {"name": "a13", "templateType": "anything", "group": "Ungrouped variables", "description": "

Matrix element

", "definition": "random(-5..5)"}, "m3": {"name": "m3", "templateType": "anything", "group": "Ungrouped variables", "description": "

Submatrix

", "definition": "(a21*a32)-(a22*a31)"}, "a": {"name": "a", "templateType": "anything", "group": "Unnamed group", "description": "", "definition": "matrix([ [a11,a12,a13],[a21,a22,a23],[a31,a32,a33] ])"}}, "tags": [], "parts": [{"variableReplacements": [], "showFeedbackIcon": true, "prompt": "

Calculate the determinant of the matrix.

\n

$\\operatorname{det}\\left( \\mathrm{A}\\right) = $ [[0]]

\n

", "scripts": {}, "showCorrectAnswer": true, "type": "gapfill", "gaps": [{"variableReplacements": [], "minValue": "det(a)", "type": "numberentry", "maxValue": "det(a)", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "mustBeReduced": false, "allowFractions": false, "mustBeReducedPC": 0, "showCorrectAnswer": true, "scripts": {}, "marks": "1"}], "variableReplacementStrategy": "originalfirst", "marks": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "advice": "

Determinant of a $3 \\times 3$ matrix

\n

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}\\]

\n

Thus 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}\\]

\n

and so

\n

\\[\\begin{align} \\det\\left(\\mathrm{A}\\right) = (\\simplify[]{{a11}*{m1}})-(\\simplify[]{{a12}*{m2}})+(\\simplify[]{{a13}*{m3}}) = \\simplify[]{{det(a)}}  \\end{align}\\]

", "contributors": [{"name": "Violeta CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Violeta CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}