// Numbas version: exam_results_page_options {"name": "Intersection of a straight line and a circle", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"s1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)", "description": "", "name": "s1"}, "q": {"group": "Ungrouped variables", "templateType": "anything", "definition": "if(aInput all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "partialCredit": 0}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}, {"answer": "{n}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"showStrings": false, "message": "

Input all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "partialCredit": 0}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}, {"answer": "{p}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"showStrings": false, "message": "

Input all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "partialCredit": 0}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}, {"answer": "{q}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"showStrings": false, "message": "

Input all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "partialCredit": 0}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

([[0]],[[1]]) and ([[2]],[[3]])

", "showCorrectAnswer": true, "marks": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "\n

Find the points where:

\n \n

 

\n \n

 

\n meet.\n

 

\n \n

Enter the coordinates for the two points, starting with the point with the smaller $x$-coordinate.

\n

Note that, for example, $-3$ is smaller than $-1$. Thus if the points of intersection were $(-1, 4)$ and $(-3,6)$ you would enter $(-3,6)$ for the first point and $(-1, 4)$ for the second.

\n

Input the coordinates as integers.

\n \n \n ", "tags": ["SFY0001", "checked2015", "equation of a circle", "equation of a straight line", "quadratic equation"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "\n \t\t\n \t\t", "licence": "Creative Commons Attribution 4.0 International", "description": "

Find the points of intersection of a straight line and a circle.

"}, "advice": "\n

Substitute for $y = \\simplify[std]{({b-d}/{a-c})x+{b*c-a*d}/{c-a}}$ in the equation of the circle.

\n

We get $\\simplify[std]{x^2+(({b-d}/{a-c})x+{b*c-a*d}/{c-a})^2 -{2*k}x -{2*l}(({b-d}/{a-c})x+{b*c-a*d}/{c-a})+{2*k*a+2*l*b-a^2-b^2}}=0$.

\n

Collecting terms we get $\\simplify[std]{{1+ (b-d)^2/(a-c)^2} x^2+{(-2)*(b-d)(b*c-a*d)/(a-c)^2-2*k -(2*l)*(b-d)/(a-c)}x+{(b*c-a*d)^2/(c-a)^2 -2*l*(b*c-a*d)/(c-a)+2*k*a+2*l*b-a^2-b^2}}=0$.

\n

Solving this quadratic equation for $x$ gives solutions $x=\\var{a}$ and $x=\\var{c}$.

\n

Substitute these values of $x$ into the equation $\\simplify[std]{({b-d}/{a-c})x+{b*c-a*d}/{c-a}}$ to obtain the $y$-coordinates: $y=\\var{b}$ (when $x=\\var{a}$) and $y=\\var{d}$ (when $x=\\var{c}$).

\n

Enter the coordinate pairs in the order $(\\var{m},\\var{n})$, $(\\var{p}, \\var{q})$.

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