// Numbas version: exam_results_page_options {"name": "Katherine's copy of Q2 Given a line, Coordinate Geometry ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Katherine's copy of Q2 Given a line, Coordinate Geometry ", "preamble": {"js": "", "css": ""}, "extensions": [], "statement": "

L is the line $\\var{l[0]}x + \\var{l[1]}y = \\var{l[2]}$

\n

", "rulesets": {}, "parts": [{"gaps": [{"vsetrange": [0, 1], "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingtype": "absdiff", "showFeedbackIcon": true, "checkingaccuracy": 0.001, "expectedvariablenames": [], "variableReplacements": [], "showCorrectAnswer": true, "answer": "{l[2]}/{l[0]}", "marks": 1, "type": "jme", "showpreview": true, "checkvariablenames": false, "vsetrangepoints": 5, "answersimplification": "all"}, {"notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "showCorrectAnswer": true, "maxValue": "0", "marks": 1, "type": "numberentry", "correctAnswerFraction": false, "mustBeReducedPC": 0, "allowFractions": false, "minValue": "0"}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "type": "gapfill", "showFeedbackIcon": true, "prompt": "

Find the point a, where L intersects the x-axis.

\n

Give answer in fraction form.

\n

a = ([[0]] , [[1]])

"}, {"gaps": [{"notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "showCorrectAnswer": true, "maxValue": "0", "marks": 1, "type": "numberentry", "correctAnswerFraction": false, "mustBeReducedPC": 0, "allowFractions": false, "minValue": "0"}, {"vsetrange": [0, 1], "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingtype": "absdiff", "showFeedbackIcon": true, "checkingaccuracy": 0.001, "expectedvariablenames": [], "variableReplacements": [], "showCorrectAnswer": true, "answer": "{l[2]}/{l[1]}", "marks": 1, "type": "jme", "showpreview": true, "checkvariablenames": false, "vsetrangepoints": 5, "answersimplification": "all"}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "type": "gapfill", "showFeedbackIcon": true, "prompt": "

Find the point b, where L intersects the y-axis.

\n

Give answer in fraction form.

\n

a = ([[0]] , [[1]])

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

Find the equation of the line perpendicular to L and passing through c($\\var{px},\\var{py}$).

\n

Give answer in fraction form.

\n

y = [[0]]x + [[1]]

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

Find the equation of the line parallel to L and passing through d($\\var{px1},\\var{py1}$).

\n

Give answer in fraction form.

\n

y = [[0]]x + [[1]]

"}, {"gaps": [{"notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "showCorrectAnswer": true, "maxValue": "x5", "marks": 1, "type": "numberentry", "correctAnswerFraction": true, "mustBeReducedPC": 0, "allowFractions": true, "minValue": "x5"}, {"notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "showCorrectAnswer": true, "maxValue": "y5", "marks": 1, "type": "numberentry", "correctAnswerFraction": true, "mustBeReducedPC": 0, "allowFractions": true, "minValue": "y5"}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "type": "gapfill", "showFeedbackIcon": true, "prompt": "

Find the mid-point of the line segment cd.

\n

Give answer to 2 decimal points.

\n

([[0]],[[1]])

"}, {"gaps": [{"precisionType": "dp", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "strictPrecision": false, "mustBeReduced": false, "showPrecisionHint": false, "variableReplacements": [], "showCorrectAnswer": true, "maxValue": "{dis}", "marks": 1, "type": "numberentry", "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerFraction": false, "mustBeReducedPC": 0, "allowFractions": false, "minValue": "{dis}", "precision": "2"}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "type": "gapfill", "showFeedbackIcon": true, "prompt": "

Calculate the distance from c to d.

\n

Give answer to 2 decimal places.

\n

ans = [[0]]

"}], "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "

 $\\var{l[0]}x + \\var{l[1]}y = \\var{l[2]}$

\n

a) L intersects the x axis when $y=0$

\n

$\\var{l[0]}x + \\var{l[1]}(0) = \\var{l[2]}$

\n

$\\var{l[0]}x = \\var{l[2]}$

\n

$x = \\frac{\\var{l[2]}}{\\var{l[0]}}$

\n

Point $= (\\frac{\\var{l[2]}}{\\var{l[0]}},0)$

\n

b) L intersects the y axis when $ x=0$

\n

 $\\var{l[0]}0 + \\var{l[1]}y = \\var{l[2]}$

\n

 $ \\var{l[1]}y = \\var{l[2]}$

\n

 $ y = \\frac{\\var{l[2]}}{\\var{l[1]}}$

\n

