// Numbas version: exam_results_page_options {"name": "John's copy of Complex Numbers Ex Sheet 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Express the following in the form $a+bi$.

\n

Input $a$ and $b$ as fractions or integers and not as decimals.

", "variablesTest": {"condition": "", "maxRuns": 100}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "advice": "\n \n \n

Division of two complex numbers can be performed by mutiplying both the numerator and denominator by the conjugate of the denominator.
Suppose that \\[ z = \\frac{a+bi}{c+di},\\;\\; c+di \\neq 0\\] then we have:
\\[\\begin{eqnarray*}\n \n z&=&\\frac{a+bi}{c+di}\\\\\n \n &=&\\frac{(a+bi)(c-di)}{(c+di)(c-di)}\\\\\n \n &=&\\frac{(ac+bd)+(bc-ad)i}{c^2+d^2}\\\\\n \n &=&\\frac{ac+bd}{c^2+d^2}+\\frac{bc-ad}{c^2+d^2}i\n \n \\end{eqnarray*}\n \n \\]
Although this is a formula for the inverse, the best way to find these complex numbers is to remember to multiply top and bottom by the conjugate of the denominator.
(a)
\\[\\begin{eqnarray*}\\simplify[std]{{c1}/{z1}} &=&\\simplify[std]{({c1}*{conj(z1)})/({z1}*{conj(z1)})}\\\\\n \n &=&\\simplify[std]{{c1*conj(z1)}/{abs(z1)^2}}\\\\\n \n &=& \\simplify[std]{{c1*re(z1)}/{abs(z1)^2}-{c1*im(z1)}/{abs(z1)^2}*i}\n \n \\end{eqnarray*} \\]
(b)
\\[\\begin{eqnarray*}\\simplify[std]{{c2}/{z2}} &=&\\simplify[std]{({c2}*{conj(z2)})/({z2}*{conj(z2)})}\\\\\n \n &=&\\simplify[std]{{c2*conj(z2)}/{abs(z2)^2}}\\\\\n \n &=& \\simplify[std]{{c2*re(z2)}/{abs(z2)^2}-{c2*im(z2)}/{abs(z2)^2}*i}\n \n \\end{eqnarray*} \\]
(c)
\\[\\begin{eqnarray*}\\simplify[std]{{z1}/{z3}} &=&\\simplify[std]{({z1}*{conj(z3)})/({z3}*{conj(z3)})}\\\\\n \n &=&\\simplify[std]{{z1*conj(z3)}/{abs(z3)^2}}\\\\\n \n &=& \\simplify[std]{{re(z1*conj(z3))}/{abs(z3)^2}+{im(z1*conj(z3))}/{abs(z3)^2}*i}\n \n \\end{eqnarray*} \\]
(d)
\\[\\begin{eqnarray*}\\simplify[std]{{z3}/{z2}} &=&\\simplify[std]{({z3}*{conj(z2)})/({z2}*{conj(z2)})}\\\\\n \n &=&\\simplify[std]{{z3*conj(z2)}/{abs(z2)^2}}\\\\\n \n &=& \\simplify[std]{{re(z3*conj(z2))}/{abs(z2)^2}+{im(z3*conj(z2))}/{abs(z2)^2}*i}\n \n \\end{eqnarray*} \\]

\n \n ", "variable_groups": [], "showQuestionGroupNames": false, "tags": ["checked2015", "complex numbers", "conjugate of a complex number", "division of complex numbers", "inverse of complex numbers", "mas1602", "MAS1602", "multiplication of complex numbers"], "parts": [{"prompt": "

$\\displaystyle \\simplify[std]{{c1}/{z1}}\\;=\\;$[[0]].

\n

 Do not include brackets in your answer.

\n

 

", "type": "gapfill", "variableReplacements": [], "gaps": [{"variableReplacements": [], "answer": "{c1*re(z1)}/{abs(z1)^2}-{c1*im(z1)}/{abs(z1)^2}*i", "notallowed": {"strings": [".", "(", ")"], "showStrings": false, "message": "

Make sure that you input the real and imaginary parts as fractions and not as decimals. Do not include brackets in your answer.

