On the spectral problem for trivariate functions