<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://www.sockfeetresearch.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.sockfeetresearch.com/" rel="alternate" type="text/html" /><updated>2025-11-28T02:51:11+00:00</updated><id>https://www.sockfeetresearch.com/feed.xml</id><title type="html">Sockfeet Research</title><entry><title type="html">Brownian Diffusion Derivation</title><link href="https://www.sockfeetresearch.com/%5Bmath,/diffusion%5D/2025/06/01/brownian-diffusion-derivation.html" rel="alternate" type="text/html" title="Brownian Diffusion Derivation" /><published>2025-06-01T20:31:00+00:00</published><updated>2025-06-01T20:31:00+00:00</updated><id>https://www.sockfeetresearch.com/%5Bmath,/diffusion%5D/2025/06/01/brownian-diffusion-derivation</id><content type="html" xml:base="https://www.sockfeetresearch.com/%5Bmath,/diffusion%5D/2025/06/01/brownian-diffusion-derivation.html"><![CDATA[<p>Brownian Diffusion</p>

<p>Einstein’s solution to the problem of Brownian motion can be considered to be the beginning of stochastic modeling of natural phenomena. His solution the Brownian diffusion problem has two major findings with regards to the motion of a pollen grain:</p>
<ol>
  <li>Motion is caused by high frequency impact on the pollen grain by the liquid molecules that the grain is suspended in.</li>
  <li>The motion and frequency of these impacts is so high and complicated that their effects on the pollen grain can only be described probabilistically in term of “exceedingly frequent statistically independent impacts”.</li>
</ol>

<p>The building blocks of the derivation rest on the following assumptions:</p>
<ol>
  <li>Each particle has its own motion that is independent from the motion of other particles.</li>
  <li>The movements of a single particle through time is also considered to be independent processes, as long as the time period chosen between movements is not too small.</li>
  <li>A time interval $\tau$ is chosen such that it is small compared to observable time periods but large enough such that the motions of a given particle can be considered to be independent of one another.</li>
  <li>A total of $n$ particles are suspended in a liquid and during the time $\tau$, the individual particles will travel a distance $\Delta$. For each particle, $\Delta$ will have either a positive or negative value. A number of particles, expressed as $dn$, which will move between $\Delta$ and $\Delta+d\Delta$ is expressed by the following equation:</li>
</ol>

\[dn = n\phi\left(\Delta\right)d\Delta \tag{1}\]

<p>The probability density function, $\phi\left(\Delta\right)$, obeys the following:
\(\int^{\infty}_{-\infty}\phi\left(\Delta\right)d\Delta = 1 \tag{2}\)
and
\(\phi(\Delta) = \phi\left(-\Delta\right) \tag{3}\)</p>

<p>We restrict ourselves to the reference case where the number of particles per unit volume, $v$, depends only on $x$ and $t$. As such, $v = f\left(x, t\right)$ is the equation expressing the number of particles per unit volume. The distribution of particles is calculated between time intervals $t$ and $t+\tau$.</p>

<p>The objective is to first find the number of particles at time $t+\tau$ which are between two planes perpendicular to the x-axis and passing through the points $x$ and $x+dx$.</p>

<p>Starting out with a simple figure, the number of particles at a certain point of $x$ and $t$ are defined by $f\left(x, t\right)$. As such, the number of particles between some infinitesimally small distance $dx$ is depicted in the figure below:</p>

<!-- ![Diffusion Figure 1](diffusion_fig_1.png) -->
<p align="center" width="100%">
    <img width="75%" src="/assets/images/diffusion_fig_1.png" />
</p>

<p>The adding a second cross-section that is $\Delta$ distance away yields the following:</p>

<!-- ![Diffusion Figure 2](diffusion_fig_2.png) -->
<p align="center" width="100%">
    <img width="75%" src="/assets/images/diffusion_fig_2.png" />
</p>

<p>By definition, the probability that a certain number of particles will move by a distance of $\Delta$ is $\phi\left(\Delta\right)$. As such, the probability some molecules will move to the area defined by $f\left(x, t+\tau\right)$ can be defined by the integral of the probability density function over the full range of $\Delta$ values multiplied by the function of particles per unit area at the distance $\Delta$ away from the end location:</p>

