[Tex/LaTex] Minus isn’t shown in exponent (superscript)

equationssuperscriptssymbols

So I want to write a Cobb-Douglas function F = Kα * L1-α. I've written this in LaTeX:

\(Y = K^{\alpha}L^{1−\alpha}\)

Everything is fine except that the minus sign that should be between 1 and alpha in superscript above L is missing. What am I doing wrong?

Best Answer

For the minus sign in math mode LaTeX requires the "hyphen-minus" of ASCII days, in Unicode U+002D: -. That is, the one that should be produced by your keyboard ordinarily.

It seems you have ended up giving it the minus sign (U+2212). I'm not sure how you have done this, perhaps copying and pasting from somewhere.

LaTeX does not recognise this by default, although I'm sure with inputenc or XeLaTeX it could use it. But the character you need in math mode is U+002D: -

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\(Y = K^{\alpha}L^{1 - \alpha}\)

\end{document}

enter image description here

(Spaces around the - are not necessary, I just think it makes your code easier to read and it aids hard wrapping).