SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
Basics Typesetting Math rich tables

Typesetting Mathematics in LaTeX
Getting your hands dirty

Suddhasheel Ghosh
1 Department of Civil Engineering
MGM’s Jawaharlal Nehru Engineering College,
Aurangabad, MH
2 MGM

- Institute of Biosciences and Technology
Aurangabad, MH

The LaTeX workshop

shudh

Mathematics
Basics Typesetting Math rich tables

Outline

1

Preliminary commands

2

Inline and display math
Setting up equations
Step-wise functions or case based functions
Matrices and determinants

3

Math rich tables

shudh

Mathematics
Basics Typesetting Math rich tables

Outline

1

Preliminary commands

2

Inline and display math
Setting up equations
Step-wise functions or case based functions
Matrices and determinants

3

Math rich tables

shudh

Mathematics
Basics Typesetting Math rich tables

Preamble settings
Necessary requirement for typesetting math

In the preamble, set the following
usepackage{amssymb, amsmath}

shudh

Mathematics
Basics Typesetting Math rich tables

Basic commands
It is necessary to enclose all math by the $ sign.
n

$sum_{i=1}^n
a_n x^n = 0$

an xn = 0
i=1
n

$prod_{i=1}^n
a_n x^n = 1$

an xn = 1
i=1

$int x^n dx =
frac{x^{n+1}}{n+1}$

xn dx =
∞

xn dx =

$int_0^infty x^n dx =
frac{1}{n+1} left[
x^{n+1}right]_0^infty$

0

shudh

1
xn+1
n+1
4
2

${4}choose{2}$
Mathematics

xn+1
n+1
∞
0
Basics Typesetting Math rich tables

Our greeky friends
The small ones:
alpha, beta, gamma, dots, chi, pi, phi, psi, xi
provide:
α, β, γ, . . . , χ, π, φ, ψ, ξ
On the other hand, the capital ones:
A, B, gamma, dots, X, pi, phi, psi, xi
provide:
A, B, Γ, . . . , X, Π, Φ, Ψ, Ξ

shudh

Mathematics
Basics Typesetting Math rich tables

Our wonderful roots
The Euclidean distance between two points $mathbf{p}
(x_1, y_1)$ and $mathbf{q}(x_2,y_2)$ is given by:
$$ d(mathbf{p}, mathbf{q}) = sqrt{(x_1-x_2)^2
+ (y_1 - y_2)^2}$$
and the Minkowski’s distance with the $p$-norm is given as
$$d_p(mathbf{p}, mathbf{q}) = sqrt[p]{vert x_1-x_2
vert ^p + vert y_1 - y_2 vert ^p}$$
produces:
The Euclidean distance between two points p(x1 , y1 ) and
q(x2 , y2 ) is given by:
d(p, q) =

(x1 − x2 )2 + (y1 − y2 )2

and the Minkowski’s distance with the p-norm is given as
dp (p, q) =

p

|x1 − x2 |p + |y1 − y2 |p
shudh

Mathematics
Basics Typesetting Math rich tables

Symbols we love
±
∀
⊃
≤
≥
∼
≡
∩
×
→
←
¯
x

pm
forall
supset
le
ge
sim
nsim
equiv
cap
times
ll
rightarrow
leftarrow
bar{x}

∈
⊂

≈

∪
÷
⇒
⇐
x

mp
in
subset
nleq
ngeq
approx
napprox
nequiv
cup
div
gg
Rightarrow
Leftarrow
vec{x}

All symbols require math mode. The math expressions must
be surrounded by the $ sign on both sides.
shudh

Mathematics
Basics Typesetting Math rich tables

That’s the limit !

$lim_{x rightarrow 5} frac{x^2 - 25}{x - 5} = 10$
produces:
x2 − 25
= 10
x→5 x − 5
lim

shudh

Mathematics
Basics Typesetting Math rich tables

Equations Cases Matrices and determinants

Outline

1

Preliminary commands

2

Inline and display math
Setting up equations
Step-wise functions or case based functions
Matrices and determinants

3

Math rich tables

shudh

Mathematics
Basics Typesetting Math rich tables

Equations Cases Matrices and determinants

Typesetting math
Inline and display modes

