// Numbas version: exam_results_page_options {"name": "Terry's copy of Pythagorean Identity: find cos given sin", "extensions": [], "custom_part_types": [], "resources": [["question-resources/right_angled_triangle_4erLEm1.svg", "/srv/numbas/media/question-resources/right_angled_triangle_4erLEm1.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

You are told that $\\sin\\theta=\\simplify{{a}/sqrt({cc})}$.

", "showQuestionGroupNames": false, "ungrouped_variables": ["a", "c", "aa", "cc", "diff"], "functions": {}, "rulesets": {}, "parts": [{"marks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "

If $\\theta$ is in the first fourth quadrant, then the exact value of $\\cos\\theta$ is [[0]].

\n

Note: In this question we require you input your answer without decimals and without entering the words sin, cos or tan. For example, if your answer is $\\frac{\\sqrt{5}}{\\sqrt{17}}$, then enter sqrt(5)/sqrt(17)

", "variableReplacements": [], "gaps": [{"answersimplification": "fractionNumbers", "vsetrangepoints": 5, "checkingtype": "absdiff", "variableReplacements": [], "vsetrange": [0, 1], "checkvariablenames": false, "showCorrectAnswer": true, "expectedvariablenames": [], "marks": 1, "notallowed": {"partialCredit": 0, "strings": [".", "sin", "cos", "tan", "sec", "cosec", "cot"], "showStrings": true, "message": ""}, "showpreview": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "answer": "sqrt({diff})", "type": "jme", "checkingaccuracy": 0.001}], "type": "gapfill", "showCorrectAnswer": true}, {"marks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "

If $\\theta$ is in the second third quadrant, then the exact value of $\\cos\\theta$ is [[0]].

\n

Note: In this question we require you input your answer without decimals and without entering the words sin, cos or tan. For example, if your answer is $\\frac{\\sqrt{5}}{\\sqrt{17}}$, then enter sqrt(5)/sqrt(17)

", "variableReplacements": [], "gaps": [{"answersimplification": "fractionNumbers", "vsetrangepoints": 5, "checkingtype": "absdiff", "variableReplacements": [], "vsetrange": [0, 1], "checkvariablenames": false, "showCorrectAnswer": true, "expectedvariablenames": [], "marks": 1, "notallowed": {"partialCredit": 0, "strings": [".", "sin", "cos", "tan", "sec", "cosec", "cot"], "showStrings": true, "message": ""}, "showpreview": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "answer": "-sqrt({diff})", "type": "jme", "checkingaccuracy": 0.001}], "type": "gapfill", "showCorrectAnswer": true}], "metadata": {"description": "

Use $\\cos^2\\theta+\\sin^2\\theta=1$ and/or an understanding on the unit circle definitions to determine $\\cos\\theta$ given $\\sin\\theta$ and the quadrant theta is in.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "name": "Terry's copy of Pythagorean Identity: find cos given sin", "preamble": {"js": "", "css": ""}, "advice": "

The equation of the unit circle is \\[x^2+y^2=1\\]

\n

This equation is a consequence of Pythagoras' Theorem, $a^2+b^2=c^2$, on a triangle in the unit circle with hypotenuse 1.

\n

Given that $\\cos\\theta$ is the $x$ coordinate of a point on the unit circle, and that $\\sin\\theta$ is the $y$ coordinate of the same point, by substitution we have the following Pythagorean identity \\[\\cos^2\\theta+\\sin^2\\theta=1\\]

\n

where $\\cos^2\\theta$ and $\\sin^2\\theta$ is the notation used to represent $(\\cos\\theta)^2$ and $(\\sin\\theta)^2$ respectively.

\n

Using the vaue of $\\sin\\theta$ given in the question we have that $\\cos^2\\theta+\\left(\\simplify{{a}/sqrt({cc})}\\right)^2=1$. We solve for $\\sin\\theta$:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\cos^2\\theta+\\simplify{{aa}/{cc}}$$=$$1$
$\\cos^2\\theta$$=$$1-\\simplify{{aa}/{cc}}$
$\\cos^2\\theta$$=$$\\simplify[fractionNumbers]{{diff}}$
$\\cos\\theta$$=$$\\pm\\simplify[fractionNumbers]{sqrt({diff})}$
\n

\n

Because we are told that $\\sin\\theta$ is positive, we know that $\\theta$ is in the first or second quadrant (since $\\sin\\theta$ is the $y$ coordinate). If $\\theta$ is in the first quadrant, then (since $\\cos\\theta$ is the $x$ coordinate) $\\cos\\theta$ is positive, that is, $\\cos\\theta=\\simplify[fractionNumbers]{sqrt({diff})}$. However, if $\\theta$ is in the second quadrant, then (since $\\cos\\theta$ is the $x$ coordinate) $\\cos\\theta$ is negative, that is, $\\cos\\theta=-\\simplify[fractionNumbers]{sqrt({diff})}$.  negative, we know that $\\theta$ is in the third or fourth quadrant (since $\\sin\\theta$ is the $y$ coordinate). If $\\theta$ is in the fourth quadrant, then (since $\\cos\\theta$ is the $x$ coordinate) $\\cos\\theta$ is positive, that is, $\\cos\\theta=\\simplify[fractionNumbers]{sqrt({diff})}$. However, if $\\theta$ is in the third quadrant, then (since $\\cos\\theta$ is the $x$ coordinate) $\\cos\\theta$ is negative, that is, $\\cos\\theta=-\\simplify[fractionNumbers]{sqrt({diff})}$.  

\n

", "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "tags": ["trigonometry", "Trigonometry"], "variables": {"cc": {"description": "", "definition": "random(144..624 except [169,196,225,256,289,324,361,400,441,484,529,576])", "name": "cc", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"description": "", "definition": "random(-11..11 except 0)", "name": "a", "group": "Ungrouped variables", "templateType": "anything"}, "aa": {"description": "", "definition": "a^2", "name": "aa", "group": "Ungrouped variables", "templateType": "anything"}, "diff": {"description": "", "definition": "1-aa/cc", "name": "diff", "group": "Ungrouped variables", "templateType": "anything"}, "c": {"description": "", "definition": "'\\$\\\\simplify{sqrt({cc})\\}$'", "name": "c", "group": "Ungrouped variables", "templateType": "anything"}}, "type": "question", "question_groups": [{"questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0, "name": ""}], "extensions": [], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}