\[f\left(x, t+\tau\right)dx = \int^{\infty}_{-\infty} f\left(x+\Delta, t\right)dx \phi(\Delta) d\Delta \tag{4}\]

<p>rearranging yields</p>

\[f\left(x, t+\tau\right)dx = dx \int^{\infty}_{-\infty} f\left(x+\Delta, t\right) \phi(\Delta) d\Delta  \tag{5}\]

<p>The $dx$ terms can be crossed out</p>

\[f\left(x, t+\tau\right) = \int^{\infty}_{-\infty} f\left(x+\Delta, t\right) \phi(\Delta) d\Delta  \tag{6}\]

<p>The left-hand-side of the above equation can written as</p>

\[f\left(x, t+\tau\right) = f\left(x,t\right) + \tau \frac{\partial f}{\partial t}\]

<p>The right-hand-side function within the integral can be expanded using a Taylor series</p>

\[f\left(x+\Delta, t\right) = f(x,t) + \Delta \frac{\partial f(x,t)}{\partial x} + \frac{\Delta^2}{2!}\frac{\partial^2 f(x,t)}{\partial x^2} + ...\]

<p>Plugging the above two equations back into the original integral yields</p>

\[f + \tau \frac{\partial f}{\partial t} = f \int^{\infty}_{-\infty} \phi(\Delta) d\Delta + \frac{\partial f}{\partial x} \int^{\infty}_{-\infty} \Delta \phi(\Delta) d\Delta + \frac{\partial^2 f}{\partial x^2} \int^{\infty}_{-\infty} \frac{\Delta^2}{2} \phi(\Delta) d\Delta  \tag{7}\]

<p>where $f = f(x, t)$. Evaluating the individual terms on the right-hand-side, the first integral is by definition equal to 1:</p>

\[\int^{\infty}_{-\infty} \phi(\Delta) d\Delta = 1\]

<p>The second integral is set to zero since it is an <a href="/%5Bmath,/integration%5D/2025/05/31/integration-techniques-even-and-odd-functions.html">odd function</a>:</p>

\[\int^{\infty}_{-\infty} \Delta \phi(\Delta) d\Delta = 0\]

<p>And the third integral becomes:</p>

\[\int^{\infty}_{-\infty} \frac{\Delta^2}{2} \phi(\Delta) d\Delta = \frac{1}{2} |\Delta^2|\]

<p>Putting everything together:</p>

\[f + \tau \frac{\partial f}{\partial t} = f + \frac{1}{2} \Delta^2\frac{\partial^2 f}{\partial x^2}  \tag{8}\]

<p>Further simplifying:</p>

\[\frac{\partial f}{\partial t} = \frac{\Delta^2}{2\tau} \frac{\partial^2 f}{\partial x^2}  \tag{8}\]

<p>We can then define the diffusion coefficient as:</p>

\[D = \frac{\Delta^2}{2\tau} \tag{9}\]

<p>which results in the final form of the diffusion equation:</p>

\[\frac{\partial f}{\partial t} = D \frac{\partial^2 f}{\partial x^2}  \tag{10}\]

<p>Assumptions:</p>
<ul>
  <li>Taylor series truncated after the $\Delta^2$ term, impicit assumtpion that $f$ is smooth and jumps are small enough that higher moments don’t matter.</li>
  <li>Symmetric step distribution (no drift).</li>
  <li>
    <table>
      <tbody>
        <tr>
          <td>Continuum limit: $\tau \rightarrow 0$ while $</td>
          <td>\Delta</td>
          <td>\rightarrow 0$</td>
        </tr>
      </tbody>
    </table>
  </li>
</ul>

<h2 id="references">References</h2>

