18.085 Spring 2010
MWF 12-1 4-370
Lecturer: Alan Edelman
Office: 2-343
e-mail: edelman@mit.edu
TA: Dorian Croitoru
Office: 2-251
Office Hours: Thursday 1--2:30
email: dorian@math.mit.edu
phone: 3-7566
(Half) TA: Nan Li
Office: 2-333
email: nan@math.mit.edu
phone: 3-7826
x=pi*[-1:.01:1]; for n=3:5:51, k=(1:2:n)'; plot(x, sum(diag(1./k)*sin(k*x)));title(['n=' num2str(n)]); pause(0.1); end#9 (Solutions to HW 9)
1.000000000705105e+000 -2.964328419073236e-007 -7.683186917434977e+000 -2.206297290004058e-004 9.840487549806722e+000 -9.324611932899178e-003 -5.011975877477831e+000 -4.685413770053830e-002 1.417778585705657e+000 2.287193842956169e-002 -3.135724049839490e-001 7.196408559132141e-002
AAA=sym(0:49).'/49; AAA=(AAA*ones(1,12) ).^ (ones(50,1)*(0:11)); bbb= 0:sym(8/100):4-sym(8/100); bbb=cos(bbb).'; digits(100); xxx=double(vpa(AAA.'*AAA)\vpa(AAA.'*bbb));
Exam 3 and 18.085 grades are all done and the Exam 3 average was 80.
The graded exams are available from Debbie Bower in 2-108 (desk at right)
I hope you enjoyed the course and will remember those A'CA ideas forever.
It was a pleasure for me to work with you. Very best wishes!
Gilbert Strang
Exam 3 - Solutions
Professor Strang's favorite -1,2,-1 matrix in cupcakes
Exam 2 - Solutions
[top]
HOMEWORK
Please include your 18.085 number (if it was circled on hwk 1)
at the top of your first homework page to help us order the hwks
alphabetically
THANK YOU
#10 for Fri Dec 4 (Quiz TUES 8th IS IN WALKER !!!!) - Solutions
Section 4.4: 1, 2, 3, 7, 8, 9, 10
Section 4.5: 1, 2, 8, 10, 11, 12, 14, 22, 24, 25
#9 for Mon Nov 23 - Solutions
Section 4.1: 1, 6, 10, 13, 14, 18
Section 4.2: 4
Section 4.3: 2, 6, 8, 10, 15, 22
Problem 4.3.22 was added in the latest printing of the book. Here are the two important parts of the problem:
a) Write out F2D = kron(F,F) for N=2. It will be 4 by 4
d) Why does F2D times a vector u2D need only O(N^2 log N)
operations?
MATLAB Homework
The homework is about the important "Gibbs phenomenon".
Create a figure like Fig. 4.3 showing the partial sums of the
Fourier series for the SQUARE WAVE in Exercise 4.1.2.
It jumps from -1 to +1 at x = 0.
Can you determine the amount of the overshoot? In what way does
this same overshoot number appear in Fig. 4.2 for the delta function?
What is the size of the overshoot if the step fcn jumps from 0 to A ?
Find a relation between the WIDTH of the overshoot (the first lobe
above +1) and the NUMBER of terms in the partial sum for the square wave.
New question (to me): Beyond the overshoot in Fig. 4.3
it looks to me that there is an UNDERSHOOT below +1. Is this true
in your graph of partial sums? What depth of undershoot?
I hope you can blow up the figure near the jump.
Extra: Also graph and blow up the Fourier series for the ramp
function f(x) = max(0,x) near the corner (not a jump!) at x = 0.
#8 for Fri Nov 6 - Solutions
Section 3.3: 7, 8, 11, 16, 24 (harder), 27
Section 3.4: 4, 17, 18
Section 3.5: 1, 2 (the book explains the kron command)
#7 for Fri October 30 - Solutions
Section 3.1: 1, 2, 5, 9, 11, 14, 17
Section 3.2: 5, 7, 17, 19
#6 for Wed October 21 - Solutions
Section 2.7: 1, 2, 3, 6, 7, 11
MATLAB1 : Create the matrix A for Problem 5 (Truss E, with 30-30-120 triangle at the top) Check det (A'*A) Find 2 solutions to Au = 0.
MATLAB2: Bar 2 of a 4-node truss connects joints 1 and 3 at a 45 degree angle. That row of A is row2 = [-1 -1 0 0 1 1 0 0]/sqrt(2)] With stiffness c2 = 6, print the stiffness matrix E2 = c2*row2' *row2. The true element matrix e2 is 4 by 4, without all the zeros in E2. Print e2 and execute a Matlab command to place e2 into E2.
#5 for Wed October 14 - Solutions
Section 2.4: 7, 8, 9, 11, 14, 15, 17, 18
#4 due the evening of Thursday October 8 (when you hand in the exam)
Section 2.2: 5 + this question:
Solve u'' = -Tu for T = [1 -1; -1 2]. Looking for the solution with 4 constants A B as on page 116 (which was fixed-fixed)
Section 2.3: 1, 7, 8, 9, 12
Section 2.4: 1, 3
Please keep this homework for reference during the exam / plan to collect later
#3 for Wed September 30 - Solutions
Section 1.6: 20, 22, 24, 27
Section 2.1: 1, 3, 7, 8, plus this question
First MATLAB Homework in 18.085
Find the displacements x(1),...,x(100) of 100 masses connected by
springs all with c = 1. You may take each force f(i) = .01
and consider two boundary conditions at the bottom:
(a) Spring 101 connects the last mass to a support as in Figure 1.7
(b) Mass 100 hangs free at the end of the line of springs.
Submit GRAPHS of the displacements in these two cases.
Here are a few MATLAB hints, mostly correct: d = ones(100,1) is a
column vector of 100 ones and diag(d) is a diagonal matrix (in fact I)
with d on the diagonal. diag(d,1) puts d on an off-diagonal, maybe
this matrix has order 101. After computing the vector x try
plot(x,'+')
xlabel('mass number')
ylabel('displacement')
print
Suggested problems not to turn in
Section 1.5: 9
Section 1.6: 15, 16
NOTE: The mysterious numbers on the graded Hwk 1 are in alphabetical
order -- if you write your number at the top of future homeworks, that
helps to put them quickly in the right order. (Some don't yet have a
number, still to do)
#2 for Wed September 23 - Solutions
Section 1.3: 1, 5, 9, 11
Section 1.4: 1, 4, 7, 15
Section 1.5: 1, 7, 9, 13
Section 1.6: 4, 6
#1 for WED September 16:
Section 1.1: 2, 5, 17, 20
Section 1.2: 1, 4, 7, 16
from the CSE textbook
NOTES
Apologies that question 1.2.1 involves delta functions !!
The slope of u(x)
jumps from A to B.
So the next derivative is a delta function at x = 0 of magnitude ... (see
page 38)
No boundary conditions in this question, it runs from minus infinity to
infinity.
And the last line of 1.2.14 needs a multiplication by -1. One more error
is hidden in the book.
PLEASE PRINT YOUR NAME CLEARLY
The class list will be created from the homeworks -- and Hwk 1
will not be graded in full detail, it is a start for this course.
18.085 from Fall 2008 is now completely online
at OCW-18.085
Videos: The special event for Fall 2008 is that the lectures will be
recorded for OpenCourseWare You will already find a
partial earlier set on the website but the course has since evolved.
The videos of 18.06 Linear Algebra
have been successful on OCW
(please use them for help!!). The Lord Foundation gave a new
grant for 18.085.
[top]
Quizzes and Solutions
[top]
Previous Course Content
This section contains information from the previous courses, videos, practice
exams, and extra homework and solutions. (Please report broken links
so I can fix them).
Videos of Professor Strang's Lectures
(Lincoln Lab, Spring 2001)
18.085 Course information page from Fall 2007.
Movie of elimination
moe.m
(also need
realmmd.m
)
Code to create K,T,B,C as sparse matrices
MATLAB's backslash command to solve Ax = b
(ps, pdf)
Getting started with Matlab:
http://ocw.mit.edu/OcwWeb/Mathematics/18-06Spring-2005/RelatedResources/
Exams and Solutions (Spring 2009)
Exams and Solutions (Fall 2006)
Exams and Solutions (Fall 2005)
Exams and Solutions (Fall 2004)
Exams and Solutions (Fall 2003)
Exams and Solutions (Fall 2002)
Exams and Solutions (Fall 2001)
More Exams and Matlab Homeworks from previous years
You are visitor number
since September 2, 1997.
© 1997 Massachusetts Institute of Technology