// Numbas version: exam_results_page_options {"name": "Find the angle between planes", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"showCorrectAnswer": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "

$\\alpha = $ [[0]] radians

\n

(Enter your answer in radians, to 3 decimal places)

", "unitTests": [], "sortAnswers": false, "scripts": {}, "gaps": [{"precisionPartialCredit": 0, "mustBeReduced": false, "type": "numberentry", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "variableReplacements": [], "allowFractions": false, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "minValue": "ans", "maxValue": "ans", "precision": 3, "unitTests": [], "precisionType": "dp", "showPrecisionHint": false, "strictPrecision": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "marks": 2, "mustBeReducedPC": 0}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "showFeedbackIcon": true}], "variables": {"tol": {"group": "Ungrouped variables", "templateType": "anything", "definition": "0.001", "description": "", "name": "tol"}, "r1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "vector(repeat(random(-1,1)*random(1..9),3))", "description": "", "name": "r1"}, "n1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "cross(r2-r1,r3-r1)", "description": "", "name": "n1"}, "tn1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "cross(r2-r1,tr3-r1)", "description": "", "name": "tn1"}, "b1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)*random(1..9)", "description": "", "name": "b1"}, "tr3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "vector(sign(r1[0])*random(1..9),sign(r1[1])*random(1..5),sign(r1[2])*random(1..9))", "description": "", "name": "tr3"}, "a1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)*random(1..9)", "description": "", "name": "a1"}, "d1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)*random(1..9)", "description": "", "name": "d1"}, "c1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)*random(1..9)", "description": "", "name": "c1"}, "r3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "if (tn1=vector(0), vector(tr3[0]+1,tr3[1],tr3[2]), tr3)", "description": "", "name": "r3"}, "ans": {"group": "Ungrouped variables", "templateType": "anything", "definition": "if(alpha>pi/2,pi-alpha,alpha)", "description": "", "name": "ans"}, "r2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "vector(sign(r1[0])*random(1..9 except abs(r1[0])),sign(r1[1])*random(2..5),sign(r1[2])*random(1..5))", "description": "", "name": "r2"}, "alpha": {"group": "Ungrouped variables", "templateType": "anything", "definition": "arccos((a1*n1[0]+b1*n1[1]+c1*n1[2])/sqrt((abs(n1)^2)*(a1^2+b1^2+c1^2)))", "description": "", "name": "alpha"}}, "ungrouped_variables": ["tn1", "r1", "r2", "r3", "a1", "b1", "tol", "alpha", "ans", "n1", "c1", "tr3", "d1"], "name": "Find the angle between planes", "functions": {}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Calculate the angle $\\alpha,\\;0\\leq\\alpha \\leq \\frac{\\pi}{2}$, between the plane $\\Pi_1$, passing through the points

\n

\\begin{align}
\\boldsymbol{r_1} &= \\var{r1}, & \\boldsymbol{r_2} &= \\var{r2}, & \\boldsymbol{r_3} &= \\var{r3}
\\end{align}

\n

and the plane, $\\Pi_2$, whose equation is

\n

\\[\\simplify[std]{{a1}x+{b1}y+{c1}z={d1}}\\]

", "tags": ["angle between lines with a common point in 3 space", "angle between planes", "cartesian equation of a plane", "checked2015", "diagram needed", "finding the angle between two planes", "normal to a plane", "parametric form of a plane", "plane given by three points in three space", "vectors"], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "extensions": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find angle between plane $\\Pi_1$, given by three points, and the plane $\\Pi_2$ given in Cartesian form.

\n

The calculation of $cos(\\alpha)$ at the end of Advice has fractionNumbers switched on and so the result is presented as a fraction, which can be misleading. Best if calculation is followed through without using fractionNumbers.

"}, "advice": "

The angle between two planes is given by the angle between their normals.

\n

The plane $\\Pi_1$ can be written in the form

\n

\\[\\boldsymbol{r} = \\boldsymbol{r}_1+\\lambda( \\boldsymbol{r}_2 - \\boldsymbol{r}_1)+\\mu( \\boldsymbol{r}_3- \\boldsymbol{r}_1)\\]

\n

and the normal $\\boldsymbol{n}_1$ to this plane is given by:

\n

\\[ \\boldsymbol{n}_1 = (\\boldsymbol{r}_2 - \\boldsymbol{r}_1)\\times (\\boldsymbol{r}_3- \\boldsymbol{r}_1)\\]

\n

For $ \\boldsymbol{r}_1$, $\\boldsymbol{r}_2$, $\\boldsymbol{r}_3$ as given.

\n

\\[ \\boldsymbol{n}_1 = \\var{n1} \\]

\n

The normal to the plane $\\Pi_2$ is given by

\n

\\[ \\boldsymbol{n}_2 = \\var{vector(a1,b1,c1)} \\]

\n

The angle between the two normals (and hence the two planes) can be found using:

\n

\\[ \\cos(\\alpha) = \\frac{\\boldsymbol{n}_1 \\cdot \\boldsymbol{n}_2}{\\lVert\\boldsymbol{n}_1\\rVert \\lVert\\boldsymbol{n}_2\\rVert} \\]

\n

On calculating this, we obtain

\n

\\begin{align}
\\boldsymbol{n}_1 \\boldsymbol{\\cdot} \\boldsymbol{n}_2 &= \\var{a1*n1[0]+b1*n1[1]+c1*n1[2]} \\\\
\\lVert\\boldsymbol{n}_1\\rVert &= \\simplify[std]{sqrt({n1[0]^2+n1[1]^2+n1[2]^2})} \\\\
\\lVert\\boldsymbol{n}_2\\rVert &= \\simplify[std]{sqrt({a1^2+b1^2+c1^2})}\\\\
\\cos(\\alpha) &= \\simplify[std]{{(a1*n1[0]+b1*n1[1]+c1*n1[2])/sqrt((n1[0]^2+n1[1]^2+n1[2]^2)*(a1^2+b1^2+c1^2))}}
\\end{align}

\n

Now calculate $\\arccos(\\alpha) = \\var{precround(alpha,3)}$. The angle returned by your calculator will give a value between $0$ and $\\pi$. If it's bigger than $\\frac{\\pi}{2}$, subtract the calculated value from $\\pi$ to obtain an acute angle. So the angle between the two planes is 

\n

\\[ \\alpha' = \\pi - \\var{precround(alpha,3)} = \\var{precround(ans,3)} \\text{ radians} \\]

\n

\\[ \\alpha = \\var{precround(ans,3)} \\text{ radians} \\]

\n

to 3 decimal places.

\n

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