// Numbas version: exam_results_page_options {"name": "Quiz copy of Matrix Multiplication 1 (2x2 matrices)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "functions": {}, "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

b)

\n

\\[ \\begin{eqnarray*} BA &=& \\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{b11}{a11}+{b12}{a21}}&\\simplify[]{{b11}{a12}+{b12}{a22}}\\\\ \\simplify[]{{b21}{a11}+{b22}{a21}}&\\simplify[]{{b21}{a12}+{b22}{a22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{ba11}&\\var{ba12}\\\\ \\var{ba21}&\\var{ba22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

\n

c)

\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

d)

\n

\\[ \\begin{eqnarray*} AC &=& \\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{c11}&\\var{c12}\\\\ \\var{c21}&\\var{c22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{a11}{c11}+{a12}{c21}}&\\simplify[]{{a11}{c12}+{a12}{c22}}\\\\ \\simplify[]{{a21}{c11}+{a22}{c21}}&\\simplify[]{{a21}{c12}+{a22}{c22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{ac11}&\\var{ac12}\\\\ \\var{ac21}&\\var{ac22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

", "variables": {"c11": {"templateType": "anything", "definition": "random(1,0,4)", "group": "Ungrouped variables", "name": "c11", "description": ""}, "c21": {"templateType": "anything", "definition": "random(2..5)", "group": "Ungrouped variables", "name": "c21", "description": ""}, "cb22": {"templateType": "anything", "definition": "c21*b12+c22*b22", "group": "Ungrouped variables", "name": "cb22", "description": ""}, "ab21": {"templateType": "anything", "definition": "a21*b11+a22*b21", "group": "Ungrouped variables", "name": "ab21", "description": ""}, "a21": {"templateType": "anything", "definition": "random(-2..2)", "group": "Ungrouped variables", "name": "a21", "description": ""}, "cb21": {"templateType": "anything", "definition": "c21*b11+c22*b21", "group": "Ungrouped variables", "name": "cb21", "description": ""}, "b12": {"templateType": "anything", "definition": "random(-3..1)", "group": "Ungrouped variables", "name": "b12", "description": ""}, "b11": {"templateType": "anything", "definition": "random(-3,-1,0,3)", "group": "Ungrouped variables", "name": "b11", "description": ""}, "cb11": {"templateType": "anything", "definition": "c11*b11+c12*b21", "group": "Ungrouped variables", "name": "cb11", "description": ""}, "ab22": {"templateType": "anything", "definition": "a21*b12+a22*b22", "group": "Ungrouped variables", "name": "ab22", "description": ""}, "ab12": {"templateType": "anything", "definition": "a11*b12+a12*b22", "group": "Ungrouped variables", "name": "ab12", "description": ""}, "a11": {"templateType": "anything", "definition": "random(-2,1,2)", "group": "Ungrouped variables", "name": "a11", "description": ""}, "a22": {"templateType": "anything", "definition": "random(1..3)", "group": "Ungrouped variables", "name": "a22", "description": ""}, "ac11": {"templateType": "anything", "definition": "a11*c11+a12*c21", "group": "Ungrouped variables", "name": "ac11", "description": ""}, "ac22": {"templateType": "anything", "definition": "a21*c12+a22*c22", "group": "Ungrouped variables", "name": "ac22", "description": ""}, "ac12": {"templateType": "anything", "definition": "a11*c12+a12*c22", "group": "Ungrouped variables", "name": "ac12", "description": ""}, "ab11": {"templateType": "anything", "definition": "a11*b11+a12*b21", "group": "Ungrouped variables", "name": "ab11", "description": ""}, "ac21": {"templateType": "anything", "definition": "a21*c11+a22*c21", "group": "Ungrouped variables", "name": "ac21", "description": ""}, "a12": {"templateType": "anything", "definition": "random(1..4)", "group": "Ungrouped variables", "name": "a12", "description": ""}, "b22": {"templateType": "anything", "definition": "random(-3..-1)", "group": "Ungrouped variables", "name": "b22", "description": ""}, "c22": {"templateType": "anything", "definition": "random(0,1)", "group": "Ungrouped variables", "name": "c22", "description": ""}, "ba21": {"templateType": "anything", "definition": "b21*a11+b22*a21", "group": "Ungrouped variables", "name": "ba21", "description": ""}, "ba12": {"templateType": "anything", "definition": "b11*a12+b12*a22", "group": "Ungrouped variables", "name": "ba12", "description": ""}, "b21": {"templateType": "anything", "definition": "random(2,3)", "group": "Ungrouped variables", "name": "b21", "description": ""}, "c12": {"templateType": "anything", "definition": "a12+b12", "group": "Ungrouped variables", "name": "c12", "description": ""}, "ba22": {"templateType": "anything", "definition": "b21*a12+b22*a22", "group": "Ungrouped variables", "name": "ba22", "description": ""}, "cb12": {"templateType": "anything", "definition": "c11*b12+c12*b22", "group": "Ungrouped variables", "name": "cb12", "description": ""}, "ba11": {"templateType": "anything", "definition": "b11*a11+b12*a21", "group": "Ungrouped variables", "name": "ba11", "description": ""}}, "statement": "

Do the following matrix problems :
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},\\;\\; \\]
Calculate the following products of these matrices:

", "tags": [], "name": "Quiz copy of Matrix Multiplication 1 (2x2 matrices)", "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"], "variable_groups": [], "parts": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "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]]

", "type": "gapfill", "unitTests": [], "gaps": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "tolerance": 0, "allowResize": false, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "correctAnswer": "matrix([\n [ab11,ab12],\n [ab21,ab22]\n])", "extendBaseMarkingAlgorithm": true, "type": "matrix", "allowFractions": false, "unitTests": [], "numColumns": "2", "variableReplacements": [], "marks": "2", "correctAnswerFractions": false, "scripts": {}, "markPerCell": false, "numRows": "2"}], "variableReplacements": [], "marks": 0, "scripts": {}, "sortAnswers": false}], "preamble": {"css": "", "js": ""}, "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Multiplication of $2 \\times 2$ matrices.

"}, "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/"}]}