TeX was orignally designed with mathematics in mind. The main package for mathematical content,
amsmath, is included in all TeX distributions. In fact, many LaTeX editors include the functionality to insert math-related content from a list, without having to worry about memorizing the code. There are, however, many other packages which are helpful as well.