Fundamentals of algebra and trigonometry