# Can somebody tell me why this command doesn't work?

$\frac{1-(-$\frac{1}{2}^t$) }{$\frac{3}{2}$}$


For some reason it gives me an error, something about a Missing \endgroup, be warned I'm new to Latex.

-
You are using mathmode within mathmode: $\frac{1-(-\frac{1}{2}^t)}{\frac{3}{2}}$ is better –  azetina Nov 1 '13 at 23:36
TeX doesn't really enjoy when you tell it to enter math mode once it's already in math mode. So just drop the internal math mode switches. –  Werner Nov 1 '13 at 23:36
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. And please quote complete error messages. –  Martin Schröder Nov 1 '13 at 23:57

Remove inner $. $\frac{1-(-\frac{1}{2}^t)}{\frac{3}{2}}$ should do the trick. The following is just a suggestion: \documentclass{article} \usepackage{amsmath} \begin{document}$\dfrac{1-\left(-\frac{1}{2}^t\right)}{\frac{3}{2}}$\end{document}  - You are using too many $ and hence forcing tex to enter math mode when it is already in math mode. Hence remove all internal $. Also the super script t should go outside the parenthesis. Assuming that you are in display mode, I have added \displaystyle. If not, remove it and also \big. \documentclass{article} \usepackage{mathtools} \begin{document}$\displaystyle \frac{1-\big(-\frac{1}{2}\big)^t}{\frac{3}{2}}\$