Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm reading a book on information retrieval and in it there is an example where they have two sets of vectors.

They compute the centroid vectors for both the sets and then give the equation of a plane that divides the space into two parts equidistant from the centroid vectors between them.

I would like to know what is the method to get the equation of such a plane.

I know that given two points on a plane if you would like to find an analogous line that does the same with the points, you would connect the two points, draw a normal at the midpoint of the line connecting the points, and this normal would do the same thing that the plane does in my example. However since I have a bad background in mathematics, I can't write this mathematically, and I can't precisely think how this would work in my case.

Thank you for your time.

Edit: The two centroid vectors in my example are: 0a+0b+0c+0.33d+0.33e+0.33f and 0a+0.71b+0.71c+0d+0e+0f

and the equation of the hyperplane that divides them is:

[0 -0.71 -0.71 0.33 0.33 0.33]x= -1/3

We can get the matrix on the LHS by subtracting the two given vectors, but how does this work? And I also do not know how do we get the constant on the right?

I apologize for the bad formatting, I do not know how to use TeX

share|cite|improve this question

Given two points $p_1$ and $p_2$, let $v = p_2 - p_1$ be the vector from $p_1$ to $p_2$, and let $m = \frac{p_1 + p_2}{2}$ be the midpoint of $p_1$ and $p_2$. Then \begin{equation} v^T(x - m) = 0 \end{equation} is the equation of a hyperplane orthogonal to $v$ that goes through $m$.

share|cite|improve this answer
In my book it is written that the equation is (v bar)*(x bar)=b – Programming Noob Oct 31 '12 at 9:39
The equation I wrote could also be written $v^T x = v^T m$. Perhaps in that form it agrees with what's in your book. – littleO Oct 31 '12 at 9:40
What you call 0a+0b+0c+0.33d+0.33e+0.33f, is that just the vector $\begin{bmatrix} 0 \\ 0 \\ 0 \\ .33 \\ .33 \\ .33 \end{bmatrix}$? Also, have you given the numbers exactly as they appear in your book? – littleO Oct 31 '12 at 9:47
Yes. If you would like to confirm, it's on page 294 of this book: – Programming Noob Oct 31 '12 at 10:06
What's written as $.33$ is in fact $\frac13$, and $.71$ is an approximation too (though I don't see what the true value is). I suspect that if not for this approximation, we'd see perfect agreement with the formula I gave. (Though they use $v = p_1 - p_2$, an equally valid choice.) Exercise 14.15 in your book discusses this formula, which is pretty intuitive if you know how to work with and visualize vectors. – littleO Oct 31 '12 at 11:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.