LAT E X Math Mode. RSI 2007 Staff

Similar documents
LAT E X Math Mode. RSI 2006 Staff

1 Mathematical styles

Mathematical Notation

Pronounced Lay Tech Getting Started In LAT E X. Brian David Sittinger

Corrections and Minor Revisions of Mathematical Methods in the Physical Sciences, third edition, by Mary L. Boas (deceased)

1.0 Mathematics in This Shell

Exclusive Disjunction

Probability, distribution, density

Derivatives, Limits, Sums and Integrals

Biostatistics Student Seminar An Introduction To L A T E X

Joy Allen. March 12, 2015

Mathematical notation and writing

Math Bank - 6. What is the area of the triangle on the Argand diagram formed by the complex number z, -iz, z iz? (a) z 2 (b) 2 z 2

Table of mathematical symbols - Wikipedia, the free encyclopedia

The Title of a Standard LaTeX Report

ADVICE ON MATHEMATICAL WRITING

Math 223 Final. July 24, 2014

1. Typeset a = b c = d e = f g = b h = d k = f. m 1 m 2 r 2. e E

Calculus Volume 1 Release Notes 2018

( ) + ( ) ( ) ( ) Exercise Set 6.1: Sum and Difference Formulas. β =, π π. π π. β =, evaluate tan β. Simplify each of the following expressions.

CZECHOSLOVAK JOURNAL OF PHYSICS. Instructions for authors

L A TEX guide. Alden Gassert. November 19, 2015

Math 110 (S & E) Textbook: Calculus Early Transcendentals by James Stewart, 7 th Edition

Prelim 2 Math Please show your reasoning and all your work. This is a 90 minute exam. Calculators are not needed or permitted. Good luck!

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Chapter 4 Integration

A simple san serif article

Section 4.8 Anti Derivative and Indefinite Integrals 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus I


True or False. Circle T if the statement is always true; otherwise circle F. for all angles θ. T F. 1 sin θ

SECTION 3.6: CHAIN RULE

LESSON 1 of 3 (IJMPA)

Spherical Trigonometry. CESAR s Booklet

INSTRUCTOR SAMPLE E. Check that your exam contains 25 questions numbered sequentially. Answer Questions 1-25 on your scantron.

Notation, Matrices, and Matrix Mathematics

Calculus II (Fall 2015) Practice Problems for Exam 1

Math 122 Test 3. April 17, 2018

SESSION 6 Trig. Equations and Identities. Math 30-1 R 3. (Revisit, Review and Revive)

AP Calculus BC Summer Assignment Mrs. Comeau

CHAIN RULE: DAY 2 WITH TRIG FUNCTIONS. Section 2.4A Calculus AP/Dual, Revised /30/2018 1:44 AM 2.4A: Chain Rule Day 2 1

Essex County College Division of Mathematics MTH-122 Assessments. Honor Code

6. How Functions Work and Are Accessed. Topics: Modules and Functions More on Importing Call Frames

Chapter 0. Preliminaries. 0.1 Things you should already know

Math 3320 Foundations of Mathematics

Discrete Basic Structure: Sets

1 Arithmetic calculations (calculator is not allowed)

The Title of a Sample SW Report 1

The Chain Rule. The Chain Rule. dy dy du dx du dx. For y = f (u) and u = g (x)

LIN1032 Formal Foundations for Linguistics

Math Section 4.3 Unit Circle Trigonometry

UNIT 3: DERIVATIVES STUDY GUIDE

3. Which of these numbers does not belong to the set of solutions of the inequality 4

Math 132 Exam 3 Fall 2016

Math 308 Midterm November 6, 2009

Math 250 Skills Assessment Test

A (Mostly) Correctly Formatted Sample Lab Report. Brett A. McGuire Lab Partner: Microsoft Windows Section AB2

Exercise Set 4.3: Unit Circle Trigonometry

PHYS Exercise: Typeset this by changing the default bullet symbol twice.

A Guide to Presentations in L A TEX-beamer. Trinity University

2. A die is rolled 3 times, the probability of getting a number larger than the previous number each time is

Lesson 7: Algebraic Expressions The Commutative and Associative Properties

TRIGONOMETRY REVIEW (PART 1)

Chapter 13: Integrals

1.1 The Language of Mathematics Expressions versus Sentences

REVIEW Chapter 1 The Real Number System

What is Beamer?! Introduction to Beamer Beamer is a LaTeX class for creating slides for presentations. Commands for Header and the Title Page

