// Numbas version: finer_feedback_settings {"name": "Week 8 (assessed)", "metadata": {"description": "", "licence": "All rights reserved"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "random-subset", "pickQuestions": 1, "questionNames": ["", "", ""], "variable_overrides": [[], [], []], "questions": [{"name": "Standard basis to matrix formv1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}], "tags": [], "metadata": {"description": "
Standard basis to matrix form
", "licence": "All rights reserved"}, "statement": "", "advice": "First decide on what size of matrix we should use.
\n(Hint: consider the domain and co-domain of f.)
\n(Hint 2: the size of the vectors that are inputs and outputs indicate the dimensions the matrix should have.)
\nWe then want to use the FACT from Linear Algebra.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "e": {"name": "e", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "l2": {"name": "l2", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l31": {"name": "l31", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l34": {"name": "l34", "group": "Ungrouped variables", "definition": "random(l33+1..3)", "description": "", "templateType": "anything", "can_override": false}, "l22": {"name": "l22", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l32": {"name": "l32", "group": "Ungrouped variables", "definition": "random(l31+1..3)", "description": "", "templateType": "anything", "can_override": false}, "l33": {"name": "l33", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "i": {"name": "i", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l2", "l22", "l31", "l32", "l33", "l34"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "This question involves writing a function in standard basis form as an appropriately sized matrix.
"}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $f: \\mathbb{R}^2\\to \\mathbb{R}^1$ where
\n\\[f(e_1)=\\var{d}e_1\\textrm{ and }f(e_2)=\\var{e}e_1.\\]
\nWrite $f$ in matrix form.
", "correctAnswer": "matrix([d,e])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $g_1: \\mathbb{R}^2\\to \\mathbb{R}^2$ where
\n\\[g_1(e_1)=\\var{f}e_1\\textrm{ and }g_1(e_2)=\\var{g}e_2.\\]
\nWrite $g_1$ in matrix form.
", "correctAnswer": "matrix([f,0],[0,g])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $g_2: \\mathbb{R}^2\\to \\mathbb{R}^2$ where
\n\\[g_2(e_1)=\\var{k}e_2\\textrm{ and }g_2(e_2)=(\\var{i})e_2.\\]
\nWrite $g_2$ in matrix form.
", "correctAnswer": "matrix([0,0],[k,i])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $h: \\mathbb{R}^2\\to \\mathbb{R}^3$ where
\n\\[h(e_1)=\\var{h}e_1+(\\var{i})e_2\\textrm{ and }h(e_2)=\\var{j}e_1+(\\var{k})e_3.\\]
\nWrite $h$ in matrix form.
", "correctAnswer": "matrix([h,j],[i,0],[0,k])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Standard basis to matrix formv2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}], "tags": [], "metadata": {"description": "Standard basis to matrix form
", "licence": "All rights reserved"}, "statement": "", "advice": "First decide on what size of matrix we should use.
\n(Hint: consider the domain and co-domain of f.)
\n(Hint 2: the size of the vectors that are inputs and outputs indicate the dimensions the matrix should have.)
\nWe then want to use the FACT from Linear Algebra.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "e": {"name": "e", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "l2": {"name": "l2", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l31": {"name": "l31", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l34": {"name": "l34", "group": "Ungrouped variables", "definition": "random(l33+1..3)", "description": "", "templateType": "anything", "can_override": false}, "l22": {"name": "l22", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l32": {"name": "l32", "group": "Ungrouped variables", "definition": "random(l31+1..3)", "description": "", "templateType": "anything", "can_override": false}, "l33": {"name": "l33", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "i": {"name": "i", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l2", "l22", "l31", "l32", "l33", "l34"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "This question involves writing a function in standard basis form as an appropriately sized matrix.
"}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $f: \\mathbb{R}^2\\to \\mathbb{R}^1$ where
\n\\[f(e_1)=\\var{d}e_1\\textrm{ and }f(e_2)=\\var{e}e_1.\\]
\nWrite $f$ in matrix form.
", "correctAnswer": "matrix([d,e])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $g_1: \\mathbb{R}^2\\to \\mathbb{R}^2$ where
\n\\[g_1(e_1)=\\var{f}e_1\\textrm{ and }g_1(e_2)=\\var{g}e_2.\\]
\nWrite $g_1$ in matrix form.
", "correctAnswer": "matrix([f,0],[0,g])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $g_2: \\mathbb{R}^2\\to \\mathbb{R}^2$ where
\n\\[g_2(e_1)=\\var{k}e_2\\textrm{ and }g_2(e_2)=(\\var{i})e_1.\\]
\nWrite $g_2$ in matrix form.
", "correctAnswer": "matrix([0,i],[k,0])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $h: \\mathbb{R}^2\\to \\mathbb{R}^3$ where
\n\\[h(e_1)=\\var{h}e_2+(\\var{i})e_3\\textrm{ and }h(e_2)=\\var{j}e_1+(\\var{k})e_2.\\]
\nWrite $h$ in matrix form.
", "correctAnswer": "matrix([0,j],[h,k],[i,0])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Standard basis to matrix formv3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}], "tags": [], "metadata": {"description": "Standard basis to matrix form
", "licence": "All rights reserved"}, "statement": "", "advice": "First decide on what size of matrix we should use.
\n(Hint: consider the domain and co-domain of f.)
\n(Hint 2: the size of the vectors that are inputs and outputs indicate the dimensions the matrix should have.)
\nWe then want to use the FACT from Linear Algebra.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "e": {"name": "e", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "l2": {"name": "l2", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l31": {"name": "l31", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l34": {"name": "l34", "group": "Ungrouped variables", "definition": "random(l33+1..3)", "description": "", "templateType": "anything", "can_override": false}, "l22": {"name": "l22", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "l32": {"name": "l32", "group": "Ungrouped variables", "definition": "random(l31+1..3)", "description": "", "templateType": "anything", "can_override": false}, "l33": {"name": "l33", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "i": {"name": "i", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l2", "l22", "l31", "l32", "l33", "l34"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "This question involves writing a function in standard basis form as an appropriately sized matrix.
"}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $f: \\mathbb{R}^2\\to \\mathbb{R}^1$ where
\n\\[f(e_1)=\\var{d}e_1\\textrm{ and }f(e_2)=\\var{e}e_1.\\]
\nWrite $f$ in matrix form.
", "correctAnswer": "matrix([d,e])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $g_1: \\mathbb{R}^2\\to \\mathbb{R}^2$ where
\n\\[g_1(e_1)=\\var{f}e_1\\textrm{ and }g_1(e_2)=\\var{g}e_2.\\]
\nWrite $g_1$ in matrix form.
", "correctAnswer": "matrix([f,0],[0,g])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $g_2: \\mathbb{R}^2\\to \\mathbb{R}^2$ where
\n\\[g_2(e_1)=\\var{k}e_1\\textrm{ and }g_2(e_2)=(\\var{i})e_1.\\]
\nWrite $g_2$ in matrix form.
", "correctAnswer": "matrix([k,i],[0,0])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "We have an $\\mathbb{R}$-linear function $h: \\mathbb{R}^2\\to \\mathbb{R}^3$ where
\n\\[h(e_1)=\\var{h}e_1+(\\var{i})e_2\\textrm{ and }h(e_2)=\\var{j}e_1+(\\var{k})e_2.\\]
\nWrite $h$ in matrix form.
", "correctAnswer": "matrix([h,j],[i,k],[0,0])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "Algebraic form to matrix form", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}], "tags": [], "metadata": {"description": "Standard basis to matrix form
", "licence": "All rights reserved"}, "statement": "", "advice": "First decide on what size of matrix we should use.
\n(Hint: consider the domain and co-domain of f.)
\n(Hint 2: the size of the vectors that are inputs and outputs indicate the dimensions the matrix should have.)
\nWe then want to use the FACT from Linear Algebra.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "e": {"name": "e", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "l1": {"name": "l1", "group": "Ungrouped variables", "definition": "random(-1..1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "i": {"name": "i", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "l2": {"name": "l2", "group": "Ungrouped variables", "definition": "-l1", "description": "", "templateType": "anything", "can_override": false}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "d2", "e", "f", "g", "h", "i", "j", "k", "l1", "l2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "This question involves writing a function given in algebraic form as an appropriately sized matrix.
"}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Let $f$ be given by the rule
\n\\[f \\begin{pmatrix}x\\\\y\\end{pmatrix}=\\begin{pmatrix}\\var{d}x+\\var{d2}y\\\\\\var{e}x\\end{pmatrix}.\\]
\nWrite $f$ in matrix form.
", "correctAnswer": "matrix([d,d2],[e,0])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Let $f$ be given by the rule
\n\\[f\\begin{pmatrix}x\\\\y\\end{pmatrix}=\\begin{pmatrix}\\var{f}x+\\var{g}y\\\\\\var{h}y\\end{pmatrix}.\\]
\nWrite $f$ in matrix form.
", "correctAnswer": "matrix([f,g],[0,h])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Let $f$ be given by the rule
\n\\[f\\begin{pmatrix}x\\\\y\\end{pmatrix}=\\begin{pmatrix}\\var{i}x\\\\\\var{j}x+\\var{k}y\\end{pmatrix}.\\]
\nWrite $f$ in matrix form.
", "correctAnswer": "matrix([i,0], [j,k])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Let $f$ be given by the rule
\n\\[f\\begin{pmatrix}x\\\\y\\end{pmatrix}=\\begin{pmatrix}\\var{l1}y\\\\\\var{l2}x\\end{pmatrix}.\\]
\nWrite $f$ in matrix form.
", "correctAnswer": "matrix([0,l1],[l2,0])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "Charles Garnet's copy of Evals and evecs", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}, {"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}], "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "This question is about finding eigenvalues of
\\[A=\\begin{pmatrix}\\var{a11}&\\var{a12}\\\\0&\\var{a22}\\end{pmatrix}.\\]
A first step could be to compute the eigenvalues for the given matrix. Consider how we do this. We can then answer parts (a) and (b).
\nFor each eigenvalue, consider the corresponding eigenvectors. Be sure to select all of the vectors that are eigenvectors of A.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a11": {"name": "a11", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}, "a22": {"name": "a22", "group": "Ungrouped variables", "definition": "random(-6..-1 except ea11)", "description": "", "templateType": "anything", "can_override": false}, "a12": {"name": "a12", "group": "Ungrouped variables", "definition": "random(-5..5 except [0,a11+a22,a11-a22,a22-a11,a11,a22,ea11,ea22])", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-9..9 except [0,a12])", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "a22-a11", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-9..-1)", "description": "", "templateType": "anything", "can_override": false}, "ea11": {"name": "ea11", "group": "Ungrouped variables", "definition": "-a11", "description": "", "templateType": "anything", "can_override": false}, "ea22": {"name": "ea22", "group": "Ungrouped variables", "definition": "-a22", "description": "", "templateType": "anything", "can_override": false}, "ea12": {"name": "ea12", "group": "Ungrouped variables", "definition": "-a12", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a11", "a22", "a12", "a", "b", "c", "d", "ea11", "ea22", "ea12"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The matrix $A$ has [[0]] eigenvalues.
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "2", "maxValue": "2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The eigenvalues of $A$ are [[0]].
", "gaps": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": "1", "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "all-or-nothing", "choices": ["$\\var{a11}$", "$\\var{a22}$", "$\\var{ea11}$", "$\\var{ea22}$", "$0$", "$\\var{a12}$", "$\\var{ea12}$"], "matrix": ["1", "1", 0, 0, 0, 0, 0], "distractors": ["", "", "", "", "", "", ""]}], "sortAnswers": false}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Which of the following are eigenvectors of $A$? (Tick all that are.)
", "minMarks": 0, "maxMarks": "1", "shuffleChoices": true, "displayType": "checkbox", "displayColumns": "6", "minAnswers": "1", "maxAnswers": 0, "warningType": "warn", "showCellAnswerState": true, "markingMethod": "all-or-nothing", "choices": ["$\\begin{pmatrix}0\\\\0\\end{pmatrix}$", "$\\begin{pmatrix}\\var{a}\\\\0\\end{pmatrix}$", "$\\begin{pmatrix}\\var{a12}\\\\\\var{b}\\end{pmatrix}$", "$\\begin{pmatrix}\\var{c}\\\\\\var{c}\\end{pmatrix}$", "$\\begin{pmatrix}\\var{d}\\\\\\var{d}\\end{pmatrix}$", "$\\begin{pmatrix}-1\\\\1\\end{pmatrix}$"], "matrix": ["0", "1", "1", 0, 0, 0], "distractors": ["", "", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "true false evals", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}], "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "", "advice": "Try some matrices, possibly in $M_n(\\mathbb{R})$ and $M_n(\\mathbb{C})$, to decide on each statement.
\n(All except for one of the answers can be deduced from examples and results from lectures.)
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "0.5*random(1..11)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "0.5*random(-11..-1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Select all of the following that are always true.
", "minMarks": 0, "maxMarks": "0", "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Let $n\\in \\mathbb{N}$ and $A\\in M_n(\\mathbb{C})$. If $e_1$ is an eigenvector of $A$, then $\\var{a}e_1$ is, too.", "Let $n\\in \\mathbb{N}$ and $A\\in M_n(\\mathbb{C})$. If $v_1$ is an eigenvector of $A$, then $\\var{b}v_1$ is, too.", "If $A$ is in $M_3(\\mathbb{R})$, then it cannot have three distinct eigenvalues.", "If $v_1$ and $v_2$ are eigenvectors of $A$ corresponding to the same eigenvalue $\\lambda$, then $v_1=\\alpha v_2$ for some $\\alpha \\in \\mathbb{C}$.", "If $v_1$, $v_2$ are eigenvectors of $A$ with corresponding eigenvalues $\\lambda_1$ and $\\lambda_2$, then $v_1+v_2$ is an eigenvector with eigenvalue $\\lambda_1+\\lambda_2$.", "Let $n\\in \\mathbb{N}$ and $A\\in M_n(\\mathbb{R})$. Then it is possible for $A$ to have complex eigenvalues."], "matrix": ["1", "1", "-1", "-1", "-1", "1"], "distractors": ["", "", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "Similar matrices true false", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Garnet Cox", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24585/"}], "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "", "advice": "It is helpful to consider a matrix in $M_2(\\mathbb{C})$ with first column consisting only of zeroes. Can you diagonalise your matrix?
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Select all of the following that are always true for similar matrices.
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["They have the same determinant.", "They have the same eigenvalues.", "They have the same trace.", "They have the same image.", "They have the same eigenvectors."], "matrix": ["1", "1", "1", "-1", "-1"], "distractors": ["", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": true, "downloadEncryptionKey": "", "showresultspage": "review"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": false, "showactualmarkwhen": "inreview", "showtotalmarkwhen": "always", "showanswerstatewhen": "inreview", "showpartfeedbackmessageswhen": "inreview", "showexpectedanswerswhen": "never", "showadvicewhen": "inreview", "allowrevealanswer": false, "intro": "