Let $A=(a_{i,j})_{n\times n}$ be an invertible matrix with the positive rational entry. Let $p(x)$ be a rational polynomial. Consider the following matrix \begin{align*} B=\left(p(a_{i,j})\right)_{n\times n}. \end{align*} Assume that $a_{i,j}$ is not a zero of $p(x)$ for any $1\leq i,j\leq n$. Then I am wondering whether $B$ is invertible?
A more general question can be raised as follows: Let $f(x)$ be a real function. If each $a_{i,j}$ is not a zero of $f(x)$, then when is the matrix $D=\left(f(a_{i,j})\right)_{n\times n}$ invertible?
Any help will be appreciated!:)
No. Take $p(x)=(x-1)^2$ and let $A=\left[\begin{smallmatrix}2&0\\0&2\end{smallmatrix}\right]$. Then$$\begin{vmatrix}p(2)&p(0)\\p(0)&p(2)\end{vmatrix}=\begin{vmatrix}1&1\\1&1\end{vmatrix}=0,$$but $\det A\neq0$.