howto:hambasics:sections:test
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howto:hambasics:sections:test [2021/01/03 19:58] – [Équations différentiels] va7fi | howto:hambasics:sections:test [2021/02/13 18:58] – va7fi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
====== Optional Math of Waves ====== | ====== Optional Math of Waves ====== | ||
This is a brief survey of the math required to analyze waves at the first or second year university level. | This is a brief survey of the math required to analyze waves at the first or second year university level. | ||
Line 8: | Line 7: | ||
\$$ \Box ^2 = -25 \$$ | \$$ \Box ^2 = -25 \$$ | ||
- | It turns out that there is no //real// number such that when you multiply it by itself you get a negative number, but could we invent an // | + | It turns out that there is no //real// number such that when you multiply it by itself you get a negative number. But could we invent an // |
===== Complex Numbers ===== | ===== Complex Numbers ===== | ||
Let's create an // | Let's create an // | ||
- | |||
<WRAP center box 30em> | <WRAP center box 30em> | ||
Line 25: | Line 24: | ||
\begin{align*} | \begin{align*} | ||
- | (1+i)^2 &= 1 + 2i + i^2 \\ | + | (1+i)^2 |
+ | &= (1+i)\dot(1+i) | ||
+ | &= 1 + 2i + i^2 \\ | ||
&= 1 + 2i - 1 \\ | &= 1 + 2i - 1 \\ | ||
&= 2i | &= 2i | ||
Line 41: | Line 42: | ||
In a certain way, negative numbers are just as weird as complex numbers: after all, we know what 5 cars look like, but what does −5 cars mean? And yet, in certain context (like temperature), | In a certain way, negative numbers are just as weird as complex numbers: after all, we know what 5 cars look like, but what does −5 cars mean? And yet, in certain context (like temperature), | ||
+ | |||
===== The Complex Plane ===== | ===== The Complex Plane ===== | ||
In the same way that we can represent real numbers by a point on the real number line...((Number line picture from [[wp> | In the same way that we can represent real numbers by a point on the real number line...((Number line picture from [[wp> | ||
Line 54: | Line 56: | ||
To convert between the Cartesian \$(a,b) \$ and the Polar \$ (r \angle \theta) \$ representations, | To convert between the Cartesian \$(a,b) \$ and the Polar \$ (r \angle \theta) \$ representations, | ||
- | ^ \$$ a + ib \rightarrow r\angle \theta \$$ ^ \$$ r\angle \theta \rightarrow a+ib \$$ | | + | ^ \$$ (a, b) \rightarrow |
| \$$ r^2 = a^2 + b^2 \$$ | \$$ a = r\cos\theta \$$ | | | \$$ r^2 = a^2 + b^2 \$$ | \$$ a = r\cos\theta \$$ | | ||
| \$$ \tan \theta = \dfrac{b}{a} \$$ | \$$ b = r\sin\theta \$$ | | | \$$ \tan \theta = \dfrac{b}{a} \$$ | \$$ b = r\sin\theta \$$ | | ||
Line 60: | Line 62: | ||
Note that very often, we use radians instead of degrees for the angle. | Note that very often, we use radians instead of degrees for the angle. | ||
* Imagine a circle. | * Imagine a circle. | ||
- | * Now imagine the length from the centre to the circle (along the ``radius'' | + | * Now imagine the length from the centre to the circle (along the "radius"). |
* Take that length and lay it down on the perimeter of the circle. | * Take that length and lay it down on the perimeter of the circle. | ||
* The angle that this length covers is 1 radian (because of the length of the radius on the circle). | * The angle that this length covers is 1 radian (because of the length of the radius on the circle). | ||
Line 100: | Line 102: | ||
</ | </ | ||
\\ | \\ | ||
- | |||
===== The Euler Identity ===== | ===== The Euler Identity ===== | ||
Line 141: | Line 142: | ||
===== Euler Identity and Polar-Cartesian Representations ===== | ===== Euler Identity and Polar-Cartesian Representations ===== | ||
- | In the previous section, we saw that a complex number \$z = a + ib \$ could be represented as a point \$(a, b)\$ on the complex plane, which could also be viewed in polar coordinates as \$r\angle \theta \$. We saw that to convert between the Cartesian \$(a,b) \$ and the Polar \$ (r \angle \theta) \$ representations, | + | In the previous section, we saw that a complex number \$z = a + ib \$ could be represented as a point \$(a, b)\$ on the complex plane, which could also be viewed in polar coordinates as (\$r\angle \theta) \$. We saw that to convert between the Cartesian \$(a,b) \$ and the Polar \$ (r \angle \theta) \$ representations, |
- | ^ \$$ a + ib \rightarrow r\angle \theta \$$ ^ \$$ r\angle \theta \rightarrow a+ib \$$ | | + | ^ \$$ (a,b) \rightarrow |
| \$$ r^2 = a^2 + b^2 \$$ | \$$ a = r\cos\theta \$$ | | | \$$ r^2 = a^2 + b^2 \$$ | \$$ a = r\cos\theta \$$ | | ||
| \$$ \tan \theta = \dfrac{b}{a} \$$ | \$$ b = r\sin\theta \$$ | | | \$$ \tan \theta = \dfrac{b}{a} \$$ | \$$ b = r\sin\theta \$$ | | ||
Line 162: | Line 163: | ||
^ Algebraic |\$$z = a + ib\$$ |\$$ z = re^{i\theta} \$$ | | ^ Algebraic |\$$z = a + ib\$$ |\$$ z = re^{i\theta} \$$ | | ||
- | This now allows us to simplify a lot of difficult mathematics. | + | This now allows us to simplify a lot of difficult mathematics. |
\$$ | \$$ | ||
Line 193: | Line 194: | ||
\$$z_1 = 1 + i = \sqrt{2}e^\left(i\frac{\pi}{4}\right) \quad \text{and} \quad z_2 = -1 + i = \sqrt{2}e^\left(i\frac{3\pi}{4}\right) \$$ | \$$z_1 = 1 + i = \sqrt{2}e^\left(i\frac{\pi}{4}\right) \quad \text{and} \quad z_2 = -1 + i = \sqrt{2}e^\left(i\frac{3\pi}{4}\right) \$$ | ||
- | Imagine having to add, subtract, multiply, | + | Imagine having to add, subtract, multiply, or divide these together. |
< | < | ||
Line 309: | Line 310: | ||
This last result is the basis behind why [[howto/ | This last result is the basis behind why [[howto/ | ||
+ | |||
+ | |||
===== Differential Equations ===== | ===== Differential Equations ===== | ||
+ | |||
In the physics of wave, we often have to find solutions to the following type of differential equations: | In the physics of wave, we often have to find solutions to the following type of differential equations: | ||
<WRAP center box 30em> | <WRAP center box 30em> | ||
Line 316: | Line 320: | ||
<WRAP center round info 80%> | <WRAP center round info 80%> | ||
- | A differential equation is an equation that relates a function to its derivatives in some ways and the question is: given some information about the system, what's the function (or family of functions) that satisfy the differential equation. | + | * A differential equation is an equation that relates a function to its derivatives in some ways and the question is: given some information about the system, what's the function (or family of functions) that satisfy the differential equation. |
- | In physics we often use a dot above the function to indicate a derivative with respect to time, where as in math, we'll often use an apostrophe. | + | * In physics we often use a dot above the function to indicate a derivative with respect to time, where as in math, we'll often use an apostrophe. |
\$$ \dot{x}(t) = x'(t) = \frac{dx}{dt} \quad \text{and} \quad \ddot{x}(t) = x'' | \$$ \dot{x}(t) = x'(t) = \frac{dx}{dt} \quad \text{and} \quad \ddot{x}(t) = x'' | ||
</ | </ | ||
+ | |||
In our applications, | In our applications, | ||
Line 342: | Line 347: | ||
\end{align*} | \end{align*} | ||
- | ===== Under Construction ===== | + | So what does that result mean? Remember, what we're looking for is the function \$x(t)\$ that satisfies the differential equation \$ a \ddot{x}(t) + b \dot{x}(t) + c x(t) = 0 \$ |
- | Puisque \$ r \$ contient une racine carré, il peut être réel, ou complexe. Pour simplifier la notation, disons que: \$ \alpha = \dfrac{b}{2a} \qquad \text{et} \qquad \beta = \dfrac{\sqrt{|{b^2 - 4ac}|}}{2a} \$ | ||
- | Nous pourrons donc dire que: \$ \begin{equation*} r = \left\{ \begin{array}{rl} -\alpha \pm \beta & \text{si } b^2 - 4ac > 0,\\ | + | What we've go so far says that our test function |
- | -\alpha \pm i \beta & \text{si } b^2 - 4ac < 0, \end{array} | + | |
- | Examinons les deux cas en plus de détails. | + | To simplify the notation, let's define \$\alpha\$ and \$\beta\$ as: |
+ | \$$ \alpha = \dfrac{b}{2a} \qquad \text{and} \qquad \beta = \dfrac{\sqrt{|{b^2 - 4ac}|}}{2a} \$$ | ||
- | === Cas 1: === | + | Notice how the absolute value under the square root ensures that \$\beta\$ is always real. |
- | Quand \$ b^2 - 4ac > 0 \$ , \$ r \$ est réel et la solutions général sera: | + | |
- | \$ \begin{align*} | + | \$r\$ then: |
+ | |||
+ | \$$ r = \left\{ \begin{array}{ll} -\alpha \pm \beta & \text{if } b^2 - 4ac > 0,\\ | ||
+ | | ||
+ | |||
+ | Let's examine both of these cases in more detail. | ||
+ | |||
+ | ==== Case 1: Over Damped Oscillation ==== | ||
+ | When \$ b^2 - 4ac > 0 \$ , \$ r \$ is real and the general solution is: | ||
+ | |||
+ | \begin{align*} | ||
x(t) &= A_1 e^{r_1 t} + A_2 e^{r_2 t} \\ | x(t) &= A_1 e^{r_1 t} + A_2 e^{r_2 t} \\ | ||
&= A_1 e^{( -\alpha + \beta) t} + A_2 e^{( -\alpha - \beta) t} \\ | &= A_1 e^{( -\alpha + \beta) t} + A_2 e^{( -\alpha - \beta) t} \\ | ||
&= A_1 e^{-\alpha t} e^{\beta t} + A_2 e^{-\alpha t} e^{-\beta t} | &= A_1 e^{-\alpha t} e^{\beta t} + A_2 e^{-\alpha t} e^{-\beta t} | ||
- | \end{align*} | + | \end{align*} |
\$$ x(t) = e^{-\alpha t} ( A_1 e^{\beta t} + A_2 e^{-\beta t} ) \$$ | \$$ x(t) = e^{-\alpha t} ( A_1 e^{\beta t} + A_2 e^{-\beta t} ) \$$ | ||
- | C'est normal | + | It's normal |
- | === Cas 2: === | + | ==== Case 2: Under Damped ==== |
- | Quand \$ b^2 - 4ac < 0 \$ , \$ r \$ est complexe et nous utiliserons la formule de Euler pour simplifier notre solutions. | + | When \$ b^2 - 4ac < 0 \$ , \$ r \$ is complex and we'll be using the Euler identity to simplify our solutions |
- | \$ \begin{align*} | + | \begin{align*} |
x(t) &= A_1 e^{r_1 t} + A_2 e^{r_2 t} \\ | x(t) &= A_1 e^{r_1 t} + A_2 e^{r_2 t} \\ | ||
&= A_1 e^{( -\alpha + i \beta) t} + A_2 e^{( -\alpha - i \beta) t} \\ | &= A_1 e^{( -\alpha + i \beta) t} + A_2 e^{( -\alpha - i \beta) t} \\ | ||
Line 377: | Line 390: | ||
&= e^{-\alpha t} \Big( (A_1 + A_2) \cos(\beta t) + i (A_1 - A_2) \sin(\beta t) \Big) \\ | &= e^{-\alpha t} \Big( (A_1 + A_2) \cos(\beta t) + i (A_1 - A_2) \sin(\beta t) \Big) \\ | ||
&= e^{-\alpha t} \Big( a_1 \cos(\beta t) + a_2 \sin(\beta t) \Big) \\ | &= e^{-\alpha t} \Big( a_1 \cos(\beta t) + a_2 \sin(\beta t) \Big) \\ | ||
- | &= e^{-\alpha t} \Big( A \sin \phi \cos(\beta t) + A \cos \phi \sin(\beta t) \Big) | + | &= e^{-\alpha t} \Big( A \sin \phi \cos(\beta t) + A \cos \phi \sin(\beta t) \Big) \\ |
- | \end{align*} | + | &= Ae^{-\alpha t} \Big(\sin \phi \cos(\beta t) + \cos \phi \sin(\beta t) \Big) \\ |
+ | \end{align*} | ||
- | Dans les deux dernière ligne, nous avons ré-écrit les constantes d'intégration: | + | In the last three lines, we've redefined the constants of integration a few times so that: |
- | \$ \begin{align*} | + | \begin{align*} |
a_1 &= A_1 + A_2 & , a_2 &= i(A_1 - A_2) \\ | a_1 &= A_1 + A_2 & , a_2 &= i(A_1 - A_2) \\ | ||
a_1 &= A \sin \phi & , a_2 &= A \cos \phi | a_1 &= A \sin \phi & , a_2 &= A \cos \phi | ||
- | \end{align*} | + | \end{align*} |
- | + | ||
- | Pour finalement pouvoir utiliser une identité trigonométrique: | + | |
+ | And we finally use one of the trig identities we proved earlier to write the solution as: | ||
\$$ x(t) = A e^{-\alpha t} \sin(\beta t + \phi) \$$ | \$$ x(t) = A e^{-\alpha t} \sin(\beta t + \phi) \$$ | ||
- | === Exemple === | + | ==== Case 3: Critically Damped ==== |
+ | When \$ b^2 - 4ac = 0 \$ , \$ r = -\frac{b}{2a} \$ is real and negative but our test solution is under determined. | ||
+ | \begin{align*} | ||
+ | && | ||
+ | \Rightarrow && \dot x(t) &= re^{rt}(A + Bt) + Be^{rt} \\ | ||
+ | && | ||
+ | && | ||
+ | \Rightarrow && | ||
+ | && | ||
+ | && | ||
+ | \end{align*} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Exemple | ||
Nous avons donc deux types de solutions complètement différents qui dépendent de trois paramètres \$ a, b, c \$. Pour voir comment ces paramètres affectent le graphique, imaginons qu'une de nos conditions initiales est \$ \phi = \frac{\pi}{2} \$ . Ça veut dire que: | Nous avons donc deux types de solutions complètement différents qui dépendent de trois paramètres \$ a, b, c \$. Pour voir comment ces paramètres affectent le graphique, imaginons qu'une de nos conditions initiales est \$ \phi = \frac{\pi}{2} \$ . Ça veut dire que: | ||
Line 407: | Line 435: | ||
FIXME Geogebra | FIXME Geogebra | ||
+ |
howto/hambasics/sections/test.txt · Last modified: 2021/02/13 19:14 by va7fi