Solving differential and integral equations with Tau method