Detailed Explanation
In three dimensional geometry, a line written in vector form \( \vec{r} = \vec{a} + t\,\vec{b} \) has direction vector \( \vec{b} \). The angle between two lines is the angle between their direction vectors. When two lines are perpendicular (the angle between them is \( \frac{\pi}{2} \)), their direction vectors satisfy \( \vec{b_1} \cdot \vec{b_2} = 0 \), because \( \cos\frac{\pi}{2} = 0 \). So to make the lines perpendicular, we simply set the dot product of their direction vectors equal to zero and solve for the unknown.
Formula Used
If \( \theta \) is the angle between lines with direction vectors \( \vec{b_1} \) and \( \vec{b_2} \), then \( \cos\theta = \dfrac{\vec{b_1} \cdot \vec{b_2}}{|\vec{b_1}||\vec{b_2}|} \). Perpendicular lines: \( \vec{b_1} \cdot \vec{b_2} = 0 \).
Solution
- Step 1: Identify the direction vector of the first line. The first line is \( \vec{r} = \hat{i} + \hat{j} + \hat{k} + p(2\hat{i} + \hat{j} + 2\hat{k}) \), so its direction vector is \( \vec{b_1} = 2\hat{i} + \hat{j} + 2\hat{k} \).
- Step 2: Identify the direction vector of the second line. Rewrite the second line by separating the constant part and the part multiplied by \( q \): \[ \vec{r} = (\hat{i} + \hat{j} + \hat{k}) + q(\hat{i} + \lambda\hat{j} + \hat{k}). \] So its direction vector is \( \vec{b_2} = \hat{i} + \lambda\hat{j} + \hat{k} \).
- Step 3: Apply the perpendicularity condition. Since the angle between the lines is \( \frac{\pi}{2} \), we set the dot product equal to zero: \[ \vec{b_1} \cdot \vec{b_2} = 0. \]
- Step 4: Compute the dot product using corresponding components: \[ (2)(1) + (1)(\lambda) + (2)(1) = 0. \] This simplifies to \[ 2 + \lambda + 2 = 0. \]
- Step 5: Solve for \( \lambda \): \[ 4 + \lambda = 0 \quad \Rightarrow \quad \lambda = -4. \]
Final Answer
\( \lambda = -4 \), which is option (A).
Common Mistake
A common mistake is to use the position (constant) vectors instead of the direction vectors. The angle between lines depends only on the direction vectors \( \vec{b_1} \) and \( \vec{b_2} \), not on the points the lines pass through.