-
Notifications
You must be signed in to change notification settings - Fork 20
/
ch-intro.tex
1152 lines (1015 loc) · 38.8 KB
/
ch-intro.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\chapter*{Introduction} \label{intro:chapter}
%mbxSTARTIGNORE
\addfakecontentsline{Introduction}
\markboth{INTRODUCTION}{INTRODUCTION}
%mbxENDIGNORE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Notes about these notes}
\label{notes:section}
%mbxINTROSUBSECTION
\sectionnotes{A section for the instructor.}
This book originated from my class notes for Math 286
at the \href{https://www.math.uiuc.edu/}{University of Illinois at
Urbana-Champaign} (UIUC)
in Fall 2008 and
Spring 2009.
It is a first course on differential equations for engineers.
Using this book, I also taught Math 285 at UIUC\@,
Math 20D at
\href{https://www.math.ucsd.edu/}{University of California, San Diego} (UCSD),
and Math 2233 and 4233 at
\href{https://math.okstate.edu/}{Oklahoma State University} (OSU).
Normally these courses are taught with
Edwards and Penney, \emph{Differential
Equations and Boundary Value Problems: Computing and Modeling}~\cite{EP}, or
Boyce and DiPrima's
\emph{Elementary
Differential Equations and Boundary Value Problems}~\cite{BD},
and this book aims to be more or less a drop-in replacement.
Other books I used as sources of information and inspiration
are E.L.\ Ince's classic (and inexpensive)
\emph{Ordinary Differential Equations}~\cite{I},
Stanley Farlow's \emph{Differential Equations and Their
Applications}~\cite{F}, now available from Dover,
Berg and McGregor's
\emph{Elementary Partial Differential Equations}~\cite{BM},
and William Trench's free book
\emph{Elementary
Differential Equations with Boundary Value Problems}~\cite{T}.
See the \hyperref[furtherreading:chapter]{Further Reading} chapter at the end of the book.
\subsection{Organization}
The organization of this book to some degree
requires chapters be done in order.
Later chapters can be dropped.
The dependence of the material covered is roughly:
% If changing make sure to also update figures/chapterdiagram.pdf_t
% That's a hopefully short term hack before I figure out how to do it
% better so that it also gets links and such
%mbxSTARTIGNORE
\begin{equation*}
\begin{tikzcd}[cramped, row sep=small]
& {\text{\hyperref[intro:chapter]{Introduction}}} \arrow[d] \\
{\text{\Appendixref{linalg:appendix}}} \arrow[dd, dotted]
& {\text{\Chapterref{fo:chapter}}} \arrow[d] \\
& {\text{\Chapterref{ho:chapter}}} \arrow[dddr] \arrow[dd] \arrow[dl] \arrow[dr] \\
{\text{\Chapterref{sys:chapter}}} \arrow[dr, dotted] \arrow[d] & &
{\text{\Chapterref{ps:chapter}}} \\
{\text{\Chapterref{nlin:chapter}}} & {\text{\Chapterref{FS:chapter}}} \arrow[d]
\arrow[dr,dotted] \\
& {\text{\Chapterref{SL:chapter}}}
& {\text{\Chapterref{LT:chapter}}}
\end{tikzcd}
\end{equation*}
%mbxENDIGNORE
%mbxlatex \begin{center}
%mbxlatex \inputpdft{chapterdiagram}
%mbxlatex \end{center}
There are a few references in chapters \ref{FS:chapter} and \ref{SL:chapter}
to \chapterref{sys:chapter} (some linear algebra), but these
references are not essential and can be skimmed over,
so \chapterref{sys:chapter}
can safely be dropped, while still covering
chapters \ref{FS:chapter} and \ref{SL:chapter}.
\Chapterref{LT:chapter} does not depend on
\chapterref{FS:chapter} except that the
PDE section \ref{laplacepde:section} makes a
few references to
\chapterref{FS:chapter},
although it could, in theory, be covered
separately.
The more in-depth \appendixref{linalg:appendix} on linear algebra
can replace the short review \sectionref{sec:matrix}
for a course that combines linear algebra and ODE\@.
%\medskip
\subsection{Typical types of courses}
Several typical types of courses can be run with the book.
There are the two original courses at UIUC\@,
both cover ODE as well some PDE\@.
Either, there is the 4 hours-a-week for a semester (Math 286 at UIUC):
\medskip
\noindent
\hyperref[intro:chapter]{Introduction} (\ref{introde:section}),
\chapterref{fo:chapter} (\ref{integralsols:section}--\ref{numer:section}),
\chapterref{ho:chapter},
\chapterref{sys:chapter},
\chapterref{FS:chapter} (\ref{bvp:section}--\ref{dirich:section}),
\chapterref{SL:chapter} (or
\ref{LT:chapter} or \ref{ps:chapter} or \ref{nlin:chapter}).
\medskip
Or, the second course at UIUC is at 3 hours-a-week (Math 285 at UIUC):
\medskip
\noindent
\hyperref[intro:chapter]{Introduction} (\ref{introde:section}),
\chapterref{fo:chapter} (\ref{integralsols:section}--\ref{numer:section}),
\chapterref{ho:chapter},
\chapterref{FS:chapter} (\ref{bvp:section}--\ref{dirich:section}),
(and maybe \chapterref{SL:chapter},
\ref{LT:chapter}, or \ref{ps:chapter}).
\medskip
A semester-long course at 3 hours a week that doesn't cover either systems or PDE
will cover, beyond the introduction,
%\sectionref{introde:section},
\chapterref{fo:chapter},
\chapterref{ho:chapter},
\chapterref{LT:chapter}, and \chapterref{ps:chapter},
(with sections skipped as above).
On the other hand, a typical course that covers
systems will probably need to skip Laplace and power series
and cover
%\sectionref{introde:section},
\chapterref{fo:chapter},
\chapterref{ho:chapter},
\chapterref{sys:chapter}, and \chapterref{nlin:chapter}.
\medskip
If sections need to be skipped in the beginning, a good core of the
sections on single ODE is:
\ref{introde:section},
\ref{integralsols:section}--\ref{intfactor:section},
\ref{auteq:section},
\ref{solinear:section},
\ref{sec:ccsol},
\ref{sec:mv}--\ref{forcedo:section}.
\medskip
The complete book can be covered at a reasonably
fast pace at approximately 76 lectures
(without \appendixref{linalg:appendix})
or 86 lectures (with \appendixref{linalg:appendix} replacing
\sectionref{sec:matrix}).
This is not accounting for exams, review,
or time spent in a computer lab. % (if using IODE for example).
A two-quarter or a two-semester course can be easily run with the material.
For example (with some sections perhaps strategically skipped):
\medskip
\noindent
Semester 1:
\hyperref[intro:chapter]{Introduction},
\chapterref{fo:chapter},
\chapterref{ho:chapter},
\chapterref{LT:chapter},
\chapterref{ps:chapter}.
\\
Semester 2:
\Chapterref{sys:chapter},
\chapterref{nlin:chapter},
\chapterref{FS:chapter},
\chapterref{SL:chapter}.
\medskip
A combined course on ODE with linear algebra can run as:
\medskip
\noindent
\hyperref[intro:chapter]{Introduction},
\chapterref{fo:chapter} (\ref{integralsols:section}--\ref{numer:section}),
\chapterref{ho:chapter},
\appendixref{linalg:appendix},
\chapterref{sys:chapter} (w/o \sectionref{sec:matrix}), (possibly
\chapterref{nlin:chapter}).
\medskip
The chapter on
the Laplace transform (\chapterref{LT:chapter}),
the chapter on Sturm--Liouville (\chapterref{SL:chapter}),
the chapter on power series (\chapterref{ps:chapter}),
and the chapter on nonlinear systems (\chapterref{nlin:chapter}),
are more or less interchangeable and can be treated as \myquote{topics}.
If \chapterref{nlin:chapter} is covered, it may be best to place it right
after \chapterref{sys:chapter},
and \chapterref{SL:chapter} is best covered right after
\chapterref{FS:chapter}.
If time is short, the first two sections of
\chapterref{ps:chapter} make a reasonable self-contained unit.
%\medskip
\subsection{Computer resources}
The book's
website \url{https://www.jirka.org/diffyqs/}
contains the following resources:
\begin{enumerate}
\item Interactive SAGE demos.
\item Online WeBWorK homeworks
(using either your own WeBWorK installation or Edfinity)
for most sections, customized for this book.
\item The PDFs of the figures used in this book.
\end{enumerate}
I taught the UIUC courses using IODE\index{IODE software}
(\url{https://faculty.math.illinois.edu/iode/}).
IODE is a free software package that
works with Matlab (proprietary) or Octave (free software).
%Unfortunately IODE is not kept up to date at this point, and may have
%trouble running on newer versions of Matlab.
The graphs in the book were made with
the Genius\index{Genius software} software
(see \url{https://www.jirka.org/genius.html}). I use Genius
in class to show these (and other) graphs.
The \LaTeX\ source of the book is also available
for possible modification and customization
at github (\url{https://github.com/jirilebl/diffyqs}).
%\medskip
%\textbf{Acknowlegements:}
\subsection{Acknowledgments}
Firstly, I would like to acknowledge Rick Laugesen. I used his handwritten
class notes
the first time I taught
Math 286. My organization of this book through chapter 5,
and the choice of
material covered, is heavily influenced by his notes. Many
examples and computations are taken from his notes. I am also heavily
indebted to Rick for all the advice he has given me, not just on teaching
Math 286.
For spotting errors and other suggestions,
I would also like to acknowledge (in no particular order):
John P.\ D'Angelo,
Sean Raleigh, Jessica Robinson, Michael Angelini, Leonardo Gomes, Jeff
Winegar, Ian Simon, Thomas Wicklund, Eliot Brenner, Sean Robinson,
Jannett Susberry, Dana Al-Quadi, Cesar Alvarez, Cem Bagdatlioglu,
Nathan Wong, Alison Shive, Shawn White, Wing Yip Ho, Joanne Shin,
Gladys Cruz, Jonathan Gomez, Janelle Louie, Navid Froutan,
Grace Victorine, Paul Pearson, Jared Teague, Ziad Adwan,
Martin Weilandt, S\"{o}nmez \c{S}ahuto\u{g}lu,
Pete Peterson, Thomas Gresham, Prentiss Hyde, Jai Welch,
Simon Tse, Andrew Browning, James Choi, Dusty Grundmeier,
John Marriott,
Jim Kruidenier,
Barry Conrad,
Wesley Snider,
Colton Koop,
Sarah Morse,
Erik Boczko,
Asif Shakeel,
Chris Peterson,
Nicholas Hu,
Paul Seeburger,
Jonathan McCormick,
David Leep,
William Meisel,
Shishir Agrawal,
Tom Wan,
Andres Valloud,
Martin Irungu,
Justin Corvino,
Tai-Peng Tsai,
Santiago Mendoza Reyes,
Glen Pugh,
Michael Tran,
Heber Farnsworth,
Tam\'as Zsoldos,
and probably others I
have forgotten.
Finally, I would like
to acknowledge NSF grants DMS-0900885 and DMS-1362337.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\sectionnewpage
\section{Introduction to differential equations}
\label{introde:section}
%mbxINTROSUBSECTION
\sectionnotes{more than 1 lecture\EPref{, \S1.1 in \cite{EP}}\BDref{,
chapter 1 in \cite{BD}}}
\subsection{Differential equations}
The laws of physics are generally written down as differential
equations. Therefore, all of science and engineering use
differential equations to some degree. Understanding
differential equations is essential to understanding almost anything you will
study in your science and engineering classes.
You can think of mathematics as the language of science, and
differential equations are one of the most important parts of this
language as far as science and engineering are concerned. As an analogy,
suppose all your classes from now on were given in Swahili.
It would be important to first learn Swahili, or you would have a very
tough time getting a good grade in your classes.
You saw many
differential equations already without perhaps knowing about it.
And you even solved simple
differential equations when you took calculus.
Let us see an example you may not have seen:
\begin{equation} \label{eq1}
\frac{dx}{dt} + x = 2 \cos t .
\end{equation}
Here $x$ is the \emph{\myindex{dependent variable}} and $t$ is the
\emph{\myindex{independent variable}}.
Equation \eqref{eq1}
is a basic example of a \emph{\myindex{differential equation}}. It
is an example of a \emph{\myindex{first order differential equation}}, since
it involves only the first derivative of the dependent variable. This
equation arises from Newton's law of cooling where the ambient
temperature oscillates with time.
\subsection{Solutions of differential equations}
Solving the differential equation \eqref{eq1} means finding $x$ in terms of $t$. That
is, we want to find a function of $t$, which we call $x$, such that when
we plug $x$, $t$, and $\frac{dx}{dt}$ into \eqref{eq1}, the equation holds;
that is, the left hand side equals the right hand side.
It is
the same idea as it would be for a normal (algebraic) equation of just
$x$ and $t$. We claim that
\begin{equation*}
x = x(t) = \cos t + \sin t
\end{equation*}
is a \emph{\myindex{solution}}.
How do we check? We simply plug $x$ into equation \eqref{eq1}! First we
need to compute $\frac{dx}{dt}$. We find that $\frac{dx}{dt} =
-\sin t + \cos t$. Now let us compute the left-hand side
of \eqref{eq1}.
\begin{equation*}
\frac{dx}{dt} + x =
\underbrace{(-\sin t + \cos t)}_{\frac{dx}{dt}}
+
\underbrace{(\cos t + \sin t)}_{x}
=
2\cos t .
\end{equation*}
Yay! We got precisely the right-hand side.
But there is more!
We claim
$x = \cos t + \sin t + e^{-t}$ is also
a solution. Let us try,
\begin{equation*}
\frac{dx}{dt} = -\sin t + \cos t - e^{-t} .
\end{equation*}
We plug into the left-hand side of \eqref{eq1}
\begin{equation*}
\frac{dx}{dt} + x =
\underbrace{(-\sin t + \cos t - e^{-t})}_{\frac{dx}{dt}} +
\underbrace{(\cos t + \sin t + e^{-t})}_{x}
= 2\cos t .
\end{equation*}
And it works yet again!
So there can be many different solutions. For this equation, all
solutions can be written in the form
\begin{equation*}
x = \cos t + \sin t + C e^{-t} ,
\end{equation*}
for some constant $C$. Different constants $C$ will give different
solutions, so there are really infinitely many possible solutions.
See \figurevref{intro:plotsfig} for the graph of a
few of these solutions.
We will see how we find these solutions
a few lectures from now.
\medskip
\begin{mywrapfig}{3.25in}
\capstart
\diffyincludegraphics{width=3in}{width=4.5in}{intro-plots-alt}
\caption{Few solutions of $\frac{dx}{dt} + x = 2 \cos t$.\label{intro:plotsfig}}
\end{mywrapfig}%
Solving differential equations can be quite hard.
There is no general method that solves every differential equation. We will
generally focus on how to get exact formulas for solutions of certain
differential
equations, but we will also spend a little bit of time
on getting approximate solutions.
And we will spend some time on understanding the equations without solving
them.
Most of this book is dedicated to
\emph{ordinary differential equations\index{ordinary differential equation}}
or ODEs\index{ODE}, that is, equations with
only one independent variable, where derivatives are only with respect to
this one variable.
If there are several independent variables, we get
\emph{partial differential equations\index{partial differential equation}}
or PDEs\index{PDE}.
%We will briefly see these near the
%end of the course.
Even for ODEs, which are very well understood, it is not a simple question
of turning a crank to get solutions.
When you can find exact solutions, they are usually preferable to
approximate solutions. It is important to understand how
such solutions are found.
Although in real applications you will
leave much of the actual calculations to computers, you
need to understand what they are doing. It is often necessary
to simplify or transform your equations into something that a computer can
understand and solve.
You may even need to make certain assumptions and changes in your
model to achieve this.
To be a successful engineer or scientist, you will be required to solve
problems in your job that you never saw before. It is important to
learn problem solving techniques, so that you may apply those techniques to
new problems. A common mistake is to expect to learn some prescription for
solving all the problems you will encounter in your later career. This
course is no exception.
\subsection{Differential equations in practice}
\begin{mywrapfigsimp}{3.05in}{3.35in}
\noindent
\inputpdft{1-1-fig}
\diffypdfversion{\par\vspace*{5pt}}
\end{mywrapfigsimp}
So how do we use differential equations in science and engineering?
First, we have some \emph{\myindex{real-world problem}} we wish
to understand.
We make some simplifying assumptions and create a
\emph{\myindex{mathematical model}}.
That is, we translate the real-world situation into a
set of differential equations.
Then we apply mathematics to get some sort of a
\emph{\myindex{mathematical solution}}.
There is still something left to do. We have to interpret the results.
We have to figure out what the mathematical solution says about the real-world
problem we started with.
Learning how to formulate the mathematical model and how to interpret the
results is what your physics and engineering classes do. In this
course, we will focus mostly on the mathematical analysis. Sometimes we will
work with simple real-world examples so that we have some intuition and
motivation about what we are doing.
Let us look at
an example of this process.
One of the most basic differential equations
is the standard \emph{\myindex{exponential growth model}}.
Let $P$ denote the population
of some bacteria on a Petri dish. We assume that there is enough food
and enough space. Then the rate of growth of bacteria is proportional
to the population---a larger population grows quicker. Let $t$ denote
time (say in seconds) and $P$ the population. Our model
is
\begin{equation*}
\frac{dP}{dt} = kP ,
\end{equation*}
for some positive constant $k > 0$.
\begin{example}
Suppose there are 100 bacteria at time 0 and 200 bacteria 10 seconds later.
How many bacteria will there be 1 minute from time 0 (in 60 seconds)?
%mbxSTARTIGNORE
\begin{mywrapfig}{3.25in}
\capstart
\diffyincludegraphics{width=3in}{width=4.5in}{intro-plotbact}
\caption{Bacteria growth in the first 60 seconds.\label{intro:plotbactfig}}
\end{mywrapfig}
%mbxENDIGNORE
%
% Make sure to keep the above and the mbx figure below in sync!
%
First we need to solve the equation. We claim that a solution is given by
\begin{equation*}
P(t) = C e^{kt} ,
\end{equation*}
where $C$ is a constant. Let us try:
\begin{equation*}
\frac{dP}{dt} = C k e^{kt} = k P .
\end{equation*}
And it really is a solution.
OK\@, now what? We do not know $C$, and we do not know $k$. But we know
something. We know $P(0) = 100$, and we know
$P(10) = 200$. Let us plug these conditions in and see what happens.
\begin{align*}
& 100 = P(0) = C e^{k0} = C ,\\
& 200 = P(10) = 100 \, e^{k10} .
\end{align*}
Therefore, $2 = e^{10k}$ or $k = \frac{\ln 2}{10} \approx 0.069$.
So
\begin{equation*}
P(t) = 100 \, e^{(\ln 2) t / 10} \approx 100 \, e^{0.069 t} .
\end{equation*}
At one minute, $t=60$, the population is $P(60) = 6400$. See
\figurevref{intro:plotbactfig}.
%mbxlatex \begin{myfig}
%mbxlatex \capstart
%mbxlatex \diffyincludegraphics{width=3in}{width=4.5in}{intro-plotbact}
%mbxlatex \caption{Bacteria growth in the first 60 seconds.\label{intro:plotbactfig}}
%mbxlatex \end{myfig}
Let us interpret the results. Does our solution
mean that
there must be exactly 6400 bacteria on the plate at 60s? No! We made
assumptions that might not be true exactly, just approximately.
If our assumptions are reasonable,
then there will be approximately 6400 bacteria.
Also, in real life $P$ is a
discrete quantity, not a real number. However, our model has no problem saying
that for example at 61 seconds, $P(61) \approx 6859.35$.
%Obviously there
%are either 6859 bacteria or 6860 bacteria.
\end{example}
Normally, the $k$ in $\frac{dP}{dt} = kP$ is given,
and we want to solve
the equation for different \emph{initial conditions\index{initial condition}}.
What does that mean?
Take $k=1$ for simplicity: We want to solve the equation
$\frac{dP}{dt} = P$
subject to $P(0) = 1000$ (the initial condition).
Then the solution is (exercise)
\begin{equation*}
P(t) = 1000 \, e^t .
\end{equation*}
We call $P(t) = C e^t$ \emph{the \myindex{general solution}},
as every solution
of the equation can be written in this form for some constant $C$. We
need an initial condition to find out what $C$ is, in order to find the
\emph{\myindex{particular solution}} we are looking for. Generally, when we say
\myquote{particular solution,} we just mean some solution.
In real life, parameters such as $k$
must first often be somehow computed or estimated. The example above
shows how finding an analytic solution to the differential equation
is useful in finding these parameters.
\subsection{Four fundamental equations} \label{subsection:fourfundamental}
A few equations appear often and
it is useful to just memorize what
their solutions are.
Let us call them the \myindex{four fundamental equations}.
Their solutions
are reasonably easy
to guess by recalling properties of exponentials, sines, and cosines.
They are also simple to check, which is something that you should always do.
No need to wonder if you remembered the solution correctly.
\medskip
First such equation is
\begin{equation*}
\frac{dy}{dx} = k y ,
\end{equation*}
for some constant $k > 0$.
Here $y$ is the dependent and $x$ the independent variable.
The general solution for this equation is
\begin{equation*}
y(x) = C e^{kx} .
\end{equation*}
We saw above that this function is a solution, although we used different
variable names.
\medskip
Next,
\begin{equation*}
\frac{dy}{dx} = -k y ,
\end{equation*}
for some constant $k > 0$.
The general solution for this equation is
\begin{equation*}
y(x) = C e^{-kx} .
\end{equation*}
\begin{exercise}
Check that the $y$ given is really a solution to the equation.
\end{exercise}
Next, take the
\emph{\myindex{second order differential equation}}
\begin{equation*}
\frac{d^2y}{{dx}^2} = -k^2 y ,
\end{equation*}
for some constant $k > 0$.
The general solution for this equation is
\begin{equation*}
y(x) = C_1 \cos(kx) + C_2 \sin(kx) .
\end{equation*}
Since the equation is a second order differential equation,
we have two constants in our general solution.
\begin{exercise}
Check that the $y$ given is really a solution to the equation.
\end{exercise}
Finally, consider the second order differential equation
\begin{equation*}
\frac{d^2y}{{dx}^2} = k^2 y ,
\end{equation*}
for some constant $k > 0$.
The general solution for this equation is
\begin{equation*}
y(x) = C_1 e^{kx} + C_2 e^{-kx} ,
\end{equation*}
or
\begin{equation*}
y(x) = D_1 \cosh(kx) + D_2 \sinh(kx) .
\end{equation*}
For those that do not know, $\cosh$ and $\sinh$ are defined by
\begin{equation*}
\cosh x = \frac{e^{x} + e^{-x}}{2} , \qquad
\sinh x = \frac{e^{x} - e^{-x}}{2} .
\end{equation*}
They are called the
\emph{\myindex{hyperbolic cosine}}
and
\emph{\myindex{hyperbolic sine}}.
These functions are sometimes easier to
work with than exponentials. They have some nice familiar
properties such as
$\cosh 0 = 1$, $\sinh 0 = 0$, and $\frac{d}{dx} \cosh x = \sinh x$ (no that is
not a typo)
and $\frac{d}{dx} \sinh x = \cosh x$.
\begin{exercise}
Check that both forms of the $y$ given are
really solutions to the equation.
\end{exercise}
\begin{example}
In equations of higher order, you get more constants you must solve for to
get a particular solution and hence you need more initial conditions.
The equation $\frac{d^2y}{dx^2} = 0$ has the
general solution $y = C_1 x + C_2$; simply integrate twice and don't forget
about the constant of integration. Consider the initial conditions $y(0) =
2$ and $y'(0) = 3$. We plug in our general solution and solve for the
constants:
\begin{equation*}
2 = y(0) = C_1 \cdot 0 + C_2 = C_2, \qquad
3 = y'(0) = C_1 .
\end{equation*}
In other words, $y = 3x + 2$ is the particular solution we seek.
\end{example}
An interesting note about $\cosh$: The graph of $\cosh$ is the exact shape
of a hanging chain. This shape is called
a \emph{\myindex{catenary}}.
Contrary to popular belief this is not a
parabola. If you invert the graph of $\cosh$, it is also the ideal arch for
supporting its weight.
For example, the Gateway Arch in Saint Louis is an inverted graph of
$\cosh$---if it were just a parabola it might fall. The formula
used in the design is
inscribed inside the arch:
\begin{equation*}
y = -127.7 \; \textrm{ft} \cdot \cosh({x / 127.7 \; \textrm{ft}}) + 757.7 \;
\textrm{ft} .
\end{equation*}
\subsection{Exercises}
\begin{exercise}
Show that $x = e^{4t}$ is a solution to $x'''-12 x'' + 48 x' - 64 x = 0$.
\end{exercise}
\begin{exercise}
Show that $x = e^{t}$ is not a solution to $x'''-12 x'' + 48 x' - 64 x = 0$.
\end{exercise}
\begin{exercise}
Is $y = \sin t$ a solution to ${\left( \frac{dy}{dt} \right)}^2 = 1 - y^2$?
Justify.
\end{exercise}
\begin{exercise}
Let $y'' + 2y' - 8y = 0$. Now try a solution of the form $y = e^{rx}$ for
some (unknown) constant $r$. Is this a solution
for some $r$? If so, find all such $r$.
\end{exercise}
\begin{exercise}
Verify that $x = C e^{-2t}$ is a solution to $x' = -2x$.
Find $C$ to solve for the initial condition $x(0) = 100$.
\end{exercise}
\begin{exercise}
Verify that $x = C_1 e^{-t} + C_2 e^{2t}$ is a solution to $x'' - x' -2 x =
0$. Find $C_1$ and $C_2$ to solve for the initial conditions $x(0) = 10$
and $x'(0) = 0$.
\end{exercise}
\begin{exercise}
Find a solution to
${(x')}^2 + x^2 = 4$
using your knowledge of derivatives of functions that you
know from basic calculus.
\end{exercise}
\begin{exercise}
Solve:
\begin{tasks}(2)
\task $\dfrac{dA}{dt} = -10 A, \quad A(0)=5$
\task $\dfrac{dH}{dx} = 3 H, \quad H(0)=1$
\task $\dfrac{d^2y}{dx^2} = 4 y, \quad y(0)=0, \quad y'(0)=1$
\task $\dfrac{d^2x}{dy^2} = -9 x, \quad x(0)=1, \quad x'(0)=0$
\end{tasks}
\end{exercise}
\begin{exercise}
Is there a solution to $y' = y$, such that $y(0) = y(1)$?
\end{exercise}
\begin{exercise}
The population of city X was 100 thousand 20 years ago, and
the population of city X was 120 thousand 10 years ago. Assuming constant
growth, you can use the exponential population model
(like for the bacteria). What do you estimate the population is now?
\end{exercise}
\begin{exercise}
Suppose that a football coach gets a salary of
one million dollars now, and a raise of $10\%$ every year
(so exponential model, like population of bacteria).
Let $s$ be the salary in millions of dollars, and $t$ is time in years.
\begin{tasks}(2)
\task
What is $s(0)$ and $s(1)$.
\task
Approximately how many years will it take for the salary to be 10 million.
\task
Approximately how many years will it take for the salary to be 20 million.
\task
Approximately how many years will it take for the salary to be 30 million.
\end{tasks}
\end{exercise}
%mbxSTARTIGNORE
\noindent
\emph{Note: Exercises with numbers 101 and higher have solutions in the
back of the book.}
%mbxENDIGNORE
%mbx <p><em>Note: Exercises with numbers 101 and higher have solutions.</em></p>
\setcounter{exercise}{100}
\begin{exercise}
Show that $x = e^{-2t}$ is a solution to $x'' + 4x' + 4x = 0$.
\end{exercise}
\exsol{%
Compute $x' = -2e^{-2t}$ and $x'' = 4e^{-2t}$. Then
$(4e^{-2t}) + 4 (-2e^{-2t}) + 4 (e^{-2t}) = 0$.
}
\begin{exercise}
Is $y = x^2$ a solution to $x^2y'' - 2y = 0$? Justify.
\end{exercise}
\exsol{%
Yes.
}
\begin{exercise}
Let $xy'' - y' = 0$. Try a solution of the form $y = x^r$. Is this a
solution for some $r$? If so, find all such $r$.
\end{exercise}
\exsol{%
$y=x^r$ is a solution for $r=0$ and $r=2$.
}
\begin{exercise}
Verify that $x=C_1e^t+C_2$ is a solution to $x''-x' = 0$. Find $C_1$ and
$C_2$ so that $x$ satisfies $x(0) = 10$ and $x'(0) = 100$.
\end{exercise}
\exsol{%
$C_1 = 100$, $C_2 = -90$
}
\begin{exercise}
Solve $\frac{d\varphi}{ds} = 8 \varphi$ and $\varphi(0) = -9$.
\end{exercise}
\exsol{%
$\varphi = -9 e^{8s}$
}
\begin{exercise}
Solve:
\begin{tasks}(2)
\task $\dfrac{dx}{dt} = -4x, \quad x(0)=9$
\task $\dfrac{d^2x}{dt^2} = -4x, \quad x(0)=1, \quad x'(0)=2$
\task $\dfrac{dp}{dq} = 3 p, \quad p(0)=4$
\task $\dfrac{d^2T}{dx^2} = 4 T, \quad T(0)=0, \quad T'(0)=6$
\end{tasks}
\end{exercise}
\exsol{%
a)~$x=9e^{-4t}$ \quad
b)~$x=\cos(2t)+\sin(2t)$ \quad
c)~$p=4e^{3q}$ \quad
d)~$T=3\sinh(2x)$
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\sectionnewpage
\section{Classification of differential equations}
\label{classification:section}
%Perhaps no [EP] ref?
\sectionnotes{less than 1 lecture or left as reading\BDref{, \S1.3 in \cite{BD}}}
There are many types of differential equations, and we classify them into
different categories based on their properties. Let us quickly go over
the most basic classification. We already saw the distinction
between ordinary and partial differential equations:
\begin{itemize}
\item
\emph{Ordinary differential equations}
\index{Ordinary differential equations}\index{ODE} or (ODE) are
equations where the derivatives are taken with respect to only one variable.
That is, there is only one independent variable.
\item
\emph{Partial differential equations}
\index{Partial differential equations}\index{PDE} or (PDE) are
equations that depend on partial derivatives of several variables.
That is, there are several independent variables.
\end{itemize}
Let us see some examples of ordinary differential equations:
\begin{align*}
& \frac{d y}{dt} = ky , & & \text{(Exponential growth\index{exponential growth})} \\
& \frac{d y}{dt} = k(A-y) , & & \text{(\myindex{Newton's law of cooling})} \\
& m \frac{d^2 x}{dt^2} + c \frac{dx}{dt} + kx = f(t) . & &
\text{(Mechanical vibrations\index{mechanical vibrations})}
\end{align*}
And of partial differential equations:
\begin{align*}
& \frac{\partial y}{\partial t} + c \frac{\partial y}{\partial x} = 0 , & &
\text{(Transport equation\index{transport equation})} \\
& \frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} , & &
\text{(Heat equation\index{heat equation})} \\
& \frac{\partial^2 u}{\partial t^2} = \frac{\partial^2 u}{\partial x^2} +
\frac{\partial^2 u}{\partial y^2} . & &
\text{(Wave equation in 2 dimensions\index{wave equation in 2 dimensions})}
\end{align*}
If there are several equations working together, we have a so-called
\emph{\myindex{system of differential equations}}. For example,
\begin{equation*}
y' = x , \qquad x' = y
\end{equation*}
is a system of ordinary differential equations.
\myindex{Maxwell's equations} for electromagnetics,
\begin{align*}
& \nabla \cdot \vec{D} = \rho, & & \nabla \cdot \vec{B} = 0 , \\
& \nabla \times \vec{E} = - \frac{\partial \vec{B}}{\partial t}, &
& \nabla \times \vec{H} = \vec{J} + \frac{\partial \vec{D}}{\partial t} ,
\end{align*}
are a system of partial differential equations.
The divergence operator $\nabla \cdot$ and the
curl operator $\nabla \times$ can be written out in partial derivatives of
the functions involved in the $x$, $y$, and $z$ variables.
\medskip
The next bit of information is the \emph{\myindex{order}} of the
equation (or system). The order is the order of the largest
derivative that appears. If the highest derivative that appears is
the first derivative, the equation is of first order. If the highest
derivative that appears is the second derivative, then the equation is of second
order. For example, Newton's law of cooling above is a first order
equation, while the mechanical vibrations equation is a second order equation.
The equation governing transversal vibrations in a beam,
\begin{equation*}
a^4 \frac{\partial^4 y}{\partial x^4} + \frac{\partial^2 y}{\partial t^2} = 0,
\end{equation*}
is a fourth order partial differential equation. It is
fourth order as at least one derivative is the fourth derivative. It
does not matter that the derivative in $t$ is only of second order.
In the first chapter, we will start attacking first order ordinary
differential equations, that is, equations of the form $\frac{dy}{dx} = f(x,y)$.
In general, lower order equations are easier to work with and have simpler
behavior, which is why we start with them.
\medskip
We also distinguish how the dependent variables appear in the equation (or
system). In particular, an equation is
\emph{linear}\index{linear equation} if the
dependent variable (or variables) and their derivatives appear linearly,
that is, only as first powers, they are not multiplied together,
and no other functions of the dependent
variables appear. The equation is a sum of terms,
where each term is
a function of the independent variables
or
a function of the independent variables
multiplied by a dependent variable
or its derivative.
An ordinary differential equation is linear if it can be
put into the form
\begin{equation} \label{classification:eqlingen}
a_n(x) \frac{d^n y}{dx^n} +
a_{n-1}(x) \frac{d^{n-1} y}{dx^{n-1}} +
\cdots
+
a_{1}(x) \frac{dy}{dx}
+
a_{0}(x) y = b(x) .
\end{equation}
The functions $a_0$, $a_1$, \ldots, $a_n$ are called the
\emph{\myindex{coefficients}}.
The equation is allowed to depend arbitrarily on the independent variable.
So
\begin{equation} \label{classification:eqlinex}
e^x \frac{d^2 y}{dx^2} +
\sin(x) \frac{d y}{dx} +
x^2 y
=
\frac{1}{x}
\end{equation}
is a linear equation as $y$ and its derivatives only appear linearly.
All the equations and systems above as examples are linear.
Linearity may not be immediately obvious for Maxwell's equations unless you write out
the divergence and curl in terms of partial derivatives.
If an equation is not linear, we say it is
\emph{nonlinear}\index{nonlinear equation}.
Let us see some
nonlinear equations. For example \myindex{Burger's equation},
\begin{equation*}
\frac{\partial y}{\partial t} +
y \frac{\partial y}{\partial x} =
\nu \frac{\partial^2 y}{\partial x^2} ,
\end{equation*}
is a nonlinear second order partial differential equation. It is nonlinear
because $y$ and $\frac{\partial y}{\partial x}$ are multiplied together.
The equation
\begin{equation} \label{classification:eqnonlinode}
\frac{dx}{dt} = x^2
\end{equation}
is a nonlinear first order differential equation as there is a second power of
the dependent variable $x$. Another nonlinear ODE is the pendulum equation
\begin{equation} \label{classification:pendulum}
\theta''+\sin(\theta)=0 ,
\end{equation}
which is nonlinear as the dependent
variable $\theta$ appears inside a $\sin$ function.
Nonlinear equations are notoriously difficult to solve and
their solutions may behave in strange an unexpected ways.
Perhaps you have heard of chaos theory and the butterflies
in the Amazon causing hurricanes in the Atlantic, all due to nonlinear
equations.
So sometimes we
study related linear equations, such as $\theta''+\theta=0$ for the pendulum, instead.
\medskip
A linear equation is further called \emph{\myindex{homogeneous}} if
all terms depend on the dependent variable. That is, if no
term is a function of the independent variables alone. Otherwise, the
equation is called \emph{\myindex{nonhomogeneous}} or
\emph{\myindex{inhomogeneous}}. For example,
the exponential growth equation, the wave equation, or the transport equation above
are homogeneous. The mechanical vibrations equation above is nonhomogeneous