f[x_] = (x^6 + x^3 - 128)/Sqrt[9 - x^2]

Plot[f[x], {x, -3, 3}]

Maximize[{f[x], -3 < x < 3}, x]

Minimize[{f[x], -3 < x < 3}, x] // N