Skip to content

Commit 987088e

Browse files
committed
ading to diffEQ
1 parent d3d5376 commit 987088e

File tree

4 files changed

+121
-19
lines changed

4 files changed

+121
-19
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD013": false
3+
}

other/stem/math/pure/changes/calculus-cheat-sheet/README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Table of Contents
77
* [OVERVIEW](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#overview)
88
* [LIMITS](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#limits)
99
* [DIFFERENTIAL CALCULUS (THE DERIVATIVE)](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#differential-calculus-the-derivative)
10-
* [DEFINITIONS OF A DERIVATIVE](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#definitions-of-a-derivative)
10+
* [DEFINITION OF A DERIVATIVE](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#definition-of-a-derivative)
1111
* [BASIC DERIVATIVE RULES](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#basic-derivative-rules)
1212
* [INTEGRAL CALCULUS (THE INTEGRAL)](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#integral-calculus-the-integral)
13-
* [DEFINITIONS OF AN INTEGRAL](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#definitions-of-an-integral)
13+
* [DEFINITION OF AN INTEGRAL](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#definition-of-an-integral)
1414
* [BASIC INTEGRAL RULES](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#basic-integral-rules)
1515
* [A REAL WORLD EXAMPLE USING DERIVATIVES AND INTEGRALS](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#a-real-world-example-using-derivatives-and-integrals)
1616
* [FINDING VELOCITY (Using a Derivative)](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet#finding-velocity-using-a-derivative)
@@ -22,6 +22,12 @@ Documentation and Reference
2222
cheat sheet
2323
* [my-latex-renders](https://github.com/JeffDeCola/my-latex-renders)
2424

25+
| CONTEXT | WHAT f(x) REPRESENTS | WHAT WE WANT TO FIND |
26+
|------------------------|------------------------------------|--------------------------------------|
27+
| CALCULUS (Derivatives) | $f(x)$ is the original function | The derivative $f'(x)=\frac{dy}{dx}$ |
28+
| CALCULUS (Integrals) | $f(x)$ is function to integrate | Function $F(x)=\int f(x)dx$ |
29+
| DIFFERENTIAL EQUATIONS | $f(x)$ is the derivative of $y(x)$ | Solve for $y(x)$ by integrating |
30+
2531
## OVERVIEW
2632

2733
Calculus is a branch of mathematics that studies continuous change.
@@ -144,7 +150,7 @@ So if you're at `x = 2`, the slope (change) of the tangent line is `4`.
144150
Hence, the derivative of a function is the slope of the tangent line to the curve
145151
at a given point.
146152

147-
### DEFINITIONS OF A DERIVATIVE
153+
### DEFINITION OF A DERIVATIVE
148154

149155
We learned about limits because the derivative of a function is
150156
defined as the limit of the average rate of change of the function as the
@@ -272,7 +278,7 @@ $$
272278
So if you're looking for the area under the curve of `2x`, you would find the
273279
area of a triangle with base `x` and height `2x`.
274280

275-
### DEFINITIONS OF AN INTEGRAL
281+
### DEFINITION OF AN INTEGRAL
276282

277283
Because the integral of a function is
278284
defined as the limit of the sum of the areas of
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD013": false
3+
}

other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet/README.md

+105-15
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,30 @@ _The study of continuous change._
55
Table of Contents
66

77
* [OVERVIEW](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#overview)
8-
* [NOMENCLATURE OF DERIVATIVES, INTEGRALS AND DIFFERENTIAL EQUATIONS](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#nomenclature-of-derivatives-integrals-and-differential-equations)
8+
* [UNDERSTANDING f(x)](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#understanding-fx)
99
* [f(x) in CALCULUS](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#fx-in-calculus)
1010
* [f(x) in DIFFERENTIAL EQUATIONS](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#fx-in-differential-equations)
1111
* [SUMMARY](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#summary)
12-
* [FIRST-ORDER AND SECOND-ORDER DIFFERENTIAL EQUATIONS](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#first-order-and-second-order-differential-equations)
12+
* [CLASSIFICATION OF DIFFERENTIAL EQUATIONS](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#classification-of-differential-equations)
13+
* [BY TYPE](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#by-type)
14+
* [BY ORDER](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#by-order)
15+
* [A REAL WORLD EXAMPLE](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#a-real-world-example)
16+
* [POPULATION GROWTH](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet/differential-equations-cheat-sheet#population-growth)
1317

1418
Documentation and Reference
1519

1620
* [calculus](https://github.com/JeffDeCola/my-cheat-sheets/tree/master/other/stem/math/pure/changes/calculus-cheat-sheet)
1721
cheat sheet
1822

23+
| CONTEXT | WHAT f(x) REPRESENTS | WHAT WE WANT TO FIND |
24+
|------------------------|------------------------------------|--------------------------------------|
25+
| CALCULUS (Derivatives) | $f(x)$ is the original function | The derivative $f'(x)=\frac{dy}{dx}$ |
26+
| CALCULUS (Integrals) | $f(x)$ is function to integrate | Function $F(x)=\int f(x)dx$ |
27+
| DIFFERENTIAL EQUATIONS | $f(x)$ is the derivative of $y(x)$ | Solve for $y(x)$ by integrating |
28+
1929
## OVERVIEW
2030

21-
* **Calculus** is a broad field of mathematics that includes
31+
* **Calculus** is a broad field of mathematics that includes
2232
differentiation (finding derivatives) and
2333
integration (finding integrals).
2434
It focuses on rates of change and accumulation.
@@ -30,13 +40,17 @@ As we will see, differential equations are used to
3040
model real-world phenomena involving rates of
3141
change and accumulation.
3242

43+
```text
44+
The goal of diffEQ is to find the function y(x) that satisfies the equation.
45+
```
46+
3347
## UNDERSTANDING f(x)
3448

3549
Understanding the role of $f(x)$ is important because:
3650

3751
* In **calculus**, you typically **differentiate or integrate** $f(x)$
3852
to get new functions.
39-
* In **differential equations**, you **start with $f(x) = \frac{dy}{dx}$
53+
* In **differential equations**, you **start with $y'(x) = f(x) = \frac{dy}{dx}$
4054
and integrate** to recover $y(x)$.
4155
* The notation can be tricky, but knowing whether **$f(x)$ is the function
4256
or its derivative** helps avoid confusion.
@@ -46,7 +60,7 @@ Understanding the role of $f(x)$ is important because:
4660
In calculus, we define f(x) as the original function, and we
4761
find the derivative or integral on that function.
4862

49-
**Derivative**
63+
#### Derivative
5064

5165
Given a function, find the rate of change.
5266

@@ -74,7 +88,7 @@ $$
7488
f'(x) = \frac{dy}{dx} = 2x + 3
7589
$$
7690

77-
**Integral**
91+
#### Integral
7892

7993
Given the rate of change, find the function.
8094

@@ -115,7 +129,7 @@ the derivative of another function y(x).
115129
Like integrals, start with the rate of change and find the function.
116130

117131
$$
118-
\frac{dy}{dx} = f(x)
132+
y'(x) = \frac{dy}{dx} = f(x)
119133
$$
120134

121135
To solve for y(x), we integrate both sides of the equation,
@@ -131,7 +145,7 @@ $$
131145
As an example,
132146

133147
$$
134-
\frac{dy}{dx} = f(x) = 2x + 3
148+
y'(x) = \frac{dy}{dx} = f(x) = 2x + 3
135149
$$
136150

137151
Solve for y(x),
@@ -144,15 +158,29 @@ $$
144158
y(x) = x² + 3x + C
145159
$$
146160

147-
### SUMMARY
161+
## CLASSIFICATION OF DIFFERENTIAL EQUATIONS
162+
163+
Differential equations can be classified in many ways, we will
164+
classify them by type and order.
165+
166+
### BY TYPE
167+
168+
**Ordinary Differential Equations** (ODEs) involve only one independent variable. For example,
169+
170+
$$
171+
\frac{dy}{dx} = 2x
172+
$$
173+
174+
**Partial Differential Equations** (PDEs) involve more than one independent variable.
175+
For example,
176+
177+
$$
178+
\frac{\partial u}{\partial t} = \frac{\partial² u}{\partial x²}
179+
$$
148180

149-
| CONTEXT | WHAT f(x) REPRESENTS | WHAT WE WANT TO FIND |
150-
|------------------------|------------------------------------|-----------------------|
151-
| CALCULUS (Derivatives) | $f(x)$ is the original function | $f'(x)=\frac{dy}{dx}$ |
152-
| CALCULUS (Integrals) | $f(x)$ is function to integrate | $F(x)=\int f(x)dx$ |
153-
| DIFFERENTIAL EQUATIONS | $f(x)$ is the derivative of $y(x)$ | Solve for $y(x)$ |
181+
where $u$ is a function of $x$ and $t$.
154182

155-
## FIRST-ORDER AND SECOND-ORDER DIFFERENTIAL EQUATIONS
183+
### BY ORDER
156184

157185
* **First-order** differential equations involve only the first derivative.
158186
For example,
@@ -167,5 +195,67 @@ $$
167195
y''(x) = \frac{d²y}{dx²} = 2x
168196
$$
169197

198+
## A REAL WORLD EXAMPLE
199+
200+
Since differential equations are used to model real-world phenomena,
201+
let's consider a simple example. Remember, the goal of differential
202+
equations is to find the function $y(x)$ that satisfies the equation.
203+
204+
### POPULATION GROWTH
205+
206+
Consider a population of bacteria that grows at a rate proportional to the
207+
current population. The differential equation that models this growth is,
208+
209+
$$
210+
\frac{dP}{dt} = kP
211+
$$
212+
213+
$$
214+
P'(t)= \frac{dP}{dt} = kP
215+
$$
216+
217+
where $P$ is the population and $k$ is the growth rate constant.
218+
We want to find P(t), the population at a particular time.
219+
220+
To solve this differential equation, we integrate both sides,
221+
222+
$$
223+
\int \frac{dP}{dt} dt = \int kP dt
224+
$$
225+
226+
$$
227+
\int \frac{dP}{P} = \int k dt
228+
$$
229+
230+
$$
231+
\ln P = kt + C
232+
$$
233+
234+
Solving for natural log we get
235+
236+
$$
237+
P(t) = e^{kt + C}
238+
$$
239+
240+
$$
241+
P(t) = P_0e^{kt}
242+
$$
243+
244+
where $P_0$ is the initial population at time $t=0$ and k is
245+
246+
$$
247+
k = \frac{1}{t} ln \frac{P(t)}{P_0}
248+
$$
249+
250+
As an example, if we have an initial popular of 100 bacteria
251+
thats doubles every 3 hours,
252+
253+
$$ P_0 = 100 \; and \; P(3) = 2P_0 = 200 $$
254+
255+
the constant k would be
256+
257+
$$ k = \frac{1}{3} ln \frac{200}{100} = \frac{1}{3} ln 2 =0.231$$
170258

259+
Therefore, the population at time t would be,
171260

261+
$$ P(t) = 100e^{0.231t} $$

0 commit comments

Comments
 (0)