<p>Einstein, Albert. Investigations on the Theory of the Brownian Movement. Courier Corporation, 1956.</p>]]></content><author><name></name></author><category term="[math," /><category term="diffusion]" /><summary type="html"><![CDATA[Brownian Diffusion]]></summary></entry><entry><title type="html">Integration Techniques: Even and Odd Functions</title><link href="https://www.sockfeetresearch.com/%5Bmath,/integration%5D/2025/05/31/integration-techniques-even-and-odd-functions.html" rel="alternate" type="text/html" title="Integration Techniques: Even and Odd Functions" /><published>2025-05-31T08:23:00+00:00</published><updated>2025-05-31T08:23:00+00:00</updated><id>https://www.sockfeetresearch.com/%5Bmath,/integration%5D/2025/05/31/integration-techniques-even-and-odd-functions</id><content type="html" xml:base="https://www.sockfeetresearch.com/%5Bmath,/integration%5D/2025/05/31/integration-techniques-even-and-odd-functions.html"><![CDATA[<p>For symmetric integration of even or odd functions, you can show that the following relationship is true:</p>

\[\int^a_{-a} f(x) dx =
    \begin{cases}
      0 &amp; \text{if $f(x)$ is an odd function}\\
      2\int^a_0 f(x)dx &amp; \text{if $f(x)$ is even}
    \end{cases}
    \tag{1}\]

<p>Even functions are classified as those where the following relationship holds: $f(-x) = -f(x)$. Odd functions, on the other hand, as classified as follows: $f(-x) = f(x)$.</p>

<p>Looking at the graphical representation of the even and odd functions, it becomes obvious why the above relation is true: the negative integral of the odd function will cancel itself out with the positive portion, while the even function is symmetric about the y-axis:</p>

<p align="center" width="100%">
    <img width="75%" src="/assets/images/even_odd_functions.png" />
</p>

<p>The derivation of the above definitions starts with the decompositions of the integral function.</p>

\[\int^a_{-a} f(x) dx = \int^0_{-a} f(x) dx + \int^a_0 f(x) dx \tag{2}\]

<p>Looking at the first term on the RHS, we can substitute $u = -x$ and $-du = dx$:</p>

\[\int^{x=0}_{x=-a} f(x) dx = \int^{u=0}_{u=a} f(-u) (-du) = -\int^0_{a} f(-u) du = \int^a_{0} f(-u) du\]

<p>With this final form, we can simply rename the $u$ variable back to $x$:</p>

\[= \int^a_{0} f(-u) du = \int^a_{0} f(-x) dx\]

<p>Substituting back into equation $(2)$ then becomes</p>

\[\int^a_{-a} f(x) dx = \int^a_0 f(-x) dx + \int^a_0 f(x) dx\]

\[\int^a_{-a} f(x) dx = \int^a_0 \left[ f(-x) + f(x)\right] dx \tag{3}\]

<p>Now for an odd function where</p>

\[f(-x) = -f(x) \quad \text{or} \quad f(x) + f(-x) = 0\]

<p>the integral is zero. For an even function</p>

\[f(-x) = f(x) \quad \text{or} \quad f(x) + f(-x) = 2f(x)\]

<p>which then implies</p>

\[\int^a_0 \left[ f(-x) + f(x)\right] dx = 2 \int^a_0 f(x) dx\]

<h1 id="references">References</h1>

<p>Greenspan, Harvey Philip, and David J. Benney. “Calculus: an introduction to applied mathematics.” (1973). pp. 239-240</p>]]></content><author><name></name></author><category term="[math," /><category term="integration]" /><summary type="html"><![CDATA[For symmetric integration of even or odd functions, you can show that the following relationship is true:]]></summary></entry><entry><title type="html">Temp Post</title><link href="https://www.sockfeetresearch.com/2025/05/01/first-post.html" rel="alternate" type="text/html" title="Temp Post" /><published>2025-05-01T00:00:00+00:00</published><updated>2025-05-01T00:00:00+00:00</updated><id>https://www.sockfeetresearch.com/2025/05/01/first-post</id><content type="html" xml:base="https://www.sockfeetresearch.com/2025/05/01/first-post.html"><![CDATA[<p>this is my first post.</p>]]></content><author><name></name></author><summary type="html"><![CDATA[this is my first post.]]></summary></entry></feed>