Example A-9-2 - Maple Help



Appendix



A-9: Graphing



Example A-9.2



Obtain Figure A-9.2(a), a graph of the piecewise function

Since the two rules comprising $f\left(x\right)$ are just linear functions joined at $x=2$, the domain of the graph has been chosen to satisfy $0\le x\le 4$.

 > plot(piecewise(x<2,2*x+1,x>=2,10-3*x), x = 0 .. 4, discont = true, labels = [x, y], symbol=solidcircle, symbolsize=15, scaling=constrained);

 >

Figure A-9.2(a)   Graph of a discontinuous piecewise function