Hi
I am trying to solve the following diffusion problem using crank Nicholson method, but having trouble on how to proceed with the tridiagonal matrix and boundary conditions.
dy/dt = k* d^2y/dx^2 K = increases with x
My initial condition is y(x,0)=0;
Boundary conditions are...