1

Trying to align equal signs and get an error message saying

missing } inserted

I can't figure out what I've done wrong?

\begin{align}
($b^nn^\alpha$)$^{-1}$=\large$\frac{a^n}{n^\alpha}$
$\geq\frac{a^n}{n^p}$
\end{align}
  • 4
    Welcome. Do not use dollar signs ($) inside an equation. – Johannes_B Dec 3 '15 at 16:28
  • Welcome to the site! And, equally, don't put $ ... $ around individual units elsewhere, either. In LaTeX we treat a mathematical expression/equation/etc. as a single unit and it should all go in math mode, with any text or anything else marked up as such. But it'd be super important to have, in general, $(b^nn^\alpha)^{-1}=\large\frac{a^n}{n^\alpha}$ (within align, which already puts you in math mode, you must not have the $ ... $). This treats the maths appropriately and will automatically handle things like correct spacing around the = sign – Au101 Dec 3 '15 at 16:37
  • For more: tex.stackexchange.com/questions/255073/… Also, you probably want \dfrac, rather than \large, or - in general - to be in a display math environment – Au101 Dec 3 '15 at 16:37
  • 1
    The title of your posting -- Problems with aligning equal signs -- doesn't seem to correspond to the equation you've provided, as there's only one = symbol in the entire expression. Please edit either the title or the body of the posting to provide more consistency. – Mico Dec 3 '15 at 17:45
2

It seems to me, as you should read some introductory material to LaTeX (see also this).

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
  (b^n n^\alpha)^{-1}
  &= \frac{a^n}{n^\alpha} \\
  &\geq\frac{a^n}{n^p}
\end{align}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.