// Numbas version: exam_results_page_options {"name": "Hollie's copy of Invert a 3x3 matrix using row operations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "a11", "a12", "a13", "a21", "a22", "a23", "a31", "a32", "a33", "b", "b24", "b25", "c", "c1", "c2", "c3", "f1", "f2", "f3", "g1", "g2", "g3", "s"], "name": "Hollie's copy of Invert a 3x3 matrix using row operations", "tags": [], "advice": "

All of the working is now shown

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\n

Part 1.

\n

Introduce zeros in the first column below the first entry by adding suitable multiples of the first row to rows 2 and 3.

\n

Input all numbers as fractions or integers and not as decimals.

\n

 

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]$\\var{a11}$$\\var{a12}$$\\var{a13}$$1$$0$$0$\\[\\left) \\begin{matrix} \\phantom{.} \\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]
$0$[[0]][[1]][[2]]$1$$0$
$0$[[3]][[4]][[5]]$0$$1$
\n

Now, if necessary, multiply the second row by a suitable number so that the second entry in the second row is 1.

\n ", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{-f2*g2}", "minValue": "{-f2*g2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{-a*f2*g3}", "minValue": "{-a*f2*g3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{ -f2*f1*a}", "minValue": "{ -f2*f1*a}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{f3*g2*c*b*(1-a)}", "minValue": "{f3*g2*c*b*(1-a)}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{f3*g3*(1-a^2*b*c+a*b*c)}", "minValue": "{f3*g3*(1-a^2*b*c+a*b*c)}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{-f3*f1*a*c}", "minValue": "{-f3*f1*a*c}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "\n

Part 2.

\n

Now using this matrix, introduce a zero in the second column below the second entry of the second column by:

\n

Adding [[0]] times the second row to the third row to get the matrix:

\n

 

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]$\\var{a11}$$\\var{a12}$$\\var{a13}$$1$$0$$0$\\[\\left) \\begin{matrix} \\phantom{.} \\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]
$0$$1$[[1]][[2]][[3]]$0$
$0$$0$[[4]][[5]][[6]]$1$
\n ", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{s*(-b*c+a*b*c)}", "minValue": "{s*(-b*c+a*b*c)}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{a*g2*g3}", "minValue": "{a*g2*g3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{ g2*a*f1}", "minValue": "{ g2*a*f1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{-f2*g2}", "minValue": "{-f2*g2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{f3*g3}", "minValue": "{f3*g3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{(a*b-b-1)*f3*a*c*f1}", "minValue": "{(a*b-b-1)*f3*a*c*f1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{-f2*f3*(a*b*c-b*c)}", "minValue": "{-f2*f3*(a*b*c-b*c)}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "\n

Part 3.

\n

Now, if necessary, multiply the third row by a suitable constant so that the third entry in the third column is 1.

\n

With this matrix, use the third row to introduce zeros into the second and first entries in the third column by adding suitable multiples of the third row to the second and first rows.

\n

Multiply third row by [[0]]and add to the second row.

\n

Multiply third row by [[1]]and add to the first row.

\n

Using this new matrix there is one more operation needed.

\n

Multiplying the second row by $\\var{-a12}$ and adding to the first row to obtain the inverse matrix appearing on the right hand side.

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]$1$$0$$0$[[2]][[3]][[4]]\\[\\left) \\begin{matrix} \\phantom{.} \\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]
$0$$1$$0$[[5]][[6]][[7]]
$0$$0$$1$[[8]][[9]][[10]]
\n ", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{-a*g2*g3}", "minValue": "{-a*g2*g3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{-a13}", "minValue": "{-a13}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{ 1-a13*(a*b-b-1)*g3*a*c*f1-a12*b24}", "minValue": "{ 1-a13*(a*b-b-1)*g3*a*c*f1-a12*b24}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{a13*f2*g3*b*c*(a-1)-a12*b25}", "minValue": "{a13*f2*g3*b*c*(a-1)-a12*b25}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{-a13*f3*g3+a12*a*g2*f3}", "minValue": "{-a13*f3*g3+a12*a*g2*f3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{b24}", "minValue": "{b24}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{b25}", "minValue": "{b25}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{-a*f3*g2}", "minValue": "{-a*f3*g2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{(a*b-b-1)*g3*a*c*f1}", "minValue": "{(a*b-b-1)*g3*a*c*f1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{ -f2*g3*b*c*(a-1)}", "minValue": "{ -f2*g3*b*c*(a-1)}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{f3*g3}", "minValue": "{f3*g3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "0.75", "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "\n

