{"base":{"id":"m8-18","subject":"Algebra","title":"Functions and straight-line graphs","scene":"algebra","steps":[{"mode":"machine","eyebrow":"Function machines","title":"One input, one output","body":"A function turns each input into exactly one output. This machine doubles then adds 1: x → 2x + 1. Change the input, then work backwards with the inverse.","controls":[{"id":"x","label":"Input x","min":-3,"max":6,"step":1,"value":3}],"actions":[{"id":"inverse","label":"Work backwards"}]},{"mode":"plot","eyebrow":"Plotting","title":"Table, points, line","body":"Use the function to make a table of x and y values, plot the points and join them. A function like y = mx + c always gives a straight line. Change m and c.","controls":[{"id":"m","label":"m","min":-3,"max":3,"step":1,"value":2},{"id":"c","label":"c","min":-5,"max":5,"step":1,"value":1}]},{"mode":"gradient","eyebrow":"Gradient and intercept","title":"What m and c mean","body":"In y = mx + c, m is the gradient: how far the line goes up for 1 across. c is where the line crosses the y-axis. Change them and watch the triangle.","controls":[{"id":"m","label":"Gradient m","min":-3,"max":3,"step":1,"value":2},{"id":"c","label":"Intercept c","min":-5,"max":5,"step":1,"value":1}]},{"mode":"quiz","eyebrow":"Check yourself","title":"Read the equation","body":"A straight line has equation y = 3x − 4.","question":"What are its gradient and y-intercept?","options":["−4 and 3","3 and 4","3 and −4"],"answer":2,"right":"Correct. In y = mx + c, m = 3 and c = −4.","wrong":"Not quite. Match it to y = mx + c.","look":"gradient"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"The gradient is where the line starts.\"","body":"That's the intercept c. The gradient m is the steepness."},{"tag":"Popular idea","title":"\"y = 3x and y = 3x + 2 have different steepness.\"","body":"They have the same gradient, so they are parallel."},{"tag":"Popular idea","title":"\"You need many points for a straight line.\"","body":"Two points fix a line; a third one checks it."}]},{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Table","title":"y = 2x − 1","body":"x: −1  0  1  2\ny: −3 −1  1  3","code":true},{"tag":"Gradient","title":"(1, 3) to (3, 7)","body":"up 4, across 2\ngradient = 4 ÷ 2 = 2","code":true},{"tag":"Equation","title":"gradient 2, through (0, 5)","body":"y = 2x + 5","code":true}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Graph walk","items":[{"title":"Human graph","time":"15 minutes","need":["Chalk or tape on a floor or playground","Friends"],"steps":["Draw axes from −3 to 3 on the floor.","Each person picks an x value and stands at (x, 2x + 1).","Look at the line you make. Where does it cross the y-axis?","Change to y = −x + 2 and move. What changed?"],"why":"Every person's point obeys the rule, so together you form a straight line.","safety":"Use a safe, flat space."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"For x → 3x − 2, what is the output when x = 4?","options":["10","12","14"],"answer":0,"right":"Correct. 3 × 4 − 2.","wrong":"Not quite. Multiply, then subtract."},{"question":"What is the inverse of x → x + 5?","options":["x → 5x","x → x − 5","x → x + 5"],"answer":1,"right":"Correct. Subtracting undoes adding.","wrong":"Not quite. Undo the + 5."},{"question":"Which point is on y = 2x + 1?","options":["(3, 6)","(7, 3)","(3, 7)"],"answer":2,"right":"Correct. 2 × 3 + 1 = 7.","wrong":"Not quite. Substitute x = 3."},{"question":"Where does y = x − 6 cross the y-axis?","options":["(0, −6)","(−6, 0)","(0, 6)"],"answer":0,"right":"Correct. c = −6.","wrong":"Not quite. Put x = 0."},{"question":"Which line is steepest?","options":["y = 2x + 4","y = 5x","y = x + 10"],"answer":1,"right":"Correct. Gradient 5 is the largest.","wrong":"Not quite. Compare the gradients."},{"question":"Which line is parallel to y = 4x + 1?","options":["y = x + 4","y = 4x − 3","y = 1x + 4"],"answer":1,"right":"Correct. Same gradient, 4.","wrong":"Not quite. Parallel lines have the same gradient."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["what a function and its inverse are","how to make a table and plot a straight line","what m and c mean in y = mx + c","how to find a gradient from two points"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"function","meaning":"A rule giving exactly one output for each input."},{"word":"inverse","meaning":"The function that undoes another."},{"word":"gradient","meaning":"The steepness of a line: up ÷ across."},{"word":"y-intercept","meaning":"Where a line crosses the y-axis."},{"word":"coordinates","meaning":"A pair (x, y) giving a position."}]},{"type":"sources","id":"sources","title":"Sources","items":["NRICH","BBC Bitesize KS3 Maths"]}]},"overlay":null}