A vector \(\vec r=a \hat i+b \hat j\) is equally inclined to both x and y axes. If the magnitude of the vector is 2 units, then what are the values of a and b respectively?
1
\(\dfrac{1}{2}, \dfrac{1}{2}\)
2
\(\dfrac{1}{\sqrt2}, \dfrac{1}{\sqrt2}\)
3
√2, √2
4
2, 2