My book says:
The width-1 NRZ pulse is $$ \mathrm{rect} (t) = \begin{cases} 1 , \qquad -1/2 \leq t \leq 1/2\\ 0, \qquad \mathrm{otherwise} \tag 1 \end{cases} $$ The unit-energy width-$T$ NRZ pulse is $$ \frac{1}{\sqrt T} \mathrm{rect}(\frac{t}{T}) \tag 2 $$
I need help who to derive the unit-energy.
With $\mathrm{rect}(t/T)$ I think it is the function $$ \mathrm{rect}(t/T) = \begin{cases} 1 , \qquad -T/2 \leq t \leq T/2\\ 0, \qquad \mathrm{otherwise} \end{cases} $$ The energy is definition as $ E = \int_{-\infty}^{\infty} \lvert x(t) \rvert^2 \, dt $, so $$ E = \int_{-T/2}^{T/2} \lvert \mathrm{rect}(t/T) \rvert^2 \, dt = \int_{-T/2}^{T/2} 1^2 \, dt = \frac{T}{2}-(-\frac{T}{2}) = T $$ And we want unit-energy so $E=1$, but I don't know how to proceed. How can I find $(2)$?