Find the inverse of the following matrix:
\\[A = \\left(\\begin{array}{rrr} \\var{a11} & \\var{a12} & \\var{a13}\\\\ \\var{a21} & \\var{a22} & \\var{a23}\\\\ \\var{a31} & \\var{a32} & \\var{a33}\\\\ \\end{array}\\right)\\]

\n

Form the $3 \\times 6$ augmented matrix $B$ by placing $I_3$ to the right of $A$ as below:
\\[B = \\left(\\begin{array}{rrr|ccc} \\var{a11} & \\var{a12} & \\var{a13} &\\var{1}&\\var{0}&\\var{0}\\\\ \\var{a21} & \\var{a22} & \\var{a23}&\\var{0}&\\var{1}&\\var{0}\\\\ \\var{a31} & \\var{a32} & \\var{a33}&\\var{0}&\\var{0}&\\var{1}\\\\ \\end{array}\\right)\\]

\n

In subsequent parts work with this matrix using row operations and introduce the identity matrix on the left hand side with the inverse of A eventually appearing on the right hand side.

\n ", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"f1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "f1", "description": ""}, "f2": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "f2", "description": ""}, "a23": {"definition": "f2*(a^2*b-a-a*b)*g3", "templateType": "anything", "group": "Ungrouped variables", "name": "a23", "description": ""}, "a21": {"definition": "f2*a*g1", "templateType": "anything", "group": "Ungrouped variables", "name": "a21", "description": ""}, "b25": {"definition": "f2*g2*(a*(a*b*c-b*c)-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "b25", "description": ""}, "b24": {"definition": "g2*a*f1*(1-(a*b-b-1)*a*c)", "templateType": "anything", "group": "Ungrouped variables", "name": "b24", "description": ""}, "a22": {"definition": "f2*(a*b-1)*g2", "templateType": "anything", "group": "Ungrouped variables", "name": "a22", "description": ""}, "f3": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "f3", "description": ""}, "g3": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "g3", "description": ""}, "g1": {"definition": "f1", "templateType": "anything", "group": "Ungrouped variables", "name": "g1", "description": ""}, "a33": {"definition": "f3*g3", "templateType": "anything", "group": "Ungrouped variables", "name": "a33", "description": ""}, "a32": {"definition": "f3*c*b*g2", "templateType": "anything", "group": "Ungrouped variables", "name": "a32", "description": ""}, "a31": {"definition": "f3*a*c*g1", "templateType": "anything", "group": "Ungrouped variables", "name": "a31", "description": ""}, "a11": {"definition": "f1*g1", "templateType": "anything", "group": "Ungrouped variables", "name": "a11", "description": ""}, "g2": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "g2", "description": ""}, "a13": {"definition": "f1*(b*a-b)*g3", "templateType": "anything", "group": "Ungrouped variables", "name": "a13", "description": ""}, "a12": {"definition": "f1*b*g2", "templateType": "anything", "group": "Ungrouped variables", "name": "a12", "description": ""}, "c3": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "c3", "description": ""}, "c2": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "c2", "description": ""}, "c1": {"definition": "random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "c1", "description": ""}, "a": {"definition": "random(2..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(1,2,3)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(2..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "s": {"definition": "f3*g2", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}}, "metadata": {"description": "

$A$ a $3 \\times 3$ matrix. Using row operations on the augmented matrix $\\left(A | I_3\\right)$ reduce to $\\left(I_3 | A^{-1}\\right)$.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Hollie Tarr", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1176/"}]}]}], "contributors": [{"name": "Hollie Tarr", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1176/"}]}