Point $= (0,\\frac{\\var{l[2]}}{\\var{l[1]}})$ 

\n

c) To find the equation of a line we use the formula $y - y_1 = m(x - x_1)$, where $(x_1,y_1)$ is a point on the line and $m$ is the slope.

\n

We are given the point c($\\var{px},\\var{py}$). So, we need to find the slope $m$.

\n

Slope of L  = $ -\\frac{\\var{l[0]}}{\\var{l[1]}}$. Since the line is perpendicular to L the product of the slopes is -1. i.e. $m\\times (-\\frac{\\var{l[0]}}{\\var{l[1]}})) = -1 $

\n

$m =  \\frac{\\var{l[1]}}{\\var{l[0]}} $

\n

$Y - (\\var{py}) = \\frac{\\var{l[1]}}{\\var{l[0]}}(X - (\\var{px}))$

\n

Rearranging we get

\n

$Y=\\frac{{\\var{l[1]}}}{{\\var{l[0]}}}x+\\frac{\\var{constant4a}}{\\var{l[0]}}$

\n

d) Using the slope of L from part c and the formula $y - y_1 = m(x - x_1)$, where $(x_1,y_1)$ is the point d$(\\var{px1},\\var{py1})$.

\n

Since the line is parallel to L the slope is the same.

\n

slope of L(m) = $ -\\frac{\\var{l[0]}}{\\var{l[1]}}$

\n

$y - (\\var{py1}) =  -\\frac{\\var{l[0]}}{\\var{l[1]}}$(x - \\var{px1})$

\n

 $y= -\\frac{\\var{l[0]}}{\\var{l[1]}}x +  \\var{constanta}/\\var{l[1]}$

\n

e) Using the formula $(\\frac{x_1+x_2}{2},\\frac{y_1+y_2}{2})$, where $(x_1,y_1) = c(\\var{px},\\var{py})$ and $(x_2,y_2) = d(\\var{px1},\\var{py1})$.

\n

$(\\frac{\\var{px}+\\var{px1}}{2},\\frac{\\var{py}+\\var{py1}}{2}) = (\\var{x5},\\var{y5})$

\n

f) Using the formula dis = $\\sqrt{(x_2-x_1)^2 + (y_2-y-1)^2}$, where $(x_1,y_1) = c(\\var{px},\\var{py})$ and $(x_2,y_2) = d(\\var{px1},\\var{py1})$.

\n

$\\sqrt{(\\var{px1}-\\var{px})^2 + (\\var{py1})-(\\var{py})))^2}={\\var{dis}}$

\n

Then round to 2 decimal places.

\n

