f(x) = 5,  x≤2

f(x) = ax+b, 2< x<10

f(x)=21,x≥10

Plz change the values of a and b
using these sliders so that the 3
pieces of graph get connected !!!

Solving (1) and (2) we get a=2 and b=1

Solve by Limits

Benny Varghese
PGT Maths
JNV Pathanmthitta
Kerala

Function says: 
 “Oh I am not 
continuous 
as there are two breaks”

Function says: 
 “Oh I am now
continuous 
provided a = 2 and b =1”

a = 1.28 (slider from -2 to 2)
b = 0.08 (slider from -3 to 1)
f(x) = (a * x) + b
g(x) = If[2 ≤ x ≤ 10, f]
h(x) = If[-30 ≤ x ≤ 2, 5]
A = (25.23120381485645, 15.92957824228569)
B = (50.32766380588216, 15.92957824228569)
C = Point(g)
D = Point(g)
j(x) = If[70 > x ≥ 10, 21]
E = (-9.802701674021563, 8.614677532624004)
F = (9.77818205843294, 8.661718694744012)
c = false
stroke1 = PolyLine((1.2519714241809698, 14.730028608225416), (NaN, NaN), (1.2519714241809698, 14.730028608225416), (1.1578890999409484, 14.965234418825471), (1.016765613580916, 15.106357905185503), (0.8756421272208836, 15.153399067305514), (0.7345186408608513, 15.247481391545536), (0.5933951545008189, 15.388604877905568), (0.45227166814078656, 15.43564604002558), (0.3111481817807542, 15.529728364265601), (0.17002469542072185, 15.576769526385611), (0.02890120906068949, 15.670851850625633), (-0.11222227729934287, 15.717893012745645), (-0.2533457636593752, 15.811975336985666), (-0.48855157425942913, 15.859016499105676), (-0.6296750606194614, 15.906057661225688), (-0.8178397090995047, 15.953098823345698), (-0.958963195459537, 16.000139985465708), (-1.14712784393958, 16.04718114758572), (-1.2882513302996124, 16.09422230970573), (-1.5234571408996664, 16.09422230970573), (-1.7586629514997203, 16.14126347182574), (-1.9468275999797635, 16.14126347182574), (-2.1349922484598065, 16.14126347182574), (-2.3701980590598604, 16.14126347182574), (-2.511321545419893, 16.18830463394575), (-2.699486193899936, 16.18830463394575), (-2.887650842379979, 16.18830463394575), (-3.0758154908600224, 16.18830463394575), (-3.2639801393400654, 16.18830463394575), (-3.4521447878201084, 16.18830463394575), (-3.640309436300152, 16.18830463394575), (-3.8755152469002057, 16.18830463394575), (-4.063679895380249, 16.18830463394575), (-4.251844543860292, 16.18830463394575), (-4.440009192340335, 16.18830463394575), (-4.628173840820378, 16.18830463394575), (-4.8163384893004215, 16.18830463394575), (-5.004503137780464, 16.18830463394575), (-5.1926677862605075, 16.18830463394575), (-5.380832434740551, 16.18830463394575), (-5.5689970832205935, 16.18830463394575), (-5.710120569580626, 16.235345796065765), (-5.8982852180606695, 16.235345796065765), (-6.133491028660723, 16.282386958185775), (-6.321655677140766, 16.282386958185775), (-6.50982032562081, 16.282386958185775), (-6.697984974100852, 16.282386958185775), (-6.886149622580896, 16.282386958185775), (-7.027273108940928, 16.329428120305785), (-7.215437757420971, 16.329428120305785), (-7.403602405901014, 16.329428120305785), (-7.591767054381058, 16.329428120305785), (-7.7799317028611, 16.329428120305785), (-7.968096351341144, 16.329428120305785), (-8.109219837701175, 16.376469282425795), (-8.297384486181219, 16.376469282425795), (-8.485549134661262, 16.42351044454581), (-8.673713783141306, 16.47055160666582), (-8.86187843162135, 16.51759276878583), (-9.003001917981381, 16.56463393090584), (-9.144125404341413, 16.611675093025852), (-9.285248890701446, 16.658716255145862), (-9.47341353918149, 16.658716255145862), (-9.614537025541521, 16.705757417265872), (-9.802701674021565, 16.705757417265872), (-10.037907484621618, 16.705757417265872), (-10.226072133101662, 16.705757417265872), (-10.414236781581705, 16.752798579385882), (-10.602401430061748, 16.799839741505895), (-10.74352491642178, 16.98800438998594), (-10.837607240661802, 17.12912787634597), (-10.837607240661802, 17.317292524826012), (-10.837607240661802, 17.505457173306056), (-10.837607240661802, 17.6936218217861), (-10.837607240661802, 17.928827632386156), (-10.79056607854179, 18.1169922808662), (-10.79056607854179, 18.352198091466253), (-10.79056607854179, 18.540362739946296), (-10.79056607854179, 18.72852738842634), (-10.79056607854179, 18.916692036906383), (-10.837607240661802, 19.057815523266417), (-10.884648402781812, 19.198939009626447), (-10.884648402781812, 19.38710365810649), (-10.931689564901824, 19.528227144466523), (-10.978730727021834, 19.669350630826557), (-11.025771889141845, 19.81047411718659), (-11.025771889141845, 19.998638765666634), (-11.072813051261855, 20.186803414146677), (-11.072813051261855, 20.42200922474673), (-11.072813051261855, 20.610173873226774), (-11.072813051261855, 20.798338521706818), (-11.072813051261855, 20.98650317018686), (-11.025771889141845, 21.127626656546894), (-10.978730727021834, 21.268750142906924), (-10.931689564901824, 21.409873629266958), (-10.884648402781812, 21.55099711562699), (-10.837607240661802, 21.692120601987025), (-10.74352491642178, 21.833244088347055), (-10.696483754301768, 21.974367574707088), (-10.649442592181758, 22.11549106106712), (-10.508319105821727, 22.20957338530714), (-10.367195619461693, 22.350696871667175), (-10.226072133101662, 22.4447791959072), (-10.037907484621618, 22.4447791959072), (-9.896783998261586, 22.53886152014722), (-9.708619349781543, 22.53886152014722), (-9.5204547013015, 22.53886152014722), (-9.332290052821456, 22.53886152014722), (-9.144125404341413, 22.53886152014722), (-8.90891959374136, 22.53886152014722), (-8.720754945261316, 22.53886152014722), (-8.485549134661262, 22.53886152014722), (-8.297384486181219, 22.53886152014722), (-8.062178675581166, 22.53886152014722), (-7.921055189221133, 22.58590268226723), (-7.7328905407410895, 22.58590268226723), (-7.544725892261047, 22.58590268226723), (-7.3565612437810035, 22.58590268226723), (-7.16839659530096, 22.58590268226723), (-6.9802319468209175, 22.58590268226723), (-6.792067298340874, 22.58590268226723), (-6.55686148774082, 22.58590268226723), (-6.321655677140766, 22.58590268226723), (-6.133491028660723, 22.53886152014722), (-5.94532638018068, 22.49182035802721), (-5.757161731700637, 22.49182035802721), (-5.427873596860562, 22.350696871667175), (-5.098585462020486, 22.303655709547165), (-4.957461975660453, 22.16253222318713), (-4.251844543860292, 21.974367574707088), (-3.2639801393400654, 21.786202926227045), (-3.0758154908600224, 21.739161764107035), (-2.93469200449999, 21.64507943986701), (-2.7935685181399577, 21.55099711562699), (-2.605403869659914, 21.409873629266958), (-2.276115734819839, 21.221708980786914), (-2.1349922484598065, 21.127626656546894), (-1.9938687620997742, 20.98650317018686), (-1.8997864378597527, 20.845379683826827), (-1.8527452757397418, 20.704256197466794), (-1.7586629514997203, 20.563132711106764), (-1.6645806272596988, 20.42200922474673), (-1.570498303019677, 20.280885738386697), (-1.4764159787796556, 20.139762252026664), (-1.382333654539634, 19.998638765666634), (-1.3352924924196232, 19.8575152793066), (-1.2412101681796017, 19.716391792946567), (-1.14712784393958, 19.575268306586533), (-1.0530455196995585, 19.434144820226503), (-1.0060043575795476, 19.24598017174646), (-0.958963195459537, 19.104856685386427), (-0.9119220333395262, 18.963733199026393), (-0.8178397090995047, 18.82260971266636), (-0.7707985469794938, 18.68148622630633), (-0.6767162227394723, 18.493321577826286), (-0.5826338984994507, 18.352198091466253), (-0.48855157425942913, 18.21107460510622), (-0.44151041213941833, 18.069951118746186), (-0.3474280878993968, 17.881786470266142), (-0.2533457636593752, 17.740662983906113), (-0.15926343941935364, 17.59953949754608), (-0.11222227729934287, 17.458416011186046), (0.07594237118070027, 17.270251362706002), (0.21706585754073263, 17.12912787634597), (0.3111481817807542, 16.98800438998594), (0.45227166814078656, 16.846880903625905), (0.6404363166208297, 16.705757417265872), (0.781559802980862, 16.611675093025852), (0.9226832893408944, 16.42351044454581), (1.0638067757009266, 16.282386958185775), (1.1578890999409484, 16.14126347182574), (1.2990125863009807, 16.000139985465708), (1.3930949105410022, 15.859016499105676), (1.5342183969010346, 15.717893012745645), (1.5812595590210454, 15.576769526385611), (1.628300721141056, 15.43564604002558), (1.628300721141056, 15.247481391545536), (1.675341883261067, 15.059316743065493), (1.675341883261067, 14.87115209458545), (1.675341883261067, 14.682987446105406), (1.7223830453810778, 14.494822797625362), (1.7223830453810778, 14.306658149145319), (1.8164653696210993, 14.165534662785285), (1.9105476938611208, 14.024411176425254), (1.9575888559811316, 13.88328769006522), (2.0046300181011425, 13.742164203705189), (1.8635065317411101, 13.83624652794521), (1.7694242075010884, 13.977370014305242), (1.675341883261067, 14.118493500665275), (1.5342183969010346, 14.212575824905297), (1.440136072661013, 14.353699311265329), (1.2990125863009807, 14.541863959745372), (1.2519714241809698, 14.682987446105406), (1.2519714241809698, 14.87115209458545), true)
stroke1_1 = PolyLine((1.5342183969010341, 13.977370014305242), (NaN, NaN), (1.5342183969010341, 13.977370014305242), (1.4401360726610126, 14.212575824905297), (1.2990125863009803, 14.353699311265329), (1.157889099940948, 14.40074047338534), (1.0167656135809156, 14.494822797625362), (0.8756421272208832, 14.635946283985394), (0.7345186408608508, 14.682987446105406), (0.5933951545008185, 14.777069770345427), (0.4522716681407861, 14.824110932465437), (0.31114818178075376, 14.91819325670546), (0.1700246954207214, 14.965234418825471), (0.028901209060689048, 15.059316743065493), (-0.20630460153936486, 15.106357905185503), (-0.34742808789939716, 15.153399067305514), (-0.5355927363794404, 15.200440229425524), (-0.6767162227394727, 15.247481391545534), (-0.8648808712195157, 15.294522553665548), (-1.006004357579548, 15.341563715785558), (-1.2412101681796022, 15.341563715785558), (-1.476415978779656, 15.388604877905568), (-1.6645806272596992, 15.388604877905568), (-1.8527452757397422, 15.388604877905568), (-2.087951086339796, 15.388604877905568), (-2.2290745726998287, 15.435646040025578), (-2.4172392211798717, 15.435646040025578), (-2.6054038696599147, 15.435646040025578), (-2.793568518139958, 15.435646040025578), (-2.981733166620001, 15.435646040025578), (-3.169897815100044, 15.435646040025578), (-3.3580624635800875, 15.435646040025578), (-3.5932682741801414, 15.435646040025578), (-3.7814329226601844, 15.435646040025578), (-3.969597571140228, 15.435646040025578), (-4.15776221962027, 15.435646040025578), (-4.345926868100314, 15.435646040025578), (-4.534091516580357, 15.435646040025578), (-4.7222561650604, 15.435646040025578), (-4.910420813540443, 15.435646040025578), (-5.098585462020487, 15.435646040025578), (-5.286750110500529, 15.435646040025578), (-5.427873596860562, 15.482687202145591), (-5.616038245340605, 15.482687202145591), (-5.851244055940659, 15.529728364265601), (-6.039408704420702, 15.529728364265601), (-6.2275733529007455, 15.529728364265601), (-6.415738001380788, 15.529728364265601), (-6.6039026498608315, 15.529728364265601), (-6.745026136220864, 15.576769526385611), (-6.933190784700907, 15.576769526385611), (-7.12135543318095, 15.576769526385611), (-7.3095200816609935, 15.576769526385611), (-7.497684730141036, 15.576769526385611), (-7.6858493786210795, 15.576769526385611), (-7.826972864981112, 15.623810688505621), (-8.015137513461159, 15.623810688505621), (-8.203302161941203, 15.670851850625635), (-8.391466810421246, 15.717893012745645), (-8.57963145890129, 15.764934174865655), (-8.72075494526132, 15.811975336985665), (-8.861878431621353, 15.859016499105678), (-9.003001917981386, 15.906057661225688), (-9.19116656646143, 15.906057661225688), (-9.33229005282146, 15.953098823345698), (-9.520454701301503, 15.953098823345698), (-9.755660511901556, 15.953098823345698), (-9.9438251603816, 15.953098823345698), (-10.131989808861643, 16.000139985465708), (-10.320154457341687, 16.04718114758572), (-10.46127794370172, 16.235345796065765), (-10.55536026794174, 16.376469282425795), (-10.55536026794174, 16.56463393090584), (-10.55536026794174, 16.752798579385882), (-10.55536026794174, 16.940963227865925), (-10.55536026794174, 17.176169038465982), (-10.50831910582173, 17.364333686946026), (-10.50831910582173, 17.59953949754608), (-10.50831910582173, 17.787704146026122), (-10.50831910582173, 17.975868794506166), (-10.50831910582173, 18.16403344298621), (-10.55536026794174, 18.305156929346243), (-10.60240143006175, 18.446280415706273), (-10.60240143006175, 18.634445064186316), (-10.649442592181764, 18.77556855054635), (-10.696483754301774, 18.916692036906383), (-10.743524916421784, 19.057815523266417), (-10.743524916421784, 19.24598017174646), (-10.790566078541794, 19.434144820226503), (-10.790566078541794, 19.669350630826557), (-10.790566078541794, 19.8575152793066), (-10.790566078541794, 20.045679927786644), (-10.790566078541794, 20.233844576266687), (-10.743524916421784, 20.37496806262672), (-10.696483754301774, 20.51609154898675), (-10.649442592181764, 20.657215035346784), (-10.60240143006175, 20.798338521706818), (-10.55536026794174, 20.93946200806685), (-10.46127794370172, 21.08058549442688), (-10.414236781581707, 21.221708980786914), (-10.367195619461697, 21.362832467146948), (-10.226072133101667, 21.456914791386968), (-10.084948646741633, 21.598038277747), (-9.9438251603816, 21.692120601987025), (-9.755660511901556, 21.692120601987025), (-9.614537025541527, 21.786202926227045), (-9.426372377061483, 21.786202926227045), (-9.23820772858144, 21.786202926227045), (-9.050043080101396, 21.786202926227045), (-8.861878431621353, 21.786202926227045), (-8.6266726210213, 21.786202926227045), (-8.438507972541256, 21.786202926227045), (-8.203302161941203, 21.786202926227045), (-8.015137513461159, 21.786202926227045), (-7.779931702861101, 21.786202926227045), (-7.638808216501069, 21.833244088347055), (-7.450643568021025, 21.833244088347055), (-7.262478919540983, 21.833244088347055), (-7.074314271060939, 21.833244088347055), (-6.886149622580896, 21.833244088347055), (-6.697984974100853, 21.833244088347055), (-6.50982032562081, 21.833244088347055), (-6.2746145150207555, 21.833244088347055), (-6.039408704420702, 21.833244088347055), (-5.851244055940659, 21.786202926227045), (-5.663079407460616, 21.739161764107035), (-5.474914758980573, 21.739161764107035), (-5.1456266241404975, 21.598038277747), (-4.8163384893004215, 21.55099711562699), (-4.675215002940389, 21.409873629266958), (-3.969597571140228, 21.221708980786914), (-2.981733166620001, 21.03354433230687), (-2.793568518139958, 20.98650317018686), (-2.6524450317799255, 20.892420845946837), (-2.5113215454198934, 20.798338521706818), (-2.32315689693985, 20.657215035346784), (-1.9938687620997748, 20.46905038686674), (-1.8527452757397422, 20.37496806262672), (-1.7116217893797099, 20.233844576266687), (-1.6175394651396884, 20.092721089906654), (-1.5704983030196775, 19.95159760354662), (-1.476415978779656, 19.81047411718659), (-1.3823336545396345, 19.669350630826557), (-1.2882513302996128, 19.528227144466523), (-1.1941690060595913, 19.38710365810649), (-1.1000866818195698, 19.24598017174646), (-1.053045519699559, 19.104856685386427), (-0.9589631954595375, 18.963733199026393), (-0.8648808712195157, 18.82260971266636), (-0.7707985469794942, 18.68148622630633), (-0.7237573848594834, 18.493321577826286), (-0.6767162227394727, 18.352198091466253), (-0.6296750606194619, 18.21107460510622), (-0.5355927363794404, 18.069951118746186), (-0.4885515742594295, 17.928827632386156), (-0.394469250019408, 17.740662983906113), (-0.3003869257793864, 17.59953949754608), (-0.20630460153936486, 17.458416011186046), (-0.15926343941935406, 17.317292524826012), (-0.0651811151793325, 17.12912787634597), (0.028901209060689048, 16.98800438998594), (0.12298353330071063, 16.846880903625905), (0.1700246954207214, 16.705757417265872), (0.3581893439007645, 16.51759276878583), (0.49931283026079687, 16.376469282425795), (0.5933951545008185, 16.235345796065765), (0.7345186408608508, 16.09422230970573), (0.9226832893408939, 15.953098823345698), (1.0638067757009262, 15.859016499105678), (1.2049302620609588, 15.670851850625635), (1.346053748420991, 15.529728364265601), (1.4401360726610126, 15.388604877905568), (1.581259559021045, 15.247481391545534), (1.6753418832610665, 15.106357905185503), (1.8164653696210988, 14.965234418825471), (1.8635065317411097, 14.824110932465437), (1.9105476938611203, 14.682987446105406), (1.9105476938611203, 14.494822797625362), (1.9575888559811312, 14.306658149145319), (1.9575888559811312, 14.118493500665275), (1.9575888559811312, 13.930328852185232), (2.004630018101142, 13.742164203705189), (2.004630018101142, 13.553999555225145), (2.0987123423411633, 13.412876068865112), (2.192794666581185, 13.27175258250508), (2.239835828701196, 13.130629096145046), (2.2868769908212068, 12.989505609785015), (2.145753504461174, 13.083587934025037), (2.0516711802211525, 13.224711420385068), (1.9575888559811312, 13.365834906745102), (1.8164653696210988, 13.459917230985123), (1.7223830453810773, 13.601040717345155), (1.581259559021045, 13.789205365825199), (1.5342183969010341, 13.930328852185232), (1.5342183969010341, 14.118493500665275), true)
text9: "a=" + (LaTeX[a]) + ""
text10: "b=" + (LaTeX[b]) + ""