The equation of a straight line is given by $y = m x + c$, where $m$
denotes the slope, and $c$ denotes the $y$-intercept.
produces:
The equation of a straight line is given by y = mx + c, where m
denotes the slope, and c denotes the y-intercept.
The Fourier transform of a function $f:mathbb{R}rightarrow
mathbb{C}$ is given by:
$$
hat f(xi) = int_{-infty}^{infty} f(x) e^{-2pi i x xi} dx
$$
produces:
The Fourier transform of a function f : R → C is given by:
∞

ˆ
f (ξ) =

f (x)e−2πixξ dx
−∞
shudh

Mathematics
Basics Typesetting Math rich tables

Equations Cases Matrices and determinants

Typesetting math
Equations

begin{equation}
sum_{i=0}^n a_i cos theta + b_i sin theta
= mathcal{F}
end{equation}
n

ai cos θ + bi sin θ = F
i=0

shudh

Mathematics

(1)
Basics Typesetting Math rich tables

Equations Cases Matrices and determinants

Typesetting math
Piecewise functions or case based functions

$$
f(x) =
begin{cases}
0 & xinmathbb{Q} 
1 & xinmathbb{I}
end{cases}
$$


0


f (x) = 
1


shudh

Mathematics

x∈Q
x∈I
Basics Typesetting Math rich tables

Equations Cases Matrices and determinants

Typesetting math
Matrices

$$
begin{bmatrix}
1 &2 &3 &4 
6 &7 &9 &10 
5 &6 &3 &1 
4 &2 &8 &2
end{bmatrix}
begin{bmatrix}
x  y  z  t
end{bmatrix}
=
begin{bmatrix}
4  5  5  2
end{bmatrix}
$$


1


6



5




4

shudh

Mathematics

2
7
6
2

   
3 4  x 4
   
   
   
9 10 y 5
  =  
   
   
3 1  z 5
   
   
   
8 2 t
2
Basics Typesetting Math rich tables

Equations Cases Matrices and determinants

Typesetting math
Determinants

$$
begin{vmatrix}
1 & 2 & 3 
4 & 5 & 6 
7 & 8 & 9
end{vmatrix}
= 0
$$

1 2 3
4 5 6 =0
7 8 9

shudh

Mathematics
Basics Typesetting Math rich tables

Outline

1

Preliminary commands

2

Inline and display math
Setting up equations
Step-wise functions or case based functions
Matrices and determinants

3

Math rich tables

shudh

Mathematics
Basics Typesetting Math rich tables

Tables with mathematical expressions
begin{table}
begin{tabular}{|c|l|c|l|}
hline
S. No. &Type &Degree
&Expression 
hline
S. No.
1 & Algebraic & 1 & $x$ 
1
hline
2
2 &Algebraic &2
3
&$x^2 + x + 1$ 
hline
3 &Algebraic &3
&$x^3 + x^2 + x + 1$ 
hline
end{tabular}
end{table}
shudh

Type
Algebraic
Algebraic
Algebraic

Mathematics

Degree
1
2
3

Expression
x
x2 + x + 1
x3 + x2 + x + 1

Contenu connexe

Tendances

linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian eliminationAju Thadikulangara
 
My Lecture Notes from Linear Algebra
My Lecture Notes fromLinear AlgebraMy Lecture Notes fromLinear Algebra
My Lecture Notes from Linear AlgebraPaul R. Martin
 
Introduction to regular expressions
Introduction to regular expressionsIntroduction to regular expressions
Introduction to regular expressionsBen Brumfield
 
Instance based learning
Instance based learningInstance based learning
Instance based learningSlideshare
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsDanish Javed
 
Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Suddhasheel GHOSH, PhD
 
The principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariThe principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariDeogiri College Student
 
Tree in Graph Theory in Discrete structure
Tree in Graph Theory in Discrete structure  Tree in Graph Theory in Discrete structure
Tree in Graph Theory in Discrete structure Rabin BK
 
04 brute force
04 brute force04 brute force
04 brute forceHira Gul
 
LaTeX Introduction for Word Users
LaTeX Introduction for Word UsersLaTeX Introduction for Word Users
LaTeX Introduction for Word UsersGuy K. Kloss
 
Probabilistic logic
Probabilistic logicProbabilistic logic
Probabilistic logicRushdi Shams
 
TOC 1 | Introduction to Theory of Computation
TOC 1 | Introduction to Theory of ComputationTOC 1 | Introduction to Theory of Computation
TOC 1 | Introduction to Theory of ComputationMohammad Imam Hossain
 
Hashing In Data Structure
Hashing In Data Structure Hashing In Data Structure
Hashing In Data Structure Meghaj Mallick
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureRai University
 
