// Numbas version: exam_results_page_options {"name": "Graphing: circles - x and y intercepts", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["triples", "r", "rs", "a'", "b'", "a", "b", "k", "xints", "yints", "xdet", "xug", "yug", "ydet"], "name": "Graphing: circles - x and y intercepts", "tags": ["circles", "Graphing", "graphing", "intercepts", "sketching"], "advice": "

The $x$-intercept is the value of $x$ when $y=0$, that is, the value of $x$ where the graph hits the $x$-axis.

\n

To find it, substitute $y=0$ into our equation:

\n

\\[\\simplify[all]{(x-{a})^2}+\\simplify[basic]{(-{b})^2={r}^2}\\]

\n

and solve for $x$:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\simplify[all]{(x-{a})^2}$$=$$\\simplify[basic]{{r}^2-{abs(b)}^2}$
$\\simplify[all]{(x-{a})}$$=$$\\pm\\sqrt{\\simplify[basic]{{r}^2-{abs(b)}^2}}$
$=$$\\pm\\sqrt{\\var{xdet}}$
$=$$\\pm$$\\var{xug}$
$x$$=$$\\var{a}$$\\pm\\var{xug}$
$x$$=$$\\var{a-xug}$$,\\var{a+xug}$
\n

Since we are only working with real numbers, and the square root of a negative number is not a real number, there are no $x$-intercepts.

\n

Since we took the (plus or minus) square root of zero we only have one $x$-intercept, $x=\\var{a}$. 

\n

In this case we have two distinct $x$-intercepts.

\n

\n

The $y$-intercept is the value of $y$ when $x=0$, that is, the value of $y$ where the graph hits the $y$-axis.

\n

To find it, substitute $x=0$ into our equation:

\n

\\[\\simplify[basic]{(-{a})^2}+\\simplify[all]{(y-{b})^2}=\\simplify[basic]{{r}^2}\\]

\n

and solve for $y$:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\simplify[all]{(y-{b})^2}$$=$$\\simplify[basic]{{r}^2-{abs(a)}^2}$
$\\simplify[all]{(y-{b})}$$=$$\\pm\\sqrt{\\simplify[basic]{{r}^2-{abs(a)}^2}}$
$=$$\\pm\\sqrt{\\var{ydet}}$
$=$$\\pm$$\\var{yug}$
$y$$=$$\\var{b}$$\\pm\\var{yug}$
$y$$=$$\\var{b-yug}$$,\\var{b+yug}$
\n

Since we are only working with real numbers, and the square root of a negative number is not a real number, there are no $y$-intercepts.

\n

Since we took the (plus or minus) square root of zero we only have one $y$-intercept, $y=\\var{b}$. 

\n

In this case we have two distinct $y$-intercepts.

", "rulesets": {}, "parts": [{"prompt": "

The set of $x$-intercepts of the graph of this equation would be [[0]].

\n

Note: If there are no intercepts, enter set()

\n

If there is only one intercept, say $x=5$, enter set(5)

\n

If there are two intercepts, say $x=-2$ and $x=1.5$, enter set(-2,1.5)

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{xints}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

The set of $y$-intercepts of the graph of this equation would be [[0]].

\n

Note: If there are no intercepts, enter set()

\n

If there is only one intercept, say $y=5$, enter set(5)

\n

If there are two intercepts, say $y=-2$ and $y=1.5$, enter set(-2,1.5)

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{yints}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