", "partialCredit": 0}, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "checkingaccuracy": 0.001, "showCorrectAnswer": true, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "expectedvariablenames": [], "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1}], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0}, {"prompt": "

$\\displaystyle \\simplify[std]{{c2}/{z2}}\\;=\\;$[[0]].

\n

 Do not include brackets in your answer.

", "type": "gapfill", "variableReplacements": [], "gaps": [{"variableReplacements": [], "answer": "{c2*re(z2)}/{abs(z2)^2}-{c2*im(z2)}/{abs(z2)^2}*i", "notallowed": {"strings": [".", "(", ")"], "showStrings": false, "message": "

Make sure that you input the real and imaginary parts as fractions and not as decimals. Do not include brackets in your answer.

", "partialCredit": 0}, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "checkingaccuracy": 0.001, "showCorrectAnswer": true, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "expectedvariablenames": [], "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1}], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0}, {"prompt": "

$\\displaystyle \\simplify[std]{{z1}/{z3}}\\;=\\;$[[0]].

\n

Do not include brackets in your answer.

", "type": "gapfill", "variableReplacements": [], "gaps": [{"variableReplacements": [], "answer": "{re(z1*conj(z3))}/{abs(z3)^2}+{im(z1*conj(z3))}/{abs(z3)^2}*i", "notallowed": {"strings": [".", "(", ")"], "showStrings": false, "message": "

Make sure that you input the real and imaginary parts as fractions and not as decimals. Also do not include brackets in your answer.

", "partialCredit": 0}, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "checkingaccuracy": 0.001, "showCorrectAnswer": true, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "expectedvariablenames": [], "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1}], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0}, {"prompt": "

$\\displaystyle \\simplify[std]{{z3}/{z2}}\\;=\\;$[[0]].

\n

 Do not include brackets in your answer.

", "type": "gapfill", "variableReplacements": [], "gaps": [{"variableReplacements": [], "answer": "{re(z3*conj(z2))}/{abs(z2)^2}+{im(z3*conj(z2))}/{abs(z2)^2}*i", "notallowed": {"strings": [".", "(", ")"], "showStrings": false, "message": "

Make sure that you input the real and imaginary parts as fractions and not as decimals.  Do not include brackets in your answer.

", "partialCredit": 0}, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "checkingaccuracy": 0.001, "showCorrectAnswer": true, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "expectedvariablenames": [], "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1}], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0}], "preamble": {"js": "", "css": ""}, "type": "question", "ungrouped_variables": ["s3", "s2", "s1", "s4", "a3", "rz3", "c2", "c1", "z1", "z2", "z3"], "variables": {"a3": {"definition": "s3*random(1..9)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "a3"}, "c1": {"definition": "s3*random(1..9)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "c1"}, "s4": {"definition": "random(1,-1)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "s4"}, "rz3": {"definition": "if(a3=re(z1),a3+random(1,-1),a3)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "rz3"}, "s2": {"definition": "random(1,-1)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "s2"}, "c2": {"definition": "random(1..5)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "c2"}, "s1": {"definition": "random(1,-1)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "s1"}, "s3": {"definition": "random(1,-1)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "s3"}, "z2": {"definition": "re(z1)+s2*random(1,2)+s4*random(1..9)*i", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "z2"}, "z3": {"definition": "rz3+s1*random(1..9)*i", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "z3"}, "z1": {"definition": "s2*random(1..9)+s1*random(1..9)*i", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "z1"}}, "name": "John's copy of Complex Numbers Ex Sheet 3", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "notes": "

15/07/2015:

\n

Added tags.

\n

4/07/2012:

\n

Added tags

\n

Question a - sometimes the complex number is generated as a/(b+i*c) but sometimes the complex number is displayed as a decimal, i.e. 0.0975609756+0.1219512195i if this happens then the question is invalid.

\n

16/07/2012:

\n

The above issue has been resolved,

\n

 Also forbid brackets in the answers as otherwise can repeat the question and be marked as correct.

\n

0.0975609756+0.1219512195i

\n

 

", "description": "

Inverse and division of complex numbers.  Four parts.

"}, "functions": {}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "contributors": [{"name": "John Sheekey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1192/"}]}]}], "contributors": [{"name": "John Sheekey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1192/"}]}