Quantum Mechanics for Scientists and Engineers. David Miller

Section 5.5 More Integration Formula (The Substitution Method) 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus I

Some Background Material

Find the indicated derivative. 1) Find y(4) if y = 3 sin x. A) y(4) = 3 cos x B) y(4) = 3 sin x C) y(4) = - 3 cos x D) y(4) = - 3 sin x

Limits and Continuity/Partial Derivatives

Chapter II. Metric Spaces and the Topology of C

Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals. Gary D. Simpson. rev 00 Dec 27, 2014.

1.1 Introduction to Sets

Mathematical Nomenclature

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

y mx 25m 25 4 circle. Then the perpendicular distance of tangent from the centre (0, 0) is the radius. Since tangent

UNIVERSITY OF MIAMI THE TITLE FOR MY UNIVERSITY OF MIAMI THESIS. A.U. Thor

Inverse Relations. 5 are inverses because their input and output are switched. For instance: f x x. x 5. f 4

SECTION 3.5: DIFFERENTIALS and LINEARIZATION OF FUNCTIONS

Title of the Book. A. U. Thor XYZ University

Sec. 14.3: Partial Derivatives. All of the following are ways of representing the derivative. y dx

Chapter-2 2.1)Page-28, Eq (2-9): should read (add parentheses around the terms involving the x-end-points):

1 Take-home exam and final exam study guide

Mathematics 324 Riemann Zeta Function August 5, 2005

Paper: 03 Class-X-Math: Summative Assessment - I

Math 122 Test 3. April 15, 2014

Before we talk about prime numbers, we will spend some time with divisibility because there is

Have a Safe Winter Break

Date Period In each problem, angle C is a right angle. Solve each triangle rounding answers to the nearest tenth. 12) sec 29p 6

Math Section 4.3 Unit Circle Trigonometry

DISCUSSION CLASS OF DAX IS ON 22ND MARCH, TIME : 9-12 BRING ALL YOUR DOUBTS [STRAIGHT OBJECTIVE TYPE]

The Rotating Mercury Reflector

Differentiation 2. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

Year 12 into 13 Maths Bridging Tasks

TO EARN ANY CREDIT, YOU MUST SHOW STEPS LEADING TO THE ANSWER

Math 152 Take Home Test 1

f ( c ) = lim{x->c} (f(x)-f(c))/(x-c) = lim{x->c} (1/x - 1/c)/(x-c) = lim {x->c} ( (c - x)/( c x)) / (x-c) = lim {x->c} -1/( c x) = - 1 / x 2

sin(y + z) sin y + sin z (y + z)sin23 = y sin 23 + z sin 23 [sin x][sinx] = [sinx] 2 = sin 2 x sin x 2 = sin ( x 2) = sin(x x) ...

AP Calculus BC Summer Assignment

Transcription:

LAT E X Math Mode RSI 2007 Staff

Contents Math Mode.......................................... 1 Types of Math Mode.................................... 2 Using Math Mode...................................... 3 Example........................................... 4 Typing Mathematical Expressions............................. 5 Typefaces in Math Mode.................................. 6 Super- and Subscripts.................................... 7 Nonmath Uses of Math Mode............................... 8 Variables and Symbols in Math Mode........................... 9 Assignment 1 solution................................... 10 Fractions and Roots.................................... 11 Assignment 2 solution................................... 12 Common Mathematical Functions............................. 13 Common Mathematical Symbols............................. 14 Assignment 3 solution................................... 15 Bounded Sums and Such.................................. 16 Sum, Integral, Limit Examples............................... 17 Union and Intersection Examples............................. 18 Assignment 7 Integrals, roots, exponents........................ 19 Assignment 7 solution................................... 20 Mathematical fonts..................................... 21 Assignment 8 solution................................... 22 Common Error Messages.................................. 23 Common Error Messages.................................. 24 Common Error Messages.................................. 25 Common Error Messages.................................. 26

Math Mode LAT E X has a special mode for formatting mathematical formulas. In addition to displaying complicated mathematical notations, this mode allows the use of: Subscripts and superscripts Greek letters and various special symbols Thus, math mode is also useful for some nonmathematical text: The CH 3 COOH was irradiated with α-rays while at a temperature of 350 C. 1

