// Numbas version: exam_results_page_options {"name": " Matrix Multiplication (2x2)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

a)

\n

\\[ \\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

b)

\n

\\[ \\begin{eqnarray*} CB &=& \\begin{pmatrix} \\var{c11}&\\var{c12}\\\\ \\var{c21}&\\var{c22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{c11}{b11}+{c12}{b21}}&\\simplify[]{{c11}{b12}+{c12}{b22}}\\\\ \\simplify[]{{c21}{b11}+{c22}{b21}}&\\simplify[]{{c21}{b12}+{a22}{b22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{cb11}&\\var{cb12}\\\\ \\var{cb21}&\\var{cb22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

\n

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

\n

", "name": " Matrix Multiplication (2x2)", "metadata": {"description": "

Multiplication of $2 \\times 2$ matrices.

", "licence": "Creative Commons Attribution 4.0 International"}, "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"], "functions": {}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "variables": {"a11": {"description": "", "definition": "random(-2,1,2)", "name": "a11", "group": "Ungrouped variables", "templateType": "anything"}, "c22": {"description": "", "definition": "random(0,1)", "name": "c22", "group": "Ungrouped variables", "templateType": "anything"}, "b12": {"description": "", "definition": "random(-3..1)", "name": "b12", "group": "Ungrouped variables", "templateType": "anything"}, "ac12": {"description": "", "definition": "a11*c12+a12*c22", "name": "ac12", "group": "Ungrouped variables", "templateType": "anything"}, "a22": {"description": "", "definition": "random(1..3)", "name": "a22", "group": "Ungrouped variables", "templateType": "anything"}, "cb11": {"description": "", "definition": "c11*b11+c12*b21", "name": "cb11", "group": "Ungrouped variables", "templateType": "anything"}, "ac22": {"description": "", "definition": "a21*c12+a22*c22", "name": "ac22", "group": "Ungrouped variables", "templateType": "anything"}, "ba12": {"description": "", "definition": "b11*a12+b12*a22", "name": "ba12", "group": "Ungrouped variables", "templateType": "anything"}, "c12": {"description": "", "definition": "a12+b12", "name": "c12", "group": "Ungrouped variables", "templateType": "anything"}, "ab12": {"description": "", "definition": "a11*b12+a12*b22", "name": "ab12", "group": "Ungrouped variables", "templateType": "anything"}, "cb21": {"description": "", "definition": "c21*b11+c22*b21", "name": "cb21", "group": "Ungrouped variables", "templateType": "anything"}, "ba11": {"description": "", "definition": "b11*a11+b12*a21", "name": "ba11", "group": "Ungrouped variables", "templateType": "anything"}, "ac11": {"description": "", "definition": "a11*c11+a12*c21", "name": "ac11", "group": "Ungrouped variables", "templateType": "anything"}, "b11": {"description": "", "definition": "random(-3,-1,0,3)", "name": "b11", "group": "Ungrouped variables", "templateType": "anything"}, "b22": {"description": "", "definition": "random(-3..-1)", "name": "b22", "group": "Ungrouped variables", "templateType": "anything"}, "cb12": {"description": "", "definition": "c11*b12+c12*b22", "name": "cb12", "group": "Ungrouped variables", "templateType": "anything"}, "ab11": {"description": "", "definition": "a11*b11+a12*b21", "name": "ab11", "group": "Ungrouped variables", "templateType": "anything"}, "b21": {"description": "", "definition": "random(2,3)", "name": "b21", "group": "Ungrouped variables", "templateType": "anything"}, "ab21": {"description": "", "definition": "a21*b11+a22*b21", "name": "ab21", "group": "Ungrouped variables", "templateType": "anything"}, "ac21": {"description": "", "definition": "a21*c11+a22*c21", "name": "ac21", "group": "Ungrouped variables", "templateType": "anything"}, "ba22": {"description": "", "definition": "b21*a12+b22*a22", "name": "ba22", "group": "Ungrouped variables", "templateType": "anything"}, "cb22": {"description": "", "definition": "c21*b12+c22*b22", "name": "cb22", "group": "Ungrouped variables", "templateType": "anything"}, "a21": {"description": "", "definition": "random(-2..2)", "name": "a21", "group": "Ungrouped variables", "templateType": "anything"}, "ba21": {"description": "", "definition": "b21*a11+b22*a21", "name": "ba21", "group": "Ungrouped variables", "templateType": "anything"}, "ab22": {"description": "", "definition": "a21*b12+a22*b22", "name": "ab22", "group": "Ungrouped variables", "templateType": "anything"}, "c21": {"description": "", "definition": "random(2..5)", "name": "c21", "group": "Ungrouped variables", "templateType": "anything"}, "a12": {"description": "", "definition": "random(1..4)", "name": "a12", "group": "Ungrouped variables", "templateType": "anything"}, "c11": {"description": "", "definition": "random(1,0,4)", "name": "c11", "group": "Ungrouped variables", "templateType": "anything"}}, "parts": [{"variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "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]]

", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "marks": 0, "gaps": [{"numRows": "2", "type": "matrix", "numColumns": "2", "scripts": {}, "correctAnswer": "matrix([\n [ab11,ab12],\n [ab21,ab22]\n])", "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "allowResize": false, "tolerance": 0, "marks": "8.47", "variableReplacements": [], "markPerCell": false, "correctAnswerFractions": false}]}, {"variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "prompt": "

$CB = \\begin{pmatrix} \\var{c11}&\\var{c12}\\\\ \\var{c21}&\\var{c22}\\\\ \\end{pmatrix} \\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix}=$ [[0]]

", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "marks": 0, "gaps": [{"numRows": "2", "type": "matrix", "numColumns": "2", "scripts": {}, "correctAnswer": "matrix([\n [cb11,cb12],\n [cb21,cb22]\n])", "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "allowResize": false, "tolerance": 0, "marks": "8.33", "variableReplacements": [], "markPerCell": false, "correctAnswerFractions": false}]}], "variable_groups": [], "preamble": {"css": "", "js": ""}, "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:

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "type": "question", "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}]}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}