How do i discretize this Temperature flow equation with the Fnite Difference method, when the conductivity K, is not constant?: $$ \frac{\partial}{\partial x}\left(K\frac{\partial T}{\partial x}\right) + \frac{\partial}{\partial y}\left(K\frac{\partial T}{\partial y}\right) = 0 $$
My attempt at this problem was to do the following:
$$ K(x)\frac{\partial^2 T}{\partial x^2} + K(y)\frac{\partial^2 T}{\partial y^2} = 0 $$ then discretize the second order partial equations: $$ K(x) \left(\frac{T_{i+1,j} -2T_{i,j} + T_{i-1,j} }{\Delta x}\right) + K(y) \left(\frac{T_{i,j+1} -2T_{i,j} + T_{i,j-1} }{\Delta y}\right) = 0 $$
However, i have been informed that this is an incorrect method as this working assumes a constant conductivity, where that is not the case in the problem.
would someone be able to help me with this?