Let the vector be v=i+j.
The z axis is represented by the direction of the standard basis vector k.
We want to find the angle θ between the vector v and the z axis (vector k).
We can use the dot product formula to find the angle between two vectors a and b:
a⋅b=∣a∣∣b∣cosθ
In this case, a=v=i+j and b=k.
First, calculate the dot product of v and k:
v⋅k=(i+j)⋅k
Using the properties of the dot product for standard basis vectors, where and :
Next, calculate the magnitudes of the vectors v and k:
The magnitude of v is ∣v∣=∣i+j∣. Since , the magnitude is:
The magnitude of k is ∣k∣=02+0.
Now, substitute these values into the dot product formula:
0=(2)(1)cosθ
To find cosθ, divide both sides by 2:
cosθ
The angle θ for which cosθ=0 (in the range [0∘,180∘) is .
Alternatively, we can consider the direction cosines. The vector v=i+j can be written in component form as ⟨1,1,0⟩. The magnitude is .
The direction cosines are the cosines of the angles the vector makes with the positive , , and axes. Let be the angle with the axis.
The cosine of the angle with the axis is given by the component in the direction divided by the magnitude:
The angle for which is .