<?xml version="1.0" encoding="UTF-8"?>

<record version="6" id="6644">
 <title>directed segment</title>
 <name>DirectedSegment</name>
 <created>2005-01-13 18:11:09</created>
 <modified>2005-02-26 04:52:16</modified>
 <type>Definition</type>
 <creator id="3" name="drini"/>
 <author id="6075" name="rspuzio"/>
 <author id="3" name="drini"/>
 <classification>
	<category scheme="msc" code="51F99"/>
	<category scheme="msc" code="51M25"/>
 </classification>
 <related>
	<object name="CevasTheorem"/>
	<object name="Midpoint"/>
 </related>
 <preamble>\usepackage{pstricks}</preamble>
 <content>Let $AB$ a line segment. The directed segment $\overline{AB}$ is to be taken the segment $AB$ with a direction (similar to vectors).
The defining property is then
\[
\overline{AB}=-\overline{BA},
\]
(which relates to the property of vectors stating that $v$ and $-v$ have opposite direction and same modulus).

The addition of directed segments is done in a similar fashion of vectors, so the above relation is equivalent to
\[\overline{AB} + \overline{BA} = 0.\]
where $0$ represents any segment of the form $\overline{PP}$.
If it is stated that we will work with directed segments, it's customary to omit the overlining and to just write $AB$, convention we will follow now.

\textbf{Notes.}
\begin{itemize}
\item The definition does not says $AB$ is either positive or negative (and it does not really matters doing so). It merely states that traveling the segment on different directions give different signs.
\item It does not make sense to compare signs of non-collinear segments. So if $A,B,C$ are not on the same line (or parallel lines) we cannot relate the signs of $AB,BC$ and $CA$.
\end{itemize}

It can be proved considering cases that no matter the relative position of three points $A,B,C$ on a line, the following equality holds:
\[
AB + BC = AC.
\]
\begin{center}
\begin{pspicture}(-4,-1)(4,2)
\psline[arrows=|-|](-3,0)(-1,0)
\psline[arrows=-|](-1,0)(3,0)
\uput[270](-3,0){$B$}
\uput[270](-1,0){$A$}
\uput[270](3,0){$P$}
\psline[linearc=0.25]{-&gt;}(-1,0.5)(3,0.5)(3,1)(-3,1)
\end{pspicture}
\end{center}
In the above picture $AP+PB=AB$. Notice that $AB$ goes to the left since $AB$ is the segment that starts at $A$ and ends at $B$.
Also, taking $A=C$ gives $AB+BA = AA = 0$ which is consistent with the earlier remarks.

Just like undirected segments in Euclidean geometry (and unlike vectors), directed segments can be divided to obtain a ratio. Such ratio is the number obtained dividing the undirected segments, but taking signs int oaccount (ratio of two segments with the same direction is positive, and negative otherwise).

Given two points $A,B$ on a line, we can locate any other point $P$ on the line considering the ratio $AP/PB$. In other words, $P=Q$ if and only if $AP/PB = AQ/QB$. 
Moreover, to each point $P$ corresponds an extended \footnote{We use extended reals to avoid dealing with separate cases, allowing us to deal also with points at infinity.} real $r=AP/PB$ and to each extended real $r$ corresponds a point $P$ such that $r=AP/PB$.

Notice that $AP/PB$ is positive when $AP$ and $PB$ have the same direction, which happens if and only if $p$ is between $A$ and $B$. If $P$ lies outside $AP$, then $AP$ and $PB$ have negative signs and so  the ratio will be negative.</content>
</record>
