You are here
Homeangle between two lines
Primary tabs
angle between two lines
The angle between two lines in a plane is defined to be

the smaller angle having as sides the halflines starting from the intersection point of the lines and lying on those two lines, if the lines are not parallel.
If $\theta$ denotes the angle between two lines, it always satisfies the inequalities
$\displaystyle 0\leqq\theta\leqq\frac{\pi}{2}.$  (1) 
If the slopes of the two lines are $m_{1}$ and $m_{2}$, the angle $\theta$ is obtained from
$\displaystyle\tan\theta\;=\;\left\frac{m_{1}\!\!m_{2}}{1\!+\!m_{1}m_{2}}% \right.$  (2) 
This equation clicks in the case that $m_{1}m_{2}=1$, when the lines are perpendicular and $\theta$ equals to $\displaystyle\frac{\pi}{2}$. Also, if one of the lines is parallel to $y$axis, it has no slope; then the angle $\theta$ must be deduced using the slope of the other line.
If one of the slopes is $0$, the angle between the two lines is just the angle between one of the lines and the $x$axis. Assume the other line has slope $m$, then formula (2) above becomes
$\displaystyle\tan\theta\;=\;\leftm\right.$  (3) 
If, on the other hand, one of the slopes is infinite, meaning that the line is parallel to the $y$axis, then the angle between two lines is the same as the angle between one line (with slope $m$) and the $y$axis, which is
$\displaystyle\tan\theta\;=\;\left\frac{1}{m}\right.$  (4) 
The above formula is consistent with formula (2) in the sense that if we let one of $m_{1}$ or $m_{2}$ approach $\infty$, we get formula (4).
Remark. If both slopes are positive, then formula (2) above is really just a disguised form of the subtraction formula for tangent.
In the diagram above, we see that the angle between the two lines is the algebraic difference of the two angles made between each of the lines and the $x$axis.
In the Euclidean space, the angle $\theta$ between two lines is most comfortably defined by using the direction vectors $\vec{u}$ and $\vec{v}$ of the lines:
$\cos\theta\;=\;\left\frac{\vec{u}\cdot\vec{v}}{\vec{u}\vec{v}}\right$ 
Also this angle satisfies (1). The angle given by the cosine can be interpreted to be formed after translating the one line in the space, without to alter its direction, to such a location that it intersects the other line — then both lines are in the same plane, and one may think that the angle is defined as in the beginning of this entry.
Remark. The angle between two curves which intersect each other in a point $P$ means the angle between the tangent lines of the curves in $P$; such an angle may always be chosen acute or right. For example, the exponential curves $y=a^{x}$ and $y=b^{x}$ intersect each other in the point $(0,\,1)$ under the angle $\theta$ with $\tan\theta=\frac{\ln{a}\ln{b}}{1+\ln{a}\cdot\ln{b}}$.
Mathematics Subject Classification
51N20 no label found Forums
 Planetary Bugs
 HS/Secondary
 University/Tertiary
 Graduate/Advanced
 Industry/Practice
 Research Topics
 LaTeX help
 Math Comptetitions
 Math History
 Math Humor
 PlanetMath Comments
 PlanetMath System Updates and News
 PlanetMath help
 PlanetMath.ORG
 Strategic Communications Development
 The Math Pub
 Testing messages (ignore)
 Other useful stuff
Recent Activity
new question: Prove that for any sets A, B, and C, An(BUC)=(AnB)U(AnC) by St_Louis
Apr 20
new image: informationtheoreticdistributedmeasurementdds.png by rspuzio
new image: informationtheoreticdistributedmeasurement4.2 by rspuzio
new image: informationtheoreticdistributedmeasurement4.1 by rspuzio
new image: informationtheoreticdistributedmeasurement3.2 by rspuzio
new image: informationtheoreticdistributedmeasurement3.1 by rspuzio
new image: informationtheoreticdistributedmeasurement2.1 by rspuzio
Apr 19
new collection: On the InformationTheoretic Structure of Distributed Measurements by rspuzio
Apr 15
new question: Prove a formula is part of the Gentzen System by LadyAnne
Mar 30
new question: A problem about Euler's totient function by mbhatia