Express the polar equation \(r=\cos 2\theta\) in rectangular coordinates.