Regular Expressions 101
Regular Expressions 101Regular Expressions 101
Regular Expressions 101Raj Rajandran
 

Tendances (20)

linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
 
My Lecture Notes from Linear Algebra
My Lecture Notes fromLinear AlgebraMy Lecture Notes fromLinear Algebra
My Lecture Notes from Linear Algebra
 
Introduction to regular expressions
Introduction to regular expressionsIntroduction to regular expressions
Introduction to regular expressions
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
 
DAA 18CS42 VTU CSE
DAA 18CS42 VTU CSEDAA 18CS42 VTU CSE
DAA 18CS42 VTU CSE
 
Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1
 
The principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariThe principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvari
 
Hashing data
Hashing dataHashing data
Hashing data
 
Tree in Graph Theory in Discrete structure
Tree in Graph Theory in Discrete structure  Tree in Graph Theory in Discrete structure
Tree in Graph Theory in Discrete structure
 
04 brute force
04 brute force04 brute force
04 brute force
 
LaTeX Introduction for Word Users
LaTeX Introduction for Word UsersLaTeX Introduction for Word Users
LaTeX Introduction for Word Users
 
String matching algorithm
String matching algorithmString matching algorithm
String matching algorithm
 
Probabilistic logic
Probabilistic logicProbabilistic logic
Probabilistic logic
 
Ridge regression
Ridge regressionRidge regression
Ridge regression
 
TOC 1 | Introduction to Theory of Computation
TOC 1 | Introduction to Theory of ComputationTOC 1 | Introduction to Theory of Computation
TOC 1 | Introduction to Theory of Computation
 
Hashing In Data Structure
Hashing In Data Structure Hashing In Data Structure
Hashing In Data Structure
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structure
 
Regular Expressions 101
Regular Expressions 101Regular Expressions 101
Regular Expressions 101
 

En vedette

Kosmiczny Python
Kosmiczny PythonKosmiczny Python
Kosmiczny PythonSTX Next
 
Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4Suddhasheel GHOSH, PhD
 
Typesetting Theses / Reports with LaTeX : Workshop Day 3
Typesetting Theses / Reports with LaTeX : Workshop Day 3Typesetting Theses / Reports with LaTeX : Workshop Day 3
Typesetting Theses / Reports with LaTeX : Workshop Day 3Suddhasheel GHOSH, PhD
 
The LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: InvocationThe LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: InvocationSuddhasheel GHOSH, PhD
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Suddhasheel GHOSH, PhD
 
How to Create a Slideshare Account
How to Create a Slideshare AccountHow to Create a Slideshare Account
How to Create a Slideshare AccountAna Villarmente
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filtersop205
 

En vedette (9)

Kosmiczny Python
Kosmiczny PythonKosmiczny Python
Kosmiczny Python
 
Latex slides
Latex slidesLatex slides
Latex slides
 
45324291 a-good-ph d-student
45324291 a-good-ph d-student45324291 a-good-ph d-student
45324291 a-good-ph d-student
 
Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4
 
Typesetting Theses / Reports with LaTeX : Workshop Day 3
Typesetting Theses / Reports with LaTeX : Workshop Day 3Typesetting Theses / Reports with LaTeX : Workshop Day 3
Typesetting Theses / Reports with LaTeX : Workshop Day 3
 
The LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: InvocationThe LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: Invocation
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
 
How to Create a Slideshare Account
How to Create a Slideshare AccountHow to Create a Slideshare Account
How to Create a Slideshare Account
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filters
 

Similaire à The LaTeX Workshop: Typesetting Mathematics with LaTeX

Higher Maths 2.1.2 - Quadratic Functions
Higher Maths 2.1.2 - Quadratic FunctionsHigher Maths 2.1.2 - Quadratic Functions
Higher Maths 2.1.2 - Quadratic Functionstimschmitz
 
Honor's portfolio graphic organizer
Honor's portfolio graphic organizerHonor's portfolio graphic organizer
Honor's portfolio graphic organizerbbwilks
 
Lesson 11: Functions and Function Notation
Lesson 11: Functions and Function NotationLesson 11: Functions and Function Notation
Lesson 11: Functions and Function NotationKevin Johnson
 
Lesson 21: More Algebra
Lesson 21: More AlgebraLesson 21: More Algebra
Lesson 21: More AlgebraKevin Johnson
 
