// Numbas version: exam_results_page_options {"name": "Intersection of two circles in two points", "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(a([[0]],[[1]]) and ([[2]],[[3]])

", "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "gaps": [{"answer": "{m}", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "answerSimplification": "std", "showPreview": true, "unitTests": [], "notallowed": {"message": "

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

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "checkingType": "absdiff", "checkVariableNames": false, "vsetRange": [0, 1], "type": "jme", "marks": 1, "scripts": {}, "vsetRangePoints": 5, "expectedVariableNames": [], "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "showCorrectAnswer": true, "variableReplacements": [], "failureRate": 1, "showFeedbackIcon": true}, {"answer": "{n}", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "answerSimplification": "std", "showPreview": true, "unitTests": [], "notallowed": {"message": "

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

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "checkingType": "absdiff", "checkVariableNames": false, "vsetRange": [0, 1], "type": "jme", "marks": 1, "scripts": {}, "vsetRangePoints": 5, "expectedVariableNames": [], "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "showCorrectAnswer": true, "variableReplacements": [], "failureRate": 1, "showFeedbackIcon": true}, {"answer": "{p}", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "answerSimplification": "std", "showPreview": true, "unitTests": [], "notallowed": {"message": "

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

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "checkingType": "absdiff", "checkVariableNames": false, "vsetRange": [0, 1], "type": "jme", "marks": 1, "scripts": {}, "vsetRangePoints": 5, "expectedVariableNames": [], "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "showCorrectAnswer": true, "variableReplacements": [], "failureRate": 1, "showFeedbackIcon": true}, {"answer": "{q}", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "answerSimplification": "std", "showPreview": true, "unitTests": [], "notallowed": {"message": "

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

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "checkingType": "absdiff", "checkVariableNames": false, "vsetRange": [0, 1], "type": "jme", "marks": 1, "scripts": {}, "vsetRangePoints": 5, "expectedVariableNames": [], "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "showCorrectAnswer": true, "variableReplacements": [], "failureRate": 1, "showFeedbackIcon": true}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "\n

Find the points where the circles:

\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": ["checked2015", "equation of a circle", "equation of a straight line", "Equation of a straight line", "intersection of two circles", "quadratic equation"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find the points of intersection of two circles.

"}, "extensions": [], "advice": "\n

Subtract the equation for the first circle from the equation for the second. You get $\\simplify[std]{{2*k2-2*k}x+ {2*l2-2*l}y+{2*k*a+2*l*b-2*k2*a-2*l2*b}}=0$.

\n

This can be rearranged as: $y = \\simplify[std]{({b-d}/{a-c})x+{b*c-a*d}/{c-a}}$

\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": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}