Substitute parametric equations of the line into the plane equation.
Solve for t.
Plug t back into the line to find the point.
A. Python Example:
# Line: r(t) = [1 + 2t, 2 + t, 3 + 4t]
x, y, z, t = symbols('x y z t')
line = [1 + 2*t, 2 + t, 3 + 4*t]
# Plane: 2x - y + 4z - 10 = 0
plane_eq = Eq(2*line[0] - line[1] + 4*line[2] - 10, 0)
t_val = solve(plane_eq, t)[0]
intersection = [coord.subs(t, t_val) for coord in line]
print("Intersection point:", intersection)
B. Output:
Intersection point: [15/19, 36/19, 49/19]
PART 6: Distance from a Point to a Plane
Given point
P=(x1,y1,z1)
and plane
ax+by+cz+d=0
so:
Distance=a2+b2+c2∣ax1+by1+cz1+d∣
A. Python Example:
point = np.array([2, 3, 4])
normal = np.array([2, -1, 4])
d = -10 # from plane equation: 2x - y + 4z - 10 = 0 → d = -10
numerator = abs(np.dot(normal, point) + d)
denominator = np.linalg.norm(normal)
distance = numerator / denominator
print("Distance from point to plane:", distance)
B. Output:
Distance from point to plane: 1.5275252316519468
PART 7: Distance Between Parallel Planes
If both planes have the same normal vector:
ax+by+cz+d1=0andax+by+cz+d2=0
so:
Distance=a2+b2+c2∣d2−d1∣
PART 8: Angle Between Line and Plane
Given a line with direction d and plane normal n:
sinθ=∣d∣∣n∣∣d.n∣
A. Python Example:
d = np.array([1, 1, 0]) # direction vector of line
n = np.array([0, 0, 1]) # normal vector of plane
sin_theta = abs(np.dot(d, n)) / (np.linalg.norm(d) * np.linalg.norm(n))
theta_rad = np.arcsin(sin_theta)
theta_deg = np.degrees(theta_rad)
print("Angle between line and plane (degrees):", theta_deg)
B. Output:
Angle between line and plane (degrees): 0.0
PART 9: Line of Intersection of Two Planes
If two planes intersect, the line lies in both. To find it:
Take both plane equations.
Solve the system symbolically.
A. Python Example:
x, y, z = symbols('x y z')
# Two planes:
eq1 = Eq(2*x + y - z, 5)
eq2 = Eq(x - y + 2*z, 3)
sol = solve([eq1, eq2], (x, y), dict=True)
print("Intersection in parametric form:")
print(sol)