Obtain Figure A-9.2(a), a graph of the piecewise function
fx=2 x+1x<210−3 xx≥2
Since the two rules comprising fx are just linear functions joined at x=2, the domain of the graph has been chosen to satisfy 0≤x≤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
Maple Solution - Interactive
Expression palette: Piecewise template
Fill in the fields as appropriate.
Context Panel: Plots≻Plot Builder≻2-D plot
x: 0 to 4
2-D Options: discont
2 x+1x<210−3 xx≥2→
Alternatively, clicking this
button will launch the Interactive Plot Builder with the given piecewise function already installed. (The Preview and Options buttons will work, but no graph will be embedded in this worksheet.)
Set 0≤x≤4 (See Figure A-9.2(b).)
Options: Range from/to≻ Insert y as Label
Options: Symbol→solid circle
Options: Size from 10 to 15
Options: Constrained Scaling
Options: Find Discontinuities
See Figure A-9.2(c)
Figure A-9.2(b) First pane of the Interactive Plot Builder
Figure A-9.2(c) Options panel for the Interactive Plot Builder
Maple Solution - Coded
Enter the piecewise function.
Execute the plot command below.
f≔piecewisex<2,2 x+1,x≥2,10−3 x
<< Previous Example Section A-9
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2021. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document
What kind of issue would you like to report? (Optional)