You are meant to set $$ I(t)= \frac{1}{2} \int_0^l \left\\{\left(\frac{∂u}{∂t}\right)^2+a^2 \left(\frac{∂u}{∂x}\right)^2\right\\} dx $$ so that $$ \frac{d}{dt}I(t) = \frac{1}{2} \int_0^l \frac{∂}{∂t} \left\\{\left(\frac{∂u}{∂t}\right)^2+a^2 \left(\frac{∂u}{∂x}\right)^2\right\\} dx=0 $$ which implies that $I$ is a constant function.
* * *
As to the uniqueness, any difference between two solutions solves the homogeneous equation with homogeneous boundary conditions. As $I(0)=0$, the difference function has zero gradient everywhere, thus has to be constant zero.