BOTH EQUATIONS are correct, but you missed the subscript. The first one is THRR for "reference" and the second equation is THRF for (fundamental). In practice THRF is used.
You have to compare like with like, as THD is a ratio of a measure of the ratio of all the harmonics compared to the funamental. The top equation is the correct one, but I am not familiar with the package you use to write these down. I believe the 0.5 I see should really be (^0.5), that is square root of... SQRT(Vx^2) has Volts as units, not volts squared, so the denominator should also be in Volts, i.e., V1, (or SQRT(V1^2)), or (V1^2)^0.5. Read a bit more, talk to your professors a bit more and you will be familiar with these concepts. Happy researching! Fernando
Of course Farhad Yadzi is right (I actually 'read' that, as it is obviously the square root of the sum of the squared values - a multidimensional pythagoras rule for the hypothenuse).