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

Multiplication of $2 \\times 2$ matrices.

", "licence": "Creative Commons Attribution 4.0 International"}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "variable_groups": [], "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*} \$

", "name": "MATH6058 Matrix Multiplication 1 (2x2 matrices)", "tags": [], "parts": [{"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]]

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

$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}=$ [[0]]

", "gaps": [{"variableReplacements": [], "numRows": "2", "allowResize": false, "showFeedbackIcon": true, "tolerance": 0, "marks": 1, "showCorrectAnswer": true, "scripts": {}, "markPerCell": false, "allowFractions": false, "correctAnswer": "matrix([\n [ba11,ba12],\n [ba21,ba22]\n])", "correctAnswerFractions": false, "variableReplacementStrategy": "originalfirst", "type": "matrix", "numColumns": "2"}], "marks": 0, "scripts": {}, "showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": []}, {"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]]

", "gaps": [{"variableReplacements": [], "numRows": "2", "allowResize": false, "showFeedbackIcon": true, "tolerance": 0, "marks": 1, "showCorrectAnswer": true, "scripts": {}, "markPerCell": false, "allowFractions": false, "correctAnswer": "matrix([\n [cb11,cb12],\n [cb21,cb22]\n])", "correctAnswerFractions": false, "variableReplacementStrategy": "originalfirst", "type": "matrix", "numColumns": "2"}], "marks": 0, "scripts": {}, "showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": []}, {"prompt": "

$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}=$ [[0]]

", "gaps": [{"variableReplacements": [], "numRows": "2", "allowResize": false, "showFeedbackIcon": true, "tolerance": 0, "marks": 1, "showCorrectAnswer": true, "scripts": {}, "markPerCell": false, "allowFractions": false, "correctAnswer": "matrix([\n [ac11,ac12],\n [ac21,ac22]\n])", "correctAnswerFractions": false, "variableReplacementStrategy": "originalfirst", "type": "matrix", "numColumns": "2"}], "marks": 0, "scripts": {}, "showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": []}], "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"], "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},\\;\\; C=\\begin{pmatrix} \\var{c11}&\\var{c12}\\\\ \\var{c21}&\\var{c22}\\\\ \\end{pmatrix}\$
Calculate the following products of these matrices:

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