submission instructions
Homework problems marked by an asterisk * on the homework
log page are to be done using MAPLE with a partner
(or two partners). Save each chapters' problems in a single
worksheet (with all partners' names inside
the worksheet at the top with date) as "MAPLE sections" with a
section
title labeling the problem (as in 3.1.2 for E&P chapter 3
section 1 problem 2)
on your personal hard drive or network space (each partner keeps a copy for safety) until requested
to submit the chapter worksheet the week following chapter completion. Filename: maplex.mws, where x
is the chapter number the problems are coming from in the E&P
DELinAlg textbook as designated on the due date list below. You may work individually
on any given problem if successful, but must meet, discuss and merge your work with a
fixed partner(s) for a given maple worksheet collection of assignments.
Try to put in comments that explain what you are doing in your worksheet,
rather than just listing a series of maple inputs and outputs. Begin to learn
how to document your work.
[Because this course is designated officially as Maple Required, you are
allowed to purchase the full version of Maple for $75, but there is no need
since you can get it anywhere through citrixweb. This offer is for students with
extra bucks who want to work disconnected from the internet. Ask bob for
details.]
1)
Worksheet
submission will be done as an email attachment where the subject
header is:
[mat2705] lastname-lastname<-lastname>-maplex.mw
where the last names of all partners are listed (separated by hyphens, no spaces) and x
stands for the chapter number of the maple assignment: 1,2,3,5.
2) Include the partners as email recipients
using the CC option so that I can REPLYALL with the graded commented
worksheet.
3)
The filename must be the same as in the email subject heading:
lastname-lastname<-lastname>-maplex.mw
so I can extract them and tell where your worksheet is in my local folder (x
is 1,2,3 etc!). When you attach your worksheet, first change its name to agree
with this longer format so I can save it that way onto my hard drive.
Here is a Maple template file to get started. Save it (right-click on link and
"SAVE AS" choosing type "ALL FILES") and open it up in MAPLE:
maple1.mw
Add a new section for the next problem etc.
[MAPLE sections can be inserted empty and later filled,
using the INSERT menu, Section selection, then insert a MAPLE prompt |> icon on
the top toolbar, or one can select a region of a worked problem with the
mouse and hit the second icon INDENT after the Maple prompt icon to enclose the region
in a section.]
Everyone must have a partner (or two) unless agreed upon in advance with bob.
[You may change partners on different assignments.]
Consult the command list worksheet for examples when necessary:
cmdlist4.mw.
"Upgradable" after the grade [0/2, 0.5/2, 1/2, 1.5/2, 2/2]
means you can correct your worksheet based on my comments and resubmit it for a
better grade. I will help you in person if you do not understand how to correct
any problem. It is easy to do well on this grade input, if not initially, then
by getting help from me. [If you do not get a reply to the email submitted in
your name for a given assignment, it probably means I did not receive it. Check
with me after a reasonable amount of time.]
Remember, you may come to my office for consultation on any problem, or request
preliminary help via email (attach worksheet) if you are stuck on something.
Since this is 10 percent of your grade, and I am very flexible about deadlines
and helping you, it is absurd not to make sure you get full credit on all
assignments.
Tips to remember:
- Maple is case-sensitive like mathematics, distinguish uppercase and
lowercase letters and be consistent.
- Pi is the number
π, exp(x) is ex, exp(1) is e
but in typing Maple, e
or e
is never the Euler number and e^x
is never the exponential function
[use the Common Symbol palette entry to be sure (Pi)!]
- All Maple commands obey function notation
with rounded parentheses (,) enclosing their inputs separated by
commas. All groupings overriding the usual rules for order of
performing the basic operations are done using matching rounded parentheses
only (no brackets or braces of any kind).
- Square brackets [,] enclose a list of objects
(numbers, functions, color names) whose order is to be maintained, like vector
components, or a list of functions to coordinate with a list of colors in a
plot command. Curly braces {,} are used to enclose sets of objects
whose order is unimportant, as in a set of equations to be solved.
[Square brackets are also used for subscripts on vectors or matrices: v[1]
becomes v1, A[1,2] becomes
A1,2.]
- % stands for the last output in time (not
necessarily the previous output in position in the worksheet). When a series
of inputs using % goes bad and has to be re-edited and executed, you must
re-execute from the first statement to which they refer to reset the sequence.
- Shift Enter. Holding the Shift key and
pressing the Enter key at the end of a Maple input allows you to go to the
next line. If you wish to put two Maple inputs together in 2d math notation,
they must be separated by a semicolon (or a colon to suppress the output of
the preceding command).
- In 2d math mode input, spaces
between variables imply multiplication (an * is required in 1d mode and
between hard numbers like 2 and 31/2 in 2d input) and the
right arrow key is needed to climb down from a
superscript and continue or climb up from a
denominator (use /
for division and fractions) and continue entering input. Always use
parentheses ( ) when needed for grouping!
- When you give a range of values for a variable:
x = 1..4, but when decimals are entered do x = 0.1..0.4
since Maple assumes 3 consecutive dots were intended
to be 2 and the x = .1...4 is the same as x = 0.1..4 .
- Control F2 gives you the quick summary of
Maple interface help.
- Control Space invokes auto-complete when
entering Maple commands to choose from a popup menu of all commands which
begin with the typed letters.
- If the output of a worksheet on the web has been
removed (Edit Menu, bottom, Remove Output, from entire worksheet), it can be
restored by Edit Menu, Execute Worksheet or by clicking on the !!!
icon on the upper tool bar.
- After deleting a
range of Maple stuff, you must use the Edit Menu, Delete Element
to get rid of the last input/output/text region of the selected stuff.
- If you enter an expression for a real function
that you want to plot, choose plot builder
from the right click menu, not 2d plots (where you have to further
rightclick on the smartplot and choose axes, range
to reset the window). If you click on an equation say y = f(x) you
must right click and first choose right hand side
to get the expression to then plot with plot builder.
-
MORE TIPS...
home work list
PROBLEMS STILL REQUIRE RENUMBERING AND RECONSIDERATION, a red asterisk
* marks up until what point problems have
actually been assigned as the semester progresses
maple1.mw (due the week following completion of
chapter 1):
-
to get started as explained above, open and save this file:
maple1.mw.
-
1.3:
8*: our first Maple HW problem: read the
Maple HW instruction page (above), then try the MAPLE direction field
command in this linked template to reproduce the two given curves by using
two appropriate initial data points [Hint: notice that the y-axis
crossing points are integers!] Then include the solution curves for all the initial data points of
the red dots (some half-integer values); this is also described on p.29
for both MAPLE and MATLAB, but the above template already has the
appropriate section copied into it for you; if you can find a partner to
work with in time fine, otherwise try this yourself and find a partner for
future problems, then merge your work.
-
1.5: 21* check both the general solution and the
initial value problem solution with the dsolve
template.
-
1.5: 41* [use the dsolve template to solve this
DE with its
initial condition; evaluate answer to question of word problem to a floating
point number and give the result in dollars and cents in a comment, then think
about significant figures and give a response with fewer significant digits].
Useful Maple commands:
> deq:= y'=2 y
> dsolve(deq, y(x))
> dsolve( {deq, y(1)=2}, y(x))
> with(DEtools):
> DEplot(deq, y(x), {[0,0],[,[1,0],[1,1]}, x=-2..2, y=-2..2)
[or enter DE plus IC separated by a comma, right click on output]
> y ' = x y , y(0)=1
> odecheck(sol,deq) [this
returns 0 if LHS-RHS of DE is 0]
maple2.mw due the week following completion of chapter 2
- Edwards and Penny 2.4 Application exercise, pp. 123--124 in textbook:
Famous numbers investigation, Exercises 1 and 2.
The problems below describe the numbers e (Euler's number) and ln 2 as
specific values of certain initial value problem solutions. In each case,
apply Euler's method with n = 50, 100, 200,... subintervals (doubling
n each time). How many intervals are needed to obtaintwice in
successionthe correct value of the target number when it is rounded off to 3 decimal
places?
How much does the percentage error seem to
decrease by roughly each time you halve the stepsize? Respond to this question
with a Maple text mode comment.
- The number e = y(1) where y(x) is the solution of the
initial value problem y ' = y , y(0) = 1
[since the exact solution is y(x) = exp(x)]. -
The number ln 2 = y(2) where y(x) is the solution of the initial value problem
y ' = 1/x , y(1) = 0
[since the exact solution is y(x) = ln(x)].
Read the
euler.mw template worksheet and use the section
titled "use it" twice, by copying this section (select the entire
section including the title line) and choose EDIT, COPY or rightclick COPY)
, opening a new worksheet and then pasting it twice at the initial prompt,
labeling the sections 1 and 2 and saving it as
maple2.mw (This is already done for you here),
and putting your names and date at the top first. Be sure to
rename this file with your partner last names as requested.
maple3.mw (due the week
following completion of chapter 3):
-
3.2* (read this linked worksheet in class
with a partner; nothing
to insert in maple3.mws)
-
3.3:
19* [use the tutor and record your step by step reduction, annotating each
step as in the rowredex0.mw worksheet; then check with ReducedRowEchelonForm];
29* [= 3.2.19, after inputting the Student Linear Algebra package with the
Tools Menu, check the solution to this problem by solving with
Red...(control space will autocomplete to RREF) and
Back... (BackwardsSubstituting) of the augmented matrix,
compare your solution for the variables x1,...,x4 with the book answer; do
they agree?];
-
chemical reaction problem*
- 3.6:
17* [record your Gaussian elimination
steps (no RowMultiplications!, ie, no dividing row by entry to make 1) in reducing this to triangular form and check det value against your
result]
-
*3.5. Application:
7* from textbook on p.201,
using the inverse matrix as described on p.200,
be sure to answer the word problem question with a text comment;
are these sandwiches cheap or not?
[if
you know how to use MathCad, try it and compare with MAPLE]
useful Maple commands:
To solve a linear system, input augmented matrix with the palette or Matrix
command:
> with(Student[LinearAlgebra]):
A:=Matrix([[3,8,7,20],[1,2,1,4],[2,7,9,23]]);
ReducedRowEchelonForm(A);
BackwardSubstitute(%);
To step by step reduce a matrix and solve the system do (pick
Gauss-Jordan):
> LinearSolveTutor(A)
Matrix multiplication, matrix inverse, determinant, transpose
> A B
> A-1
> |A|
> A%T
maple5.mw (due the week
following completion of chapter 5):
-
5.1:
9* [use the 2nd order dsolve template to
solve the 2nd order IVP as a check].
- 5.1: 49*[check your IVP solution for the highest curve in Figure 5.1.6 using
the dsolve template and plot it together
with the horizontal line y=16/7 claimed by the book as the highest value of
that function; recall how to plot multiple functions in the same plot:
> plot([<expression_for_y(x)>,16/7],x=a..b,y=c..d,color=[red,blue]);
the color option is useful in distinguishing two functions when it is not
already clear which is which as in this case; is 16/7 the peak value of your
solution?].
- 5.3: 49* [check you solution with the
higher
order dsolve template, and also check the IC linear system solution as in
the template].
- this bullet for EE students
only [not this semester]
-
*
5.4: 21* [solve the two DEs with the same initial
conditions using Maple and plot the two solution curves together, but also plot the corresponding third solution with pure damping but no
oscillator as in the template]
-
5.6: 1 [rewrite as a product of sines using the cosine difference formula:
cos(A) - cos(B) = {-2 sin((A-B)/2)} sin((A+B)/2), the expression in {} is the
sinusoidal amplitude, look at the plot of x and +/- this amplitude function
together, then repeat for the HW
problem* at the end of the worksheet and include only that HW problem
section in your maple5 worksheet],
useful Maple commands:
> deq:= y'' + 3 y' + 2 y = 6 ex
> inits:= y(0) = 4, y'(0) = 5
> solgen:=dsolve(deq,y(x))
> solivp:=dsolve({deq,inits},y(x))
maple6-7.mw
due or not due (that
is the question),
NOT!
but
you should know how to use the Eigenvectors command
- Useful Maple:
> {x1''(t)=x2(t), x2''(t)=x1(t), x1(0)=1,
x1'(0)=0, x2(0)=0, x2'(0)=0} [enter, right click and use Solve
DE Interactive]
- 6.1.13* [check with
Eigenvectors command, choose eigenvector basis matrix B, evaluate AB = B-1AB].
-
For the DE system x ' = A x with the matrix A = Matrix([[5,-4],[2,-1]])
input by rows (the matrix of 6.2.1)
and initial conditions x(0) = [0,1]: check your general solution
for this DE system and the solution satisfying the ICs using the
dsolve
system template.
-
x" = Ax, x(0)=[0,1], x'(0)=[0,0] for A =
Matrix([[-5,2],[2,-2]]) : *check your solution with the second
order
dsolve
system template.
useful Maple commands:
> with(Student[LinearAlgebra]):
> A:=<<1,-3>|<2,-4>>
> λ , B
:= Eigenvectors(A)