



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




- LATEX - May 4, In physics, we frequently encounter complicated mathematical expressions that need to be typeset. Typesetting mathematical expression in LATEX is simple in principle but does require some practice. In fact, one may say that the soul of LATEX is mathematics. Let’s start our systematic learning of LATEX mathematics. Carefully read Section 7.2 of [1]. You may wish to take notes and/or photocopy some pages. It’s of paramount importance that you read Section 7.2 of [1].
Do Exercise 7.2 on pages 125-126 of [1]. Hint: \mathrm{i} is used to denote
Save your TEX file as username3.tex, where username is your username.
Do Exercise 7.4 on page 126 of [1].
Save your TEX file as username3.tex, where username is your username.
Do Exercise 7.5 on page 126 of [1]. Hint: \mathrm{d}x is used for dx.
Save your TEX file as username3.tex, where username is your username.
Carefully read Section 7.3 of [1]. You may wish to take notes and/or photocopy some pages. It’s of paramount importance that you read Section 7.3 of [1].
Typeset (^) Exercise 7.6 on page 131 of [1].
Save your TEX file as username3.tex, where username is your username.
Typeset Exercise 7.7 on page 131 of [1]. Hint: Do this exercise in small chunks i.e., don’t try to typeset the whole thing at once.
Save your TEX file as username3.tex, where username is your username.
Read Section 7.4.7 of [1] and then do Exercise 7.17 on page 142 of [1].
Save your TEX file as username3.tex, where username is your username.
Bold symbols in LATEX are achieved via \boldsymbol{ } command, e.g., \boldsymbol{\Theta} produces Θ.^1 Typeset the following paying close attention to the “boldness” of the symbols.
Output
∂t
Save your TEX file as username3.tex, where username is your username.
Typeset the following:
Output
Ex(r) = e−ik·rˆı
Hints: \mathrm{e} is used if ‘e’ denotes the exp function. To produce ‘i’ or ’j’ without the dot use \imath and \jmath, respectively.
Save your TEX file as username3.tex, where username is your username.
There is a whole slew of multiline environments provided by the amsmath package, e.g., align, gather, falign, multline, alignat, split. We won’t use most of them but in- terested reader should read Section 15.2.6 of [1]. The one “multiline environment” that we will use is the cases environment. The cases environment is used to typeset piecewise defined functions, for example:
(^1) According to the International Standards Organization (ISO), vectors should be written in boldface ital-
ics. This rule is almost always violated in physics (don’t ask why) by typesetting vectors in bold upright font. If you want to continue to violate the ISO rule use mathbf instead of boldsymbol, e.g., E instead of E.
Input
[ H(x) = % \begin{cases} 0 & \text{if } x \leq 0 \ 1 & \text{if } x > 0 \end{cases} ]
Output
H(x) =
0 if x ≤ 0 1 if x > 0
Notice the strategic placement of the ‘&’ character. The new line in the cases environment is started via \. Below is another example of the cases environment.
Input
\begin{equation} H(x) = % \begin{cases} 0 & \text{if } x<0 \ \frac{1}{2} & \text{if } x=0 \ 1 & \text{if } x> \end{cases} \label{stepFunc} \end{equation}
Output
H(x) =
0 if x < 0 1 2 if^ x^ = 0 1 if x > 0
Eqn. (1) is known as Heaviside step function.
Typeset the following:
Output
Derivative of
H(x) =
0 if x < 0 1 if x > 0 is given by
δ(x) =
0 if x 6 = 0 ∞ if x = 0
where δ(x) is the Dirac delta function. Strictly speaking, relation defined by (2) is not a function but rather a generalized function or a distribution.
Save your TEX file as username3.tex, where username is your username.
Carefully read Section 15.2.4 of [1] and then do the following exercises.
Typeset the following matrix:
Output
∥ ∥ ∥ ∥ ∥ ∥ ∥ ∥ ∥ 〈x 1 | x 1 〉 〈x 1 | x 2 〉 〈x 1 | x 3 〉 〈x 1 | x 4 〉 〈x 2 | x 1 〉................. 〈x 2 | x 4 〉 .. .
〈x 4 | x 1 〉 〈x 4 | x 2 〉 〈x 4 | x 3 〉 〈x 4 | x 4 〉
Save your TEX file as username3.tex, where username is your username.
Print out your username1.pdf, username2.pdf, username3.pdf files and turn them in for grading. Also, copy username1.tex, username2.tex, username3.tex files into /Net/voodoo/home/ayuffa/FieldSession/ directory.
[1] Helmut Kopka and Patrick W. Daly, Guide to LATEX, 4th edn (Addison-Wesley, 2004).