{"base":{"id":"alcm-21-01","subject":"Combined Maths","title":"Equations of a straight line","scene":"alcm","steps":[{"mode":"fig","work":{"title":"Write it like this","lines":["A(1, 2),  B(4, 8)","m = (8 − 2)/(4 − 1) = 2",{"t":"tan θ = 2   →   θ ≈ 63.4°","note":"inclination"},{"t":"horizontal: m = 0;  vertical: m undefined","note":"special lines"}]},"say":["Tap to find the gradient.","Two points.","Rise over run.","Angle with the x-axis.","Special cases."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Gradient","title":"m = (y₂ − y₁)/(x₂ − x₁)","body":"The gradient of the line through (x₁, y₁) and (x₂, y₂) is the rise over the run. It equals tan θ, where θ is the angle the line makes with the positive x-axis."},{"mode":"fig","work":{"title":"Write it like this","lines":[{"t":"y = mx + c","note":"gradient m, y-intercept c"},{"t":"y − y₁ = m(x − x₁)","note":"point and gradient"},{"t":"(y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁)","note":"two points"},{"t":"x/a + y/b = 1","note":"intercepts a and b"},{"t":"ax + by + c = 0","note":"general form; m = −a/b"}]},"say":["Tap for the forms.","Slope-intercept.","Point-gradient.","Two-point.","Intercept.","General."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Forms","title":"Four useful forms","body":"Choose the form that matches what you know: a point and a gradient, two points, the two intercepts, or the general form ax + by + c = 0."},{"mode":"fig","work":{"title":"Write it like this","lines":["m = 2","y − 2 = 2(x − 1)","y = 2x",{"t":"general form: 2x − y = 0","note":"passes through O"}]},"say":["Tap to find the line.","Gradient.","Point-gradient form.","Simplify.","General form."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Example","title":"Line through two points","body":"For A(1, 2) and B(4, 8): m = 2, so y − 2 = 2(x − 1), i.e. y = 2x, or 2x − y = 0. Check: B gives 8 = 8."},{"mode":"plot","controls":[{"id":"m","label":"gradient m","min":-3,"max":3,"step":0.25,"value":1}],"view":[-5,-5,6,6],"equal":true,"axes":{"xs":1,"ys":1},"fns":[{"e":"1+m*(x-2)","col":"b"}],"pts":[{"x":2,"y":1,"col":"r","t":"P(2, 1)"},{"x":0,"y":"1-2*m","col":"g"},{"x":"2-1/m","y":0,"col":"o"}],"ptitle":"Point and gradient","rows":["y − 1 = {m|2}(x − 2)",["y = {m|2}x + {1-2*m|2}","b"],["y-intercept {1-2*m|2}","g"],["x-intercept {2-1/m|2}","o"],["angle {deg(atan(m))|1}°","k"]],"note":"Every line through P except the vertical one x = 2 has an equation of this form.","st":"y = {m|2}x + {1-2*m|2}","eyebrow":"Explore","title":"Line through a point with gradient m","body":"The line passes through P(2, 1). Change the gradient m and watch the equation and the intercepts change."},{"mode":"quiz","look":"fig","fig":{"view":[0,0,10,10],"items":[{"k":"txt","p":[5,5],"t":"(3, −1),   m = −2","size":84,"col":"v","max":1400}]},"eyebrow":"Check yourself","title":"Equation","body":"y − y₁ = m(x − x₁).","question":"The line through (3, −1) with gradient −2 is…","options":["y = −2x − 7","y = −2x + 5","y = 2x − 7"],"answer":1,"right":"Correct. y + 1 = −2(x − 3).","wrong":"Not quite. y + 1 = −2x + 6."}],"more":[{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"Straight lines in detail","items":[{"tag":"Parallel and perpendicular","title":"Gradient conditions","body":"Parallel lines have equal gradients: m₁ = m₂. Perpendicular lines have m₁m₂ = −1. For general forms, ax + by + c = 0 and bx − ay + k = 0 are perpendicular."},{"tag":"Normal form","title":"x cos α + y sin α = p","body":"If the perpendicular from O to the line has length p and makes angle α with the x-axis, the line is x cos α + y sin α = p. Useful for distances."},{"tag":"Parametric","title":"Points on a line","body":"Every point on the line through (x₁, y₁) at angle θ is (x₁ + r cos θ, y₁ + r sin θ), where r is the signed distance along the line."}]},{"type":"cards","id":"ideas","eyebrow":"Marks lost in the exam","title":"Common mistakes","items":[{"tag":"Common mistake","title":"Gradient of ax + by + c = 0 as a/b","body":"Make y the subject: y = −(a/b)x − c/b, so m = −a/b."},{"tag":"Common mistake","title":"Mixing up the points","body":"Keep the same order on top and below: (y₂ − y₁)/(x₂ − x₁), not (y₂ − y₁)/(x₁ − x₂)."}]},{"type":"quiz","id":"quiz","eyebrow":"Go further","title":"Thirty questions: easy, medium, hard","questions":[{"level":"easy","question":"The gradient of the line y = 3x − 2 is…","options":["−2","3","1/3"],"answer":1,"right":"Correct. Write y = mx + c, or m = (y₂ − y₁)/(x₂ − x₁).","wrong":"Not quite. Make y the subject."},{"level":"easy","question":"The gradient of the line 2x + y = 5 is…","options":["−2","2","5"],"answer":0,"right":"Correct. Write y = mx + c, or m = (y₂ − y₁)/(x₂ − x₁).","wrong":"Not quite. Make y the subject."},{"level":"easy","question":"The gradient of the line x − 4y + 8 = 0 is…","options":["−1/4","4","1/4"],"answer":2,"right":"Correct. Write y = mx + c, or m = (y₂ − y₁)/(x₂ − x₁).","wrong":"Not quite. Make y the subject."},{"level":"easy","question":"The gradient of the line through (1, 2) and (3, 8) is…","options":["3","1/3","5"],"answer":0,"right":"Correct. Write y = mx + c, or m = (y₂ − y₁)/(x₂ − x₁).","wrong":"Not quite. Make y the subject."},{"level":"easy","question":"The gradient of the line y = 7 is…","options":["0","7","undefined"],"answer":0,"right":"Correct. Write y = mx + c, or m = (y₂ − y₁)/(x₂ − x₁).","wrong":"Not quite. Make y the subject."},{"level":"easy","question":"The equation of the line with gradient 2 through (0, 5) is…","options":["y = 5x + 2","y = 2x + 5","y = 2x − 5"],"answer":1,"right":"Correct. Use y − y₁ = m(x − x₁) or the intercept form.","wrong":"Not quite. Find m first."},{"level":"easy","question":"The equation of the line through (1, 1) and (2, 3) is…","options":["y = x + 1","y = 2x + 1","y = 2x − 1"],"answer":2,"right":"Correct. Use y − y₁ = m(x − x₁) or the intercept form.","wrong":"Not quite. Find m first."},{"level":"easy","question":"The equation of the line with intercepts 3 on x and 4 on y is…","options":["x/4 + y/3 = 1","x/3 + y/4 = 1","3x + 4y = 1"],"answer":1,"right":"Correct. Use y − y₁ = m(x − x₁) or the intercept form.","wrong":"Not quite. Find m first."},{"level":"easy","question":"The equation of the line parallel to the x-axis through (2, −3) is…","options":["y = −3","x = 2","y = 2"],"answer":0,"right":"Correct. Use y − y₁ = m(x − x₁) or the intercept form.","wrong":"Not quite. Find m first."},{"level":"easy","question":"The equation of the line through the origin with gradient −1 is…","options":["y = x","y = −1","y = −x"],"answer":2,"right":"Correct. Use y − y₁ = m(x − x₁) or the intercept form.","wrong":"Not quite. Find m first."},{"level":"medium","question":"The line through (2, −1) and (−1, 5) is…","options":["x + 2y = 0","2x + y = 3","2x − y = 5"],"answer":1,"right":"Correct. Parallel: same gradient; perpendicular: m₁m₂ = −1.","wrong":"Not quite. Use the point to find the constant."},{"level":"medium","question":"The line through (3, 4) parallel to 2x − y = 1 is…","options":["2x − y = 1","2x − y = 2","x + 2y = 11"],"answer":1,"right":"Correct. Parallel: same gradient; perpendicular: m₁m₂ = −1.","wrong":"Not quite. Use the point to find the constant."},{"level":"medium","question":"The line through (3, 4) perpendicular to 2x − y = 1 is…","options":["x + 2y = 11","2x − y = 2","x − 2y = −5"],"answer":0,"right":"Correct. Parallel: same gradient; perpendicular: m₁m₂ = −1.","wrong":"Not quite. Use the point to find the constant."},{"level":"medium","question":"The line in normal form x cos α + y sin α = p with α = 60°, p = 2 is…","options":["x + √3 y = 4","√3 x + y = 4","x + y = 2"],"answer":0,"right":"Correct. Parallel: same gradient; perpendicular: m₁m₂ = −1.","wrong":"Not quite. Use the point to find the constant."},{"level":"medium","question":"The perpendicular bisector of (0, 0) and (4, 2) is…","options":["x + 2y = 4","2x − y = 3","2x + y = 5"],"answer":2,"right":"Correct. Parallel: same gradient; perpendicular: m₁m₂ = −1.","wrong":"Not quite. Use the point to find the constant."},{"level":"medium","question":"The x-intercept of 3x − 4y = 12 is…","options":["4","−3","12"],"answer":0,"right":"Correct. Set x = 0 or y = 0 for intercepts.","wrong":"Not quite. Gradient = tan(angle with the x-axis)."},{"level":"medium","question":"…the y-intercept is…","options":["4","3","−3"],"answer":2,"right":"Correct. Set x = 0 or y = 0 for intercepts.","wrong":"Not quite. Gradient = tan(angle with the x-axis)."},{"level":"medium","question":"…the area of the triangle with the axes is…","options":["12","7","6"],"answer":2,"right":"Correct. Set x = 0 or y = 0 for intercepts.","wrong":"Not quite. Gradient = tan(angle with the x-axis)."},{"level":"medium","question":"Parametric line x = 1 + 2t, y = 3 − t in Cartesian form:","options":["2x + y = 5","x + 2y = 7","x − 2y = −5"],"answer":1,"right":"Correct. Set x = 0 or y = 0 for intercepts.","wrong":"Not quite. Gradient = tan(angle with the x-axis)."},{"level":"medium","question":"The line through (1, 2) making 45° with the x-axis:","options":["y = x + 1","y = x − 1","y = −x + 3"],"answer":0,"right":"Correct. Set x = 0 or y = 0 for intercepts.","wrong":"Not quite. Gradient = tan(angle with the x-axis)."},{"level":"hard","question":"The line through (2, 3) whose intercepts are equal (non-zero):","options":["x − y = −1","x + y = 5","y = 1.5x"],"answer":1,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"The line through (4, 1) cutting off intercepts with sum 0 (non-zero):","options":["x + y = 5","y = x/4","x − y = 3"],"answer":2,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"A line through (3, 2) forms with the axes a triangle of area 12 in the first quadrant. Its intercepts are…","options":["x-intercept 6, y-intercept 4","x-intercept 3, y-intercept 8","x-intercept 4, y-intercept 6"],"answer":0,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"The foot of the perpendicular from (1, 2) to x + y = 7 is…","options":["(3, 4)","(2, 5)","(4, 3)"],"answer":0,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"The reflection of (1, 2) in x + y = 7 is…","options":["(6, 5)","(5, 6)","(3, 4)"],"answer":1,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"The line joining (a, 0) and (0, b) has equation…","options":["x/a + y/b = 1","x/b + y/a = 1","ax + by = 1"],"answer":0,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"Lines through (1, 1) at 45° to x − 2y = 3: gradients?","options":["1 and −1","1/2 and −2","3 and −1/3"],"answer":2,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"The angle the line √3x − y + 2 = 0 makes with the x-axis:","options":["60°","30°","120°"],"answer":0,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"Points (1, 3), (2, 5), (4, k) collinear: k = ?","options":["7","9","11"],"answer":1,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."},{"level":"hard","question":"The median from A(0, 0) in triangle A, B(4, 2), C(2, 6) lies on…","options":["y = 2x","y = x/2","y = (4/3)x"],"answer":2,"right":"Correct. Use intercept form, gradient conditions and midpoints.","wrong":"Not quite. Draw a quick sketch."}]},{"type":"keywords","id":"words","title":"Key words","items":[{"word":"Gradient","meaning":"Rise over run; tan of the inclination."},{"word":"Intercept","meaning":"Where a line meets an axis."},{"word":"General form","meaning":"ax + by + c = 0."},{"word":"Inclination","meaning":"The angle with the positive x-axis."},{"word":"Parallel","meaning":"Equal gradients."},{"word":"Perpendicular","meaning":"m₁m₂ = −1."}]},{"type":"checklist","id":"check","title":"I can…","items":["find the gradient and inclination of a line","write a line in the most suitable form","use conditions for parallel and perpendicular lines"]},{"type":"sources","id":"sources","title":"Sources","items":["NIE Sri Lanka, G.C.E. (A/L) Combined Mathematics syllabus, Grade 12 and 13, 2017 (competency level I 18.1–18.2)."]}],"slug":"equations-of-a-straight-line"},"overlay":null}