{"base":{"id":"m9-21","subject":"Algebra","title":"Functions and straight-line graphs","scene":"alg9","steps":[{"mode":"machine","eyebrow":"Functions","title":"Input, rule, output","body":"A function machine multiplies the input by m, then adds c. Its inverse runs backwards: subtract c, then divide by m. Change the input and the rule.","controls":[{"id":"x","label":"Input","min":-5,"max":10,"step":1,"value":4},{"id":"m","label":"Multiply by","min":1,"max":5,"step":1,"value":3},{"id":"c","label":"Add","min":-5,"max":5,"step":1,"value":2}]},{"mode":"line","eyebrow":"y = mx + c","title":"Gradient and intercept","body":"The gradient m tells you how steep the line is: how far it goes up for each 1 across. The intercept c is where it crosses the y-axis. Change both.","controls":[{"id":"m","label":"Gradient m","min":-3,"max":3,"step":0.5,"value":2},{"id":"c","label":"Intercept c","min":-5,"max":5,"step":1,"value":1}]},{"mode":"forms","eyebrow":"Other forms","title":"Rearrange to find m and c","body":"2x + y = 6 is a straight line too. Rearrange it to y = −2x + 6 to read the gradient and intercept. Try three equations.","actions":[{"id":"e0","label":"2x + y = 6"},{"id":"e1","label":"3x + 2y = 12"},{"id":"e2","label":"y − 4x = −3"}]},{"mode":"quiz","eyebrow":"Check yourself","title":"Read the line","body":"A line has the equation y = 5 − 3x.","question":"What is its gradient?","options":["5","3","−3"],"answer":2,"right":"Correct. y = −3x + 5: the number in front of x is −3.","wrong":"Not quite. Rewrite it as y = mx + c.","look":"line"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"In y = 3 + 2x the gradient is 3.\"","body":"The gradient is the number in front of x: 2. The 3 is the intercept."},{"tag":"Popular idea","title":"\"A steeper line has a bigger intercept.\"","body":"Steepness is the gradient. The intercept only moves the line up or down."},{"tag":"Popular idea","title":"\"A negative gradient means the line is below the x-axis.\"","body":"It means the line goes down from left to right."}]},{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Gradient from two points","title":"(1, 4) and (3, 10)","body":"rise 10 − 4 = 6\nrun 3 − 1 = 2\ngradient = 6 ÷ 2 = 3","code":true},{"tag":"Equation","title":"Gradient 3 through (1, 4)","body":"y = 3x + c\n4 = 3 + c, c = 1\ny = 3x + 1","code":true},{"tag":"Rearrange","title":"4x + 2y = 10","body":"2y = 10 − 4x\ny = −2x + 5","code":true}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Graph art","items":[{"title":"Draw with lines","time":"20 minutes","need":["Squared paper","A ruler","Graphing app (optional)"],"steps":["Draw axes from −10 to 10.","Plot y = x, y = 2x and y = ½x. What changes?","Plot y = x + 3 and y = x − 3. What stays the same?","Make a picture (a star or a house) using only straight lines, and write each line's equation."],"why":"Changing m tilts the line; changing c slides it up or down.","safety":"No safety risks."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"What is the y-intercept of y = 4x − 7?","options":["4","7","−7"],"answer":2,"right":"Correct. c = −7.","wrong":"Not quite. Where does it cross the y-axis?"},{"question":"Which line is steepest?","options":["y = 2x + 8","y = 5x + 1","y = x + 10"],"answer":1,"right":"Correct. Gradient 5 is the largest.","wrong":"Not quite. Compare the numbers in front of x."},{"question":"What is the gradient of the line through (0, 2) and (2, 8)?","options":["6","2","3"],"answer":2,"right":"Correct. Rise 6, run 2.","wrong":"Not quite. Rise ÷ run."},{"question":"A function machine is ×2 then +5. Its output is 17. What was the input?","options":["11","6","39"],"answer":1,"right":"Correct. 17 − 5 = 12, 12 ÷ 2 = 6.","wrong":"Not quite. Run the machine backwards."},{"question":"Rearrange x + y = 9 into y = mx + c.","options":["y = −x + 9","y = x + 9","y = 9x"],"answer":0,"right":"Correct. Subtract x from both sides.","wrong":"Not quite. Get y on its own."},{"question":"Which lines are parallel?","options":["y = 3x + 1 and y = 3x − 4","y = 3x + 1 and y = x + 3","y = 2x and y = −2x"],"answer":0,"right":"Correct. Parallel lines have equal gradients.","wrong":"Not quite. Look for equal gradients."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["how a function machine and its inverse work","what m and c mean in y = mx + c","how to find a gradient from two points","how to rearrange an equation into y = mx + c"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"function","meaning":"A rule that turns each input into one output."},{"word":"inverse function","meaning":"A rule that turns outputs back into inputs."},{"word":"gradient","meaning":"How steep a line is: rise ÷ run."},{"word":"y-intercept","meaning":"Where a line crosses the y-axis."},{"word":"linear function","meaning":"A function whose graph is a straight line."}]},{"type":"sources","id":"sources","title":"Sources","items":["NRICH","BBC Bitesize KS3 Maths"]}]},"overlay":null}