// Numbas version: exam_results_page_options {"name": "Maria's copy of 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": [], "tags": ["addition of complex numbers", "checked2015", "complex numbers", "mas1602", "MAS1602", "multiplication of complex numbers", "product of complex numbers"], "showQuestionGroupNames": false, "functions": {}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "preamble": {"css": "", "js": ""}, "question_groups": [{"name": "", "pickQuestions": 0, "questions": [], "pickingStrategy": "all-ordered"}], "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.

", "name": "Maria's copy of Arithmetics of complex numbers I", "variables": {"s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "templateType": "anything", "description": ""}, "d3": {"name": "d3", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "templateType": "anything", "description": ""}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "s3*random(1..9)+f6*i", "templateType": "anything", "description": ""}, "s6": {"name": "s6", "group": "Ungrouped variables", "definition": "random(1,-1)", "templateType": "anything", "description": ""}, "z3": {"name": "z3", "group": "Ungrouped variables", "definition": "s6*random(1..9)+e6*i", "templateType": "anything", "description": ""}, "f6": {"name": "f6", "group": "Ungrouped variables", "definition": "s4*random(1..4)", "templateType": "anything", "description": ""}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "templateType": "anything", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "s1*random(1..9)+s2*random(1..9)*i", "templateType": "anything", "description": ""}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "templateType": "anything", "description": ""}, "z2": {"name": "z2", "group": "Ungrouped variables", "definition": "s2*random(1..9)+d6*i", "templateType": "anything", "description": ""}, "s4": {"name": "s4", "group": "Ungrouped variables", "definition": "random(1,-1)", "templateType": "anything", "description": ""}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "templateType": "anything", "description": ""}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "s2*random(1..9)", "templateType": "anything", "description": ""}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "s1*random(1..9)+ s4*random(1..9)*i", "templateType": "anything", "description": ""}, "e6": {"name": "e6", "group": "Ungrouped variables", "definition": "s3*random(1..4)", "templateType": "anything", "description": ""}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "templateType": "anything", "description": ""}, "d6": {"name": "d6", "group": "Ungrouped variables", "definition": "s1*random(1..4)", "templateType": "anything", "description": ""}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "s3*random(1..9)+s4*random(1..9)*i", "templateType": "anything", "description": ""}}, "ungrouped_variables": ["a", "b", "f6", "s3", "s2", "s1", "d3", "s6", "s4", "a1", "c3", "a3", "b3", "d6", "e6", "z1", "z2", "z3"], "parts": [{"gaps": [{"vsetrangepoints": 5, "vsetrange": [0, 1], "expectedvariablenames": [], "answer": "{a*b}", "marks": 1, "checkingaccuracy": 0.001, "variableReplacements": [], "showpreview": true, "checkvariablenames": false, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingtype": "absdiff", "notallowed": {"strings": [".", "(", ")"], "message": "

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

", "partialCredit": 0, "showStrings": false}, "type": "jme"}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 0, "prompt": "

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

\n

 

\n

 

", "variableReplacements": [], "type": "gapfill"}, {"gaps": [{"vsetrangepoints": 5, "vsetrange": [0, 1], "expectedvariablenames": [], "answer": "({a1^2})", "marks": 1, "checkingaccuracy": 0.001, "variableReplacements": [], "showpreview": true, "checkvariablenames": false, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingtype": "absdiff", "notallowed": {"strings": [".", ")", "("], "message": "

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

", "partialCredit": 0, "showStrings": false}, "type": "jme"}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 0, "prompt": "

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

", "variableReplacements": [], "type": "gapfill"}, {"gaps": [{"vsetrangepoints": 5, "vsetrange": [0, 1], "expectedvariablenames": [], "answer": "{{a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3}", "marks": 1, "checkingaccuracy": 0.001, "variableReplacements": [], "showpreview": true, "checkvariablenames": false, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingtype": "absdiff", "notallowed": {"strings": [".", ")", "("], "message": "

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

", "partialCredit": 0, "showStrings": false}, "type": "jme"}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 0, "prompt": "

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

", "variableReplacements": [], "type": "gapfill"}, {"gaps": [{"vsetrangepoints": 5, "vsetrange": [0, 1], "expectedvariablenames": [], "answer": "{z1*z2*z3}", "marks": 1, "checkingaccuracy": 0.001, "variableReplacements": [], "showpreview": true, "checkvariablenames": false, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingtype": "absdiff", "notallowed": {"strings": [".", ")", "("], "message": "\n

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

\n

 

\n ", "partialCredit": 0, "showStrings": false}, "type": "jme"}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 0, "prompt": "

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

", "variableReplacements": [], "type": "gapfill"}], "type": "question", "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*} \\]

", "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "

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

", "licence": "Creative Commons Attribution 4.0 International", "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.

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