4. Given a function $g$, differentiable on $\mathbb { R }$ and such that $g \left( \frac { \pi } { 4 } \right) = g ^ { \prime } \left( \frac { \pi } { 4 } \right) = 2$, determine the equation of the normal line to the curve $y = g ( x ) \sin ^ { 2 } x$ at its point with abscissa $\frac { \pi } { 4 }$.