Mathematical Foundations for Economists: Calculus and Linear Algebra