A brief course in calculus with applications