$$\\For\;\; f(x)\qquad x\ne4\;\;and\;\;y\ne1\\\\ $so for $f^{-1}(x)\qquad x\ne1 \;\;and\;\;y\ne4\\\\ $that is,$ \\$$
$$f^{-1}(x)$$ is undefined when x=1