Advanced calculus with applications