What is $E(X^2)$ mean in literal terms? In my probability and statistics class we learned about expected value, or $E(X)$. We also did some work about finding expected values of functions and such, like $E(g(x))$. And in the case of finding the variance, one of the steps involve finding $E(X^2)$. Does this mean anything in real-life terms? 
Using a geometric distribution as an example, is $E(X^2)$ the expected number of times a trial needs to happen until the event $X$ happens twice in a row?


Using a geometric distribution as an example, is $E(X^2)$ the expected number of times a trial needs to happen until the event $X$ happens twice in a row? 

No, it doesn't mean anything as convenient as that.   It is, in this case, the expectation of the square of the count of trials until the success.   We can name this the "second raw moment", but what the heck does that mean?
Now what does have intuitive meaning is some concept of deviation from the expected value as an indicative measure of "spread" or randomness.   Do you get the feeling for this: that the more the data values can stray from the mean (in either direction) the greater will be the variation in the data?   So how might we measure this concept?
Well, Variance, is defined as the expectation of the square of the distance to the value from the mean .   Is that sensible?
$$\begin{align}\mathsf{Var}(X) &= \mathsf E(~(X-\mathsf E(X))^2~)\end{align}$$
Expanding that out and applying the Linearity of Expectation we obtain the final result.  $$\begin{align}\mathsf{Var}(X) &= \mathsf E(~(X-\mathsf E(X))^2~) \\ &= \mathsf E(X^2-2X\mathsf E(X)+\mathsf E(X)^2) \\ &= \mathsf E(X^2)-2\mathsf E(X)\mathsf E(X)+\mathsf E(X)^2 \\ &= \mathsf E(X^2)-\mathsf E(X)^2\end{align}$$
That's how $\mathsf E(X^2)$ (called the "second raw moment") relates to variance (called the "second central moment").
