Question:
Calculate coefficient of $x$ in $$f(x)=\det\begin{pmatrix} x & (1+\sin x)^3 & \cos x \\ 1 & \ln(1+x) & 2 \\ x^2 & 1+x^2 & 0 \end{pmatrix}$$
My attempt:
I know how to do such types of problems. I calculated $f'(x)$ by splitting the given determinant columnwise, and noted that the coefficient of $x$ in $f(x)$ is simply $f'(0)$. I also got the correct answer ($=-2$).
I am curious about the method given in my book. They say that:
Coefficient of $x$ in $f(x)$ is same as the coefficient of $x$ in $g(x)=\det\begin{pmatrix} x & 1 & 1 \\ 1 & x & 2 \\ x^2 & 1 & 0 \end{pmatrix}$
I do not understand how they arrived at the matrix in $g(x)$. I tried relating this to Taylor series, since that is probably the only way to convert $\ln$ or $\sin$ into a polynomial function of $x$, but it did not make sense since:
- these taylor series only work for $x\to0$, while here we have $\text{Domain}_{f(x)}=\{x:x>-1\}$, and
- they retained $x$ from $\ln(1+x)$, but dismissed the $3x$ from $(1+\sin x)^3$, though both are having the same degree $1$
I don't know of any other possible method to arrive at $g(x)$ from $f(x)$. Any help is appreciated!