Algebra Project Period 4
Algebra Project Period 4Algebra Project Period 4
Algebra Project Period 4ingroy
 
Linear equations inequalities and applications
Linear equations inequalities and applicationsLinear equations inequalities and applications
Linear equations inequalities and applicationsvineeta yadav
 
Evaluating algebraic expression
Evaluating algebraic expressionEvaluating algebraic expression
Evaluating algebraic expressionMarites Ablay
 
maths_formula_sheet.pdf
maths_formula_sheet.pdfmaths_formula_sheet.pdf
maths_formula_sheet.pdfVanhoaTran2
 
De la grafica a la funcion
De la grafica a la funcionDe la grafica a la funcion
De la grafica a la funcionAna Faraco
 
2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptxsaadhaq6
 
Solving Quadratic Equations
Solving Quadratic EquationsSolving Quadratic Equations
Solving Quadratic EquationsCipriano De Leon
 
WEEK-4-Piecewise-Function-and-Rational-Function.pptx
WEEK-4-Piecewise-Function-and-Rational-Function.pptxWEEK-4-Piecewise-Function-and-Rational-Function.pptx
WEEK-4-Piecewise-Function-and-Rational-Function.pptxExtremelyDarkness2
 
Lesson 17: Quadratic Functions
Lesson 17: Quadratic FunctionsLesson 17: Quadratic Functions
Lesson 17: Quadratic FunctionsKevin Johnson
 
Pp smi add. maths paper 1
Pp smi add. maths paper 1Pp smi add. maths paper 1
Pp smi add. maths paper 1zabidah awang
 
Answering Techniques Ad Maths P1
Answering Techniques Ad Maths P1Answering Techniques Ad Maths P1
Answering Techniques Ad Maths P1morabisma
 
Lesson plan in mathematics 9 (illustrations of quadratic equations)
Lesson plan in mathematics 9 (illustrations of quadratic equations)Lesson plan in mathematics 9 (illustrations of quadratic equations)
Lesson plan in mathematics 9 (illustrations of quadratic equations)Decena15
 

Similaire à The LaTeX Workshop: Typesetting Mathematics with LaTeX (20)

Higher Maths 2.1.2 - Quadratic Functions
Higher Maths 2.1.2 - Quadratic FunctionsHigher Maths 2.1.2 - Quadratic Functions
Higher Maths 2.1.2 - Quadratic Functions
 
Honor's portfolio graphic organizer
Honor's portfolio graphic organizerHonor's portfolio graphic organizer
Honor's portfolio graphic organizer
 
Lesson 11: Functions and Function Notation
Lesson 11: Functions and Function NotationLesson 11: Functions and Function Notation
Lesson 11: Functions and Function Notation
 
0010 chapter iii
0010 chapter iii0010 chapter iii
0010 chapter iii
 
Lesson 21: More Algebra
Lesson 21: More AlgebraLesson 21: More Algebra
Lesson 21: More Algebra
 
Algebra Project Period 4
Algebra Project Period 4Algebra Project Period 4
Algebra Project Period 4
 
Tool mathematics l4
Tool mathematics l4Tool mathematics l4
Tool mathematics l4
 
Linear equations inequalities and applications
Linear equations inequalities and applicationsLinear equations inequalities and applications
Linear equations inequalities and applications
 
Evaluating algebraic expression
Evaluating algebraic expressionEvaluating algebraic expression
Evaluating algebraic expression
 
maths_formula_sheet.pdf
maths_formula_sheet.pdfmaths_formula_sheet.pdf
maths_formula_sheet.pdf
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
P1-Chp2-Quadratics.pptx
P1-Chp2-Quadratics.pptxP1-Chp2-Quadratics.pptx
P1-Chp2-Quadratics.pptx
 
De la grafica a la funcion
De la grafica a la funcionDe la grafica a la funcion
De la grafica a la funcion
 
2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx
 
Solving Quadratic Equations
Solving Quadratic EquationsSolving Quadratic Equations
Solving Quadratic Equations
 
WEEK-4-Piecewise-Function-and-Rational-Function.pptx
WEEK-4-Piecewise-Function-and-Rational-Function.pptxWEEK-4-Piecewise-Function-and-Rational-Function.pptx
WEEK-4-Piecewise-Function-and-Rational-Function.pptx
 
Lesson 17: Quadratic Functions
Lesson 17: Quadratic FunctionsLesson 17: Quadratic Functions
Lesson 17: Quadratic Functions
 
