Careers360 Logo
Angle Between Two Lines in 3D Space

Angle Between Two Lines in 3D Space

Edited By Komal Miglani | Updated on Feb 14, 2025 11:48 PM IST

A straight line is a line that connects two points and extends to infinity in both directions. When two straight lines intersect, they form two sets of angles. The intersection results in two acute angles and two obtuse angles. The absolute value of angles is determined by the slopes of intersecting lines. Angle Between Two Lines helps us to find the relationship between two lines.

This Story also Contains
  1. Angle Between Two Lines
  2. Angle Between Two Lines in Vector Form
  3. Angle Between Two Lines in Cartesian Form
  4. Formulas for Angle Between Two Lines
  5. Condition for Perpendicularly
  6. Condition for parallelism
  7. Ange between two lines in terms of direction cosines and direction ratios
  8. Solved Examples Based on Angle Between Two Lines
Angle Between Two Lines in 3D Space
Angle Between Two Lines in 3D Space

In this article, we will cover the concept of Angle Between Two Lines. This topic falls under the broader category of Three Dimensional Geometry, which is a crucial chapter in Class 12 Mathematics. This is very important not only for board exams but also for competitive exams, which even include the Joint Entrance Examination Main and other entrance exams: SRM Joint Engineering Entrance, BITSAT, WBJEE, and BCECE. A total of eight questions have been asked on this topic in JEE Main from 2013 to 2023 including one in 2018, one in 2019, two in 2020, one in 2021, and one in 2022.

Background wave

Angle Between Two Lines

The intersection of two straight lines forms an angle. For two intersecting lines, there are two types of angles between the lines, the acute angle and the obtuse angle. The angle between two lines can be calculated by knowing the slopes of the two lines, or by knowing the equations of the two lines. The angle between two lines generally gives the acute angle between the two lines.

Angle Between Two Lines in Vector Form

Let the given lines be,
r=r0+λbr=r0+λb
As equation (i) and equation (ii) are straight lines in the directions of b and b, respectively.
Let θ be the angle between the vectors b and b
Using the dot product,

NEET Highest Scoring Chapters & Topics
This ebook serves as a valuable study guide for NEET exams, specifically designed to assist students in light of recent changes and the removal of certain topics from the NEET exam.
Download E-book

bb=|b||b|cosθcosθ=bb|b||b|

Angle Between Two Lines in Cartesian Form

The equation of a straight line in cartesian form is

xx1a1=yy1b1=zz1c1xx2a2=yy2b2=zz2c2

Then,
b=a1i^+b1j^+c1k^ and b=a2i^+b2j^+c2k^
So that,
bb=a1a2+b1b2+c1c2
|b|=a12+b12+c12, and |b|=a22+b22+c22cosθ=a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22

Formulas for Angle Between Two Lines

1) The angle between two lines, of which, one of the lines is ax+by+c=0, and the other line is the x-axis, is

θ=tan1ab

2) The angle between two lines, of which one of the lines is y=mx+c and the other line is the x axis, is θ=tan1m
3) The angle between two lines that are parallel to each other and have equal slopes (m1=m2) is 0
4) The angle between two lines that are perpendicular to each other and have the product of their slopes equal to 1(m1m2=1) is 90
5) The angle between two lines having slopes m1 and m2 respectively is

θ=tan1(m1m21+m1m2)

Condition for Perpendicularly

The lines are perpendicular then cosθ=90
i.e.
bb=0[cos90=0]a1a2+b1b2+c1c2=0

Condition for parallelism

 The lines are parallel then b=λb for some scalar λa1a2=b1b2=c1c2

Ange between two lines in terms of direction cosines and direction ratios

If two lines having direction ratios a1, b1,c1 and a2, b2,c2 then the angle between them is given by

cosθ=a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22
If two lines have direction ratios as l1, m1,n1 and l2, m2,n2 then the angle between them is given bycosθ=l1l2+m1m2+n1n2

Recommendation Video Based on Angle Between Two Lines


Solved Examples Based on Angle Between Two Lines

Example 1: If the two lines l1:x23=y+12,z=2 and l2:x11=2y+3α=z+52 are perpendicular, then an angle between the lines l2 and l3:1x3=2y14=z4 is.
[JEE MAINS 2022]

Solution
l1:x23=y+12=z20l2:x11=y+3/2α/2=z+52l3:x13=y122=z04
l1 perpendicular l2:⇒|3α+0|131+α24+4=0α=3
Angle between l2 and l3

cosθ=|1×(3)+(2)(α/2)+2×4|1+4+α249+16+4cosθ=|3α+8|5+α2429 put α=3cosθ=229429=429θ=cos1(429)θ=sec1(294)
Hence, the answer is sec1(294)

Example 2: For real numbers α and β0, if the point of intersection of the straight lines

xα1=y12=z13 and x4β=y63=z73,x+2yz=8, lies on the plane αβ is equal to
[JEE MAINS 2021]

Solution:
Let the point on the first line be (p+α,2p+1,3p+1) and on the second line be (qβ+4,3q+6,3q+7)
p+α=qβ+42p+1=3q+63p+1=3q+7
(iii)(ii)p=1(iii)4=3q+7q=1(i)1+α=β+4α+β=3
So, the point of intersection is (α+1,3,4)
It lies in a given plane, so

α+1+234=8α=5β=2αβ=7

Hence, the answer is 7

Example 3: If the foot of the perpendicular drawn from the point (1,0,3) on a line passing through (α,7,1) is (53,73,173), then α is equal to
[JEE MAINS 2020]

Solution:
Since PQ is perpendicular to L , therefore

(153)(α53)+(73)(773)+(3173)(1173)=0α=4

Hence, the answer is 4

Example 4: If the lines x=ay+b,z=cy+d and x=az+b,y=cz+d are perpendicular, then:
[JEE MAINS 2019]

Solution:
Angle between two lines in terms of direction cosines and direction ratios -
(i) If two lines are parallel then

l1=l2,m1=m2,n1=n2 or a1a2=b1b2=c1c2

(ii) if two lines are perpendicular then

l1l2+m1m2+n1n2=0 or 1a1a2+b1b2+c1c2=0

The equation of lines are

x=ay+bz=cy+dxba=y1=zdc

and, lines

x=ay+by=cz+dxba=ydc=z1
Given that both the lines are perpendicular to the concept

aa+c+c=0
Hence, the answer is aa+c+c=0

Example 5: If the angle between the lines, x/2=y/2=z/1 and
5x2=7y14p=z34cos(1)23, then p is equal to :
[JEE MAINS
2018]

Solution:
x2=y2=z1

x52=y2p/7=z134cosθ=a1a2+b1b2+c1c2a12+b12+c12a22+b22+c222/3=4+2p/7+43×(20+p249)20+p249=4+p/7p=7/2

Hence, the answer is 7/2

Frequently Asked Questions (FAQs)

1. What is the condition for perpendicularity?

The lines are perpendicular then cosθ=90
i.e.
bb=0
[cos90=0]
a1a2+b1b2+c1c2=0

2. What is the condition for Lines to be parallel?

The lines are parallel then b=λb for some scalar λ.

a1a2=b1b2=c1c2

3. What is the Cartesian equation of a line?

The Cartesian equation of a line is given by xx0a=yy0b=zz0c

4. How do you calculate the angle between two lines?

Let θ be the angle between the vectors b and b
 Using the dot product,

bb=|b||b|cosθcosθ=bb|b||b|

5. What is the angle between two lines if there equation is a1a2+b1b2+c1c2=0 ?

For perpendicular lines the condition is a1a2+b1b2+c1c2=0 so the angle between two lines is 90.

Articles

Back to top