Notes For Maple Math1131
Notes For Maple Math1131
The Basics
Constants
π = Pi
I = i (sqrt(-1))
Infinity
e^x = exp(x)
Assigning Variables
You can assign any Maple expression to a variable for future use.
To assign a variable you must you ‘:=’, with there being no spaces between : and =.
Unassigning Variables
Expressions vs Functions
Functions take an input from its domain and returns an output in its range.
g: = x-> x^2-x
g is assigned to be the rule that takes x as input and returns x^2-x as output.
Packages
To load a package, use with(name of package).
Evaluating a function
If a function f is defined, you can use the usual notation f(x) for the value of f at x.
Substituting an expression
Subs
If a function has been assigned, the command Subs (x=value, function) can be used to find f at the
value of x.
Piecewise-Defined functions
Limits
Can be used to find the limit as an expression approaches a finite value or infinity’ and left hand and
right-hand limits.
Derivatives
First derivatives
Differentiating an expression
Diff(expression, variable)
Variable = variable that you are differentiating with respect to.
Subs(x=number, Diff(expression, variable)) gives you the derivative of the expression at number
Differentiating a function
D(function)(number) will give you the value of the first derivative at number.
Expressions
Functions
Implicit Differentiation
Integration
Indefinite Integration
Definite Integrals
Int(expression, variable=a..b)
If Maple cannot find an indefinite integral symbolically, it will return it unevaluated.
But, evalf(%) can be used to find a numerical approximation to the definite integral.
Collections of Expressions
Maple Sequences
Sets vs Lists
Sets
enclosed in a { } bracket.
Maple doesn’t remember the order of the terms
Repetitions are removed
Lists
enclosed in a [ ] bracket
Maple remembers the order of the terms
Repetitions are not removed.
Maple can add or multiply the terms in a Maple sequence, set or list using “add” and “mul”.
‘sum’ and ‘product’ can also be used, but they require the seq syntax to be used.
Manipulating structures
Complex Numbers