The length of the normal drawn at \( t = \frac{\pi}{4} \) on the curve \( x = 2(\cos 2t + t \sin 2t) \), \( y = 4(\sin 2t + t \cos 2t) \) is:
In a triangle \(ABC\), if
\[ (a - b)^2 \cos^2 \frac{C}{2} + (a + b)^2 \sin^2 \frac{C}{2} = a^2 + b^2, \]
then \( \cos A \) is: