


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Maple is a powerful and sophisticated mathematics program that is simple to use. Here is a brief introduction into using Maple. Expressions To enter a Maple expression, just type it in at the prompt. Maple knows most special functions by name, such as sin(x) and cos(x) ; use a space or * for multiplication, the caret ^ for powers; to enter , type Pi. As you type, Maple arranges your expression in mathematically meaningful typesetting. Use the arrow keys to navigate your expression. You can also highlight parts of your expression before pressing, say, the “division” symbols / to put the highlighted part of your expression in the numerator. When you are done typing your expression, press ENTER. Maple will check your input for errors and display its answer in blue. Maple also numbers your expression automatically (on the right side). To practice, enter the following expressions, each in a line by itself: Functions To define a function in Maple, use the assignment operator := (colon-equal). To define, for example, the function f(x) = 4 x + 2 you type f(x) := 4 x + 2 [ENTER] Note the assignment operator := … Maple will check whether you want to define a function or a table expression. Choose “ define function ”. After you have defined a function, you can evaluate it. Try, for example: f(2), f(4 t), and Note that Maple often simplifies its answer (especially for the last expression).
Commands Maple knows hundreds of commands you can use to manipulate expressions and functions. You can either type them in (if you know the name and syntax) or select them by right-clicking a blue expression and selecting the command from the pop-up context menu. Using the right-click context menu is easier, typing a command is more flexible. Note that the right-click context menu items depend on the expression you right-click. Most of the time right-clicking works best. If you do need to type commands, here are the most useful ones (note that Maple is case-sensitive): simplify Simplifies expression simplify(2 x + 3 x) factor Factors an expression factor(x^2 – 1) expand Expands an expression (foil) expand((x+1) (x-1)) evalf Approx. expression as decimal number evalf(2 Pi) subs Substitutes a term into an expression subs(x=1, x^2 + 2) numer Extracts numerator of a quotient numer(6/7) denom Extracts denominator of a quotient denom(6/7) solve Solves an equation solve(x^2 + x = 10, x) fsolve Solves an equation numerically fsolve(cos(x)*sin(2 x) = 0.5, x = 5) limit Finds a limit limit(sin(x)/x,x=0) limit(abs(x)/x,x=0,left) limit(abs(x)/x,x=0,left) diff Finds a derivative diff(sin(x^2), x) diff(sin(x^2, x$2) int Finds definite or indefinite integral int(x^2,x) int(x^2,x=0..1); plot Plots one or more expressions plot(x^2, x=-2..2) plot(1/x, x=-3..3, -8..8) plot({x^2,x^3},x=-2..2) Re-Using expressions Often you want to refer to an expression that already exists. You can: Retype the expression (of course) Refer to the expression by its number (press CTRL-L and enter the expression number) Use the mouse to drag a copy of a blue expression to its new location For example, you can enter an expression such as sin(x^2), then hit ENTER. on the next line, type “diff(“, then select the blue expression above and drag it to your differentiation command, or on the next line, type “diff(“ and press CTRL-L, then type the number of the previous expression and click OK Then complete the command by typing “,x)” – your command should say “diff(sin(x^2), x)”. Sample Questions