I am trying to solve numerically the following 1D EBM:
$C\frac{\partial T[x,t] }{\partial t} - \frac{\partial }{\partial x}\left ( D(1-x^2)\frac{\partial T[x,t] }{\partial x} \right ) + I[T] = S[x,t](1-A[T])$
where $C$ and $D$ are constants.
I want to use the Crank-Nicolson method to solve it but I am unsure how to implement it with all of the non-linear terms.
What would the Crank-Nicolson discretization of this equation be?