Types of Math Mode 1. Text math mode (\begin{math}...\end{math}): the formula appears in the middle of running text (e.g. x 2 + y 2 ). 2. Display math mode (\begin{displaymath}... \end{displaymath}): the formula is set off on its own line. sin x 0 x = π 2. A special type of this mode is equation mode (\begin{equation}... \end{equation}), in which the formula is numbered for reference purposes (1): H : I π k (GL 2n (C)), H t = ( 0 1 1 0 ) t ( 1 0 0 B ) ( 0 1 1 0 ) t (1) Long or tall formulae should ordinarily be displayed. 2

Using Math Mode There are several shorthand techniques of using math mode. For text math mode, use $... $ or \(... \). For display math mode, use $$... $$ or \[... \]. It is important to make sure that the way you end math mode matches the way you started it. For example, \begin{math} math stuff $ will not work. 3

Example For $a\in A = \O_{V,W}$, let $$\ord_v(a) = l_a(a/(a))$$ denote the length of \(A/(a)\) as an A-module: we extend this as \[\ord_v\left(\frac{a}{b}\right) = \ord_v(a) - \ord_v(b).\] Then, for \begin{math} r\in R(W_i) \end{math}, we construct the divisor \begin{displaymath} \div(r) = \sum_{\substack{v \subset W \\ \codim(v) = 1}} \ord_v(r)[v].\end{displaymath} For a A = O V,W, let ord V (a) = l A (A/(a)) denote the length of A/(a) as an A- module: we extend this as ( a ) ord V = ord V (a) ord V (b). b Then, for r R(W i ), we construct the divisor div(r) = ord V (r)[v ]. V W codim(v )=1 4

Typing Mathematical Expressions Numbers, Roman variable names, and most symbols of basic arithmetic may be typed directly: If $a + 2 = 4 + b$ and $2(3b - a) = 43$, then $b = 47/4$. If a + 2 = 4 + b and 2(3b a) = 43, then b = 47/4. Spaces are generally ignored in math mode: $abc+def$ and $a b c + d e f$ both make abc + def. 5

Typefaces in Math Mode Letters typed in math mode are set in an italic type, as is conventional for Roman variables (x, etc.). But do not use this as a quick way to italicize ordinary text! Words typed in math mode look reallyfreakin ugly (that was $really freakin ugly$). Use \emph{...} instead. For sin, cos, lim, and other notations written in upright type, use commands \sin, \cos, \lim, and so forth. 6

Super- and Subscripts To get a superscript, use ^{text}. To get a subscript, use _{text}. Both a subscript and a superscript can be placed on the same expression. To get a (prime), use repeated as many times as needed. Examples: Command Result Command Result a^{b} a b a^{b + c} a b+c a a a a a_{b} a b a_{b + c} a b+c a_{0}^{n+1} a n+1 0 a^{n+1}_{0} a n+1 0 x^{y^{z}} x yz a_{b_{c}} a bc 7

Nonmath Uses of Math Mode Subscripts and superscripts are often useful in chemical formulae and temperature values. Text CH$_{3}$COOH 180$^{\circ}$C Result CH 3 COOH 180 C $^{238}_{92}$U 238 92 U Notice that subscripts and superscripts may be attached to nothing (as in $_{3}$ in the formula for acetic acid above). 8

Variables and Symbols in Math Mode Greek letters: for lowercase, use \lettername in math mode ($\gamma$ γ). Some uppercase letters can be obtained by \Lettername ($\Gamma$ Γ). Assignment 1: Open math.tex in your examples directory, and typeset the following sentence into the body of the document. If f(ω) = ω e log ω then f (ω) = 1 e/ω and e f(ω) = Ω(1) in positive ω. 9

Assignment 1 solution If $f(\omega) = \omega - e\log\omega$ then $f (\omega) = 1 - e/\omega$ and $e^{f(\omega)} = \Omega(1)$ in positive $\omega$. If f(ω) = ω e log ω then f (ω) = 1 e/ω and e f(ω) = Ω(1) in positive ω. 10

Fractions and Roots Fraction: use \frac{numerator}{denominator} (\frac{3}{5} 3 5 ). (In text math mode, the slashed forms n/d usually look better.) Square root: use \sqrt{ } (\sqrt{3x + 5} 3x + 5). n th power root: use \sqrt[n]{ } (\sqrt[3]{x} 3 x). Assignment 2: Typeset the equation 1 1 + 3 2 + 3 4 = 3 2 1 (2) Note that it is numbered. 11

Assignment 2 solution \begin{equation} \frac{1}{1 + \sqrt[3]{2} + \sqrt[3]{4}} = \sqrt[3]{2} - 1 \end{equation} 1 1 + 3 2 + 3 4 = 3 2 1 (3) 12

