tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language [2024/09/02 14:52] – [4. Aligning Equations] kissa | tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language [2024/09/10 08:55] (current) – [5. Exercise] kissa | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Introduction to LaTeX for Mathematical Expressions ===== | ===== Introduction to LaTeX for Mathematical Expressions ===== | ||
- | The goal of the lesson is to become familiar with the TeX language, specifically for the purpose of writing mathematical expressions. | + | The goal of the lesson is to become familiar with LaTeX, specifically for the purpose of writing mathematical expressions. |
==== 1. Introduction to LaTeX ==== | ==== 1. Introduction to LaTeX ==== | ||
Line 7: | Line 7: | ||
**What is LaTeX?** | **What is LaTeX?** | ||
- | - LaTeX is a high-quality typesetting system, primarily used for technical and scientific documents. It is particularly powerful for formatting complex mathematical equations and formulas, making it a preferred choice in academia and research. | + | LaTeX is a high-quality typesetting system, primarily used for technical and scientific documents. It is particularly powerful for formatting complex mathematical equations and formulas, making it a preferred choice in academia and research. |
**What are the advantages of LaTeX?** | **What are the advantages of LaTeX?** | ||
- | | + | * **Handling Complex Documents**: |
- | | + | * **Consistent Layout**: Automatically ensures a uniform, professional design by separating content from formatting. |
- | - **Professional Quality**: Documents created | + | * **Scalability**: Suitable for large projects, allowing version control |
+ | | ||
+ | | ||
**Getting Started:** | **Getting Started:** | ||
Line 23: | Line 25: | ||
**Basic Document Structure: | **Basic Document Structure: | ||
- | < | + | < |
\documentclass{article} | \documentclass{article} | ||
\begin{document} | \begin{document} | ||
Line 33: | Line 35: | ||
- **\begin{document}** and **\end{document}**: | - **\begin{document}** and **\end{document}**: | ||
- | ---- | ||
==== 2. Writing Basic Mathematical Expressions ==== | ==== 2. Writing Basic Mathematical Expressions ==== | ||
Line 45: | Line 46: | ||
== Example == | == Example == | ||
- | < | + | < |
\documentclass{article} | \documentclass{article} | ||
\begin{document} | \begin{document} | ||
Line 69: | Line 70: | ||
== Examples == | == Examples == | ||
- | < | + | < |
\documentclass{article} | \documentclass{article} | ||
\begin{document} | \begin{document} | ||
Line 98: | Line 99: | ||
- Another common symbol is the **infinity symbol**, represented as '' | - Another common symbol is the **infinity symbol**, represented as '' | ||
- For **greater than or equal to** and **less than or equal to** symbols, use '' | - For **greater than or equal to** and **less than or equal to** symbols, use '' | ||
+ | |||
+ | === Summation === | ||
+ | |||
+ | The general form of summation in LaTeX is written using the '' | ||
+ | |||
+ | $$\sum_{i=1}^{n} i^2$$ | ||
+ | |||
+ | This expression sums the squares of integers from 1 to $n$. | ||
+ | |||
+ | === Derivative === | ||
+ | |||
+ | The derivative of a function $f(x)$ with respect to $x$ is represented in LaTeX using the '' | ||
+ | |||
+ | $$\frac{d}{dx} f(x)$$ | ||
+ | |||
+ | This gives the rate of change of $f(x)$ with respect to $x$. | ||
+ | |||
+ | === Partial Derivative === | ||
+ | |||
+ | For partial derivatives, | ||
+ | |||
+ | $$\frac{\partial}{\partial x} f(x, y)$$ | ||
+ | |||
+ | This expression gives the partial derivative of $f$ with respect to $x$, holding other variables constant. | ||
+ | |||
+ | === Partial Integration === | ||
+ | |||
+ | Partial integration, | ||
+ | |||
+ | \[ | ||
+ | \int_{a}^{b} x \sin(x) \, dx | ||
+ | \] | ||
+ | |||
+ | This represents the definite integral of $x \sin(x)$ with respect to $x$ from $a$ to $b$. | ||
+ | |||
==== 4. Aligning Equations ==== | ==== 4. Aligning Equations ==== | ||
Line 106: | Line 142: | ||
== Example == | == Example == | ||
- | < | + | < |
\documentclass{article} | \documentclass{article} | ||
\usepackage{amsmath} | \usepackage{amsmath} | ||
Line 131: | Line 167: | ||
- Example: | - Example: | ||
- | < | + | < |
\begin{equation} \label{eq: | \begin{equation} \label{eq: | ||
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} | x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} | ||
Line 142: | Line 178: | ||
==== 5. Exercise ==== | ==== 5. Exercise ==== | ||
- | Reproduce the following mathematical proof in LaTeX. Use inline and display math, as well as special symbols! Save the result in PDF format! | + | Reproduce the following mathematical proof in LaTeX. Use inline and display math, as well as basic and special symbols! Save the result in PDF format! |
{{: | {{: | ||
Line 150: | Line 186: | ||
< | < | ||
- | Proof: √2 is Irrational} | + | Proof: √2 is Irrational |
- | Assume, for contradiction, | + | Assume, for contradiction, |
Then: | Then: | ||
Line 173: | Line 209: | ||
This implies that b2 is even, so b must also be even. | This implies that b2 is even, so b must also be even. | ||
- | But if both a and b are even, they are not coprime, which contradicts our original assumption. Therefore, | + | But if both a and b are even, they are not coprime, which contradicts our original assumption. Therefore, 2 must be irrational. |
</ | </ | ||
tanszek/oktatas/techcomm/mathematical_expressions_in_tex_language.1725288721.txt.gz · Last modified: 2024/09/02 14:52 by kissa