A Critique of the Proposed National Education Policy Reform
Ā
Computer algebra-system-maple
1. www.usm.my
Computer Algebra System in Education
Maple
Azat Azhibekov
azatazhibekov@gmail.com
Department of Computer Education and Instructional Technologies,Fatih
University,34500 Buyukcekmece,Istanbul,Turkey
May 23, 2015
FU BOTE
2. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Computer Algebra System
2 types
Computer Algebra System (CAS) is a type of software
package that allows to manipulate mathematical objects.
The primary goal of CAS is to manipulate automate
tedious and sometimes difļ¬cult algebraic manipulation
tasks.
Specialized ones
FORM-for particle Physics
Fermat-for resultant computation and linear algebra with
polynomial entries
PARI/GP-for number theory
General Purpose ones
Maple-used for teaching and scientiļ¬c purposes
MATLAB(matrix laboratory)-multi-paradigm numerical
computing environment and fourth-generation
programming language
Azat Azhibekov Computer Algebra System in Education May 23, 2015 2/31
3. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
General Purpose CASās features
a user interface
a programming language and interpreter
a simpliļ¬er, which is a rewrite system for simplifying
mathematics formulas
a memory manager,including a garbage collector
an arbitrary-precision arithmetic,needed by huge size of
integers that may occur
a large library of mathematical algorithms
Azat Azhibekov Computer Algebra System in Education May 23, 2015 3/31
4. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Maple-a general purpose algebra system
Maple is one of the leading general-purpose commercial
CAS and widely used in engineering,science,and
mathematics. Maplesoft customers include:
Ford
BMW
Bosch
Boeing
NASA
Canadian Space Agency
Canon
Motorola
Microsoft Research
Bloomberg
DreamWorks
Azat Azhibekov Computer Algebra System in Education May 23, 2015 4/31
5. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Maple-a general purpose algebra system
Covering sectors:
automotive
aerospace
electronics
defence
energy
ļ¬nancial services
consumer products
entertainment
Educationā Over 90% of advanced research institutions
and universities worldwide,including
MIT,Stanford,Oxford, the NASA Jet Propulsion
Laboratory and the U.S. Department of energy,have
adopted Maplesoft solutions to enhance education and
research activities.
Azat Azhibekov Computer Algebra System in Education May 23, 2015 5/31
6. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Maple
Maple is a very powerful interactive computer algebra
system for doing maths and used for numerical and
symbolic computation
Deļ¬nition (Symbolic Computation)
In mathematics and computer science,computer
algebra,also called symbolic computation or algebraic
computation is a scientiļ¬c area that refers to the study and
development of algorithms and software for manipulating
mathematical expressions and other mathematical objects
Symbolic Computation in Maple(11)
ā
āā
eāx2
dx =
ā
Ļ
Azat Azhibekov Computer Algebra System in Education May 23, 2015 6/31
7. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Maple in Math Education
In every class there are places,where we can use
Technology to help advance understanding,and Maple
must be used to do that effectively.
Maple is a tool for doing mathematics
Maple allows you do math in your own way
Maple makes you love itself as well as mathematics
Researchers recommend that teachers use CAS
features to focus on concepts,personalize curricular to ļ¬t
student needs,and emphasize meaningful math tasks.
Azat Azhibekov Computer Algebra System in Education May 23, 2015 7/31
8. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>with(Student): A Maple package is called by
with(packagename):
>diff(f,x$n): Finds the nth derivative of f with respect to x
(f@g)(x): f(g(x)) (composition function)
>f := x ā 2x3 + 5:
>g := x ā x2
>diff(f(x), x); 6x2
>diff(f(x), x$3); 12
>diff(((x2 + x7)/x5), x); ā3+2x5
x4
>(f@g)(x); 2x6 + 5
>(g@f)(x); (2x3 + 5)2
NOTE: All results in this presentation were computed in Maple
11 Classic Worksheet
Azat Azhibekov Computer Algebra System in Education May 23, 2015 8/31
9. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>f := x ā F: arrow notation to deļ¬ne f as a function of
x
>evalf(a): evaluates the expression a using ļ¬oating point
arithmetic
>Digits:=n: sets the number of digits used for ļ¬oating
point numbers to n (the default is 10)
>f := x ā 3x + 5:
>f(2); 11
>f(5x); 15x + 15
>Digits:=6:
>evalf(Pi); 3.14159
>evalf(exp(1)); 2.71828
Azat Azhibekov Computer Algebra System in Education May 23, 2015 9/31
10. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Some Symbols in Maple
Like any good computing system,Maple has a certain
collection of of well-used mathematical constants and
functions available.
I;
Pi;
exp(1);
inļ¬nity;
alpha;
theta;
lambda;
gamma;
omega;
Omega;
sqrt(-1) (imaginary number)
Ļ (pi;Ļ,but itās not deļ¬ned therefore
Maple doesnāt know its value)
e (Euler number)
ā
Ī±
Īø
Ī»
Ī³ (Eulerās constant)
Ļ
ā¦
Azat Azhibekov Computer Algebra System in Education May 23, 2015 10/31
11. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>expand(f): expands the expression f using the laws of
algebra and trigonometry
>factor(f): factors the given expression
>fsolve(f = a, x): solves the equation f = a for x. The
answer is given in decimal form
>rationalize(a): rationalizes denominator
>expand((a + b)2); a2 + 2ab + b2
>factor(x2 ā 2x ā 63); (x ā 9)(x + 7)
>fsolve(r3 + 4 = 45, r); 3.448217240
>rationalize(2/(2 ā
ā
2)); 2 +
ā
2
Azat Azhibekov Computer Algebra System in Education May 23, 2015 11/31
12. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Some important commands
?name: help descriptions of syntax, data types and
functions
#comment: All characters that follow a pound
character on a line are considered to be part of a
comment.
%: gives the previously computed result,Maple
remembers previous three (%,%%,%%%)
:= assignment operator
;(semi-colon): (each instruction to Maple must
end with colon or semi-colon) output is printed
:(colon): output is not printed
unassign(āaā): unassigns names
Azat Azhibekov Computer Algebra System in Education May 23, 2015 12/31
13. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>Slope(p1,p2): computes the slope of the line
through the points p1 and p2
>limit(f, x = a): ļ¬nds the limit of f as x approaches a
>solve(f = a, x): solves f(x) for x
>root(x, n): nth root of x
>limit(sin(x)/x,x = 0); 1
>limit(exp(b),inļ¬nity); ā
>limit(ā1/x, x = 0,right); āā
>solve(sin(x) + y = 2, x); ā arcsin(y ā 2)
>solve(x2 ā 9 = 0, x); Ā±3
>root(32, 5); 2
>Slope([0, 0], [1, 2]); 2
Azat Azhibekov Computer Algebra System in Education May 23, 2015 13/31
14. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>int(a, x): computes the indeļ¬nite integral of
expression a with respect to x
>int(a, x = b..c): computes the deļ¬nite integral of a
with respect to x
>maximize(a, opt1, opt2..optn): computes global
maximum value of a
>minimize(a, opt1, opt2..optn): computes global
minimum value of a
>int(2 + x, x); 2x + x2
2
>int(4x2 ā 2/x5 + 7, x); 4x3
3 + 1
2x4 + 7x
>int(exp(x)/2, x); 1
2 ex
>maximize(x3 ā 3x2 ā 9x + 5, x = 0..4,location);
5, {[{x = 0}, 5]}
>minimize(x2 + 1, x = ā1..2); 1
Azat Azhibekov Computer Algebra System in Education May 23, 2015 14/31
15. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Some important commands II
restart: clears all previously assigned variables,makes
Maple act like as if just started
: executes the current expression
: executes the worksheet
[list] (ordered): z := [c, a, b]: >z [1]; c
{set} (unordered,no duplicates): >{a, b, a, c}; {a,b,c}
>=: ā„ (greater than or equal)
<>: = (not equal)
<=: ā¤ (less than or equal)
@: composition operator(composition function)
"text": assigns nothing but only text
Azat Azhibekov Computer Algebra System in Education May 23, 2015 15/31
16. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>subs(x = a, f): substitutes a for x in the expression f
>convert(expr,form): converts expression to another
form
>collect(expr,xn): collects coefļ¬cients of like powers of
x orxn
>coeff(p,xn): extracts a coefļ¬cient of a polynomial in x
>subs(x = y3, x2 + 9x); y6 + 9y3
>subs(x = 0, y = ā1, z = Pi, x + y + cos(z)); ā1 + cos(Ļ)
>convert(Pi,degrees); 180 ā¦
>convert(9,binary); 1001
>collect(a3x ā x + a3 + a, x); (a3 ā 1)x + a3 + a
>coeff(yx3 + x2y ā x2y2 ā xy ā 2x2y2x ā y ā y2 ā y3x +
y3 + y4, x2); āy2 + y
Azat Azhibekov Computer Algebra System in Education May 23, 2015 16/31
17. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Basic Functions
+: addition(plus)
ā: subtraction(minus)
ā: multiplication(times)
/: division(fraction)
^: exponentiation(power)
abs(x): absolute value
sqrtx: square root
n!: factorial
sin(x): sine
cos(x): cosine
tan(x): tangent
sec(x): secant
csc(x): cosecant
cot(x): cotangent
log(x): general logarithm
ln(x): natural logarithm
exp(x): exponential
function
sinh(x): hyperbolic sine
cosh(x): hyperbolic cosine
tanh(x): hyperbolic tangent
Azat Azhibekov Computer Algebra System in Education May 23, 2015 17/31
18. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>iscont(f, x = a..b, openor closed ): tests continuity of
f on an interval a..b
>gcd(a, b): ļ¬nds greatest common divisor of a and
b(polynomials)
>lcm(a, b): ļ¬nds lowest common multiple(polynomials)
>discont(f, x): ļ¬nds the discontinuities of f over the
reals
>iscont((x + 2)/(x ā 2), x = 1..2,āclosedā); false
>iscont((x + 2)/(x ā 2), x = 1..2,āopenā); true
>discont((x2 + 1)3/(1 ā x2), x); {1, ā1}
>gcd((X2 ā y2)/(x3 ā y3)); āy + x
>lcm(x2 + 2x + 1, x + 1); x + 1
Azat Azhibekov Computer Algebra System in Education May 23, 2015 18/31
19. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Commands useful in Calculus I
>piecewise(cond1, f1, cond2, f2..condn, fn):
piecewise-continuous functions
>simplify(a): simpliļ¬es expression a
>piecewise(x2
> 4and x < 8, f(x));
f(x), 4 < x2
andx < 8
0, otherwise
>simplify(%); ļ£±
ļ£“ļ£“ļ£“ļ£²
ļ£“ļ£“ļ£“ļ£³
f(x), x < ā2
0, x ā¤ 2
f(x), x < 8
0, 8 ā¤ x
Azat Azhibekov Computer Algebra System in Education May 23, 2015 19/31
20. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Plotting 2D Graphs
>plot(f, x): creates two-dimensional plot
>plot(f, x = a..b, y = c..d, opt1, opt2..optn): the plot
command has many options
>plot({f1, f2..fn}, x = a..b, options):
>plot(x2
, x = ā1..2, y = ā1..2, title =
āPlot example(Graphof x2
)ā, thickness = 2, color =
blue, style = point);
>plot(piecewise(x ā¤ 1, x3
ā 3, x > 1, 2x + 4),x = ā11..11, y =
ā5..30, discont = true, color = green, title =
āGraphof piecewisefunction);
Azat Azhibekov Computer Algebra System in Education May 23, 2015 20/31
21. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
2D Graph
Azat Azhibekov Computer Algebra System in Education May 23, 2015 21/31
22. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Some plot options
You can change the view of graphs by applying plot options
axes="boxed,frame,none or normal"
color="Orange,Silver,Gold,Green,Coral,BlueViolet,Lime,
Yellow,DeepSkyBlue,etc."
discont=true,false
ļ¬lled=true,false
labels=[x,y]
labeldirections=[horizontal,vertical]
linestyle=solid,dot,dash,dashdot,longdash,spacedash,
spacedot
numpoints=n (default is 50 points)
style=line,point,patchnogrid,patch
thickness=n
Azat Azhibekov Computer Algebra System in Education May 23, 2015 22/31
23. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
2D Graph
>plot([sqrt(x), 3log(x)], x = 0..400, numpoints =
1000, thickness = 3);
Azat Azhibekov Computer Algebra System in Education May 23, 2015 23/31
24. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Plotting 3D Graphs
For some special plots you need special commands that
are in plots package
>plot3d(f, x = a..b, y = c..d): creates
three-dimensional plot
>plot3d([f, g, h], s = a..b, t = c..d):
>plot3d([f, g, h], a..b, c..b):
>plot3d([exprf, exprg, exprh], s = a..b, t = c..d):
>plot3d(x2, x = ā2..2, y = 1..5, axes = boxed, scaling =
constrained, color = āSkyBlueā, style = patch, title =
ā3Dgraphof x2);
Azat Azhibekov Computer Algebra System in Education May 23, 2015 24/31
25. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
3D Graph
Azat Azhibekov Computer Algebra System in Education May 23, 2015 25/31
26. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
3D Graph
>plot3d(xexp(āx2 ā y2), x = ā2..2, y = ā2..2, color = x);
>plot3d((1.3)x sin(y), x = ā1..2Pi, y = 0..Pi, coords =
spherical, style = patch);
Azat Azhibekov Computer Algebra System in Education May 23, 2015 26/31
27. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Some 3D Plot Options
axes=boxed
caption="c"
coords=polar,spherical,cylindrical,conical,bispherical
font=[family, style, size]
family=TIMES,HELVETICA,COURIER,SYMBOL
TIMESā style=ROMAN,BOLD,ITALIC,BOLDITALIC
HELVETICA and COURIERā
style=BOLD,OBLIQUE,BOLDOBLIQUE
SYMBOLā style=no style
lightmodel=none,light1,light2,light3,light4
scaling=constrained,unconstrained
style=surface,patch,contour,patchcontour,line,point
symbol=asterisk,box,circle,diagonalcross,diamondpoint,
solidsphere,sphere
symbolsize=n(default=10)
Azat Azhibekov Computer Algebra System in Education May 23, 2015 27/31
28. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Potting points
>plot([[x1, y2], [x2, y2], [x3, y3]..., [xn, yn]]): Plots points
>L:=[[0, 0], [1, 1], [2, 3], [3, 2], [4, ā2]]:
>plot(L);
Azat Azhibekov Computer Algebra System in Education May 23, 2015 28/31
29. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
Ford Motor Company uses Maple
PROBLEM
Ford Motor Company wrestled with -incessant noise and
vibration in chain noise. Ford detected a severe
1800 ā 1900Hz chain noise,and sound pressure levels
were 10 ā 15db over nominal values and the cause was
unknown.
Azat Azhibekov Computer Algebra System in Education May 23, 2015 29/31
30. Introduction
General Purpose CAS
Maple in Use
Symbolic Computation in
Maple
Maple in
Education
Mathematics with Maple
Basic Function
Mathematics with Maple
Visualisation
Plots
Extra(Research)
Reference
References
Reference Materials(click here)
Azat Azhibekov Computer Algebra System in Education May 23, 2015 30/31