Repository navigation
Expand file tree
/
Copy pathnotes3.tex
More file actions
535 lines (443 loc) · 27.2 KB
/
Copy pathnotes3.tex
File metadata and controls
535 lines (443 loc) · 27.2 KB
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
\documentclass[letterpaper, 11pt, leqno]{article}
\usepackage{paper}
\usepackage{math}
\newcommand{\pdf}{phasediagrams.pdf}
\hypersetup{pdftitle={Differential Equations}}
\begin{document}
\title{Differential Equations}
\author{Pascal Michaillat}
\date{}
\paperurl{https://pascalmichaillat.org/x/}
\begin{titlepage}
\maketitle
\tableofcontents
\end{titlepage}
\section{Linear first-order differential equations}\label{s:one}
This section covers linear first-order differential equations. These are equations that relate a function to its first derivative in a linear way. They are the simplest differential equations.
\subsection{Constant growth rate}
We consider a function $x(t)$ of time $t\in\R$. We denote the derivative of $x(t)$ with respect to time by $\dot{x}(t)\equiv dx/dt$.
We consider the following differential equation:
\begin{equation}
\dot{x}(t) -\l x(t) = 0
\label{e:FODE1}\end{equation}
where $\l\in\R$ is a constant. Equation~\eqref{e:FODE1} is a first-order differential equation, because it involves $x(t)$ and the first-order derivative of $x(t)$ with respect to time: $\dot{x}(t)$. Equation~\eqref{e:FODE1} is a functional equation: the unknown is the function $x(t)$ rather than a number or a vector. Solving equation~\eqref{e:FODE1} means finding the functions $x(t)$ that, together with their derivative $\dot{x}(t)$, satisfy equation~\eqref{e:FODE1} for all $t \in \R$.
Equation~\eqref{e:FODE1} is an especially simple differential equation. It can be rewritten as
\begin{equation*}
\frac{\dot{x}(t)}{x(t)}= \l,
\end{equation*}
so it imposes that $x(t)$ has a constant growth rate $\l$ over time. It admits a simple class of functions as solution:
\begin{equation}
x(t) =A\cdot e^{\l t},
\label{e:FODE1sol}\end{equation}
for any constant $A\in \R$. Furthermore, the constant $A$ can be determined by an additional boundary condition because
\begin{equation*}
A=x(0)=x(t_{0})\cdot e^{-\l t_{0}}
\end{equation*}
for any date $t_{0}\in \R$.
It is clear that functions of the type~\eqref{e:FODE1sol} satisfy equation~\eqref{e:FODE1}. We now show that if a function $x(t)$ solves equation~\eqref{e:FODE1}, it is necessarily of the type~\eqref{e:FODE1sol}.
Observe that
\begin{equation*}
\frac{\dot{x}(t)}{x(t)}=\od{\ln{x(t)}}{t},
\end{equation*}
which allows us to rewrite differential equation~\eqref{e:FODE1} as
\begin{equation*}
\frac{d\ln x(t)}{dt}=\l.
\end{equation*}
Let $t_{0}\in\R$. Integrating the equation from $t_{0}$ to $t$, $x(t)$ necessarily satisfies
\begin{align*}
\int_{t_{0}}^{t} d\ln x(t)&=\int_{t_{0}}^{t} \l\cdot dt\\
\ln{x(t)} -\ln{x(t_{0})}& =\l \bp{t-t_{0}}\\
x(t)&=x(t_{0})\cdot e^{\l (t-t_{0})}=\bs{x(t_{0})\cdot e^{-\l t_{0}}}\cdot e^{\l t}.
\end{align*}
Therefore, if $x(t)$ solves equation~\eqref{e:FODE1}, it is necessarily of the type~\eqref{e:FODE1sol}.
\subsection{Constant coefficient}
We have solved the simplest differential equation, which takes the form of equation~\eqref{e:FODE1}. We now study a more general differential equation:
\begin{equation}
\dot{x}(t)-\l \cdot x(t) =f(t),\label{e:FODE2}
\end{equation}
where $f(t)\in \R$. Equation~\eqref{e:FODE1} is the special case of equation~\eqref{e:FODE2} with $f(t)=0$ for all $t$.
Equation~\eqref{e:FODE2} admits a simple class of functions as solution:
\begin{equation}
x(t)=e^{\l t} \cdot \bs{A+\int_{0}^{t}f(z) \cdot e^{-\l z} dz} \label{e:FODE2sol}
\end{equation}
for any constant $A\in \R$. Furthermore, the constant $A$ can be determined by an additional boundary condition because
\begin{equation*}
A=x(0)=x(t_{0})\cdot e^{-\l t_{0}}-\int_{0}^{t_{0}}f(z) \cdot e^{-\l z} dz
\end{equation*}
for any date $t_{0}\in \R$.
It is clear that functions of the type~\eqref{e:FODE2sol} satisfy equation~\eqref{e:FODE2}. We now show that if a function $x(t)$ solves equation~\eqref{e:FODE2}, it is necessarily of the type~\eqref{e:FODE2sol}.
To be able to solve the differential equation, we manipulate a certain function $x(t)\cdot \m(t)$ instead of manipulating $x(t)$ directly. The auxiliary function $\m(t) $ is called the \textit{integrating factor}. The integrating factor for this problem is
\begin{equation*}
\m(t) =e^{-\l t}.
\end{equation*}
This integrating factor $\m(t)$ has the desirable property that $\dot{\m}(t) =-\l \m(t)$.
We multiply both sides of the differential equation~\eqref{e:FODE2} by the integrating factor:
\begin{align*}
\dot{x}(t) \m(t) -\l x(t) \m(t) & =f(t) \m(t)\\
\dot{x}(t) \m(t) +x(t) \dot{\m}(t) &=f(t) \m(t)\\
\od{\bs{x(t) \m(t)}}{t}& =f(t) \m(t).
\end{align*}
Integrating the equation from $t_{0}\in \R$ to $t$ we obtain
\begin{align}
\int_{t_{0}}^{t} d\bs{x(t) \m(t)}&=\int_{t_{0}}^{t}f(z) \m(z) dz\nonumber\\
x(t)\m(t)-x(t_{0})\m(t_{0})&=\int_{t_{0}}^{t}f(z) \m(z) dz\nonumber\\
x(t)& =\frac{x(t_{0}) \m(t_{0})+\int_{t_{0}}^{t}f(z) \m(z) dz}{\m(t)}.\label{e:INTER}
\end{align}
Given the definition of the integrating factor $\m(t)$,
\begin{equation*}
x(t) = e^{\l t} \bs{x(t_{0}) e^{-\l t_{0}}+\int_{t_{0}}^{t}f(z) e^{-\l z} dz}.
\end{equation*}
Therefore, there exists $A\in \R$ such that
\begin{equation*}
x(t) = e^{\l t} \bs{A+\int_{0}^{t}f(z) e^{-\l z} dz}.
\end{equation*}
\subsection{General case}
We now generalize~\eqref{e:FODE2} to allow the coefficient $\l$ to vary with time $t$. We solve
\begin{equation}
\dot{x}(t) -\l(t) x(t) =f(t),\label{e:FODE3}
\end{equation}
with $\l(t)\in \R$ and $f(t)\in \R$.
Equation~\eqref{e:FODE3} admits the following class of functions as solution:
\begin{equation}
x(t)=\exp{\int_{0}^{t}\l(s) ds} \bs{A+\int_{0}^{t}f(z) \exp{-\int_{0}^{z}\l(s)ds} dz} \label{e:FODE3sol}
\end{equation}
for any constant $A\in \R$. Furthermore, the constant $A$ can be determined by an additional boundary condition because
\begin{equation*}
A=x(0)=x(t_{0}) \exp{-\int_{0}^{t_{0}}\l(s)ds}-\int_{0}^{t_{0}}f(z) \exp{-\int_{0}^{z}\l(s)ds} dz
\end{equation*}
for any date $t_{0}\in \R$.
Some algebra shows that functions of the type~\eqref{e:FODE3sol} satisfy equation~\eqref{e:FODE3}. We now show that if a function $x(t)$ solves equation~\eqref{e:FODE3}, it is necessarily of the type~\eqref{e:FODE3sol}. As above, we introduce an integrating factor. The integrating factor for this problem is
\begin{equation*}
\m(t) =\exp{-\int_{0}^{t}\l(s) ds}.
\end{equation*}
This integrating factor $\m(t)$ has the desirable property that
\begin{equation*}
\dot{\m}(t) =-\l(t) \m(t).
\end{equation*}
We multiply both sides of equation~\eqref{e:FODE3} by the integrating factor:
\begin{align*}
\dot{x}(t) \m(t) -\l(t) \m(t) x(t)& =f(t) \m(t)\\
\dot{x}(t) \m(t) +x(t) \dot{\m}(t) &=f(t) \m(t)\\
\od{\bs{x(t) \m(t)}}{t}& =f(t) \m(t).
\end{align*}
Integrating the equation from $t_{0}\in \R$ to $t$ we obtain as earlier equation~\eqref{e:INTER}. Therefore the solution to equation~\eqref{e:FODE3} is necessarily of the type~\eqref{e:FODE3sol}.
\subsection{Initial-value problem}
Often, an initial condition for $x(t)$ is given:
\begin{equation}
x(t_{0}) = x_{0}. \label{e:ic}
\end{equation}
Equation~\eqref{e:FODE3} together with equation~\eqref{e:ic} form an initial-value problem. The constant $A$ in~\eqref{e:FODE3sol} must satisfy
\begin{equation*}
A=x_{0}\exp{-\int_{0}^{t_{0}}\l(s)ds}-\int_{0}^{t_{0}}f(z) \exp{-\int_{0}^{z}\l(s)ds} dz.
\end{equation*}
Hence the solution to the initial-value problem is
\begin{equation}
x(t) =x_{0}\exp{\int_{t_{0}}^{t}\l(s)ds}+\int_{t_{0}}^{t}f(z)\exp{\int_{z}^{t}\l(s)ds}dz.\label{e:icsol}
\end{equation}
\section{Linear systems of first-order differential equations}\label{s:two}
We often encounter dynamical systems with several variables that move together over time. For example the solution to the consumption-saving problem with CRRA utility is characterized by two first-order linear differential equations:
\begin{align*}
\dot{a}(t) &=r\cdot a(t)-c(t), \\
\dot{c}(t) &=\frac{r-\r}{\g}\cdot c(t).
\end{align*}
The first differential equation is the asset accumulation equation. The second differential equation is the Euler equation that characterizes optimal consumption over time. To find the optimal consumption path, we need to solve the two differential equations simultaneously. This section presents a method to solve such linear systems of differential equations.
\subsection{Linear system}
We consider a linear system of $n$ first-order differential equations with constant coefficients:
\begin{align*}
\dot{x}_{1}(t) &=A_{11}\cdot x_{1}(t)+A_{12}\cdot x_{2}(t)+\dots+A_{1n}\cdot x_{n}(t) +f_{1}(t) \\
\dot{x}_{2}(t) &=A_{21}\cdot x_{1}(t)+A_{22}\cdot x_{2}(t)+\dots+A_{2n}\cdot x_{n}(t) +f_{2}(t) \\
&\vdots\\
\dot{x}_{n}(t) &=A_{n1}\cdot x_{1}(t)+A_{n2}\cdot x_{2}(t)+\dots+A_{nn}\cdot x_{n}(t) +f_{n}(t).
\end{align*}
Our goal is to solve for the $n$ functions $x_{1}(t)$, $x_{2}(t),\dots, x_{n}(t)$.
An alternative way of expressing the system is to write it in matrix form:
\begin{equation}
\dot{\bm{x}}(t) = \bm{A} \bm{x}(t) +\bm{f}(t),
\label{e:FODEsys}\end{equation}
where $\dot{\bm{x}}(t) \in \R^{n}$, $\bm{x}(t) \in \R^{n}$, and $\bm{f}(t) \in \R^{n}$ are column vectors with $n$ elements. $\bm{A}\in \R^{n\times n}$ is a constant $n\times n$ matrix. The system of first-order differential equations is linear because it can be written in matrix form: it involves a linear relationship between the vector $\dot{\bm{x}}(t)$ and the vector $\bm{x}(t)$.
If $\bm{A}$ is diagonal---so $A_{ij}=0$ for all $i\neq j$---the system would reduce to a collection of $n$ first-order differential equations---one first-order differential equation for each $x_{i}(t)$---that can be solved independently using the techniques from section~\ref{s:one}. If $\bm{A}$ is not diagonal, the different entries in $\bm{x}(t)$ interact and we must solve the system of first-order differential equations simultaneously.
\subsection{General solution}
Assume that $\bm{A}$ is diagonalizable. There exists $\bm{V}\in \R^{n\times n}$ such that
\begin{equation}
\bm{A}=\bm{V}\bm{\L}\bm{V}^{-1},\label{e:DECO}
\end{equation}
where $\bm{\L}\in \R^{n\times n}$ is a diagonal matrix. The diagonal entries of $\bm{\L}$ are the $n$ eigenvalues $\l_{1},\dots,\l_{n}$ of $\bm{A}$, and $\bm{V}$ is the matrix whose columns are the eigenvectors $\bm{z}_{1},\dots,\bm{z}_{n}$ of $\bm{A}$.
By definition, $\l_{1},\dots,\l_{n}$ are the $n$ roots of the polynomial equation
\begin{equation*}
\det(\bm{A}-\l \bm{I}) =0.
\end{equation*}
For any $i=1,\dots,n$, the eigenvector $\bm{z}_{i}$ associated with the eigenvalue $\l_{i}$ satisfies
\begin{equation*}
\bp{\bm{A}-\l_{i} \bm{I}} \bm{z}_{i} =\bm{0}.
\end{equation*}
Using the decomposition~\eqref{e:DECO}, we rewrite the system \eqref{e:FODEsys} as
\begin{align}
\bm{V}^{-1}\dot{\bm{x}}(t) &=\bm{\L} \bm{V}^{-1}\bm{x}(t) +\bm{V}^{-1}\bm{f}(t)\nonumber\\
\dot{\bm{y}}(t) &=\bm{\L} \bm{y}(t) +\bm{g}(t),\label{e:FODEsyst}
\end{align}
where we define
\begin{align*}
\bm{y}(t) &\equiv \bm{V}^{-1}\bm{x}(t)\\
\bm{g}(t) &\equiv \bm{V}^{-1}\bm{f}(t).
\end{align*}
Since the matrix $\bm{\L}$ is diagonal, the system is reduced to a collection of $n$ independent first-order differential equations---one for each $y_{i}(t)$. Once we have solved for $\bm{y}(t)$, we can recover $\bm{x}(t)$ by
\begin{equation*}
\bm{x}(t) =\bm{V} \bm{y}(t) .
\end{equation*}
The nature of the eigenvalues and corresponding eigenvectors determines the dynamics of the solution.
\subsection{Homogeneous systems}
If $\bm{f}(t) =\bm{0}$, the system \eqref{e:FODEsys} is homogeneous; otherwise it is nonhomogeneous.
For homogeneous systems,
\begin{equation}
\dot{\bm{x}}(t) =\bm{A} \bm{x}(t).\label{e:FODEsysh}
\end{equation}
So the transformed system~\eqref{e:FODEsyst} becomes
\begin{equation*}
\dot{\bm{y}}(t) =\bm{\L}\bm{y}(t) ,
\end{equation*}
which leads to $n$ independent differential equations:
\begin{equation*}
\dot{y}_{i}(t) -\l_{i} y_{i}(t)=0
\end{equation*}
for $i=1,\dots,n$. In other words, each $y_{i}(t) $ is growing at constant rate $\l_{i}$. The analysis of section~\ref{s:one} shows that the solution to the $i^{th}$ differential equation is
\begin{equation*}
y_{i}(t) =A_{i} e^{\l_{i}t}
\end{equation*}
where $A_{i}\in \R$ is a constant. Finally, $x_{1}(t),\dots,x_{n}(t)$ are given by
\begin{equation*}
\bm{x}(t) =\bm{V} \bm{y}(t) .
\end{equation*}
The columns of $\bm{V}$ are the eigenvectors $\bm{z}_{1},\dots,\bm{z}_{n}$ corresponding to the
eigenvalues $\l_{1}, \l_2, \dots, \l_{n}$. Hence the solution of the homogeneous system~\eqref{e:FODEsysh} is
\begin{equation}
\bm{x}(t) =A_{1}\cdot \bm{z}_{1} \cdot e^{\l_{1}\cdot t}+\dots+A_{n}\cdot \bm{z}_{n}\cdot e^{\l_{n}\cdot t}.\label{e:SOLEV}
\end{equation}
The nature of the eigenvalues and the corresponding eigenvectors determines
the dynamics of the solution.
\subsection{Closed-form solution to a two-variable homogeneous system}
As an example, we consider a two-variable homogeneous system:
\begin{align*}
\dot{x}_{1}(t) &=a\cdot x_{1}(t)+b\cdot x_{2}(t) \\
\dot{x}_{2}(t) &=c\cdot x_{1}(t)+d\cdot x_{2}(t).
\end{align*}
We can write it in matrix form
\begin{equation*}
\dot{\bm{x}}(t) =\bm{A} \bm{x}(t)
\end{equation*}
where the matrix $\bm{A}$ is
\begin{equation*}
\bm{A} =\bs{
\begin{array}{cc}
a & b \\
c & d
\end{array}}.
\end{equation*}
Assume $\det(\bm{A}) =a d-b c\neq 0. $
Equation~\eqref{e:SOLEV} implies that to determine a closed-form solution of this homogeneous system, we need to find the eigenvalues and eigenvectors of the matrix $\bm{A}$.
The eigenvalues are solutions to
\begin{align*}
\det(\bm{A}-\l \bm{I}) &=0\\
(a-\l) (d-\l) -b c &=0 \\
\l ^{2}- (a+d) \l + (ad-bc) &=0.
\end{align*}
Note that the product of the two eigenvalues is equal to the determinant of $
\bm{A}$:
\begin{equation}
\l_{1} \l_{2}=a d-b c=\det(\bm{A}).\label{e:DETL}
\end{equation}
Let
\begin{equation*}\bs{
\begin{array}{c}
\a_{1} \\
\b_{1}
\end{array}}\end{equation*}
be the eigenvector correspond to $\l_{1}$ and
\begin{equation*}\bs{
\begin{array}{c}
\a_{2} \\
\b_{2}
\end{array}}\end{equation*}
be the eigenvector correspond to $\l_{2}$. These vectors are solutions to
\begin{equation*}
\bp{\bm{A}-\l_{i}\bm{I}} \bs{
\begin{array}{c}
\a_{i} \\
\b_{i}
\end{array}} =0
\end{equation*}
which yields the system
\begin{align*}
\bp{a-\l_{i}} \a_{i}+b \b _{i} &=0 \\
c \a_{i}+\bp{d-\l_{i}} \b _{i} &=0.
\end{align*}
Consider the cases where the eigenvalues are real and distinct, the general
solution~\eqref{e:SOLEV} implies
\begin{align*}
x_{1}(t) &=A_{1} \a_{1} e^{\l_{1} t}+A_{2} \a_{2} e^{\l_{2} t}\\
x_{2}(t) &=A_{1} \b_{1} e^{\l_{1} t}+A_{2} \b_{2} e^{\l_{2} t},
\end{align*}
where $A_{1}$ and $A_{2}$ are arbitrary constants.
Note that in the case in which $\l_{1}=\l_{2}=\l$, the system $[x_{1}(t),x_{2}(t)]$ above is still the general solution of the system of differential equations as long as the two eigenvectors $[\a_{1},\b_{1}]$ and $[\a_{2},\b_{2}]$ are linearly independent.
Also note that any nonhomogeneous system with constant terms $\bs{\k_{1},\k_{2}}$:
\begin{align*}
\dot{x}_{1}(t) &=a\cdot x_{1}(t)+b\cdot x_{2}(t)+\k_{1} \\
\dot{x}_{2}(t) &=c\cdot x_{1}(t)+d\cdot x_{2}(t)+\k_{2},
\end{align*}
can be transformed into a homogeneous system.
\subsection{Stability of a two-variable homogeneous system}
Now that we have found a closed-form solution to the system, we can analyze its stability. There are three cases.
\paragraph{Sink: $\l_{1}<0$ and $\l_{2}<0$} As shown by~\eqref{e:DETL}, since $\l_{1}$ and $\l_{2}$ have the same sign, $\det(\bm{A}) >0$. As $t\to +\infty$, $x_{1}(t)\to 0$ and $x_{2}(t)\to 0$. The system is a \textit{sink}.
\paragraph{Source: $\l_{1}>0$ and $\l_{2}>0$} As shown by~\eqref{e:DETL}, since $\l_{1}$ and $\l_{2}$ have the same sign, $\det(\bm{A}) >0$. As $t\to +\infty$, $\abs{x_{1}(t)}\to +\infty$ and $\abs{x_{2}(t)}\to +\infty$. The system is a \textit{source}.
\paragraph{Saddle: $\l_{1}$ and $\l_{2}$ have opposite sign} As shown by~\eqref{e:DETL}, since $\l_{1}$ and $\l_{2}$ have opposite sign, $\det(\bm{A}) <0$. One part of the solution is stable (it converges to 0 at $t\to +\infty$), the other is unstable (it converges to $\infty$ at $t\to +\infty$). The system is a \textit{saddle}.
\section{Phase diagrams}\label{s:three}
Without solving for eigenvalues and eigenvectors explicitly, we can study the properties of a linear system of first-order differential equations by drawing its phase diagram.
\subsection{Nonhomogeneous linear system}
Here we construct the phase diagram for the following nonhomogeneous linear system of two first-order differential equations:
\begin{align}
\dot{x}(t) &=a\cdot x(t)+b\cdot y(t)+\k_{1}\label{e:nonh1}\\
\dot{y}(t) &=c\cdot x(t)+d\cdot y(t)+\k_{2}\label{e:nonh2},
\end{align}
with $a<0$, $b<0$, $c<0$, $d>0$, $\k_{1}>0$, and $\k_{2}>0$. Since $a d-b c<0$, the eigenvalues of the system are of opposite sign. Hence the dynamical system is a saddle.
Drawing the phase diagram of a two-variable system is useful to understand the main features of the dynamic system without solving for $x(t)$ and $y(t)$ explicitly. The phase diagram is represented in figure~\ref{f:phase}.
\begin{figure}[p]
\subcaptionbox{Nullclines \label{f:phase1}}{\includegraphics[scale=0.2,page=1]{\pdf}}\hfill
\subcaptionbox{Steady state \label{f:phase2}}{\includegraphics[scale=0.2,page=2]{\pdf}}\\\vspace*{0.5cm}
\subcaptionbox{Directional arrows \label{f:phase3}}{\includegraphics[scale=0.2,page=3]{\pdf}}\hfill
\subcaptionbox{Trajectories \label{f:phase4}}{\includegraphics[scale=0.2,page=4]{\pdf}}
\caption{Phase diagram for the dynamical system \eqref{e:nonh1}--\eqref{e:nonh2}}
\label{f:phase}\end{figure}
\subsection{Nullclines}
We first plot the nullclines, which are the loci $\dot{x}=0$ and $\dot{y}=0$ (figure~\ref{f:phase1}).
The locus for $\dot{x}=0$ is given by
\begin{equation*}
y=-\frac{a}{b}\cdot x-\frac{\k_{1}}{b}.
\end{equation*}
The locus is a straight line with a negative slope in the $(x,y)$ plane.
The locus for $\dot{y}=0$ is given by
\begin{equation*}
y=-\frac{c}{d}\cdot x-\frac{\k_{2}}{d}.
\end{equation*}
The locus is a straight line with positive slope in the $(x,y)$ plane.
\subsection{Steady state}
Next we place the system's steady state(figure~\ref{f:phase2}). The steady state is given by the intersection of the two nullclines. Denote the intersection of the two nullclines as $(x^{*},y^{*}) $. These two nullclines divide the $(x,y)$ plane into four areas.\footnote{In some other fields the steady state of the system is called \textit{critical point} of the system.}
\subsection{Directional arrows}
Then we place on the diagram the directional arrows. These arrows determine the direction of the system's trajectories over time anywhere on the phase diagram (figure~\ref{f:phase3}).
From~\eqref{e:nonh1}, we see that $\dot{x}$ is decreasing in $y$ because $b<0$. Thus any point above the $\dot{x}=0$ line must have $\dot{x}<0$ and any point below the $\dot{x}=0$ line must have $\dot{x}>0$. We represent these properties by an horizontal arrow pointing west for any point above the $\dot{x}=0$ line and an horizontal arrow pointing east for any point below the $\dot{x}=0$ line.
Similarly, from \eqref{e:nonh2}, $\dot{y}$ is increasing in $y$ because $d>0$. Thus any point above the $\dot{y}=0$ line must have $\dot{y}>0$ and any point below the $\dot{y}=0$ line must have $\dot{y}<0$. We represent these properties by a vertical arrow pointing north for any point above the $\dot{y}=0$ line and a vertical arrow pointing south for any point below the $\dot{y}=0$ line.
\subsection{Trajectories}
Using the directional arrows, we can draw trajectories that satisfy the system of differential equations (figure~\ref{f:phase4}). These are solutions to the system. To select a specific solution among all possible solutions, we will need to specify either an initial condition or a final condition.
Among all the trajectories, we highlight the saddle path for the system. We know that such a saddle path exists because the eigenvalues of the system have opposite sign. The saddle path is the straight line that goes through the steady state.\footnote{The saddle path is also sometimes called a \textit{stable line} of the system. There is also an unstable line, which goes through the steady state but moves away from it.}
\begin{figure}[p]
\subcaptionbox{Initial phase diagram \label{f:news1}}{\includegraphics[scale=0.2,page=5]{\pdf}}\hfill
\subcaptionbox{New phase diagram \label{f:news2}}{\includegraphics[scale=0.2,page=6]{\pdf}}\\\vspace*{0.5cm}
\subcaptionbox{Jump upon news \label{f:news3}}{\includegraphics[scale=0.2,page=7]{\pdf}}\hfill
\subcaptionbox{Movement after the jump \label{f:news4}}{\includegraphics[scale=0.2,page=8]{\pdf}}
\caption{Response to a shock in a phase diagram with a state variable}
\label{f:news}\end{figure}
\subsection{Using phase diagram with state variable and control variable}
Suppose $x$ is a state variable: information revealed at $t$ does not influence its value at $t$. Suppose $y$ is a control variable: information revealed at $t$ may influence its value at $t$. Suppose that we are in the steady state $(x^{*},y^{*})$ of the previous phase diagram.
Now assume that there is an exogenous, unanticipated increase in $\k_{2}$. This increase is revelation of news because it is an unanticipated change to one of the parameters or variables of the system. The response to the news in the phase diagram is represented in figure~\ref{f:news}.
As $\k_{2}$ increases, the $\dot{y}=0$ locus shifts down, so the new steady state $(x^{* *},y^{* *})$ is to the south-east of the previous steady state: $x^{* *}>x^{*}$ and $y^{* *}<y^{*}$. There is also a new saddle path passing through this new steady state.
Where do we start after the news is revealed at $t=t_{r}$? That is, what are $x(t_{r})$ and $y(t_{r})$? Since $x$ is the state variable, it cannot respond to news, and $x(t_{r})= x^{*}$. For the system to converge to the new steady state, it must arrive at the steady-state level $x^{* *}$ of the state variable along the new saddle path. So $y(t_{r})$ must be on the new saddle path at $x^{*}$, and over time both $x(t)$ and $y(t)$ move along the saddle path until they converge to the new steady state. To sum up, the system jumps from $(x^{*},y^{*})$ to $\bp{x^{*},y(t_{r})}$, and then moves along the saddle path until it reaches $(x^{* *},y^{* *})$.
\section{Nonlinear systems of first-order differential equations}
Unlike the systems of first-order differential equations studied in sections~\ref{s:two} and~\ref{s:three}, which were linear, systems of first-order differential equations in macroeconomics are often nonlinear. It is difficult to solve such systems explicitly. But without solving them explicitly, we can characterize their properties by constructing their phase diagrams. This is what we do in this section.
\subsection{Nonlinear system}
For example the typical growth model is characterized by the following nonlinear system of first-order differential equations:
\begin{align}
\dot{k}(t) &=f(k(t)) -c(t)-\d k(t), \label{e:growth1} \\
\dot{c}(t) &=\bs{f'(k(t)) - (\d+\r)} c(t), \label{e:growth2}
\end{align}
where $\r >0$, and $\d \in (0,1)$ are parameters, the capital stock $k(t)$ is a state variable with $k_{0}$ given, and the production function $f$ satisfies the Inada conditions:
\begin{equation*}
f(0)=0,\; f'>0,\;f''<0,\;\lim_{k\to +\infty}f'(k)=0,\;\lim_{k\to 0}f'(k) =+\infty.
\end{equation*}
We study the properties of this system by drawing its phase diagram in a plane with the state variable $k$ on the x-axis and the control variable $c$ on the y-axis (figure~\ref{f:growth}).
\begin{figure}[p]
\subcaptionbox{Nullclines \label{f:growth1}}{\includegraphics[scale=0.2,page=9]{\pdf}}\hfill
\subcaptionbox{Steady state \label{f:growth2}}{\includegraphics[scale=0.2,page=10]{\pdf}}\\\vspace*{0.5cm}
\subcaptionbox{Directional arrows \label{f:growth3}}{\includegraphics[scale=0.2,page=11]{\pdf}}\hfill
\subcaptionbox{Trajectories\label{f:growth4}}{\includegraphics[scale=0.2,page=12]{\pdf}}
\caption{Phase diagram of a simple growth model}
\label{f:growth}\end{figure}
\subsection{Nullclines}
We first draw the nullclines (figure~\ref{f:growth1}). We draw the $\dot{k}=0$ curve defined by
\begin{equation*}
c=f(k) -\d k,
\end{equation*}
and the $\dot{c}=0$ curve defined by
\begin{equation*}
f'(k) =\d +\r.
\end{equation*}
In the $(k,c)$ plane, the $\dot{k}=0$ curve is concave and the $\dot{c}=0$ curve is a vertical line.
\subsection{Steady state}
The intersection of these two loci is the steady state $(k^{*},c^{*})$ of the system (figure~\ref{f:growth2}).
\subsection{Directional arrows}
Next we construct the directional arrows (figure~\ref{f:growth3}). To do that, we partially differentiate equations~\eqref{e:growth1} and~\eqref{e:growth2}:
\begin{align*}
\pd{\dot{k}}{c} &=-1<0 \\
\pd{\dot{c}}{k} &=c f''(k)<0.
\end{align*}
Therefore as $c$ increases, $\dot{k}$ decreases. So, the horizontal arrows point eastward below the $\dot{k}=0$ curve and westward above it. Similarly as $k$ increases, $\dot{c}$ decreases. So the vertical arrows point northward to the left of the $\dot{c}=0$ curve and southward to the right of it.
\subsection{Trajectories}
The directional arrows drawn describe a saddle around the steady state (figure~\ref{f:growth4}). The only way for the economy to converge to the steady state is on the saddle path leading to it. This means that given any initial capital $k_{0}$, initial consumption $c_{0}$ is such that the pair $\bp{k_{0},c_{0}} $ lies on the saddle path.
\subsection{Linearization}
The phase diagram indicates that the system is a saddle around the steady state (figure~\ref{f:growth}). We can also obtain this result by linearizing the nonlinear system~\eqref{e:growth1}--\eqref{e:growth2} using a first-order Taylor expansion around the steady state:
\begin{align*}
\dot{k} &=\dot{k}^{*} + (k-k^{*}) \cdot \pd{\dot{k}}{k}+(c-c^{*})\cdot \pd{\dot{k}}{c} \\
\dot{c} &=\dot{c}^{*} + (k-k^{*})\cdot \pd{\dot{c}}{k}+(c-c^{*})\cdot \pd{\dot{c}}{c}.
\end{align*}
Given that $\dot{k}^{*} =\dot{c}^{*} =0$, we have
\begin{equation*}
\bs{\begin{array}{c}
\dot{k}\\
\dot{c}
\end{array}} =\bm{J}^{*}\bs{
\begin{array}{c}
k-k^{*} \\
c-c^{*}
\end{array}},
\end{equation*}
where $\bm{J}^{*}$ is the Jacobian matrix evaluated at the steady state:
\begin{equation*}
\bm{J}^{*}=\bs{
\begin{array}{cc}
\pd{\dot{k}}{k}{(k^{*},c^{*})} & \pd{\dot{k}}{c}{(k^{*},c^{*})} \\
\pd{\dot{c}}{k}{(k^{*},c^{*})} & \pd{\dot{c}}{c}{(k^{*},c^{*})}
\end{array}}.
\end{equation*}
This system is a two-variable nonhomogeneous system of first-order differential equations
for
\begin{equation*}
\bm{x}=\bs{\begin{array}{c}
k\\
c
\end{array}}.
\end{equation*}
But it is a two-variable homogeneous system for the transformed variable $\bm{y}$, where
\begin{equation*}
\bm{y}=\bm{x}-\bm{x}^{*}=\bs{
\begin{array}{c}
k-k^{*}\\
c-c^{*}
\end{array}}.
\end{equation*}
The constant matrix $A$ of section~\ref{s:two} is $\bm{J}^{*}$. The analysis of section~\ref{s:two} shows that the properties of the steady state depend on the eigenvalues of $\bm{J}^{*}$. The four partial derivatives are
\begin{align*}
\pd{\dot{k}}{k}{(k^{*},c^{*})}&=f'(k^{*}) -\d =\r >0 \\
\pd{\dot{k}}{c}{(k^{*},c^{*})}&=-1<0 \\
\pd{\dot{c}}{k}{(k^{*},c^{*})}&=c^{*} f''(k^{*}) <0 \\
\pd{\dot{c}}{c}{(k^{*},c^{*})}&=f'(k^{*}) - (\d +\r) =0.
\end{align*}
It follows that the Jacobian matrix can be written
\begin{equation*}
\bm{J}^{*}=\bs{
\begin{array}{cc}
\r & -1 \\
c^{*} f''(k^{*}) & 0
\end{array}}.
\end{equation*}
As shown by~\eqref{e:DETL}, the product of the two eigenvalues is the determinant of $\bm{J}^{*}$:
\begin{equation*}
\det(\bm{J}^{*})=c^{*} f''(k^{*}) <0.
\end{equation*} Therefore, the two eigenvalues have opposite sign. This property confirms that around the steady state the system is a saddle.
\end{document}