", "variable_groups": [{"name": "iv", "variables": ["ya", "xa", "constanta", "gcd1a", "gcd2a", "gcda", "y1a", "x1a", "constant1a", "py1", "px1"]}, {"name": "iii", "variables": ["m", "py", "px", "y4a", "x4a", "constant4a", "gcd4a", "gcd4b", "gcd4", "x4", "y4", "constant4"]}, {"name": "v", "variables": ["x5", "y5"]}, {"name": "vi", "variables": ["dis"]}], "ungrouped_variables": ["l", "p_a", "p_b", "l_s", "y", "constant", "x", "gcd1", "gcd2", "gcd", "y1", "x1", "constant1", "neg", "pos"], "variables": {"p_b": {"name": "p_b", "group": "Ungrouped variables", "description": "", "definition": "l[2]/l[1]", "templateType": "anything"}, "pos": {"name": "pos", "group": "Ungrouped variables", "description": "", "definition": "shuffle(1..5)[0..3]", "templateType": "anything"}, "gcd4a": {"name": "gcd4a", "group": "iii", "description": "", "definition": "gcd(constant4a,x4a)", "templateType": "anything"}, "constant1a": {"name": "constant1a", "group": "iv", "description": "", "definition": "constanta/gcda", "templateType": "anything"}, "y4a": {"name": "y4a", "group": "iii", "description": "", "definition": "1000", "templateType": "anything"}, "x1": {"name": "x1", "group": "Ungrouped variables", "description": "", "definition": "x/gcd", "templateType": "anything"}, "y1": {"name": "y1", "group": "Ungrouped variables", "description": "", "definition": "y/gcd", "templateType": "anything"}, "gcd1a": {"name": "gcd1a", "group": "iv", "description": "", "definition": "l[1]", "templateType": "anything"}, "y1a": {"name": "y1a", "group": "iv", "description": "", "definition": "ya/gcda", "templateType": "anything"}, "gcd4b": {"name": "gcd4b", "group": "iii", "description": "", "definition": "gcd(constant4a,y4a)", "templateType": "anything"}, "ya": {"name": "ya", "group": "iv", "description": "", "definition": "l_s", "templateType": "anything"}, "px1": {"name": "px1", "group": "iv", "description": "", "definition": "random(2..8)", "templateType": "anything"}, "gcd4": {"name": "gcd4", "group": "iii", "description": "", "definition": "gcd(gcd4a,gcd4b)", "templateType": "anything"}, "xa": {"name": "xa", "group": "iv", "description": "", "definition": "l[0]", "templateType": "anything"}, "x": {"name": "x", "group": "Ungrouped variables", "description": "", "definition": "(neg[2]-pos[0])", "templateType": "anything"}, "x4": {"name": "x4", "group": "iii", "description": "", "definition": "l[1]/l[0]", "templateType": "anything"}, "gcd2": {"name": "gcd2", "group": "Ungrouped variables", "description": "", "definition": "gcd(constant,y)", "templateType": "anything"}, "constanta": {"name": "constanta", "group": "iv", "description": "", "definition": "(px1*l[0])-(l[1]*-py1)", "templateType": "anything"}, "gcd2a": {"name": "gcd2a", "group": "iv", "description": "", "definition": "-l[0]", "templateType": "anything"}, "constant1": {"name": "constant1", "group": "Ungrouped variables", "description": "", "definition": "constant/-gcd", "templateType": "anything"}, "l_s": {"name": "l_s", "group": "Ungrouped variables", "description": "", "definition": "-l[0]/l[1]", "templateType": "anything"}, "x1a": {"name": "x1a", "group": "iv", "description": "", "definition": "xa/gcda", "templateType": "anything"}, "constant4": {"name": "constant4", "group": "iii", "description": "", "definition": "constant4a/gcd4", "templateType": "anything"}, "y5": {"name": "y5", "group": "v", "description": "", "definition": "(py+py1)/2", "templateType": "anything"}, "neg": {"name": "neg", "group": "Ungrouped variables", "description": "", "definition": "shuffle(-4..-1)[0..3]", "templateType": "anything"}, "dis": {"name": "dis", "group": "vi", "description": "", "definition": "sqrt(((px1-px)^2) + ((py1-py)^2))", "templateType": "anything"}, "p_a": {"name": "p_a", "group": "Ungrouped variables", "description": "", "definition": "l[2]/l[0]", "templateType": "anything"}, "py1": {"name": "py1", "group": "iv", "description": "", "definition": "random(-5..-2 except py)", "templateType": "anything"}, "m": {"name": "m", "group": "iii", "description": "", "definition": "-1/l_s", "templateType": "anything"}, "gcd": {"name": "gcd", "group": "Ungrouped variables", "description": "", "definition": "gcd(gcd1,gcd2)", "templateType": "anything"}, "l": {"name": "l", "group": "Ungrouped variables", "description": "", "definition": "shuffle(2..6)[0..3]", "templateType": "anything"}, "y": {"name": "y", "group": "Ungrouped variables", "description": "", "definition": "(neg[1]-neg[0])", "templateType": "anything"}, "px": {"name": "px", "group": "iii", "description": "", "definition": "random(2..6)", "templateType": "anything"}, "py": {"name": "py", "group": "iii", "description": "", "definition": "random(-5..-2)", "templateType": "anything"}, "x5": {"name": "x5", "group": "v", "description": "", "definition": "(px+px1)/2", "templateType": "anything"}, "y4": {"name": "y4", "group": "iii", "description": "", "definition": "y4a/gcd4", "templateType": "anything"}, "constant4a": {"name": "constant4a", "group": "iii", "description": "", "definition": "-(((l[1])*px))+l[0]*(py)", "templateType": "anything"}, "gcd1": {"name": "gcd1", "group": "Ungrouped variables", "description": "", "definition": "gcd(constant,x)", "templateType": "anything"}, "gcda": {"name": "gcda", "group": "iv", "description": "", "definition": "gcd(gcd1a,gcd2a)", "templateType": "anything"}, "x4a": {"name": "x4a", "group": "iii", "description": "", "definition": "1000*m", "templateType": "anything"}, "constant": {"name": "constant", "group": "Ungrouped variables", "description": "", "definition": "((neg[1]-neg[0])*-pos[0])-((neg[2]-pos[0])*-neg[0])", "templateType": "anything"}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Practice finding parallel and perpendicular lines to a given line.

\n

rebelmaths

"}, "functions": {}, "type": "question", "contributors": [{"name": "Katherine Tomlinson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1652/"}]}]}], "contributors": [{"name": "Katherine Tomlinson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1652/"}]}