// Numbas version: finer_feedback_settings {"name": "Arithmetics of complex numbers I", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"s1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s1"}, "d3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "name": "d3"}, "b3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s2*random(1..9)", "description": "", "name": "b3"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)+s4*random(1..9)*i", "description": "", "name": "b"}, "s4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s4"}, "z2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s2*random(1..9)+d6*i", "description": "", "name": "z2"}, "s2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s2"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)+ s4*random(1..9)*i", "description": "", "name": "a1"}, "e6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..4)", "description": "", "name": "e6"}, "s6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s6"}, "z3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s6*random(1..9)+e6*i", "description": "", "name": "z3"}, "a3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "name": "a3"}, "s3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s3"}, "c3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "name": "c3"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)+s2*random(1..9)*i", "description": "", "name": "a"}, "z1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)+f6*i", "description": "", "name": "z1"}, "f6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s4*random(1..4)", "description": "", "name": "f6"}, "d6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..4)", "description": "", "name": "d6"}}, "ungrouped_variables": ["a", "b", "f6", "s3", "s2", "s1", "d3", "s6", "s4", "a1", "c3", "a3", "b3", "d6", "e6", "z1", "z2", "z3"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Arithmetics of complex numbers I", "functions": {}, "showQuestionGroupNames": false, "parts": [{"prompt": "

$(\\simplify[std]{{a}})(\\simplify[std]{{b}})\\;=\\;$[[0]].

\n

 

\n

 

", "scripts": {}, "gaps": [{"answer": "{a*b}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "notallowed": {"message": "

Do not include decimals in your answers, only fractions or integers. Also do not include brackets in your answers.

", "showStrings": false, "partialCredit": 0, "strings": [".", "(", ")"]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}, {"prompt": "

$(\\simplify[std]{{a1}})^2\\;=\\;$[[0]].

", "scripts": {}, "gaps": [{"answer": "({a1^2})", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "notallowed": {"message": "

Do not include decimals in your answers, only fractions or integers. Also do not include brackets in your answers.

", "showStrings": false, "partialCredit": 0, "strings": [".", ")", "("]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}, {"prompt": "

$\\simplify[std,!otherNumbers]{{a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3}\\;=\\;$[[0]].

", "scripts": {}, "gaps": [{"answer": "{{a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "notallowed": {"message": "

Do not include decimals in your answers, only fractions or integers. Also do not include brackets in your answers.

", "showStrings": false, "partialCredit": 0, "strings": [".", ")", "("]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}, {"prompt": "

$(\\simplify[std]{{z1}}) (\\simplify[std]{{z2}}) (\\simplify[std]{{z3}})\\;=\\;$[[0]].

", "scripts": {}, "gaps": [{"answer": "{z1*z2*z3}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "notallowed": {"message": "\n

Do not include decimals in your answers, only fractions or integers. Also do not include brackets in your answers.

\n

 

\n ", "showStrings": false, "partialCredit": 0, "strings": [".", ")", "("]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}], "statement": "

Express the following in the form $a+bi\\;$ where $a$ and $b$ are real.

\n

Do not include decimals in your answers, only fractions or integers. Also do not include brackets in your answers.

", "tags": ["addition of complex numbers", "checked2015", "complex numbers", "mas1602", "MAS1602", "multiplication of complex numbers", "product of complex numbers"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "

15/07/2015:

\n

Added tags.

\n

4/07/2012:

\n

Added tags.

\n

16/07/2012:

\n

Added forbidden strings and warnings about not including decimal points or brackets in the answers as otherwise can just repeat the question and be marked correct.

", "licence": "Creative Commons Attribution 4.0 International", "description": "

Elementary examples of multiplication and addition of complex numbers. Four parts.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

a)
The formula for multiplying complex numbers is
\\[\\begin{eqnarray*}\\simplify[]{Re((a + ib)(c + id))} &=& ac -bd \\\\ \\simplify[]{Im((a + ib)(c + id))} &=& ad +bc \\end{eqnarray*} \\]

\n

So we have:
\\[\\begin{eqnarray*}\\simplify[]{Re({a}*{b})} &=& \\simplify[]{{Re(a)}*{Re(b)} - {Im( a)}*{Im(b)} = {Re(a*b)}}\\\\ \\simplify[]{Im({a}*{b})} &=& \\simplify[]{{Re(a)}*{Im(b)} + {Im( a)}*{Re(b)} = {Im(a*b)}} \\end{eqnarray*} \\]
Hence the solution is :

\n

\\[(\\simplify[std]{{a}})(\\simplify[std]{{b}})=\\var{a*b}\\]
b)

\n

This is calculated in a similar way once the expression is written as:

\n

$(\\simplify[std]{{a1}})^2= (\\simplify[std]{{a1}}) (\\simplify[std]{{a1}})$ then we find:

\n

\\[\\begin{eqnarray*}(\\simplify[std]{{a1}})^2&=& (\\simplify[std]{{a1}}) (\\simplify[std]{{a1}})\\\\ &=& \\simplify[]{({Re(a1)}*{Re(a1)} - {Im(a1)}*{Im(a1)})+ ({Re(a1)}*{Im(a1)} + {Im(a1)}*{Re(a1)})i}\\\\ &=& \\simplify[std]{{a1^2}} \\end{eqnarray*} \\]
c)
We know that $i^2=-1$ which gives $i^3=i^2i=-i$.

\n

Hence:
\\[ \\begin{eqnarray*} \\simplify[std,!otherNumbers]{{a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3}&=&\\simplify[std]{{a3} + {b3} * i -{c3} -({d3} * i)}\\\\ &=&\\simplify[std]{ {a3} -{c3} + ({b3} -{d3}) * i}\\\\ &=&\\simplify[std]{{a3 -c3} + {b3 -d3} * i} \\end{eqnarray*} \\]
d)
This can be calculated by using the formula twice, firstly to multiply out the first two sets of parentheses,
and then to multiply the result of that calculation by the third set of parentheses.

\n

So we obtain:
\\[ \\begin{eqnarray*} (\\var{z1})(\\var{z2})(\\var{z3})&=&((\\var{z1})(\\var{z2}))(\\var{z3})\\\\ &=&(\\var{z1*z2})(\\var{z3})\\\\ &=&\\var{z1*z2*z3} \\end{eqnarray*} \\]

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}