SlideShare a Scribd company logo
1 of 17
Download to read offline
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

More Related Content

Viewers also liked

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 Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2Suddhasheel GHOSH, PhD
 
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
 
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
 

Viewers also liked (11)

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 Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2
 
Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1
 
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
 

Similar to 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
 

Similar to 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)
 

More from 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
 

More from 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
 

Recently uploaded

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 

Recently uploaded (20)

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 

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