Common Mathematical Functions Most common mathematical functions and operators have corresponding commands which are just names of the functions: Summation ( ), product ( ), and integral ( ) signs are given by \sum, \prod, and \int respectively. \lim, \log, \sin, \cos, \tan, \sec, \csc, \cot yield proper formatting of these common functions. Command Result \log (3x + 5) log(3x + 5) \cos (5x + x^2) cos(5x + x 2 ) \sin^{2} (4x + 7) sin 2 (4x + 7) 13

Common Mathematical Symbols Most common mathematical symbols have corresponding commands related to the symbol name or symbol appearance. Command Result Command Result \in \nabla \cap,\cup, \subset,\supset, \geq,\leq, \ldots,\cdots..., To negate = and, use \neq and \notin. Other symbols can be negated using the \not command: \not\leq, \not> >. Assignment 3: Typeset the following. If A, B Γ then (Γ A B) (Γ A B). 14

Assignment 3 solution If $A,B\subset \Gamma$ then $(\Gamma - A\cup B) \subset (\Gamma - A\cap B)$. If A, B Γ then (Γ A B) (Γ A B). 15

Bounded Sums and Such Sums, products, integrals, and the like often have written upper and lower bounds. These can be indicated using _ for the lower bound and ^ for the upper bound: \[ \sum_{i = -N}^{i = N} \sum_{j \geq 0} \frac{1}{i^2 + j^3} \] i=n i= N j 0 1 i 2 + j 3 To best display unions and intersections that are bounded, use \bigcup and \bigcap instead of \cup and \cap. 16

Sum, Integral, Limit Examples In text: \sum_{i=1}^{\infty} i^{-2} \int_{3}^{2x} y\, dy \lim_{n \to \infty} \frac{1}{n} i=1 i 2 2x 3 y dy lim n 1 n In displays: \sum_{i=1}^{\infty} i^{-2} i 2 i=1 \int_{3}^{2x} y\, dy 2x 3 y dy \lim_{n \to \infty} \frac{1}{n} 1 lim n n 17

Union and Intersection Examples In text: \bigcap_{i=0}^{\infty} U_i \bigcup_{k=3}^{n} \{1, 2, \ldots, k\} i=0 U i nk=3 {1, 2,..., k} In displays: \bigcap_{i=0}^{\infty} U_i \bigcup_{k=3}^{n} \{1, 2, \ldots, k\} n k=3 U i i=0 {1, 2,..., k} (\bigcup_i U_i) \cup (\bigcup_i V_i) ( i U i ) ( i V i ) 18

Assignment 7 Integrals, roots, exponents Typeset the following equations: lim min{x,y} x + y x 2 + y 2 = 0 (4) e x2 dx = π (5) 19

Assignment 7 solution \begin{equation} \lim_{\min\{x,y\} \to \infty} \frac{x + y}{x^2 + y^2} = 0 \end{equation} \begin{equation} \int_{-\infty}^{\infty} e^{-x^{2}}dx = \sqrt{\pi} \end{equation} lim min{x,y} x + y x 2 + y 2 = 0 (5) e x2 dx = π (6) 20

Mathematical fonts Various fonts can be used to create unique mathematical symbols: Bold \mathbf{x} x Calligraphic \mathcal{a} A Blackboard bold \mathbb{z} Z Script \mathscr{o} O Assignment 8: Typeset the following equation. R s I Note: the I is bold. 21

Assignment 8 solution \begin{displaymath} \mathbb{r}^{s} \supset \mathbf{i} \end{displaymath} R s I 22

Common Error Messages! Missing $ inserted. <inserted text> $ l.8? You have forgotten to end math mode. The line number after the l. (in this case 8 ) is the first line at which LAT E X has realized that you have forgotten to end math mode; it is usually the end of the paragraph the error is in. Common cause: Forgetting to put a \ before a %. 23

Common Error Messages! Missing $ inserted. <inserted text> $ l.6 30^ \circ? You have used a command (in this case ^) which LAT E X knows belongs only in math mode. The line number given is the location of the command in question. 24

Common Error Messages! LaTeX Error: \begin{displaymath} on input line 8 ended by \end{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help.... l.10 \end{document}? You have forgotten to end display math mode. The line number on which math mode began is listed (in this case, input line 8 ). 25

Common Error Messages! LaTeX Error: \mathbb allowed only in math mode. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help.... l.6 \mathbb {stuff}? The command in question (in this case \mathbb) is only allowed in math mode and you have tried to use it outside of math mode. 26