To sketch a graph in Maple, you define the expression (or list of expressions) first, then call a plotting command with the variable and its range—for example, plot(x^2 - 3*x, x = -5..5). For most calculus and algebra work that single line is enough: Maple renders the curve in a new window or inline document block, and you refine it with options like view, scaling, color, and discont. The key condition is that every free variable must be given a numeric range; leave x unbound and the plot command can't compute points. Everything below assumes modern Maple (the 2015 through 2025 releases behave the same way for the commands shown), and it applies whether you're in document mode or a worksheet.
Before Your First Plot: Prerequisites and Setup
You need three things in place: a working Maple installation or Maple Learn/Maple Calculator session, a defined variable range, and a way to execute the command (press Enter or the exclamation-mark evaluation button in a worksheet; the toolbar's plot menu is optional).
Two setup habits save time later:
Use an assignment for the function when you'll reuse it. f := x -> x^3 - 2x; then plot(f(x), x = -3..3) keeps the definition separate from the plot. The arrow form is a Maple operator; the expression form f := x^3 - 2x also works for plotting but behaves differently under eval and substitution, so the arrow form is the safer default. Know your output target. In a worksheet, right-click a plot for export options (PNG, JPEG, EPS, PDF). In document mode, plots appear inline next to the command. If a plot flashes and vanishes, you're probably in a command-line (TTY) session without a graphical interface—rerun in the standard graphical worksheet.
A quick sanity check: if plot(sin(x), x = -6..6) shows a wave, your environment is ready. If you get an error, read the first line of the message; Maple reports the offending argument before the stack trace.
The Core Command: plot and Its Essential Arguments
The general form is plot(what, range, options). "What" can be an expression, a list of expressions, a set of expressions, a function, or a parametric structure. The range names the independent variable and the interval.
Concrete examples, ordered from simplest to most typical:
1: A single expression: plot(x^2, x = -3..3). 2: Several curves at once: plot([sin(x), cos(x)], x = 0..2*Pi). Lists produce one plot with both curves; a list of lists like [[sin(x), cos(x)]] would instead plot a single parametric curve, so mind the nesting. 3: A named function: plot(f, -3..3) where f was defined with the arrow operator; the variable name is inferred. 4: A vertical range: add a second range to force the y-window: plot(x^3, x = -2..2, y = -10..10).
The range endpoints can be expressions, not just literals: plot(sin(x), x = 0..2*Pi) is fine, and so is a range built from a..b after you assign numeric values to a and b. What Maple cannot do is plot over a range containing an unassigned symbol—it will echo the command back unevaluated. That unevaluated echo is the single most common "nothing happened" symptom.
Expect the default view to be chosen automatically from the sampled values. If the function has a spike or an asymptote, the automatic window often looks wrong, which is why the next two sections matter.
Choosing the Right Plot Command for the Job
Maple has separate commands for separate geometry, and picking the wrong one is the second most common source of confusion. Use this as a decision list:
plot — ordinary y = f(x) curves, several at once, and simple parametric curves via the list-of-lists form. plot3d — surfaces z = f(x, y) over two ranges: plot3d(x^2 - y^2, x = -3..3, y = -3..3). Add style = surface or style = wireframe to change rendering. implicitplot (from the plots package) — relations that can't be solved for y, such as circles: with(plots): implicitplot(x^2 + y^2 = 9, x = -4..4, y = -4..4). polarplot — r as a function of angle: polarplot(1 + cos(theta), theta = 0..2*Pi). odeplot — solution curves from dsolve output, which is the standard way to sketch an ODE solution numerically. animate — a parameter sweep, useful for showing how a family of curves shifts.
Loading the package with with(plots) brings several of these into scope; without it, call them with the long name plots:-implicitplot. Both forms work, and using the long name avoids collisions with your own variable names.
A trade-off worth knowing: implicitplot samples a grid and can miss thin features or produce ragged edges near singular points, so for a circle or ellipse prefer the parametric form (plot([3cos(t), 3sin(t), t = 0..2*Pi])) when you can write it. The parametric version is smoother and faster.
Making the Sketch Readable: Options That Matter
Defaults are functional but plain. These options cover almost every readability problem students and instructors actually hit:
view = [xmin..xmax, ymin..ymax] crops the window without changing what's computed. Essential when an asymptote stretches the automatic y-range to ±10^6. scaling = constrained forces equal visual units on both axes, so a circle looks like a circle. Use scaling = unconstrained (the default) for function sketches where aspect ratio doesn't carry meaning. color = red (or blue, green, or an RGB list) distinguishes curves in a multi-curve plot. linestyle = dash separates curves that would otherwise be told apart only by color—useful for print and for colorblind readers. labels = ["x", "y"] and title = "..." label the axes and the figure. labelfont and titlefont take font specifications if you need larger text for a slide. legend = ["f", "g"] adds a key when plotting a list of curves. thickness = 2 and numpoints = 200 control line weight and sampling density. Raising numpoints smooths curves with rapid oscillation at the cost of computation time. discont = true asks Maple to detect and break jump discontinuities instead of drawing a near-vertical connecting line—worth setting for rational functions and piecewise definitions. adaptive = true (with optional depth) refines sampling where curvature is high. It's on by default for 2-D plots in recent versions, but you can raise the depth for very sharp features.
One practical check: after adding options, if the plot disappears entirely, your view window probably excludes the curve. Widen it first, then re-narrow.
Step-by-Step: A Worked Sketch From Start to Finish
Here's the full procedure applied to a representative function, g(x) = (x^2 - 1)/(x^2 - 4), which has vertical asymptotes at x = ±2 and a horizontal asymptote at y = 1.
Prerequisites: a Maple session ready to evaluate, and the function identified with any domain restrictions you already know.
1: Define the function. g := x -> (x^2 - 1)/(x^2 - 4); 2: Plot over a generous window first. plot(g(x), x = -6..6) to see the global shape before zooming. 3: Constrain the view. The automatic range will be dominated by the asymptotes, so set view = [-6..6, -6..6] to see the interesting behavior near the origin. 4: Turn on discontinuity handling. Add discont = true so Maple doesn't draw a misleading vertical connector at x = ±2. 5: Add context. labels = ["x", "g(x)"], color = blue, and title = "Rational function with two vertical asymptotes". 6: Check the result against your analysis. You should see a curve approaching y = 1 at both ends, a branch between the asymptotes passing through (0, 0.25), and separate branches outside them. If any branch is missing, your view window is too tight. 7: Export or annotate. Right-click the plot for export, or overlay reference lines with plots:-display(plot(g(x), x = -6..6, discont = true), plot(1, x = -6..6, linestyle = dash)) to show the horizontal asymptote explicitly.
Success check: the plot matches the sign analysis you'd do by hand—positive where the numerator and denominator agree in sign, negative where they disagree. Failure check: a smooth curve running straight through x = 2 means discont wasn't applied or the function was entered with a typo in the denominator.
Troubleshooting: Symptoms, Causes, Reversible Checks
Work from the symptom to the likely cause, and try the reversible fix first.
The command echoes back unchanged. Cause: an unassigned variable in the range, or a syntax slip. Check that the range uses two dots (..) and not a decimal point or three dots; x = -5...5 is a common typo. Also confirm the variable in the range matches the one in the expression.
The plot is empty. Cause: the view window excludes all computed points, or the expression evaluates to complex values over the whole range. Try removing view first, then test a single point with eval(g(x), x = 0) to see whether the function is real-valued there.
The plot looks like a solid filled region. Cause: you plotted a set of expressions or a filled style by accident, or the function oscillates so fast that sampled segments merge. Raise numpoints, and check whether you used a list where a single expression was intended.
A vertical line appears at a pole. Cause: discontinuity not detected. Add discont = true; if the line persists, split the range into pieces on either side of the pole and display them together.
Nothing renders at all but no error appears. Cause: headless or text-only session, or the plot window opened behind the main window. Check the window list before assuming the command failed.
Stop condition: if Maple returns a kernel connection error, a crash, or corrupts the worksheet on repeated plotting, save your work and reinstall or contact Maple support (Maplesoft). That's an environment problem, not a plotting technique problem, and no amount of option-tweaking will fix it.
Getting Numbers and Exact Values Off the Sketch
A sketch is more useful when the interesting points are labeled. Maple won't annotate a plot automatically with extrema or intercepts, but you can compute them and place them deliberately.
To find where a curve crosses the x-axis, use solve(f(x) = 0, x). For extrema, Optimization:-Maximize and Minimize work on a bounded range, or take the derivative with diff and solve it. To compute the y-value at a specific x, eval(f(x), x = 2). To place a labeled point, build it as plots:-pointplot([[2, eval(f(x), x = 2)]], symbol = solidcircle, symbolsize = 12) and combine it with the curve using plots:-display(curve, point, ...).
A worked arithmetic check keeps the sketch honest. For g(x) = (x^2 - 1)/(x^2 - 4) at x = 0, the value is (0 - 1)/(0 - 4) = 0.25, so the y-intercept sits a quarter of a unit above the origin—worth confirming on the rendered plot before you trust the rest of the shape. At x = 3, the value is (9 - 1)/(9 - 4) = 8/5 = 1.6, which should sit above the horizontal asymptote y = 1; if your plot shows it below, you've likely mistyped a sign.
These are exact computations, not eyeballed estimates. Keep them separate from the visual: the plot shows shape, the algebra fixes values, and the two should agree.
Moving Beyond 2-D: Surfaces, Parametric Curves, and Implicit Relations
The same define-then-plot pattern extends directly.
Parametric curves take the form plot([x(t), y(t), t = a..b]). A Lissajous figure, for instance, is plot([sin(3t), sin(2t), t = 0..2*Pi]). The inner list is the curve; wrap several in an outer list to compare them.
Surfaces use plot3d(expr, x = a..b, y = c..d). Add axes = boxed, orientation = [theta, phi], and shading = zhue to make the surface legible; the default orientation sometimes hides key features. For a quick contour view instead, use contourplot from the plots package over the same ranges.
Implicit relations use plots:-implicitplot(relation, x = a..b, y = c..d). Because it samples a grid, increase grid = [80, 80] if the curve looks chunky, and expect it to be slower than an explicit plot.
Animations use plots:-animate(plot, [f(x, a), x = -3..3], a = 0..2*Pi). The first argument names the command to animate, and the list holds its arguments with the parameter left symbolic. This is the cleanest way to show a family of curves without generating a dozen separate figures.
Each of these produces a distinct kind of object, and mixing their options is a common error: view works for all of them, but discont is meaningful only for 2-D explicit plots, and shading only for surfaces. Passing an irrelevant option usually produces a warning rather than a wrong picture, but check the output rather than assuming the option took effect.
Practical Limits and When to Trust the Picture
A Maple plot is a rendering of sampled points, and sampling can deceive. Functions with very narrow spikes—say, a Gaussian centered at 0.001 with a tiny width—can be invisible at default numpoints and then appear as a full-height spike once you raise it. Conversely, a function with a removable singularity may draw a small gap where the limit exists. Neither is a Maple bug; both are consequences of discrete sampling.
discont = true helps with genuine jumps but doesn't fix sampling misses. For high-frequency oscillation, raise numpoints to a few thousand and compare the result at two different settings—if the picture changes materially between them, you're undersampling.
Another limit is symbolic range: if a parameter remains unassigned, Maple won't plot. And for very large ranges, the adaptive sampler can be slow; capping numpoints and letting adaptive refinement do the work is usually faster than brute-force density.
FAQ
Does Maple's plot command work in Maple Learn and Maple Calculator? The core plot syntax carries over, and these tools accept the same expression-and-range pattern for 2-D plots. The full option set, package commands, and export controls are richer in the desktop worksheet, so for surfaces or implicit plots, the desktop product is the safer choice.
Why does my plot look different from the textbook? The most common reasons are a different view window, default scaling, or discontinuity handling. Match the window first, then check whether the textbook used a constrained aspect ratio, and only then suspect the function definition.
Can I add shading under a curve or between two curves? Yes: plot([f(x), g(x)], x = a..b, filled = true) fills between the curves, and filled = [color = "LightBlue"] controls the fill. For area under one curve down to the axis, plot the curve and the zero function together with filled.
How do I save a high-resolution figure for a report? Right-click the plot and choose Export, then pick a vector format (EPS or PDF) for print or a high-DPI raster for slides. Vector export preserves the curve smoothness at any zoom level.