An introduction to calculus and algebra