// Numbas version: finer_feedback_settings {"name": "W1b - Find the Determinant of a 3x3 Matrix", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [{"name": "Unnamed group", "variables": ["a"]}], "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}\\]
", "parts": [{"variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "gaps": [{"maxValue": "det(a)", "allowFractions": false, "correctAnswerFraction": false, "type": "numberentry", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "marks": "1", "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "showFeedbackIcon": true, "adaptiveMarkingPenalty": 0, "showFractionHint": true, "unitTests": [], "customMarkingAlgorithm": "", "mustBeReduced": false, "minValue": "det(a)", "customName": "det a", "notationStyles": ["plain", "en", "si-en"], "useCustomName": true}], "customMarkingAlgorithm": "", "adaptiveMarkingPenalty": 0, "extendBaseMarkingAlgorithm": true, "marks": 0, "prompt": "Calculate the determinant of the matrix.
\n$\\operatorname{det}\\left( \\mathrm{A}\\right) = $ [[0]]
\n", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "unitTests": [], "customName": "", "useCustomName": false}], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "metadata": {"description": "Find the determinant of a $3 \\times 3$ matrix.
", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"css": "", "js": ""}, "functions": {}, "variables": {"a22": {"name": "a22", "group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "description": "Matrix element
", "templateType": "anything"}, "a13": {"name": "a13", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "Matrix element
", "templateType": "anything"}, "m2": {"name": "m2", "group": "Ungrouped variables", "definition": "(a21*a33)-(a23*a31)", "description": "Submatrix
", "templateType": "anything"}, "a12": {"name": "a12", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "Matrix element
", "templateType": "anything"}, "a31": {"name": "a31", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "Matrix element
", "templateType": "anything"}, "m1": {"name": "m1", "group": "Ungrouped variables", "definition": "(a22*a33)-(a23*a32)", "description": "Submatrix
", "templateType": "anything"}, "a21": {"name": "a21", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "Matrix element
", "templateType": "anything"}, "m3": {"name": "m3", "group": "Ungrouped variables", "definition": "(a21*a32)-(a22*a31)", "description": "Submatrix
", "templateType": "anything"}, "a32": {"name": "a32", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "Matrix element
", "templateType": "anything"}, "a23": {"name": "a23", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "Matrix element
", "templateType": "anything"}, "a11": {"name": "a11", "group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "description": "Matrix element
", "templateType": "anything"}, "a33": {"name": "a33", "group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "description": "Matrix element
", "templateType": "anything"}, "a": {"name": "a", "group": "Unnamed group", "definition": "matrix([ [a11,a12,a13],[a21,a22,a23],[a31,a32,a33] ])", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "extensions": [], "name": "W1b - Find the Determinant of a 3x3 Matrix", "statement": "Consider the $3 \\times 3$ matrix,
\n\\begin{align} \\mathrm{A} &= \\var{a} \\end{align}
", "ungrouped_variables": ["a11", "a12", "a13", "a21", "a22", "a23", "a31", "a32", "a33", "m1", "m2", "m3"], "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}