### Video Transcript

Find the distance between the two points π΄ with coordinates negative seven, 12, three and π΅ with coordinates negative four, negative one, negative eight. To solve this question, we can use a formula, the distance between two arbitrary points in three dimensional space.

π with coordinates π₯1, π¦1, π§1, and π with coordinates π₯2, π¦2, π§2 is the square root of π₯1 minus π₯2 squared plus π¦1 minus π¦2 squared plus π§1 minus π§2 squared. This is very similar to the formula for distance in two-dimensional space. The only difference is that because in three dimensions we also have a π§-coordinate; we have a term involving the π§-coordinates in our formula.

Substituting the values of the coordinates in, we get negative seven minus negative four squared plus 12 minus negative one squared plus three minus negative eight squared. We find that negative seven minus negative four is negative three, 12 minus negative one is 13, and three minus negative eight is 11.

So the distance is the square root of nine plus 169 plus 121, which is the square root of 299 length units. And looking at the prime factorization of 299, itβs 13 times 23. We can see that we canβt simplify this radical any further, so this is our final answer. So that was just applying a formula, but where did that formula come from? Iβm not going to derive the general formula; Iβm just going to solve the problem without using the general formula.

But it turns out the solution can be generalized quite easily to give the general formula for the distance between two points in 3D space. Iβve drawn something that looks very much like the two-dimensional plane, but in fact this is 3D space just with the π§-axis pointing straight out of the screen at you from the origin.

In this orientation of 3D space, you canβt actually see the π§-axis but trust me itβs there. Iβve marked on the point π΄ which has coordinates negative seven, 12, three, and Iβve also marked on the auxiliary point π with coordinates negative four, negative one, three.

Notice that the point π is not the same as the point π΅; although itβs π₯- and π¦-coordinates are the same, its π§-coordinate is three and not negative eight. It does, however, have the same π§-coordinate as the point π΄, and so both points lie in the plane with equation π§ equals three.

We can add another auxiliary point, π, with coordinates negative seven, negative one, and three. It is in the same plane as the other two points, π§ equals three. Furthermore, it has the same π₯-coordinate as the point π΄. The only difference between the points π΄ and π is in their π¦-coordinates: π΄ has a π¦-coordinate of 12, whereas π has a π¦-coordinate of negative one. And so to get from π΄ to π, you have to move 13 units in the opposite direction to the π¦-axis, so the distance between π΄ and π is 13 length units.

In a similar way, we can see that getting from π to π requires moving three units in the π₯-direction. And of course the angle formed at π is a right angle; remember that weβre working in the plane with equation π§ equals three here, so this really is a right angle and not just something that looks like a right angle because of the way that weβve oriented our three-dimensional space. And so using the Pythagorean theorem, we see that the distance from π΄ to π is the square root of 178 length units.

Of course this is the same answer that we would get by using the two-dimensional distance formula and just ignoring the third coordinate, the π§-coordinate. And thatβs great and all, but weβre not looking for the distance from π΄ to π; weβre looking for the distance from π΄ to π΅. If you remember, the π§-axis is pointing straight out of the screen at us. And so the point π΅ which has the same π₯ and π¦ coordinates as the point π, but a different π§-coordinate, would look like it occupies the same space as the point π on our two-dimensional representation of the 3D space.

Of course as discussed before, it isnβt at the same place as π. In fact, it is a distance of three minus negative eight units away in the π§-direction. So if we now draw another representation of our three-dimensional space β this one where you canβt see the π₯-axis because itβs actually going down into the screen away from us marking π΄, π, and π΅ on this diagram β we can see that π΅ and π are definitely not the same. And in fact because π and π have the same π¦- and π§- coordinates, if we marked π on this diagram as well, it would look like π is at the same place as π.

To get from π΅ to π, you have to move 11 units in the π§-direction, so the distance from π΅ to π is 11. We can also mark on the length of AP that we found using the left-hand diagram; it is the square root of 178 length units. We have to be careful here, if we look only at the right-hand diagram, itβs very tempting to believe that the only difference between π΄ and π is in their π¦- co-ordinate, and so the length of AP is 12 minus negative one equals 13.

But of course their π₯ coordinates are also different. Itβs just that because the π₯-axis is pointing down into the screen, we canβt see this easily. The difficult thing to see here is that the angle at π is a right angle. These two dimensional diagrams can sometimes misrepresent 3D angles, but in this case it really is a right angle, and we can prove this for example using vectors.

But having convinced ourselves of this fact, we can apply the Pythagorean theorem. The length of AB, the distance between π΄ and π΅, is the square root of 11 squared plus the square root of 178 squared, which is the square root of 121 plus 178, which as before is the square root of 299 length units.

It is quite common that you have to find the distance between two points in three-dimensional space. Three-dimensional space, after all, is the space that we live in. And so rather than going through this process every time you want to find the distance between two points in three- dimensional space, it makes sense to do this only once in the general case and just derive a formula that we can then substitute the numbers into when required.