Let $f : (0, \pi) \rightarrow \mathbf{R}$ be a function given by $f(x) = \begin{cases} \left(\frac{8}{7}\right)^{\frac{\tan 8x}{\tan 7x}}, & 0 < x < \frac{\pi}{2} \\ \mathrm{a} - 8, & x = \frac{\pi}{2} \\ (1 + |\cot x|)^{\frac{\mathrm{b}}{\mathrm{a}}|\tan x|}, & \frac{\pi}{2} < x < \pi \end{cases}$ where $\mathrm{a}, \mathrm{b} \in \mathbf{Z}$. If $f$ is continuous at $x = \frac{\pi}{2}$, then $\mathrm{a^2 + b^2}$ is equal to ______
Numerical-value question: the answer is a number.
Show answer
The answer is 81.
Key from source paper