设
0<θ<2π,向量
a=(sin2θ,cosθ),
b=(1,−cosθ),若
a⋅b=0,则
tanθ=______.
\begin{answer}
21
\end{answer}
\begin{solution}
由向量数量积为零,得
a⋅b=sin2θ−cos2θ=0. 利用
sin2θ=2sinθcosθ,有
cosθ(2sinθ−cosθ)=0. 因为
0<θ<2π,所以
cosθ>0,从而
2sinθ=cosθ,即
tanθ=21.
\end{solution}