// Numbas version: finer_feedback_settings {"name": "Scalar Triple Product", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "name": "Scalar Triple Product", "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

Note that $\\boldsymbol{a}\\times \\boldsymbol{b}$ is a vector which is perpendicular to both $\\boldsymbol{a}$ and $\\boldsymbol{b}$ and hence to the plane through the origin containing $\\boldsymbol{a}$ and $\\boldsymbol{b}$. 

\n

So if $\\boldsymbol{c}$ is perpendicular to $\\boldsymbol{a} \\times \\boldsymbol{b}$, i.e. $(\\boldsymbol{a}\\times \\boldsymbol{b})\\boldsymbol{\\cdot} \\boldsymbol{c} = 0$, it must lie on the same plane.

\n

Now

\n

\\begin{align} 
\\boldsymbol{a} \\times \\boldsymbol{b} &= \\var{vector(x1,x2,x3)} \\times \\var{vector(y1,y2,y3)} \\\\[1em]
&= \\simplify[]{vector({x2}*{y3}-{x3}*{y2}, {x3}*{y1}-{x1}*{y3}, {x1}*{y2}-{x2}*{y1})} \\\\[1em]
&= \\var{vector(w1,w2,w3)}
\\end{align}

\n

Hence

\n

\\begin{align}
(\\boldsymbol{a}\\times \\boldsymbol{b})\\boldsymbol{\\cdot} \\boldsymbol{c} &= \\var{vector(w1,w2,w3)} \\boldsymbol{\\cdot} \\begin{pmatrix} \\var{z1} \\\\ \\var{z2} \\\\ \\lambda \\end{pmatrix} \\\\[1em]
&= \\simplify[]{{w1}*{z1}+{w2}*{z2}+{w3}*lambda} \\\\[1em]
&= \\simplify{{w1*z1+w2*z2}+{w3}*lambda}
\\end{align}

\n


We now require a value of $\\lambda$ so that $(\\boldsymbol{a}\\times \\boldsymbol{b})\\boldsymbol{\\cdot} \\boldsymbol{c}=0$.

\n

\\begin{align}
&&(\\boldsymbol{a}\\times \\boldsymbol{b})\\boldsymbol{\\cdot} \\boldsymbol{c} &=  0 \\\\
\\implies &&\\simplify{{w1*z1+w2*z2}+{w3}*lambda} &= 0 \\\\
\\implies &&\\lambda &= \\simplify[std]{{-w1*z1-w2*z2}/{w3}}
\\end{align}

", "variables": {"y3": {"name": "y3", "description": "", "group": "y", "templateType": "anything", "definition": "if(x1=x3,if(y1=ty3,-ty3,ty3),ty3)"}, "x3": {"name": "x3", "description": "", "group": "x", "templateType": "anything", "definition": "random(-9..9)"}, "x1": {"name": "x1", "description": "", "group": "x", "templateType": "anything", "definition": "s1*random(1..9)"}, "y1": {"name": "y1", "description": "", "group": "y", "templateType": "anything", "definition": "s3*random(2..9)"}, "w3": {"name": "w3", "description": "", "group": "w", "templateType": "anything", "definition": "x1*y2-x2*y1"}, "lambda": {"name": "lambda", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "(x3*(y1*z2-y2*z1)+y3*(x2*z1-x1*z2))/(x2*y1-x1*y2)"}, "s5": {"name": "s5", "description": "", "group": "s", "templateType": "anything", "definition": "random(1,-1)"}, "ty3": {"name": "ty3", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "s6*random(1..9)"}, "x2": {"name": "x2", "description": "", "group": "x", "templateType": "anything", "definition": "s2*random(2..9)"}, "z2": {"name": "z2", "description": "", "group": "z", "templateType": "anything", "definition": "s4*random(2..9)"}, "s3": {"name": "s3", "description": "", "group": "s", "templateType": "anything", "definition": "random(1,-1)"}, "y2": {"name": "y2", "description": "", "group": "y", "templateType": "anything", "definition": "if(x1*z2=x2*y1,z2+1,z2)"}, "s1": {"name": "s1", "description": "", "group": "s", "templateType": "anything", "definition": "random(1,-1)"}, "z1": {"name": "z1", "description": "", "group": "z", "templateType": "anything", "definition": "s5*random(1..9)"}, "s4": {"name": "s4", "description": "", "group": "s", "templateType": "anything", "definition": "random(1,-1)"}, "s6": {"name": "s6", "description": "", "group": "s", "templateType": "anything", "definition": "random(1,-1)"}, "w2": {"name": "w2", "description": "", "group": "w", "templateType": "anything", "definition": "x3*y1-y3*x1"}, "s2": {"name": "s2", "description": "", "group": "s", "templateType": "anything", "definition": "random(1,-1)"}, "w1": {"name": "w1", "description": "", "group": "w", "templateType": "anything", "definition": "x2*y3-y2*x3"}}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "prompt": "

You are given three vectors$,

\n

\\begin{align}
\\boldsymbol{a} &= \\var{vector(x1,x2,x3)}, &
\\boldsymbol{b} &= \\var{vector(y1,y2,y3)}, &
\\boldsymbol{c} &= \\begin{pmatrix} \\var{z1} \\\\ \\var{z2} \\\\ \\lambda \\end{pmatrix}
\\end{align}

\n

where $\\lambda$ is a parameter to be determined.

\n

Find the value of $\\lambda$ such that $\\boldsymbol{a}$, $\\boldsymbol{b}$ and $\\boldsymbol{c}$ all lie on the same plane through the origin.

\n

\n

$\\lambda=$ [[0]].

\n

Enter your answer as a fraction or integer and not a decimal.

", "gaps": [{"minValue": "lambda", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": true, "marks": 2, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "maxValue": "lambda", "mustBeReducedPC": 0, "type": "numberentry", "showCorrectAnswer": true, "mustBeReduced": false}], "showFeedbackIcon": true, "marks": 0, "type": "gapfill", "variableReplacements": []}], "statement": "

", "ungrouped_variables": ["ty3", "lambda"], "tags": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": ""}, "functions": {}, "variable_groups": [{"name": "w", "variables": ["w1", "w2", "w3"]}, {"name": "s", "variables": ["s1", "s2", "s3", "s4", "s5", "s6"]}, {"name": "x", "variables": ["x1", "x2", "x3"]}, {"name": "y", "variables": ["y1", "y2", "y3"]}, {"name": "z", "variables": ["z1", "z2"]}], "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Matthew Mears", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1688/"}]}]}], "contributors": [{"name": "Matthew Mears", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1688/"}]}