Pp smi add. maths paper 1
Pp smi add. maths paper 1Pp smi add. maths paper 1
Pp smi add. maths paper 1
 
Answering Techniques Ad Maths P1
Answering Techniques Ad Maths P1Answering Techniques Ad Maths P1
Answering Techniques Ad Maths P1
 
Lesson plan in mathematics 9 (illustrations of quadratic equations)
Lesson plan in mathematics 9 (illustrations of quadratic equations)Lesson plan in mathematics 9 (illustrations of quadratic equations)
Lesson plan in mathematics 9 (illustrations of quadratic equations)
 

Plus de Suddhasheel GHOSH, PhD

FEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's MethodFEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's MethodSuddhasheel GHOSH, PhD
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSuddhasheel GHOSH, PhD
 
Research Prospects with Geoinformatics
Research Prospects with GeoinformaticsResearch Prospects with Geoinformatics
Research Prospects with GeoinformaticsSuddhasheel GHOSH, PhD
 
Expert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, KanpurExpert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, KanpurSuddhasheel GHOSH, PhD
 

Plus de Suddhasheel GHOSH, PhD (7)

FEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's MethodFEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's Method
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares Method
 
Map Calculaton using GRASS
Map Calculaton using GRASSMap Calculaton using GRASS
Map Calculaton using GRASS
 
Watershed Analysis with GRASS
Watershed Analysis with GRASSWatershed Analysis with GRASS
Watershed Analysis with GRASS
 
Research Prospects with Geoinformatics
Research Prospects with GeoinformaticsResearch Prospects with Geoinformatics
Research Prospects with Geoinformatics
 
Prepare your literature review
Prepare your literature reviewPrepare your literature review
Prepare your literature review
 
Expert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, KanpurExpert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, Kanpur
 

Dernier

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 

