LaTex: Math
Inline math
using dollar sign
This formula $f(x) = x^2$ is an example.
Equation and Align Environment
Align environemnt will align equations at &.
Linebreaker is required.
Align
Align* provide line numbers
\tag for inline explanation
\documentclass{article}
\usepackage{amsmath}
\begin{align*}
1 + 2 &= 3\\
1 &= 3 - 2 \tag this line is cool
\end{align*}
\end{document}
Math Notations
y θ ( x ) = θ 0 + θ 1 x y_\theta(x)=\theta_0+\theta_1x y