Learn LaTeX in under 3 minutes!
Tags: latex, math, programming, computer
Published: 2022-05-17 18:42:43

# Learn LaTeX in under 3 minutes!

LaTeX is one of the best ways to express yourself in the world of computers with mathematical formulas. In this article you will learn the basics of LaTeX and create your own equations!

If you like this article, I would be very happy if you could give me **some claps** and **follow** me!

# The basics of LaTeX

To get started, the first thing you need is a TeX document. You can either create one on your computer with the extension `.tex`, or you can use [overleaf.com](http://overleaf.com). I recommend that you use overleaf, as I will not show you how to install TeX in this article. (As soon as I have written an article about it, it will be linked here).

Let's start writing a document now. 

To do this, we write the following:

![Untitled](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/66bccdfc-ff97-401a-be61-51a955f1dc5c/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220517%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220517T161407Z&X-Amz-Expires=86400&X-Amz-Signature=838ddc34f67ba4a6c2c6360635e83efb4d18c422f523c29c93a2938fed352293&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22&x-id=GetObject)

Today we focus only on the mathematics. Since this is my first article ever on LaTeX, I will link to another article here as soon as I have written something about "normal" documents.

But now we finally want to write something mathematical. To do this, we will write the following:

![Untitled](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/bc0d89d8-d203-4a88-8cfd-6562a4b15bc9/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220517%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220517T161538Z&X-Amz-Expires=86400&X-Amz-Signature=a361d2d6cfb7f5201da339aec18789df39071c424c8698323277fdbfb7f2b257&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22&x-id=GetObject)

Between `\begin{displaymath}` and `\end{displaymath}` we now write an equation or something else. But to be able to do that, we first have to know how to write mathematical signs. Here is a list of basic arithmetic operations: 

- Addition: + → Example: 1+1
- Subtraction: - → Example: 1-1
- Multiplication: \cdot → example: 1 \cdot 1
- Division: \div → example: 1 \div 1

Okay, now let's see what this looks like: 

![Untitled](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/e64ddeb8-4f57-4e5d-b806-c743dbe32613/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220517%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220517T161557Z&X-Amz-Expires=86400&X-Amz-Signature=4134f314d000cbb0f22b070914d8d09e66635fda83f5ffd6afe106398666506a&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22&x-id=GetObject)

That's already great, but we can't create complex equations with it yet. So let's look at some more elements:

- Square root: \sqrt{radicand} → Example: \sqrt{16}
- Root: \sqrt[root exponent]{radicand} → Example: \sqrt[3]{21}
- Fraction sign: \frac{counter}{denominator} → Example: \frac{1}{4}
- Powers: ^{power} → Example: x^{4 + a} or, if you only have one number as a power: x^2

![Untitled](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1ad4f3f9-a8f0-4891-b1fa-1c7621437ce6/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220517%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220517T161600Z&X-Amz-Expires=86400&X-Amz-Signature=39cef8ac7b9a06fbb1ac9fdb3b010604c7b6e25467719a9b006c5c0ce202e562&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22&x-id=GetObject)

# Conclusion

Great, now we have learned all the basics. More articles on LaTeX will follow, but that will be it for today. If you have a mathematical symbol in mind that I haven't covered here, I can recommend [this](https://de.wikipedia.org/wiki/Liste_mathematischer_Symbole) Wikipedia website. There you will find an implementation in LaTeX for each symbol.

If you liked this article and want to see more articles about LaTeX or programming, I recommend you to **follow** me!

Thank you for reading, **have a nice day**!