Dernier (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 

The LaTeX Workshop: Typesetting Mathematics with LaTeX

  • 1. Basics Typesetting Math rich tables Typesetting Mathematics in LaTeX Getting your hands dirty Suddhasheel Ghosh 1 Department of Civil Engineering MGM’s Jawaharlal Nehru Engineering College, Aurangabad, MH 2 MGM - Institute of Biosciences and Technology Aurangabad, MH The LaTeX workshop shudh Mathematics
  • 2. Basics Typesetting Math rich tables Outline 1 Preliminary commands 2 Inline and display math Setting up equations Step-wise functions or case based functions Matrices and determinants 3 Math rich tables shudh Mathematics
  • 3. Basics Typesetting Math rich tables Outline 1 Preliminary commands 2 Inline and display math Setting up equations Step-wise functions or case based functions Matrices and determinants 3 Math rich tables shudh Mathematics
  • 4. Basics Typesetting Math rich tables Preamble settings Necessary requirement for typesetting math In the preamble, set the following usepackage{amssymb, amsmath} shudh Mathematics
  • 5. Basics Typesetting Math rich tables Basic commands It is necessary to enclose all math by the $ sign. n $sum_{i=1}^n a_n x^n = 0$ an xn = 0 i=1 n $prod_{i=1}^n a_n x^n = 1$ an xn = 1 i=1 $int x^n dx = frac{x^{n+1}}{n+1}$ xn dx = ∞ xn dx = $int_0^infty x^n dx = frac{1}{n+1} left[ x^{n+1}right]_0^infty$ 0 shudh 1 xn+1 n+1 4 2 ${4}choose{2}$ Mathematics xn+1 n+1 ∞ 0
  • 6. Basics Typesetting Math rich tables Our greeky friends The small ones: alpha, beta, gamma, dots, chi, pi, phi, psi, xi provide: α, β, γ, . . . , χ, π, φ, ψ, ξ On the other hand, the capital ones: A, B, gamma, dots, X, pi, phi, psi, xi provide: A, B, Γ, . . . , X, Π, Φ, Ψ, Ξ shudh Mathematics
  • 7. Basics Typesetting Math rich tables Our wonderful roots The Euclidean distance between two points $mathbf{p} (x_1, y_1)$ and $mathbf{q}(x_2,y_2)$ is given by: $$ d(mathbf{p}, mathbf{q}) = sqrt{(x_1-x_2)^2 + (y_1 - y_2)^2}$$ and the Minkowski’s distance with the $p$-norm is given as $$d_p(mathbf{p}, mathbf{q}) = sqrt[p]{vert x_1-x_2 vert ^p + vert y_1 - y_2 vert ^p}$$ produces: The Euclidean distance between two points p(x1 , y1 ) and q(x2 , y2 ) is given by: d(p, q) = (x1 − x2 )2 + (y1 − y2 )2 and the Minkowski’s distance with the p-norm is given as dp (p, q) = p |x1 − x2 |p + |y1 − y2 |p shudh Mathematics
  • 8. Basics Typesetting Math rich tables Symbols we love ± ∀ ⊃ ≤ ≥ ∼ ≡ ∩ × → ← ¯ x pm forall supset le ge sim nsim equiv cap times ll rightarrow leftarrow bar{x} ∈ ⊂ ≈ ∪ ÷ ⇒ ⇐ x mp in subset nleq ngeq approx napprox nequiv cup div gg Rightarrow Leftarrow vec{x} All symbols require math mode. The math expressions must be surrounded by the $ sign on both sides. shudh Mathematics
  • 9. Basics Typesetting Math rich tables That’s the limit ! $lim_{x rightarrow 5} frac{x^2 - 25}{x - 5} = 10$ produces: x2 − 25 = 10 x→5 x − 5 lim shudh Mathematics
  • 10. Basics Typesetting Math rich tables Equations Cases Matrices and determinants Outline 1 Preliminary commands 2 Inline and display math Setting up equations Step-wise functions or case based functions Matrices and determinants 3 Math rich tables shudh Mathematics
  • 11. Basics Typesetting Math rich tables Equations Cases Matrices and determinants Typesetting math Inline and display modes The equation of a straight line is given by $y = m x + c$, where $m$ denotes the slope, and $c$ denotes the $y$-intercept. produces: The equation of a straight line is given by y = mx + c, where m denotes the slope, and c denotes the y-intercept. The Fourier transform of a function $f:mathbb{R}rightarrow mathbb{C}$ is given by: $$ hat f(xi) = int_{-infty}^{infty} f(x) e^{-2pi i x xi} dx $$ produces: The Fourier transform of a function f : R → C is given by: ∞ ˆ f (ξ) = f (x)e−2πixξ dx −∞ shudh Mathematics
  • 12. Basics Typesetting Math rich tables Equations Cases Matrices and determinants Typesetting math Equations begin{equation} sum_{i=0}^n a_i cos theta + b_i sin theta = mathcal{F} end{equation} n ai cos θ + bi sin θ = F i=0 shudh Mathematics (1)
  • 13. Basics Typesetting Math rich tables Equations Cases Matrices and determinants Typesetting math Piecewise functions or case based functions $$ f(x) = begin{cases} 0 & xinmathbb{Q} 1 & xinmathbb{I} end{cases} $$  0   f (x) =  1  shudh Mathematics x∈Q x∈I
  • 14. Basics Typesetting Math rich tables Equations Cases Matrices and determinants Typesetting math Matrices $$ begin{bmatrix} 1 &2 &3 &4 6 &7 &9 &10 5 &6 &3 &1 4 &2 &8 &2 end{bmatrix} begin{bmatrix} x y z t end{bmatrix} = begin{bmatrix} 4 5 5 2 end{bmatrix} $$  1   6    5     4 shudh Mathematics 2 7 6 2     3 4  x 4             9 10 y 5   =           3 1  z 5             8 2 t 2
  • 15. Basics Typesetting Math rich tables Equations Cases Matrices and determinants Typesetting math Determinants $$ begin{vmatrix} 1 & 2 & 3 4 & 5 & 6 7 & 8 & 9 end{vmatrix} = 0 $$ 1 2 3 4 5 6 =0 7 8 9 shudh Mathematics
  • 16. Basics Typesetting Math rich tables Outline 1 Preliminary commands 2 Inline and display math Setting up equations Step-wise functions or case based functions Matrices and determinants 3 Math rich tables shudh Mathematics
  • 17. Basics Typesetting Math rich tables Tables with mathematical expressions begin{table} begin{tabular}{|c|l|c|l|} hline S. No. &Type &Degree &Expression hline S. No. 1 & Algebraic & 1 & $x$ 1 hline 2 2 &Algebraic &2 3 &$x^2 + x + 1$ hline 3 &Algebraic &3 &$x^3 + x^2 + x + 1$ hline end{tabular} end{table} shudh Type Algebraic Algebraic Algebraic Mathematics Degree 1 2 3 Expression x x2 + x + 1 x3 + x2 + x + 1