Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mathematics for Quantum Physics
lectures
Merge requests
!8
Differential Equations Lecture 1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Differential Equations Lecture 1
DE1
into
master
Overview
1
Commits
51
Pipelines
52
Changes
1
Merged
Scarlett Gauthier
requested to merge
DE1
into
master
4 years ago
Overview
1
Commits
51
Pipelines
52
Changes
1
Expand
Convert bulk of handwritten notes from DE lecture one to markdown.
Edited
4 years ago
by
Michael Wimmer
0
0
Merge request reports
Compare
master
version 50
e1f11655
4 years ago
version 49
9e1a32db
4 years ago
version 48
5695b84c
4 years ago
version 47
ebbb93c1
4 years ago
version 46
c782ce04
4 years ago
version 45
6441a592
4 years ago
version 44
e29c1f2d
4 years ago
version 43
7f45f89e
4 years ago
version 42
61d364f9
4 years ago
version 41
de694eaa
4 years ago
version 40
9e74a251
4 years ago
version 39
22a631ee
4 years ago
version 38
f443d869
4 years ago
version 37
bfd2c856
4 years ago
version 36
70fa06dd
4 years ago
version 35
485293bd
4 years ago
version 34
6dcb19b3
4 years ago
version 33
d442bc58
4 years ago
version 32
b2547ec5
4 years ago
version 31
7abfc34b
4 years ago
version 30
50d65ed3
4 years ago
version 29
1b9eedf4
4 years ago
version 28
fd54f960
4 years ago
version 27
adde2f1e
4 years ago
version 26
c2692b25
4 years ago
version 25
42558e76
4 years ago
version 24
5c186eb3
4 years ago
version 23
2ee649ef
4 years ago
version 22
2253dd3e
4 years ago
version 21
997584a5
4 years ago
version 20
fef708a5
4 years ago
version 19
9194e206
4 years ago
version 18
2ccd513b
4 years ago
version 17
56a31a69
4 years ago
version 16
b0beddd7
4 years ago
version 15
0cf48a14
4 years ago
version 14
52004403
4 years ago
version 13
297d1059
4 years ago
version 12
9d71b51f
4 years ago
version 11
5485fee9
4 years ago
version 10
35cc2602
4 years ago
version 9
78c0ad88
4 years ago
version 8
0ba2217b
4 years ago
version 7
a8d57e5f
4 years ago
version 6
68a41a75
4 years ago
version 5
798b32ae
4 years ago
version 4
cd9d0d13
4 years ago
version 3
64ebfda5
4 years ago
version 2
1d0244a1
4 years ago
version 1
fbc84e17
4 years ago
master (base)
and
version 4
latest version
79862353
51 commits,
4 years ago
version 50
e1f11655
50 commits,
4 years ago
version 49
9e1a32db
49 commits,
4 years ago
version 48
5695b84c
48 commits,
4 years ago
version 47
ebbb93c1
47 commits,
4 years ago
version 46
c782ce04
46 commits,
4 years ago
version 45
6441a592
45 commits,
4 years ago
version 44
e29c1f2d
44 commits,
4 years ago
version 43
7f45f89e
43 commits,
4 years ago
version 42
61d364f9
42 commits,
4 years ago
version 41
de694eaa
41 commits,
4 years ago
version 40
9e74a251
40 commits,
4 years ago
version 39
22a631ee
39 commits,
4 years ago
version 38
f443d869
38 commits,
4 years ago
version 37
bfd2c856
37 commits,
4 years ago
version 36
70fa06dd
36 commits,
4 years ago
version 35
485293bd
35 commits,
4 years ago
version 34
6dcb19b3
34 commits,
4 years ago
version 33
d442bc58
33 commits,
4 years ago
version 32
b2547ec5
32 commits,
4 years ago
version 31
7abfc34b
31 commits,
4 years ago
version 30
50d65ed3
30 commits,
4 years ago
version 29
1b9eedf4
29 commits,
4 years ago
version 28
fd54f960
28 commits,
4 years ago
version 27
adde2f1e
27 commits,
4 years ago
version 26
c2692b25
26 commits,
4 years ago
version 25
42558e76
25 commits,
4 years ago
version 24
5c186eb3
24 commits,
4 years ago
version 23
2ee649ef
23 commits,
4 years ago
version 22
2253dd3e
22 commits,
4 years ago
version 21
997584a5
21 commits,
4 years ago
version 20
fef708a5
20 commits,
4 years ago
version 19
9194e206
19 commits,
4 years ago
version 18
2ccd513b
18 commits,
4 years ago
version 17
56a31a69
17 commits,
4 years ago
version 16
b0beddd7
16 commits,
4 years ago
version 15
0cf48a14
15 commits,
4 years ago
version 14
52004403
14 commits,
4 years ago
version 13
297d1059
13 commits,
4 years ago
version 12
9d71b51f
12 commits,
4 years ago
version 11
5485fee9
11 commits,
4 years ago
version 10
35cc2602
10 commits,
4 years ago
version 9
78c0ad88
9 commits,
4 years ago
version 8
0ba2217b
8 commits,
4 years ago
version 7
a8d57e5f
7 commits,
4 years ago
version 6
68a41a75
6 commits,
4 years ago
version 5
798b32ae
5 commits,
4 years ago
version 4
cd9d0d13
4 commits,
4 years ago
version 3
64ebfda5
3 commits,
4 years ago
version 2
1d0244a1
2 commits,
4 years ago
version 1
fbc84e17
1 commit,
4 years ago
1 file
+
255
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/differential_equations_1.md
0 → 100644
+
255
−
0
Options
---
title
:
Differential Equations
---
# Differential equations
A differential equation or DE is any equation which involves both a function and some
derivative of that function. In this course we will be focusing on
*Ordinary Differential Equations*
, meaning that our equations will involve
functions of one independent variable and hence any derivatives will be full
derivatives. Equations which involve a function of several independent variables
and their partial derivatives are handled in courses on
*Partial Differential Equations*
.
We consider functions $x(t)$ and define $
\d
ot{x}(t)=
\f
rac{dx}{dt}$,
$x^{(n)}(t)=
\f
rac{d^{n}x}{dt^{n}}$. An $n$
*-th*
order differential equation is
an equation of the form
$$x^{(n)}(t) = f(x^{(n-1)}(t),
\c
dots, x(t), t).$$
Typically, $n
\l
eq 2$. Such an equation will usually be presented with a set of
initial conditions,
$$x^{(n-1)}(t_{0}) = x^{(n-1)}_{0},
\c
dots, x(t_0)=x_0. $$
This is because to fully specify the solution to an $n$
*-th*
order differential
equation, $n-1$ initial conditions are necessary. To understand why we need
initial conditions, look at the following example.
!!! check "Example: Initial conditions"
Consider the following calculus problem,
$$
\d
ot{f}(x)=x. $$
By integrating, one finds that the solution to this equation is
$$\frac{1}{2}x^2 + c,$$
where $c$ is an integration constant. In order to specify the integration
constant, an initial condition is needed. For instance, if we know that when
$x=2$ then $f(2)=4$, we can plug this into the equation to get
$$\frac{1}{2}*4 + c = 4, $$
which implies that $c=2$.
Essentially initial conditions are needed when solving differential equations so
that unknowns resulting from integration may be determined.
!!! info Terminology for Differential Equations
1.
If a differential equation does not explicitly contain the
independent variable $t$, it is called an
*autonomous equation*
.
2.
If the largest derivative in a differential equation is of first order,
i.e. $n=1$, then the equation is called a first order differential
equation.
3.
Often you will see differential equation presented using $y(x)$
instead of $x(t)$. This is just a different nomenclature.
In this course we will be focusing on
*Linear Differential Equations*
, meaning
that we consider differential equations $x^{(n)}(t) = f(x^{(n-1)}(t),
\c
dots, x(t), t)$
where the function $f$ is a linear ploynomial function of the unknown function
$x(t)$. A simple way to spot a non-linear differential euation is to look for
non-linear terms, such as $x(t)
*\dot{x}(t)$ or $x^{(n)}(t)*
x^{(2)}(t)$.
Often, we will be dealing with several coupled differential equations. In this
situation we can write the entire system of differential equations as a vector
equation, involving a linear operator. For a system of $m$ equations, denote
$$
**x(t)**
=
\b
egin{bmatrix}
x_1(t)
\\
\v
dots
\\
x_{m}(t)
\\
\e
nd{bmatrix}.$$
A system of first order linear equations is then written as
$$
\d
ot{
**x(t)**
} =
**f**
(
**x(t)**
,t) $$
with initial condition $
**x(t_0)**
=
**x_0**
$.
# Basic examples and strategies
The simplest type of differential equation is the type learned about in the
integration portion of a calculus course. Such equations have the form,
$$
\d
ot{x}(t) = f(t). $$
When $F(t)$ is an anti-derivative of $f(t)$ i.e. $
\d
ot{F}=f$, then the solutions
to this type of equation are
$$x(t) = F(t) + c. $$
!!! check "Example: First order linear differential equation with constant coefficients"
Given the equation
$$
\d
ot{x}(t)=t, $$
one finds by integrating that the solution is $
\f
rac{1}{2}t^2 + c$.
For first order linear differential equations, it is possible to use the
concept of an anti-derivative from calculus to write a general solution, in
terms of the independent varaible.
$$
\d
ot{x}(t)=f(x(t)).$$
This implies that $
\f
rac{
\d
ot{x}(t)}{f(x)} = 1$. Let $F(x)$ be the
anti-derivative of $
\f
rac{1}{f(x)}$. Then, making use of the chain rule
$$
\f
rac{dot{x}(t)}{f(x(t))} =
\f
rac{dx}{dt}}
\c
dot
\f
rac{dF}{dx}} =
\f
rac{dF}{dt} = 1$$
$$
\L
eftrightarrow F(x(t)) = t + c.$$
From this we notice that if we can solve for $x(t)$ then we have the
solution! Having a specific form for the function $f(x)$ can often makes it
possible to solve either implicitly or explicity for the function $x(t)$.
!!! check "Example: Autonomous first order linear differential equation with constant coefficients"
Given the equation
$$
\d
ot{x} =
\l
ambda x, $$
we re-write the equation to be in the form
$$
\f
rac{
\d
ot{x}}{
\l
ambda x} = 1.$$
Now, applying the same process worked through above, let $f(x)=
\l
ambda x$
and $F(x)$ be the anti-derivative of the $
\f
rac{1}{f(x)}$. Integrating
allows us to find the form of this anti-derivative.
$$F(x):=
\i
nt
\f
rac{dx}{
\l
ambda x} =
\f
rac{1}{
\l
ambda}log{
\l
ambda x} $$
Now, making use of the general solution we also have that $F(x(t)) =t+c$.
These two equations can be combined to form an equation for $x(t)$,
$$Log(
\l
ambda x) =
\l
ambda t + c$$
$$x(t) =
\f
rac{1}{
\l
ambda} e^c e^{
\l
ambda t} $$
$$x(t) = c_0 e^{
\l
ambda t}$$
where in the last line we defined a new constant $c_0 =
\f
rac{1}{
\l
ambda}e^c$.
Given an initial condition, we could immediately determine this constant $c_0$.
So far we have considered only DE's with constant coefficients, but it is very
common to encounter equations such as the following,
$$
\d
ot{x}(t)=g(t)f(x(t)).$$
This type of differential equation is called a first order differential equation
with non-constant coefficients. If $f(x(t))$ is linear in $x$ then it is also
said to be a linear equation.
This equation can be re-written to isolate the coefficient function, g(t)
$$
\f
rac{dot{x}(t)}{f(x(t))} = g(t). $$
Now, define $F(x)$ to be the anti-derivative of $
\f
rac{1}{f(x)}$, and $G(t)$ to
be the anti-derivative of $g(t)$. Without showing again the use of chain rule on
the left side of the equation, we have
$$
\f
rac{d}{dt} F(x(t)) = g(t) $$
$$
\R
ightarrow F(x(t)) = G(t) + c $$
Given this form of general solution, knowledge of specific functions $f, g$ would
make it possible to solve for $x(t)$.
!!! check "Example: First order linear differential equation with coefficient t"
Let us apply the above strategy to the following equation,
$$
\d
ot{x}= t x^2 .$$
Comparison to the strategy indicates that we should define $f(x)=x^2$ and
$g(t)=t$. As before, we can re-arrange the equation
$$
\f
rac{
\d
ot{x}}{x^2} = t. $$
It is then necessary to find $F(x)$, the anti-derivative of $
\f
rac{1}{f(x)}$,
or the left hand side of the above equation, as well as $G(t)$, the
anti-derivative of $g(t)$, or the right hand side of the previous equation.
Integrating, one finds
$$F(x) = -
\f
rac{1}{x} $$
$$G(t)=
\f
rac{1}{2}t^2 + c. $$
Accordingly then, the equation we have is
$$-
\f
rac{1}{x} =
\f
rac{1}{2} t^2 + c. $$
At this point, it is possible to solve for $x(t)$ by re-arrangement
$$x(t)=
\f
rac{-2}{t^2 + c_0}, $$
where in the last line we have defined $c_0 = 2c$. Once again, specification
of an initial condition would allow determination of $c_0$ directly. To see
this, suppose $x(0) = 2$. Inserting this into the equation for $x(t)$ we have
$$2 =
\f
rac{-2}{c_0} $$
$$
\R
ightarrow c_0 = -1.$$
Having solved for $c_0$, with the choice of initial condition $x(0)=2$, the
full equation for $x(t)$ is
$$x(t)=
\f
rac{-2}{t^2 -1}. $$
!!! check "Example: First order linear differential equation with general
non-constant coefficient function"
Let us apply the strategy for dealing with non-constant coefficient functions
to the more general equation
$$\dot{x}= g(t) \cdot x. $$
This equation suggests that we first define $f(x)=x$ and then find $F(x)$ and
$G(t)$, the anti-derivatives of $\frac{1}{f(x)}$ and $g(t)$, respectively. Doing
so, we determine
$$F(x) = log(x) $$
Continuing to follow the protocol, we arrive at the equation
$$log(x) = G(t) + c.$$
Exponentiating and defining $c_0:=e^c$, we obtain an equation for $x(t)$,
$$x(t)= c_0 e^{G(t)} .$$
So far we have only considered first order differential equations. If we consider
extending the strategies we have developed to higher order equations such as
$$x^{(2)}(t)=f(x), $$
with f(x) a linear function, then our work will swiftly become tedious. Later on
we will develop the general theory for linear equations which will allow us to
tackle such higher order equations. For now, we move on to considering systems
of coupled first order linear DE's.
Loading