// Numbas version: finer_feedback_settings {"name": "Matrices: determinants (3x3)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Matrices: determinants (3x3)", "tags": [], "metadata": {"description": "

Find the determinant of  a random (3x3) matrix.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

Calculate the determinant of the following $3\\times3$ matrix.

", "advice": "

In general, the determinant of a $3\\times3$ matrix is calculated as follows.

\n

$$\\begin{vmatrix}a_1&b_1&c_1\\\\a_2&b_2&c_2\\\\a_3&b_3&c_3\\end{vmatrix}=a_1\\begin{vmatrix}b_2&c_2\\\\b_3&c_3\\end{vmatrix}-b_1\\begin{vmatrix}a_2&c_2\\\\a_3&c_3\\end{vmatrix}+c_1\\begin{vmatrix}a_2&b_2\\\\a_3&b_3\\end{vmatrix}$$

\n

Applied to the question above,

\n

$$\\begin{vmatrix}\\var{a1}&\\var{b1}&\\var{c1}\\\\\\var{a2}&\\var{b2}&\\var{c2}\\\\\\var{a3}&\\var{b3}&\\var{c3}\\end{vmatrix}=\\var{a1}\\begin{vmatrix}\\var{b2}&\\var{c2}\\\\\\var{b3}&\\var{c3}\\end{vmatrix}-\\var{b1}\\begin{vmatrix}\\var{a2}&\\var{c2}\\\\\\var{a3}&\\var{c3}\\end{vmatrix}+\\var{c1}\\begin{vmatrix}\\var{a2}&\\var{b2}\\\\\\var{a3}&\\var{b3}\\end{vmatrix} \\\\
=\\var{a1}(\\var{b2}\\times \\var{c3}-\\var{c2}\\times \\var{b3})-\\var{b1}(\\var{a2}\\times \\var{c3}-\\var{c2}\\times \\var{a3})+\\var{c1}(\\var{a2}\\times \\var{b3}-\\var{b2}\\times \\var{a3}) \\\\
=\\var{a1}(\\var{b2*c3}-\\var{c2*b3})-\\var{b1}(\\var{a2*c3}-\\var{c2*a3})+\\var{c1}(\\var{a2*b3}-\\var{b2*a3}) \\\\
=\\var{a1*(b2*c3-2*b3)}-\\var{b1*(a2*c3-c2*a3)}+\\var{c1*(a2*b3-b2*a3)}=\\var{det}$$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "random(-3..4)", "description": "", "templateType": "anything", "can_override": false}, "det": {"name": "det", "group": "Ungrouped variables", "definition": "a1*(b2*c3-c2*b3)-b1*(a2*c3-c2*a3)+c1*(a2*b3-b2*a3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "a3", "b1", "b2", "b3", "c1", "c2", "c3", "det"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\begin{vmatrix}\\var{a1}&\\var{b1}&\\var{c1}\\\\\\var{a2}&\\var{b2}&\\var{c2}\\\\\\var{a3}&\\var{b3}&\\var{c3}\\end{vmatrix}=$[[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "det", "maxValue": "det", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "resources": []}]}], "contributors": [{"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}]}