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

enter image description here

I have $P_1=(x_1,y_1)$ and $P_2=(x_2,y_2)$ points and they are specified. Also I have $h$ distance from $P_1$ point that is also known. And I want to find $P_3$ and $P_4$ that located on perpendicular line and $h$ is distance to them. How can i found those

share|cite|improve this question
Is P5 standing for P3 ? What did you try for the time being ? – Claude Leibovici Oct 27 '13 at 13:15
I dont have P5 its just index mistake. P4 and P3 I am searching for. – Evgeny Oct 27 '13 at 13:17
@Evgeny, read what you wrote. b.t.w. are you familiar with dot product in vectors? – Carlos Eugenio Thompson Pinzón Oct 27 '13 at 13:20
@Carlos Eugenio Thompson Pinzón dont get it how Dot product will helps when P3 and P4 is unknown. – Evgeny Oct 27 '13 at 13:32
up vote 1 down vote accepted


From the drawing you want to find $\;P_3,P_4\;$ s.t. $\;P_3P_4\perp P_1P_2\;$ and also s.t that $\;P_1\;$ belongs to the line determined by $\;P_3,P_4\;$, so:

$$\begin{align*}\bullet&\;\;\text{Find the slope of the line segment $\;P_1P_2\;$}\;:\;m_1:=\frac{y_2-y_1}{x_2-x_1}\;,\;\;x_1\neq x_2\\ \bullet&\;\;\text{Find the equation of the line through $\;P_1\;$ with slope}\;\;-\frac1{m_1}\;:\;y-y_1=-\frac1{m_1}\left(x-x_1\right)\\ \bullet&\;\;\text{Find the two points on the above line at a distance of $\,h\,$ from $\,P_1\,$ by solving the quadratic:}\\ &h^2=(x_1-x)^2+(y_1-y)^2\;,\;\;\text{with}\;\;y=-\frac x{m_1}+\frac{x_1}{m_1}+y_1\end{align*}$$

share|cite|improve this answer

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.