If the real valued function \( f(x) = \begin{cases} \frac{\cos 3x - \cos x}{x \sin x}, & \text{if } x < 0 \\ p, & \text{if } x = 0 \\ \frac{\log(1 + q \sin x)}{x}, & \text{if } x > 0 \end{cases} \) is continuous at \( x = 0 \), then \( p + q = \)
If a function \( f : (-\infty, 2) \to \mathbb{R} \) is defined by \[ f(x)= \begin{cases} \dfrac{\alpha \left|x^2 - 3x + 2\right|}{x - 1}, & x < 1 \\[8pt] \dfrac{\sin([x] - x)}{x - [x]}, & x > 1 \\[8pt] \beta, & x = 1 \end{cases} \] and \( f \) is continuous at \( x = 1 \), then find \[ \frac{\alpha^2 + \beta^2}{|\alpha \beta|}. \]


