The short answer is LaTeX, but that is only part of the story.
If you are just trying to get an equation into a Word document once a month, you do not need to install anything. Open Microsoft Word, go to the Insert tab, and click Equation. That opens the built-in Equation Editor, which supports a linear input mode. You type \frac{a}{b} and press the spacebar, and it formats into a proper fraction. It works for basic algebra, some calculus notation, and Greek letters. The shortcut Alt+= opens it instantly. That covers most student needs. The real bottleneck appears when you need consistency across a longer document. I spent three months last year formatting a 140-page technical manual using Word's equation editor, and it was miserable. Every time I referenced an equation number, the formatting would occasionally collapse. I lost a full day just realigning integrals that decided to render differently on page 67 than they did on page 3. Switching to LaTeX for that project cut the remaining work down to a normal pace.
How To Type Math Equations with LaTeX
LaTeX is a typesetting system designed specifically for mathematical notation. You write commands like \int_0^\infty e^{-x^2} dx and it produces publication-quality output. The learning curve is steeper than Word's editor, but the payoff is control. There is a reason every serious math paper, thesis, and textbook in existence uses it. For actual editing, I use TeXshop on Mac or VS Code with the LaTeX Workshop extension on Windows. Both are free. The compile cycle is usually 10 to 20 seconds for a typical document. If your document is over 200 pages with hundreds of equations, expect compilation times closer to two minutes. You can check this locally without uploading anything. One thing people miss about LaTeX is the difference between inline and display math modes. Inline math uses $...$ or \(...\) and sits within a line of text. Display math uses $$...$$ or \[...\] and centers the equation on its own line. Beginners often wrap everything in $$ and wonder why the text alignment looks wrong. Use $ for equations that run inside sentences. Use \[ for standalone equations. This alone fixes most layout issues I see in first drafts.
The Unicode route exists and it is underrated.
If you cannot use LaTeX and Word's editor is not enough, Unicode math symbols fill the gap. Characters like , , , and are real characters you can paste directly. There are online tools like the Unicode Subscript and Superscript Converter that let you type standard numbers and convert them to their mathematical equivalents. This matters because search engines index plain Unicode text but cannot read images of equations. I ran into a specific problem with Unicode equations a couple years ago when I needed to embed complex fractions into a system that stripped LaTeX entirely. The fractions look fine on screen but break the moment you copy-paste them into certain databases. The workaround was to write a small Python script using the unicodedata module that validated each character before insertion, rejecting any composed character that would normalize differently on the receiving end. It added about five minutes to each equation entry but eliminated the corruption issue completely.
Get the Full Details

Tools and when to use them.
Overleaf is the most popular cloud-based LaTeX editor. It requires no installation, handles compilation server-side, and supports real-time collaboration. The free tier gives you enough storage for most personal projects. I would not recommend it for anything over 500 pages unless you are paying for a pro account, because the server compilation queue becomes a real delay during peak hours. For quick one-off equations, you can use Symbolab's equation editor or Mathpix, which lets you take a screenshot of handwritten math and converts it to LaTeX code. Mathpix has a browser extension and a desktop app. The free tier allows 100 scans per month. The conversion accuracy is roughly 95 percent for clean handwriting and drops to about 70 percent for messy notes. I use it as a starting point and then correct the output manually. If you are working in Jupyter notebooks or scientific Python workflows, SymPy renders equations inline using the same LaTeX syntax. The command init_printing() from sympy.printing.latex configures the notebook display. This is not a full document solution but it is useful when you need to show a derived formula next to the code that produced it.
Common mistakes that waste hours.
The first mistake is mixing font sizes inside equations without explicit commands. LaTeX defaults to a smaller math font, but if you accidentally activate text mode mid-equation with \text{}, the spacing breaks and the compiler throws errors that are difficult to trace. Use \mathrm{} for function names like sin and cos, and reserve \text{} for actual words. The second mistake is relying on visual estimation for spacing. Commands like \, for thin spaces, \; for thick spaces, and \! for negative spaces exist for a reason. I have seen people pad equations with multiple spaces hoping to fix alignment. It never works in LaTeX because spaces are ignored in math mode. You have to use the explicit spacing commands or accept that the rendering will look uneven. The third mistake is not keeping your preamble clean. Every package you load adds compilation time and potential conflicts. The amsmath package is essential and non-negotiable. Beyond that, only load packages you actually use. I once inherited a project with 23 geometry and physics packages loaded when the document only needed amsmath and graphicx. Removing the unused packages cut compilation time by 40 percent.
When LaTeX is the wrong choice.
If you need to collaborate with people who do not know LaTeX and will be editing equations themselves, you are better off using Word's equation editor or a dedicated platform like MathType. No amount of documentation will make a collaborator comfortable typing \frac{\partial^2 u}{\partial x^2} into a source file. They will make syntax errors, break the compile cycle, and slow the entire project down. Similarly, if your equations need to appear in HTML pages without server-side rendering, LaTeX alone will not help. You would need MathJax or KaTeX as a JavaScript renderer to display LaTeX source in the browser. KaTeX is faster for rendering but does not support every LaTeX command that MathJax handles. For a simple equation display page, KaTeX loads in under 100 milliseconds. MathJax can take two to three seconds depending on the complexity of the equations on the page. The hardest edge case I encountered involved nested matrices inside a large system of equations. The amsmath package handles arrays and matrix environments well, but when you stack six by six matrices inside another array structure, the vertical spacing becomes inconsistent across different PDF viewers. The workaround was to use the dcases environment from amscd and manually adjust with \vspace commands where the rendering disagreed between Adobe Reader and Foxit. It is not ideal, but it produces consistent output across the readers your audience will actually use.

I still use Word for quick internal notes and LaTeX for anything that goes to print or needs version control. The two systems complement each other rather than competing. Knowing when to switch between them saves more time than trying to force one into every situation.