m314w24 hw1
m314w24 hw1
Spring 2024
Notes:
Welcome to Math 314!
For this introductory homework set, you are asked to remind yourself of some essential concepts concerning
ordinary differential equations (ODEs) and linear algebra. A useful review of the ODE material pertinent
to this course is in [G] Chapter 4 (especially §4.1–4.3.1); of course you could also consult an ODE text such
as Boyce, DiPrima & Meade.
There is also a Matlab question, designed simply to get you to try Matlab—if you have not previously done
so—and produce an elementary plot (albeit one which will be relevant later in the course. . . ).
Reading:
• [G] Chapter 1: Introduction — Classification of DEs, review of terminology
• [G] Chapter 4 — §4.1: ODEs: background; §4.2: Solutions to some simple ODEs; §4.3:
Linear systems with constant coefficients
I. Textbook Questions:
1
II. Additional Questions:
Also submit a solution to the following problem:
1. Matlab plot:
Matlab is a computing environment which may be used both interactively and by running
pre-programmed scripts (m-files). Plotting is simple.
As a first example, download hw1code.m from the class Canvas site (Assignments page). This
is a script which was used to generate the plot shown below, for the function
N
2 X 1 − (−1)n nπx
FN (x) = sin
π n=1 n L
with L = 1 and N = 6.
Open the file hw1code.m in Matlab and run it; then “play around” by editing the script to see
how it works (if you mess up the file too badly, just download a new copy. . . ). In particular,
experiment with changing N ; what do you observe as N increases? (You do not need to write
down anything about your observations at this point; we will return to this later.)
For submission:
Make the minor modifications to the code needed to plot the cosine series (L = 1)
N
1 2 X (−1)n − 1
FN (x) = + 2 cos nπx .
2 π n=1 n 2
Submit a printout of the figure generated by your code for your choice of N (with 20 ≤ N ≤
50); be sure to include your name in the title of the figure.
where ⌊·⌋ denotes the floor function (rounding down: ⌊x⌋ is the largest integer ≤ x).
(b) To which function do you think this series converges for large N ?]