math and physics play

Exploring 0^0, x^x, and z^z.

May 10, 2020 math and physics play , , , , , , ,

My Youtube home page knows that I’m geeky enough to watch math videos.  Today it suggested Eddie Woo’s video about \(0^0\).

Mr Woo, who has great enthusiasm, and must be an awesome teacher to have in person.  He reminds his class about the exponent laws, which allow for an interpretation that \(0^0\) would be equal to 1.  He points out that \(0^n = 0\) for any positive integer, which admits a second contradictory value for \( 0^0 \), if this was true for \(n=0\) too.

When reviewing the exponent laws Woo points out that the exponent law for subtraction \( a^{n-n} \) requires \(a\) to be non-zero.  Given that restriction, we really ought to have no expectation that \(0^{n-n} = 1\).

To attempt to determine a reasonable value for this question, resolving the two contradictory possibilities, neither of which we actually have any reason to assume are valid possibilities, he asks the class to perform a proof by calculator, computing a limit table for \( x \rightarrow 0+ \). I stopped at that point and tried it by myself, constructing such a table in Mathematica. Here is what I used

griddisp[labelc1_, labelc2_, f_, values_] := Grid[({
({{labelc1}, values}) // Flatten,
({ {labelc2}, f[#] & /@ values} ) // Flatten
}) // Transpose,
Frame -> All]
decimalFractions[n_] := ((10^(-#)) & /@ Range[n])
With[{m = 10}, griddisp[x, x^x, #^# &, N[decimalFractions[m], 10]]]
With[{m = 10}, griddisp[x, x^x, #^# &, -N[decimalFractions[m], 10]]]

Observe that I calculated the limits from both above and below. The results are

and for the negative limit

Sure enough, from both below and above, we see numerically that \(\lim_{\epsilon\rightarrow 0} \epsilon^\epsilon = 1\), as if the exponent law argument for \( 0^0 = 1 \) was actually valid.  We see that this limit appears to be valid despite the fact that \( x^x \) can be complex valued — that is ignoring the fact that a rigorous limit argument should be valid for any path neighbourhood of \( x = 0 \) and not just along two specific (real valued) paths.

Let’s get a better idea where the imaginary component of \((-x)^{-x}\) comes from.  To do so, consider \( f(z) = z^z \) for complex values of \( z \) where \( z = r e^{i \theta} \). The logarithm of such a beast is

\begin{equation}\label{eqn:xtox:20}
\begin{aligned}
\ln z^z
&= z \ln \lr{ r e^{i\theta} } \\
&= z \ln r + i \theta z \\
&= e^{i\theta} \ln r^r + i \theta z \\
&= \lr{ \cos\theta + i \sin\theta } \ln r^r + i r \theta \lr{ \cos\theta + i \sin\theta } \\
&= \cos\theta \ln r^r – r \theta \sin\theta
+ i r \lr{ \sin\theta \ln r + \theta \cos\theta },
\end{aligned}
\end{equation}
so
\begin{equation}\label{eqn:xtox:40}
z^z =
e^{ r \lr{ \cos\theta \ln r – \theta \sin\theta}} \times
e^{i r \lr{ \sin\theta \ln r + \theta \cos\theta }}.
\end{equation}
In particular, picking the \( \theta = \pi \) branch, we have, for any \( x > 0 \)
\begin{equation}\label{eqn:xtox:60}
(-x)^{-x} = e^{-x \ln x – i x \pi } = \frac{e^{ – i x \pi }}{x^x}.
\end{equation}

Let’s get some visual appreciation for this interesting \(z^z\) beastie, first plotting it for real values of \(z\)


Manipulate[
Plot[ {Re[x^x], Im[x^x]}, {x, -r, r}
, PlotRange -> {{-r, r}, {-r^r, r^r}}
, PlotLegends -> {Re[x^x], Im[x^x]}
], {{r, 2.25}, 0.0000001, 10}]

From this display, we see that the imaginary part of \( x^x \) is zero for integer values of \( x \).  That’s easy enough to verify explicitly: \( (-1)^{-1} = -1, (-2)^{-2} = 1/4, (-3)^{-3} = -1/27, \cdots \).

The newest version of Mathematica has a few nice new complex number visualization options.  Here’s two that I found illuminating, an absolute value plot that highlights the poles and zeros, also showing some of the phase action:

Manipulate[
ComplexPlot[ x^x, {x, s (-1 – I), s (1 + I)},
PlotLegends -> Automatic, ColorFunction -> "GlobalAbs"], {{s, 4},
0.00001, 10}]

We see the branch cut nicely, the tendency to zero in the left half plane, as well as some of the phase periodicity in the regions that are in the intermediate regions between the zeros and the poles.  We can also plot just the phase, which shows its interesting periodic nature


Manipulate[
ComplexPlot[ x^x, {x, s (-1 – I), s (1 + I)},
PlotLegends -> Automatic, ColorFunction -> "CyclicArg"], {{s, 6},
0.00001, 10}]

I’d like to take the time to play with some of the other ComplexPlot ColorFunction options, which appears to be a powerful and flexible visualization tool.

4800 pages of basic physics notes for $88 USD

September 29, 2019 math and physics play , , , , , , , , , , , , , , , , , , , , , , , , , ,

Over the last 8 years I took most of the interesting 4th year undergraduate physics courses, and some graduate physics and engineering courses.

Well, my notes for much of that work are now available on amazon.com (or .ca), or for free as PDF.  For the bargain price of $88, leveraging the time and money that I spent, you can get very comprehensive paperback notes for these subjects.  These notes aren’t textbook quality, but generally contain detailed expositions of the subjects and many worked problems.

Here’s what’s available:

Title Professor Year of study Format Price (USD) Pages
Quantum Mechanics I: Notes and problems for UofT PHY356 2010 Prof. Vatche Deyirmenjian Fall 2010 PDF $0.00 263
Quantum Mechanics II: Notes and problems for UofT PHY456 2011 Prof. John E. Sipe Fall 2011 PDF $0.00 320
Relativistic Electrodynamics: Notes and problems from 2011 PHY450H1S Prof. Erich Poppitz Winter  2011 Black and white $11.00 387
Classical Mechanics Prof. Erich Poppitz, + self-study Winter 2012 PDF $0.00 475
Advanced Classical Optics: Notes and problems from UofT PHY485H1F 2012 Prof. Joseph H. Thywissen Fall 2012 Black and white $11.00 382
Continuum Mechanics: Notes and problems from UofT PHY454H1S 2012 Prof. Kausik S. Das Winter 2012 Black and white $10.00 358
Basic Statistical Mechanics: Notes and problems from 2013 UofT PHY452H1S Prof. Arun Paramekanti Winter 2013 Black and white $11.00 399
Condensed Matter Physics: Notes and problems from UofT PHY487H1F 2013 Prof. Stephen Julian Fall 2013 Black and white $10.00 329
Modelling of Multiphysics Systems.  Notes and problems for UofT ECE1254 Prof. Piero Triverio Fall 2014 PDF $0.00 300
Graduate Quantum Mechanics: Notes and problems from 2015 UofT PHY1520H Prof. Arun Paramekanti Winter 2015 Black and white $12.00 435
Antenna Theory: Notes and problems for UofT ECE1229 Prof G. V. Eleftheriades Winter 2015 PDF $0.00 207
Electromagnetic Theory: Notes and problems for UofT ECE1228 Prof. M. Mojahedi Fall 2016 PDF $0.00 256
Geometric Algebra for Electrical Engineers: Multivector electromagnetism self-study 2016,2017 Colour $40.00 280
Geometric Algebra for Electrical Engineers: Multivector electromagnetism self-study 2016,2017 Black and white $12.00 280
Quantum Field Theory I: Notes and problems from UofT PHY2403 2018 Prof. Erich Poppitz Fall 2018 Black and white $11.00 423

 

That’s 4814 pages of notes for 0-$USD 88, depending on whether you want a PDF or paper copy (if available).  My cost per page is about $4.7 CAD, factoring in total tuition costs of ~$23000 CAD (most of which was for my M.Eng), but does not factor in the opportunity cost associated with the 20% paycut (w/ a switch to 80% hours) that I also took to find the time to fit in the study.

If you compare my cost of $4.7/page for these notes to FREE – $0.024/page, then I think you would agree that my offering is a pretty good deal!  While I have built in a $1 (+/- $0.50) royalty for the book formats, the chances of me recovering my costs are infinitesimal.

A few of the courses and/or collections of notes are not worth the effort of making print ready copies, and those notes are available only in PDF form.  An exception are my notes for Multiphyiscs Modelling, which was an excellent course, and I have excellent notes for, but I’ve been asked not to make those notes available for purchase in any form (even w/ $0 royalty.)

 

Continuum mechanics notes now in book format at amazon.com

September 26, 2019 math and physics play , , , , , ,

My notes from the 2012 UofT session of phy454, Continuum mechanics (aka fluid mechanics), are now available in book form on amazon.com for $10 (black and white, softcover, 6×9″ format, 358 pages), as well as in PDF and latex formats as before.

I took that course as a non-degree student.  It was taught by Prof. Kausik S. Das, and had the official course description:

The theory of continuous matter, including solid and fluid mechanics. Topics include the continuum approximation, dimensional analysis, stress, strain, the Euler and Navier-Stokes equations, vorticity, waves, instabilities, convection and turbulence.

It was really only about fluid dynamics. Anything related to solids was really just to introduce the stress and strain tensors as lead up to expressing the Navier-Stokes equation. There was nothing in this course about beam deformation, Euler stability, or similar topics that one might have expected from the course description.

If you download the free PDF, compile the latex version, or buy a paper copy and feel undercharged, feel free to send some bitcoin my way.

Graduate Quantum Mechanics notes now available on paper from amazon

June 11, 2019 phy1520 ,

My notes for “Graduate Quantum Mechanics” (PHY1520H) taught by Prof. Arun Paramekanti, fall 2015. (435 pages), are now available on paper (black and white) through kindle-direct-publishing for $12 USD.

This book is dedicated to my siblings.

Kindle-direct-publishing is a print on demand service, and allows me to make the notes available for pretty close to cost (in this case, about $6 printing cost, $5 to amazon, and about $1 to me as a token royalty).  The notes are still available for free in PDF form, and the latex sources are also available should somebody feel motivated enough to submit a merge request with corrections or enhancements.

This grad quantum course was especially fun.  When I took this class, I had enjoyed the chance to revisit the subject.  Of my three round match against QM, I came out much less bloody this time than the first two rounds.

These notes are no longer redacted and include whatever portions of the problem I completed, errors and all.  In the event that any of the problem sets are recycled for future iterations of the course, students who are taking the course (all mature grad students pursuing science for the love of it, not for grades) are expected to act responsibly, and produce their own solutions, within the constraints provided by the professor.

Changelog:

phy1520.V0.1.9-3 (June 10, 2019)

  • First version posted to kindle-direct successfully.
  • Lots of 6×9 formatting fixes made.
  • Add commas and periods to equations.
  • Remove blank lines that cause additional undesired indenting (implied latex \par’s).

Notes for Quantum Field Theory I (phy2403) now available in paper on amazon

May 2, 2019 phy2403 , ,

My notes (423 pages, 6″x9″) from the fall 2018 session of the University of Toronto Quantum Field Theory I course (PHY2403), taught by Prof. Erich Poppitz, are now available on amazon.com (through kindle-direct-publishing, formerly createspace).

These notes are available in three forms, two free, and one paper:

  • On amazon (kindle-direct-publishing) for $11 USD,
  • As a free PDF,
  • As latex sources (, makefiles, figures, …) to build/modify yourself.

This book is dedicated to dad.

Warning to students

These notes are no longer redacted and include whatever portions of the problem set 1-4 solutions I completed, errors and all.  In the event that any of the problem sets are recycled for future iterations of the course, students who are taking the course (all mature grad students pursuing science for the love of it, not for grades) are expected to act responsibly, and produce their own solutions, within the constraints provided by the professor.

Topics

The official course outline included:

  1. Introduction: Energy and distance scales; units and conventions. Uncertainty relations in the relativistic domain and the need for multiple particle description.
  2. Canonical quantization. Free scalar field theory.
  3. Symmetries and conservation laws.
  4. Interacting fields: Feynman diagrams and the S matrix; decay widths and phase space.
  5. Spin 1/2 fields: Spinor representations, Dirac and Weyl spinors, Dirac equation. Quantizing fermi fields and statistics.
  6. Vector fields and Quantum electrodynamics.