2

Code:

\begin{equation*}
    v_o = (v_i - V_D) e^-\frac{ t}{\tau}
\end{equation*}

What I want:

enter image description here

What I am getting:

enter image description here

3
  • 4
    The exponent will be the 1 character after ^ unless you specify otherwise. Try changing your code to e^{-\frac{ t}{\tau}} to show you want everything inside {} to be the exponent. As you wrote it LaTeX interprets as e^{-}\frac{ t}{\tau}.
    – DJP
    Mar 22 at 0:25
  • 3
    More useful information: Math notation in LaTeX? Mar 22 at 0:55
  • 2
    I would use $\exp(-t/\tau)$ for legibility. Mar 22 at 3:35

1 Answer 1

2

You have three main choices for typesetting the exponential expression that has the number e as its base: (a) use a \frac term in the exponent (and don't forget to enclose the exponent in curly braces); (b) use an inline-fraction term in the exponent; and (c) use \exp(...) notation to avoid creating an exponent in the first place.

enter image description here

All three choices are "correct" from a purely mathematical point of view. However, do note that the t and \tau terms are typeset in \scriptscriptstyle, \scripstyle, and \textstyle, respectively, according to the first, second, and third choice. For comparison, the terms e and exp, respectively, are always typeset in \textstyle.

Unless you're really short on horizontal space, do consider using either the second or the third method instead of the first. Your readers will likely appreciate you being considerate.

\documentclass{article}
\begin{document}
\[
e^{-\frac{t}{\tau}} \quad e^{-t/\tau} \quad \exp(-t/\tau)
\]
\end{document}

Not the answer you're looking for? Browse other questions tagged .