// Numbas version: exam_results_page_options {"name": "Ioannis's copy of Lois's copy of Matrix Multiplication 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "statement": "

Let
\\[A=\\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix},\\;\\; B=\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix},\\;\\; C=\\begin{pmatrix} \\var{c11}&\\var{c12}\\\\ \\var{c21}&\\var{c22}\\\\ \\end{pmatrix}\\]
Calculate the following products of these matrices:

", "functions": {}, "ungrouped_variables": ["ba21", "a21", "a22", "ba22", "cb21", "b22", "b21", "cb22", "ac22", "ac21", "ab22", "ab21", "b12", "b11", "c12", "c11", "c22", "a11", "cb11", "cb12", "a12", "c21", "ba11", "ba12", "ab12", "ab11", "ac12", "ac11"], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "extensions": [], "tags": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Multiplication of $2 \\times 2$ matrices.

"}, "name": "Ioannis's copy of Lois's copy of Matrix Multiplication 1", "parts": [{"marks": 0, "scripts": {}, "variableReplacements": [], "gaps": [{"numRows": "2", "allowResize": false, "correctAnswerFractions": false, "correctAnswer": "matrix([\n [ab11,ab12],\n [ab21,ab22]\n])", "markPerCell": false, "tolerance": 0, "scripts": {}, "numColumns": "2", "variableReplacements": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "matrix", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "marks": "10", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "unitTests": []}], "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "prompt": "

$AB = \\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix} = $ [[0]]

", "variableReplacementStrategy": "originalfirst", "unitTests": []}], "advice": "

\\[ \\begin{eqnarray*} AB &=& \\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{a11}{b11}+{a12}{b21}}&\\simplify[]{{a11}{b12}+{a12}{b22}}\\\\ \\simplify[]{{a21}{b11}+{a22}{b21}}&\\simplify[]{{a21}{b12}+{a22}{b22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{ab11}&\\var{ab12}\\\\ \\var{ab21}&\\var{ab22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

\n

\n

More information on multiplying matrices can be found in the 'Matrices' section on our Maths Study Skills page.

\n

", "preamble": {"js": "", "css": ""}, "variables": {"a12": {"definition": "random(1..4)", "group": "Ungrouped variables", "name": "a12", "description": "", "templateType": "anything"}, "ac21": {"definition": "a21*c11+a22*c21", "group": "Ungrouped variables", "name": "ac21", "description": "", "templateType": "anything"}, "cb12": {"definition": "c11*b12+c12*b22", "group": "Ungrouped variables", "name": "cb12", "description": "", "templateType": "anything"}, "b12": {"definition": "random(-3..1)", "group": "Ungrouped variables", "name": "b12", "description": "", "templateType": "anything"}, "b21": {"definition": "random(2,3)", "group": "Ungrouped variables", "name": "b21", "description": "", "templateType": "anything"}, "a11": {"definition": "random(-2,1,2)", "group": "Ungrouped variables", "name": "a11", "description": "", "templateType": "anything"}, "cb21": {"definition": "c21*b11+c22*b21", "group": "Ungrouped variables", "name": "cb21", "description": "", "templateType": "anything"}, "a21": {"definition": "random(-2..2)", "group": "Ungrouped variables", "name": "a21", "description": "", "templateType": "anything"}, "ab11": {"definition": "a11*b11+a12*b21", "group": "Ungrouped variables", "name": "ab11", "description": "", "templateType": "anything"}, "ac12": {"definition": "a11*c12+a12*c22", "group": "Ungrouped variables", "name": "ac12", "description": "", "templateType": "anything"}, "ac11": {"definition": "a11*c11+a12*c21", "group": "Ungrouped variables", "name": "ac11", "description": "", "templateType": "anything"}, "c22": {"definition": "random(0,1)", "group": "Ungrouped variables", "name": "c22", "description": "", "templateType": "anything"}, "c11": {"definition": "random(1,0,4)", "group": "Ungrouped variables", "name": "c11", "description": "", "templateType": "anything"}, "ba12": {"definition": "b11*a12+b12*a22", "group": "Ungrouped variables", "name": "ba12", "description": "", "templateType": "anything"}, "a22": {"definition": "random(1..3)", "group": "Ungrouped variables", "name": "a22", "description": "", "templateType": "anything"}, "ab22": {"definition": "a21*b12+a22*b22", "group": "Ungrouped variables", "name": "ab22", "description": "", "templateType": "anything"}, "b22": {"definition": "random(-3..-1)", "group": "Ungrouped variables", "name": "b22", "description": "", "templateType": "anything"}, "ab21": {"definition": "a21*b11+a22*b21", "group": "Ungrouped variables", "name": "ab21", "description": "", "templateType": "anything"}, "ba22": {"definition": "b21*a12+b22*a22", "group": "Ungrouped variables", "name": "ba22", "description": "", "templateType": "anything"}, "cb22": {"definition": "c21*b12+c22*b22", "group": "Ungrouped variables", "name": "cb22", "description": "", "templateType": "anything"}, "cb11": {"definition": "c11*b11+c12*b21", "group": "Ungrouped variables", "name": "cb11", "description": "", "templateType": "anything"}, "ab12": {"definition": "a11*b12+a12*b22", "group": "Ungrouped variables", "name": "ab12", "description": "", "templateType": "anything"}, "ba21": {"definition": "b21*a11+b22*a21", "group": "Ungrouped variables", "name": "ba21", "description": "", "templateType": "anything"}, "c12": {"definition": "a12+b12", "group": "Ungrouped variables", "name": "c12", "description": "", "templateType": "anything"}, "ac22": {"definition": "a21*c12+a22*c22", "group": "Ungrouped variables", "name": "ac22", "description": "", "templateType": "anything"}, "c21": {"definition": "random(2..5)", "group": "Ungrouped variables", "name": "c21", "description": "", "templateType": "anything"}, "b11": {"definition": "random(-3,-1,0,3)", "group": "Ungrouped variables", "name": "b11", "description": "", "templateType": "anything"}, "ba11": {"definition": "b11*a11+b12*a21", "group": "Ungrouped variables", "name": "ba11", "description": "", "templateType": "anything"}}, "type": "question", "contributors": [{"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}]}], "contributors": [{"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}