{"base":{"id":"alcm-7-03","subject":"Combined Maths","title":"The modulus function and its graphs","scene":"alcm","steps":[{"mode":"fig","fig":{"view":[-1.6,-1.2,7.6,1.6],"items":[{"k":"nl","y":0,"lo":-1,"hi":7,"st":1},{"k":"dot","p":[3,0],"col":"b"},{"k":"dot","p":[1,0],"col":"r"},{"k":"dot","p":[5,0],"col":"r"},{"k":"seg","p":[1,0.45,3,0.45],"col":"o","w":4,"arr":1},{"k":"seg","p":[3,0.45,5,0.45],"col":"o","w":4,"arr":1},{"k":"txt","p":[2,0.95],"t":"2","col":"o","size":34},{"k":"txt","p":[4,0.95],"t":"2","col":"o","size":34}]},"work":{"title":"Write it like this","lines":["|x − 3| = 2","x − 3 = 2   or   x − 3 = −2","x = 5   or   x = 1"]},"say":["Tap to solve.","Distance 2 from 3.","Two cases.","Two answers."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Distance","title":"|x − a| is a distance","body":"|x| is the distance of x from 0, and |x − a| is the distance of x from a. So |x − 3| = 2 means x is 2 units from 3: x = 1 or x = 5."},{"mode":"fig","fig":{"view":[-4,-5,4,8],"items":[{"k":"fn","e":"x^2-4","col":"s","dash":1},{"k":"fn","e":"abs(x^2-4)","col":"b","w":7,"s":1}],"axes":{"xs":1,"ys":1},"free":true,"stages":1},"say":["Tap to take the modulus.","The part between −2 and 2 flips up."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"y = |f(x)|","title":"Reflect the negative part","body":"To draw y = |f(x)|, draw y = f(x) first, then reflect every part below the x-axis upwards. The graph never goes below the axis."},{"mode":"plot","controls":[{"id":"a","label":"a","min":-3,"max":3,"step":0.5,"value":2},{"id":"b","label":"b","min":-4,"max":4,"step":1,"value":-2}],"view":[-5,-2,5,8],"axes":{"xs":1,"ys":1},"fns":[{"e":"a*x+b","col":"s","dash":1},{"e":"abs(a*x+b)","col":"b"}],"pts":[{"x":"-b/a","y":0,"col":"r","t":"corner"}],"ptitle":"The V shape","rows":["y = |{a|1}x + {b|0}|",["corner at x = {-b/a|2}","r"],["arm gradients ±{abs(a)|1}","g"],["y-intercept {abs(b)|0}","o"]],"note":"The dashed line is y = ax + b. Only its negative part is reflected.","st":"Corner at x = {-b/a|2}.","eyebrow":"Explore","title":"y = |ax + b|","body":"Change a and b. The V of y = |ax + b| has its corner where ax + b = 0, at x = −b/a. Its two arms have gradients a and −a."},{"mode":"fig","fig":{"view":[-5,-3,5,4],"items":[{"k":"fn","e":"x-2","col":"s","dash":1},{"k":"fn","e":"abs(x)-2","col":"g","w":7,"s":1}],"axes":{"xs":1,"ys":1},"free":true},"work":{"title":"Write it like this","lines":["y = x − 2   →   y = |x| − 2","keep x ≥ 0","reflect it in the y-axis",{"t":"symmetric about the y-axis","note":"even function"}]},"say":["Tap to draw y = |x| − 2.","Start from the line.","Right half stays.","Mirror it.","An even function."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"y = f(|x|)","title":"Mirror the right half","body":"y = f(|x|) is different: keep the part of y = f(x) for x ≥ 0 and reflect it in the y-axis. The result is always an even function."},{"mode":"quiz","look":"fig","fig":{"view":[0,0,10,10],"items":[{"k":"txt","p":[5,5],"t":"|2x + 1| = 5","size":84,"col":"v","max":1400}]},"eyebrow":"Check yourself","title":"Modulus equation","body":"Two cases: + and −.","question":"Solve |2x + 1| = 5.","options":["x = 2","x = 3 or x = −2","x = 2 or x = −3"],"answer":2,"right":"Correct. 2x + 1 = 5 or 2x + 1 = −5.","wrong":"Not quite. Do not forget the negative case 2x + 1 = −5."}],"more":[{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"The modulus in detail","items":[{"tag":"Properties","title":"Rules for |x|","body":"|x| ≥ 0;  |−x| = |x|;  |xy| = |x||y|;  |x/y| = |x|/|y|\n|x|² = x²;  √(x²) = |x| (not x!)\nTriangle inequality: |x + y| ≤ |x| + |y|."},{"tag":"Two moduli","title":"|f(x)| = |g(x)|","body":"Square both sides (both are non-negative): f² = g² → (f − g)(f + g) = 0 → f = g or f = −g.\n|x − 1| = |x + 3| → x − 1 = −(x + 3) → x = −1 (the other case gives −1 = 3, impossible)."},{"tag":"Checking","title":"Check every answer","body":"|x − 2| = 2x + 1: case x − 2 = 2x + 1 gives x = −3, but then RHS = −5 < 0, impossible. Case −(x − 2) = 2x + 1 gives x = 1/3, RHS = 5/3 ✓. Answer x = 1/3."}]},{"type":"cards","id":"ideas","eyebrow":"Marks lost in the exam","title":"Common mistakes","items":[{"tag":"Common mistake","title":"Writing √(x²) = x","body":"For x = −4, √16 = 4 = |−4|, not −4. Always √(x²) = |x|."},{"tag":"Common mistake","title":"Mixing |f(x)| and f(|x|)","body":"|f(x)| reflects in the x-axis (graph never below the axis). f(|x|) reflects in the y-axis (graph symmetric left–right)."}]},{"type":"quiz","id":"quiz","eyebrow":"Go further","title":"Thirty questions: easy, medium, hard","questions":[{"level":"easy","question":"|−7| = ?","options":["7","−7","0"],"answer":0,"right":"Correct. |x| = x if x ≥ 0 and −x if x < 0.","wrong":"Not quite. The modulus is a distance."},{"level":"easy","question":"|3 − 8| = ?","options":["−5","5","11"],"answer":1,"right":"Correct. |x| = x if x ≥ 0 and −x if x < 0.","wrong":"Not quite. The modulus is a distance."},{"level":"easy","question":"|4| − |−6| = ?","options":["10","2","−2"],"answer":2,"right":"Correct. |x| = x if x ≥ 0 and −x if x < 0.","wrong":"Not quite. The modulus is a distance."},{"level":"easy","question":"|−2 × 3| = ?","options":["6","−6","5"],"answer":0,"right":"Correct. |x| = x if x ≥ 0 and −x if x < 0.","wrong":"Not quite. The modulus is a distance."},{"level":"easy","question":"|0| = ?","options":["1","undefined","0"],"answer":2,"right":"Correct. |x| = x if x ≥ 0 and −x if x < 0.","wrong":"Not quite. The modulus is a distance."},{"level":"easy","question":"Solve |x| = 4.","options":["x = ±4","x = 4","x = −4"],"answer":0,"right":"Correct. Distance from a point equals a number.","wrong":"Not quite. Inside = ± the number."},{"level":"easy","question":"Solve |x − 2| = 3.","options":["x = 5 or −1","x = 5","x = −5 or 1"],"answer":0,"right":"Correct. Distance from a point equals a number.","wrong":"Not quite. Inside = ± the number."},{"level":"easy","question":"Solve |x + 3| = 0.","options":["x = 3","no solution","x = −3"],"answer":2,"right":"Correct. Distance from a point equals a number.","wrong":"Not quite. Inside = ± the number."},{"level":"easy","question":"Solve |x| = −2.","options":["x = ±2","no solution","x = −2"],"answer":1,"right":"Correct. Distance from a point equals a number.","wrong":"Not quite. Inside = ± the number."},{"level":"easy","question":"Solve |3x| = 9.","options":["x = 3","x = ±3","x = ±9"],"answer":1,"right":"Correct. Distance from a point equals a number.","wrong":"Not quite. Inside = ± the number."},{"level":"medium","question":"The graph of y = |x − 3| has its vertex at…","options":["(−3, 0)","(3, 0)","(0, 3)"],"answer":1,"right":"Correct. The V turns where the inside is zero.","wrong":"Not quite. Set the inside to 0."},{"level":"medium","question":"The graph of y = |x + 1| − 2 has its vertex at…","options":["(1, −2)","(−1, −2)","(−1, 2)"],"answer":1,"right":"Correct. The V turns where the inside is zero.","wrong":"Not quite. Set the inside to 0."},{"level":"medium","question":"The graph of y = |2x − 4| has its vertex at…","options":["(4, 0)","(−2, 0)","(2, 0)"],"answer":2,"right":"Correct. The V turns where the inside is zero.","wrong":"Not quite. Set the inside to 0."},{"level":"medium","question":"The graph of y = 3 − |x| has its vertex at…","options":["(3, 0)","(0, −3)","(0, 3)"],"answer":2,"right":"Correct. The V turns where the inside is zero.","wrong":"Not quite. Set the inside to 0."},{"level":"medium","question":"The graph of y = |x − 1| + |x − 1| has its vertex at…","options":["(2, 0)","(1, 0)","(0, 1)"],"answer":1,"right":"Correct. The V turns where the inside is zero.","wrong":"Not quite. Set the inside to 0."},{"level":"medium","question":"Solve |2x − 3| = 7.","options":["x = 5 or −2","x = 5","x = 2 or −5"],"answer":0,"right":"Correct. Square both sides or split into cases, then check.","wrong":"Not quite. Check each answer in the original."},{"level":"medium","question":"Solve |x − 1| = |x + 3|.","options":["x = −1","x = 1","x = ±1"],"answer":0,"right":"Correct. Square both sides or split into cases, then check.","wrong":"Not quite. Check each answer in the original."},{"level":"medium","question":"Solve |x| = x.","options":["x = 0","all x","x ≥ 0"],"answer":2,"right":"Correct. Square both sides or split into cases, then check.","wrong":"Not quite. Check each answer in the original."},{"level":"medium","question":"Solve |x − 4| = 2x + 1.","options":["x = −5 or 1","x = −5","x = 1"],"answer":2,"right":"Correct. Square both sides or split into cases, then check.","wrong":"Not quite. Check each answer in the original."},{"level":"medium","question":"Solve |x| = x + 2.","options":["x = −1","x = 1","no solution"],"answer":0,"right":"Correct. Square both sides or split into cases, then check.","wrong":"Not quite. Check each answer in the original."},{"level":"hard","question":"The graph of y = |x² − 4| touches y = 0 at…","options":["x = 4","x = 0","x = ±2"],"answer":2,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"y = |x² − 4| has a local maximum at…","options":["(0, −4)","(0, 4)","(2, 0)"],"answer":1,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"How many solutions has |x² − 4| = 3?","options":["2","3","4"],"answer":2,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"How many solutions has |x² − 4| = 4?","options":["3","4","2"],"answer":0,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"Solve |x − 1| + |x − 3| = 2.","options":["x = 1 or 3","1 ≤ x ≤ 3","x = 2"],"answer":1,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"The least value of |x − 1| + |x − 3| is…","options":["2","0","4"],"answer":0,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"y = |x| + |x − 2| for x > 2 equals…","options":["2","2x − 2","−2x + 2"],"answer":1,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"Solve |x² − 5x| = 6.","options":["x = 2, 3","x = −1, 6","x = −1, 2, 3, 6"],"answer":2,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"The graph of y = |f(x)| is made from y = f(x) by…","options":["reflecting the parts below the x-axis","reflecting the parts left of the y-axis","shifting it up"],"answer":0,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."},{"level":"hard","question":"The graph of y = f(|x|) is…","options":["the lower half flipped up","the same as y = |f(x)|","the right half reflected in the y-axis"],"answer":2,"right":"Correct. Draw the graph and count intersections.","wrong":"Not quite. Split the modulus into cases."}]},{"type":"keywords","id":"words","title":"Key words","items":[{"word":"Modulus","meaning":"|x|, the distance of x from 0."},{"word":"V-shaped graph","meaning":"The graph of y = |ax + b|."},{"word":"Reflection in the x-axis","meaning":"Turning negative y-values positive."},{"word":"Reflection in the y-axis","meaning":"Copying the right half to the left."},{"word":"Triangle inequality","meaning":"|x + y| ≤ |x| + |y|."},{"word":"Case","meaning":"One of the two possibilities, inside ≥ 0 or < 0."}]},{"type":"checklist","id":"check","title":"I can…","items":["use |x − a| as a distance","sketch y = |f(x)| and y = f(|x|)","solve equations with the modulus and check answers"]},{"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 7.3)."]}],"slug":"modulus-function-graphs"},"overlay":null}