# [Tex/LaTex] My prime symbol is not superscript

math-modesuperscripts

I'm learning math mode and having an issue here with the prime symbol.

$y\in[0,1]^{d\prime}$


In this inline math formula, the prime symbol is supposed to be superscript, but it shows up at the regular text level and size.

It is not clear what you want the output to be

$y\in[0,1]^{d\prime}$


the \prime is in the superscript along with d. If you want the prime to be on d then just use

$y\in[0,1]^{d'}$


which is equivalent to

$y\in[0,1]^{d^{\prime}}$