I am trying to solve the determinant of a matrix of the following form:
$$ A_n = \begin{bmatrix} x & b & b & \cdots & b \\ a & x & b & \cdots & b \\ a & a & x & \cdots & b \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ a & a & a & \cdots & x \end{bmatrix} $$
I attempted to use recursion to find a general formula for the determinant $D_n$ of the matrix $A_n$. My idea was to subtract successive columns to simplify the matrix and find a general expression.
After some calculations with the first and the second column, I arrived at the following formula for the determinant:
$$ D_n(x) = (x - b) D_{n-1}(x) + (x - a)^{n-1} \cdot b $$
This formula seems to work well for $(n = 2, 3)$, but I am not entirely sure it is correct. My professor' ’s question on this problem is:
Demonstrate that $ D_n(x)' = n D_{n-1}(x)'$ (where $D_n(x)'$ is the derivative with respect to $x$),
which does not seem to work with my formula.
Can anyone help me verify the formula or suggest a simpler approach to solving this determinant?