// Numbas version: finer_feedback_settings {"name": "Trigonometry: Alternative Trigonometric Forms 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Trigonometry: Alternative Trigonometric Forms 3", "tags": [], "metadata": {"description": "

Rewriting a trigonometric expression of the form $A\\cos(\\theta)-B\\sin(\\theta)$ to $R\\cos(\\theta+\\alpha)$ by calculating $R$ and $\\alpha$.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

If \\[\\simplify[unitFactor]{{A}cos(theta)}-\\simplify[unitFactor]{{B}sin(theta)} = R \\cos (\\theta + \\alpha),\\]

\n

find the values for $R$ and $\\alpha$, given $R>0$ and $0<\\alpha<\\frac{\\pi}{2}$.

", "advice": "

To find $R$ and $\\alpha$ we want to first rewrite our equation using the double-angle formula, $\\cos(a+b)=\\cos(a)\\cos(b)-\\sin(a)\\sin(b)$:

\n

\\[ \\begin{split}\\simplify[unitFactor]{{A}cos(theta)}-\\simplify[unitFactor]{{B}sin(theta)} &\\,= R \\cos (\\theta + \\alpha) \\\\ &\\,= R(\\cos(\\theta)\\cos(\\alpha) - \\sin(\\theta)\\sin(\\alpha)) \\\\ &\\,= R\\cos(\\theta)\\cos(\\alpha) - R\\sin(\\theta)\\sin(\\alpha). \\end{split} \\]

\n

By comparing the coefficients of $\\cos(\\theta)$ and $\\sin(\\theta)$, we find that

\n

\\[ R\\cos(\\alpha) = \\var{A},\\quad \\text{and} \\quad R\\sin(\\alpha) = \\var{B}. \\]

\n

To calculate $R$, we want to square these results and add them together, allowing us to make use of $\\sin^2(\\alpha)+\\cos^2(\\alpha) = 1$:

\n

{Rsol}

\n

Similarly, to find $\\alpha$ we can divide $R\\sin(\\alpha) = \\var{B}$ by $R\\cos(\\alpha) = \\var{A}$, and use the identity $\\tan(\\alpha) = \\frac{\\sin(\\alpha)}{\\cos(\\alpha)}$:

\n

\\[ \\frac{R\\sin(\\alpha)}{R\\cos(\\alpha)} = \\frac{\\var{B}}{\\var{A}} \\implies \\tan(\\alpha) = \\simplify[fractionNumbers]{{B/A}}.\\]

\n

Therefore, \\[ \\begin{split} \\alpha &\\,= \\tan^{-1}\\left(\\simplify[fractionNumbers]{{B/A}}\\right) \\\\ &\\,= \\var{alpharound} \\text{ (2 d.p.)}. \\end{split} \\]

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"A": {"name": "A", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "B": {"name": "B", "group": "Ungrouped variables", "definition": "random(1..5 except A)", "description": "", "templateType": "anything", "can_override": false}, "R": {"name": "R", "group": "Ungrouped variables", "definition": "sqrt(A^2+B^2)", "description": "", "templateType": "anything", "can_override": false}, "Rround": {"name": "Rround", "group": "Ungrouped variables", "definition": "precround(R,2)", "description": "", "templateType": "anything", "can_override": false}, "alpha": {"name": "alpha", "group": "Ungrouped variables", "definition": "arctan(B/A)", "description": "", "templateType": "anything", "can_override": false}, "Rsol": {"name": "Rsol", "group": "Ungrouped variables", "definition": "if(R=round(R),'{Rsol1}','{Rsol2}')", "description": "", "templateType": "anything", "can_override": false}, "Rsol1": {"name": "Rsol1", "group": "Ungrouped variables", "definition": "\"

\\\\[ \\\\begin{split} R^2\\\\cos^2(\\\\alpha) + R^2 \\\\sin^2(\\\\alpha) &\\\\,= \\\\var{A}^2+\\\\var{B}^2 \\\\\\\\ R^2 (\\\\cos^2(\\\\alpha) +\\\\sin^2(\\\\alpha)) &\\\\,= \\\\var{A^2+B^2} \\\\\\\\ R &\\\\,= \\\\var{R}. \\\\end{split} \\\\]

\"", "description": "", "templateType": "long string", "can_override": false}, "Rsol2": {"name": "Rsol2", "group": "Ungrouped variables", "definition": "\"

\\\\[ \\\\begin{split} R^2\\\\cos^2(\\\\alpha) + R^2 \\\\sin^2(\\\\alpha) &\\\\,= \\\\var{A}^2+\\\\var{B}^2 \\\\\\\\ R^2 (\\\\cos^2(\\\\alpha) +\\\\sin^2(\\\\alpha)) &\\\\,= \\\\var{A^2+B^2} \\\\\\\\ R &\\\\,= \\\\sqrt{\\\\var{A^2+B^2}}\\\\\\\\ &\\\\,=\\\\var{Rround} \\\\text{ (2 d.p.)}. \\\\end{split} \\\\]

\"", "description": "", "templateType": "long string", "can_override": false}, "alpharound": {"name": "alpharound", "group": "Ungrouped variables", "definition": "precround(alpha,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["A", "B", "R", "Rround", "alpha", "alpharound", "Rsol", "Rsol1", "Rsol2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$R=$[[0]]

\n

$\\alpha=$[[1]]

\n

(Give your answers to 2 decimal places where necessary.)

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{Rround}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{alpharound}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}