Physics PhD
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- tags: stat mech, lecture --- # L01 Intro Probability theory ## Readings ([reference material](/fy9b5mX0Rui-Sii3wHTncg)) - Kittel Chapter 1 - Maxwell distribution, Kittel pages 391-394 ## Notes [**Lecture 01 class notes**](https://web.physics.utah.edu/~rogachev/7310/L01%20Intro%20Prob%20Theory.pdf) Statistical mechanics uses probabilities to describe systems of many particles. For many-particle systems, we can't describe easily with either QM or CM. However, laws emerge that govern such systems which build from the concepts of entropy, temperature, free energy. Tons of observations have led us to the fundamental assumption of statistical mechanics: #### Fundamental assumption "In equilibrium, all accessible (degenerate) states of a closed system are equally probable". This is also a formulation of the second law of Thermodynamics. ### Laws of Thermodynamics ##### 1st law (conservation of energy - thermo) The total energy in a system remains constant, although it may be converted from one form to another. Often expressed as: $\Delta U=Q-W$, where $\Delta U$ denotes the change in the internal energy of a closed system (for which heat or work through the system boundary are possible, but matter transfer is not possible), $Q$ denotes the quantity of energy supplied to the system as heat, and $W$ denotes the amount of thermodynamic work done by the system on its surroundings. ##### 2nd law (entropy maximum, heat flow) "The entropy of the universe tends toward a maximum". A system assumes a configuration of maximum entropy at thermodynamic equilibrium. For closed systems: $\frac{dS}{dt} = \frac{\dot Q}{T}+\dot S_{i}$ with $\dot{S_i} \ge 0$ For open systems: $\frac{dS}{dt} = \frac{\dot Q}{T}+\dot{S}+\dot S_{i}$ with $\dot{S_i} \ge 0$, Where $\dot {Q}$ is the heat flow into the system, $T$ is the temperature at the point where the heat enters the system, and $\dot S$ is the flow of entropy into the system associated with the flow of matter entering the system. It should not be confused with the time derivative of the entropy. ### Kinetic Theory of Gases - molecular collisions entail an equalization of temperatures and hence a tendency towards equilibrium - gases should over time tend toward the Maxwell–Boltzmann distribution #### Entropy The entropy of an isolated system in thermal equilibrium containing an amount of energy of E E is: $S = {\displaystyle k_{\mathrm {B} }\ln \left[\Omega \left(E\right)\right]}$ where $\Omega\left(E\right)$ is the number of quantum states in a small interval between $E$ and $E + \delta E$ ### Probability Theory **statistical variable** (x) may be discrete or continuous. We'll often use [conjugate variables](/@OptXFinite-phd-notes/statmech-dictionary#canonically-conjugate-variables) p and q (usually position and momentum, respectively). $\Omega$ is the **multiplicity** of a system. #### Axioms of Probability theory 1. Positivity (𝑃(𝐸) > 0) 2. Additivity 𝑃(A or B) = 𝑃(𝐴) + 𝑃(𝐴), [if A and B are disconnected events](https://www.skytowner.com/explore/probability_axioms#Additivity) 4. Normalization 𝑃(𝑆) = 1. Random variable must have some outcome in S #### Probability density function (continuous systems) In the case of a continuous system, the probability of being at any single point, for example, is 0 since continuous ranges are by definition infinite. $\rho_x(x)dx$ is the probability of the variable $x$ to be between $x$ and $x + dx$. It has dimension equal to the number of parameter infinitesimals tacked onto the end. e.g. $\rho(x, y)dxdy$ is has x and y dimensions (and units(!) which must be normalized out) Notice that these have dimension and that they must be normalized such that $\int \int \rho(x,y)dxdy = 1$ Normally we have a parameter space like $x,y,z,p_x,p_y,p_z$. Say from this we want probability of finding between height z and dz. Then: $\rho{z}dz = \int \int \int \int \int \rho(x, y, z, p_x, p_y, p_z)dxdydp_xdp_zdp_z$ ##### Means / Average values $<x> = \bar{x} = \int \int x\rho(x,y)dxdy$ ##### Covariance Meaure of the joint variability between two variables $Cov(x,y) = <xy> - <x><y>$ ##### Variance Measure of the variability/spread of a variable. It is the expectation of the squared deviation of a random variable from its population mean $Var(x) = \sigma^2 = <(x - \bar{x})^2> = <x^2> - <x>^2$ ##### Standard deviation $\sigma = \sqrt{\sigma^2}$ ##### Extending PDF to discrete systems (I mean why not?) Enter dirac delta babeyy For example, dice would then go like dees $\rho = \sum\limits_{n=1}^6 \frac{1}{6}\delta(x-n)$ ##### Change of variables Say y can be written as some function $y(x)$. Then we can change between $\rho_x(x)$ and $\rho_y(y)$ via: $\rho_x(x)dx = \rho_y(y)dy$ $\hspace{2cm}$ $\downarrow$ $\rho_y(y) = \rho_x(x(y))(\frac{dy}{dx})^{-1} = \rho_x(x(y))|J(dx,dy)|$, where $J$ is [Jacobian](https://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant) matrix $\matrix[\frac{dx}{dy}]$ For example, moving from polar to cartesian coordinates (See [HW 1 p 3](/@OptXFinite-PhD-Notes/statmech-HW1#3) for more on this): $\rho_{polar}(\varphi, r) = \rho_{cart}(x(r, \varphi), y(r, \varphi)) \frac{\partial (x,y)}{\partial (\varphi, r)} = \rho_{cart}(x(r, \varphi), y(r, \varphi)) \begin{vmatrix}\frac{\partial x}{\partial r} & \frac{\partial x}{\partial \varphi} \\ \frac{\partial y}{\partial r} & \frac{\partial y}{\partial \varphi}\end{vmatrix}$ Here's a shortcut for computing Jacobians: ```python= from sympy import * x, y, z, r, varphi, theta = symbols('x y z r varphi theta') x = r*sin(theta)*cos(varphi) y = r*sin(theta)*sin(varphi) z = r*cos(theta) X = Matrix([x, y, z]) Y = Matrix([r, varphi, theta]) display(X.jacobian(Y)) simplify(det(X.jacobian(Y))) ``` outputs: ![](https://i.imgur.com/Vub1jkX.png) :heart: <p style="font-family: cursive"> <em>God bless the SymPy contributors</em> </p> :heart: #### Maxwell-Boltzmann Distribution The probability density function representing a system containing a large number of identical non-interacting, non-relativistic classical particles in thermodynamic equilibrium, the fraction of the particles within an infinitesimal element of the three-dimensional velocity space $d^{3}v$, centered on a velocity vector of magnitude $v$ goes: $f(v)~d^{n}v=\left({\frac {m}{2\pi kT}}\right)^{n/2}\,e^{-{\frac {mv^{2}}{2kT}}}~d^{n}v$, n is # dimensions) Example: Particle in a box given by a maxwell distribution (really only applicable for a larger # particles, just illustrating the idea) $\rho(x,y,z,v_x,v_y,v_z) = \frac{1}{V}(\frac{m}{2\pi kT})^{3/2}e^{-mv^2/2kT}$ $\rho_v = \int_V \rho dxdydz \rightarrow \rho_{v_x} = \int \rho_v dv_ydv_z \rightarrow \rho_a(r, \theta, \varphi) = \rho_v(v_x, v_y, v_z)\begin{vmatrix}\frac{\partial(v_x, v_y, v_z)}{\partial(v_r, v_{\theta}, v_{\varphi})}\end{vmatrix}$

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully