To understand the distance formula, you first need to understand the Pythagorean Theorem. For a refresher, the theorem states that the square of the legs of a right triangle is equal to the the square of its hypotenuse (the side opposite the right angle), or in symbols:
[tex]a^2+b^2=c^2[/tex], where a and b are the lengths of the legs, and c is the length of the hypotenuse. In the context of the x-y plane, the legs of the triangle correspond to separate x and y values on the plane, and the hypotenuse corresponds to a straight line between two points on that plane.
To find the distance between the points you've listed, (2√5,4) and (1,2√3), we'll first need to find the "legs" of the triangle. To find the length of the x leg, we'll just need the distance between the x values of the points, which we find to be 2√5-1. We do the same for the y component, which ends up being 4-2√3. Now that we have our legs, we're ready to find the hypotenuse - or the distance.
Going back to Pythagorus's equation, we have:
[tex](2 \sqrt{5}-1)^{2}+(4-2 \sqrt{3})^{2}=d^2 [/tex]
where d, the hypotenuse of the triangle, means "distance."
To solve for d, we take the square root of both sides:
[tex]d= \sqrt{(2 \sqrt{5}-1)^2+(4-2 \sqrt{3} )^2} [/tex]
And from there, all that's left to do is solve the right side of the equation, which just ends up being rote calculation.
Edit: I'll go through the steps of that calculation here. We'll start by expanding each of the squared terms inside the radical:
[tex](2 \sqrt{5}-1)^2=(2 \sqrt{5}-1)(2 \sqrt{5}-1)=(2 \sqrt{5}-1)2 \sqrt{5}-(2 \sqrt{5}-1)[/tex]
[tex]=(2 \sqrt{5})^2-2 \sqrt{5}-2 \sqrt{5}+1=20-4\sqrt{5}+1[/tex]
[tex](4-2\sqrt{3})^2=(4-2\sqrt{3})(4-2\sqrt{3})=(4-2\sqrt{3})4-(4-2\sqrt{3})2\sqrt{3}[/tex]
[tex]=16-8\sqrt{3}-8\sqrt{3}+(2\sqrt{3})^2=16-16\sqrt{3}+12[/tex]
Putting those values back under the radical:
[tex] \sqrt{20-4\sqrt{5}+1+16-16\sqrt{3}+12} [/tex]
Collecting constants:
[tex] \sqrt{49-4\sqrt{5}-16\sqrt{3}} [/tex]
If you wanted an exact answer, this messy-looking thing would be it, and you can verify those results on WolframAlpha if you'd like. If you want an approximation, just enter that expression in to the online calculator of your choice, and it should give out the value of approx. 3.51325.
In general, if you want to solve for the distance between two points [tex](y_{1},x_{1}) [/tex] and [tex] (y_{2},x_{2}) [/tex], the formula is:
[tex]d= \sqrt{(x_{2}-x_{1})^2+(y_{2}-y_{1})^2} [/tex]