You are given the equation of the circle $\\simplify[all]{(x-{a})^2+(y-{b})^2}=\\simplify[basic]{{r}^2}$.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "if(a'<>k,random(-1,1)*a',a')", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "b'": {"definition": "random(triples[2],0,triples[0],triples[1],k)", "templateType": "anything", "group": "Ungrouped variables", "name": "b'", "description": ""}, "triples": {"definition": "random([[3, 4, 5], [5, 12, 13], [7, 24, 25], [8, 15, 17], [9, 40, 41], [11, 60, 61], [12, 35, 37], [16, 63, 65], [20, 21, 29], [20, 99, 101], [24, 143, 145], [28, 45, 53], [33, 56, 65], [36, 77, 85], [39, 80, 89], [44, 117, 125], [48, 55, 73], [51, 140, 149], [52, 165, 173], [57, 176, 185], [60, 91, 109], [60, 221, 229], [65, 72, 97], [68, 285, 293], [69, 260, 269], [75, 308, 317], [76, 357, 365], [84, 187, 205], [84, 437, 445], [85, 132, 157], [87, 416, 425], [88, 105, 137], [92, 525, 533], [93, 476, 485], [95, 168, 193], [96, 247, 265], [100, 621, 629], [104, 153, 185], [105, 208, 233], [105, 608, 617], [111, 680, 689], [115, 252, 277], [119, 120, 169], [120, 209, 241], [120, 391, 409], [132, 475, 493], [133, 156, 205], [135, 352, 377], [136, 273, 305], [140, 171, 221], [145, 408, 433], [152, 345, 377]])//, [155, 468, 493], [156, 667, 685], [160, 231, 281], [161, 240, 289], [165, 532, 557], [168, 425, 457], [168, 775, 793], [175, 288, 337], [180, 299, 349], [184, 513, 545], [185, 672, 697], [189, 340, 389], [195, 748, 773], [200, 609, 641], [203, 396, 445], [204, 253, 325], [205, 828, 853], [207, 224, 305], [215, 912, 937], [216, 713, 745], [217, 456, 505], [220, 459, 509], [225, 272, 353], [228, 325, 397], [231, 520, 569], [232, 825, 857], [240, 551, 601], [248, 945, 977], [252, 275, 373], [259, 660, 709], [260, 651, 701], [261, 380, 461], [273, 736, 785], [276, 493, 565], [279, 440, 521], [280, 351, 449], [280, 759, 809], [287, 816, 865], [297, 304, 425], [300, 589, 661], [301, 900, 949], [308, 435, 533], [315, 572, 653], [319, 360, 481], [333, 644, 725], [336, 377, 505], [336, 527, 625], [341, 420, 541], [348, 805, 877], [364, 627, 725], [368, 465, 593], [369, 800, 881], [372, 925, 997], [385, 552, 673], [387, 884, 965], [396, 403, 565], [400, 561, 689], [407, 624, 745], [420, 851, 949], [429, 460, 629], [429, 700, 821], [432, 665, 793], [451, 780, 901], [455, 528, 697], [464, 777, 905], [468, 595, 757], [473, 864, 985], [481, 600, 769], [504, 703, 865], [533, 756, 925], [540, 629, 829], [555, 572, 797], [580, 741, 941], [615, 728, 953], [616, 663, 905], [696, 697, 985]])\n\n", "templateType": "anything", "group": "Ungrouped variables", "name": "triples", "description": ""}, "a'": {"definition": "random(triples[2],0,triples[0],triples[1],k)", "templateType": "anything", "group": "Ungrouped variables", "name": "a'", "description": ""}, "rs": {"definition": "r^2", "templateType": "anything", "group": "Ungrouped variables", "name": "rs", "description": ""}, "ydet": {"definition": "r^2-a^2", "templateType": "anything", "group": "Ungrouped variables", "name": "ydet", "description": ""}, "k": {"definition": "random(r+1..r+10)", "templateType": "anything", "group": "Ungrouped variables", "name": "k", "description": ""}, "xints": {"definition": "if(rs-b^2<0,set(),set(sqrt(rs-b^2)+a,-sqrt(rs-b^2)+a))", "templateType": "anything", "group": "Ungrouped variables", "name": "xints", "description": ""}, "yints": {"definition": "if(rs-a^2<0,set(),set(sqrt(rs-a^2)+b,-sqrt(rs-a^2)+b))", "templateType": "anything", "group": "Ungrouped variables", "name": "yints", "description": ""}, "xdet": {"definition": "r^2-b^2", "templateType": "anything", "group": "Ungrouped variables", "name": "xdet", "description": ""}, "xug": {"definition": "sqrt(xdet)", "templateType": "anything", "group": "Ungrouped variables", "name": "xug", "description": ""}, "r": {"definition": "triples[2]", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "b": {"definition": "if(b'<>k,random(-1,1)*b',b')", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "yug": {"definition": "sqrt(ydet)", "templateType": "anything", "group": "Ungrouped variables", "name": "yug", "description": ""}}, "metadata": {"description": "

Find the $x$ and $y$ intercepts of a circle.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}