If \((K,3,5)\), \((2,-1,2)\) are direction ratios of two lines and the angle between them is \(45^\circ\), then a value of \(K\) is:
Show Hint
For direction ratios:
\[
\cos\theta=
\frac{\vec{a}\cdot\vec{b}}
{|\vec{a}||\vec{b}|}
\]
Always simplify the numerator and denominator separately before squaring the equation.
Concept:
If two lines have direction ratios:
\[
(a_1,b_1,c_1)
\quad \text{and} \quad
(a_2,b_2,c_2)
\]
then the angle \(\theta\) between them is given by:
\[
\cos\theta
=
\frac{a_1a_2+b_1b_2+c_1c_2}
{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}
\]
This is the vector dot product formula.
Step 1: Substitute the given direction ratios.
The direction ratios are:
\[
(K,3,5)
\quad \text{and} \quad
(2,-1,2)
\]
Since the angle between them is \(45^\circ\),
\[
\cos45^\circ=\frac{1}{\sqrt2}
\]
Using the formula:
\[
\frac{2K+3(-1)+5(2)}
{\sqrt{K^2+3^2+5^2}\sqrt{2^2+(-1)^2+2^2}}
=
\frac1{\sqrt2}
\]
Step 2: Simplify numerator and denominator.
The numerator becomes:
\[
2K-3+10=2K+7
\]
The first denominator:
\[
\sqrt{K^2+9+25}
=
\sqrt{K^2+34}
\]
The second denominator:
\[
\sqrt{4+1+4}
=
\sqrt9
=
3
\]
Thus:
\[
\frac{2K+7}{3\sqrt{K^2+34}}
=
\frac1{\sqrt2}
\]