# Writing LaTeX

There are many excellent introductions to writing mathematics with LaTeX, for example Introduction to LaTeX. Below is a quick and dirty example to start with.

LaTeX is the language in which most mathematics and physics documents are written. Mathematical symbols and equations are written in a special markup. For example an integral sign is inserted with \int. The best way to learn LaTeX is by example. Here is a basic LaTeX file:

\documentclass[a4paper,10pt]{article}
\usepackage{amsfonts,amsthm,amsmath,amssymb}
\title{Simple example}

\begin{document}
\maketitle

We want to solve $ax^2+bx+c$.  The solution is
$$x= \frac{-b\pm \sqrt{b^2 -4ac}}{2a}$$