Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 1

Algebraic Expressions and Equations

Recommended resources

Welcome to the first lesson of your journey into the mathematical foundations for computer science and AI. Since your long-term goal is robotics, which integrates computer science, AI, and engineering, a strong command of mathematics is essential. This initial module is designed to solidify the fundamental concepts you'll rely on throughout your studies.

Today, we will focus on the bedrock of algebra. You'll learn how to work with algebraic expressions and solve two of the most common types of equations: linear and quadratic equations. Mastering these skills is like learning the basic grammar and vocabulary of a new language—the language that describes the logic and structure behind the technologies you want to build.

1. The Language of Algebra

Before we can solve problems, we first need to understand the language used to express them. Algebra extends the arithmetic you're familiar with by introducing the concept of unknown values.

To get a feel for what algebra is all about, let's start with a short, intuitive video.

Algebra Basics: What Is Algebra? - Math Antics

This video from Math Antics provides a great introduction to the core ideas of algebra.

Please watch from the beginning until the introduction to equations, where the narrator explains how symbols, like x, are used to represent unknown numbers in an equation. Then, watch the segment that clarifies the role of symbols and establishes an important rule: within the same equation, the same symbol always represents the same value.

As the video explained, algebra uses variables (like , , ) as placeholders for numbers we don't know yet. These variables are combined with known numbers using arithmetic operations to form algebraic expressions.

An algebraic expression is made up of terms, which are separated by addition or subtraction. For example, in the expression :

  • , , and are the terms.
  • In the term , the number is the coefficient and is the variable.
  • The term is a constant because it has no variable part.

2. Manipulating Expressions: Combining Like Terms

Often, our first step in solving a problem is to simplify a complex expression. The most common way to do this is by combining like terms. "Like terms" are terms that have the exact same variable part (including exponents). For example, and are like terms, but and are not.

This next video demonstrates how to identify and combine like terms, and also introduces a crucial rule for dealing with expressions in parentheses: the distributive property.

Combining Like Terms Using The Distributive Property - Algebra

The Organic Chemistry Tutor provides very clear, step-by-step examples of simplifying expressions.

First, watch the section that explains how to combine like terms in simple expressions. Pay attention to how only the coefficients are added or subtracted. Next, watch the segment on the distributive property. This rule, a(b+c) = ab + ac, is fundamental for simplifying expressions that involve parentheses.

To summarize the key idea: to simplify an expression, you first use the distributive property to eliminate any parentheses, and then you combine all the like terms.

For example, to simplify :

  1. Distribute:
    • The expression becomes:
  2. Combine like terms:
    • Combine the terms:
    • Combine the constants:
  3. Result:

Now that we can confidently manipulate expressions, we can use this skill to solve equations.


3. Solving Linear and Quadratic Equations

An equation is a statement that two expressions are equal. Our goal when "solving" an equation is to find the value(s) of the variable that make this statement true. Today, we'll focus on two types: linear and quadratic equations.

This table shows the key difference between linear and quadratic equations. For linear equations, the highest power of the variable is 1 (like \(x\)). For quadratic equations, the highest power is 2 (like \(x^2\)).

3.1. Linear Equations

A linear equation with one variable can be written in the standard form , where and are constants and . Solving it involves one main principle: whatever you do to one side of the equation, you must also do to the other to maintain the balance. The goal is to isolate the variable .

Linear Equations - Definition, Formula, Graph, Examples - Cuemath

This article from Cuemath gives a concise overview of linear equations.

Please read the sections What is a Linear Equation?, Linear Equations in One Variable, and How to Solve Linear Equations?. These sections define the core concept and the strategy for solving.

Let's walk through an example. Solve the equation .

  1. Gather variable terms on one side. To remove from the right side, subtract from both sides:
  2. Gather constant terms on the other side. To remove from the left side, add to both sides:
  3. Isolate the variable. To get by itself, divide both sides by its coefficient, 3:

The solution is . A linear equation in one variable will have exactly one solution.

3.2. Quadratic Equations

Quadratic equations are of the form , where , , and are constants and . These are a bit more complex and can have zero, one, or two solutions. There are three primary methods for solving them.

The following reading from the Australian Mathematical Sciences Institute (AMSI) provides a comprehensive guide to these methods. We will go through it section by section.

Quadratic_Equations

This document covers the theory and methods for solving quadratic equations.

First, read the introductory section from the definition to the three methods. This part defines the standard form of a quadratic equation and lists the three main solving techniques we will cover. Now, let's focus on the first method. Read the section Solving by factoring. Pay close attention to the principle: if a product of factors is zero (e.g., (x-4)(x-3)=0), then at least one of the factors must be zero.

Method 1: Factoring
This method is fast if you can easily find the factors. It relies on rewriting the equation into the form . The solutions are then found by setting each factor to zero.

  • Example:
  • Factor:
  • Set each factor to zero: or
  • Solutions: or

Factoring isn't always easy or even possible with real numbers. For those cases, we need a more robust method.

Quadratic_Equations

Now, let's explore a more general technique.

Read the section on Completing the square. This method is powerful because it always works. The core idea is to manipulate the equation to create a "perfect square" trinomial, which can be factored easily, like x^2+6x+9 = (x+3)^2.

Method 2: Completing the Square
This method transforms the equation into the form , which can be solved by taking the square root of both sides.

  • Example:
  1. Move the constant:
  2. "Complete the square": Take half the coefficient of (), square it (), and add it to both sides:
  3. Factor the left side and simplify the right:
  4. Take the square root of both sides (remembering both positive and negative roots):
  5. Solve for : or

This method is systematic and leads directly to the most powerful tool for solving quadratics: the quadratic formula.

Quadratic_Equations

Finally, let's look at the universal formula derived from completing the square.

Read the section on The quadratic formula. This section shows how applying the "completing the square" method to the general equation ax^2+bx+c=0 gives us a formula that solves any quadratic equation.

Method 3: The Quadratic Formula
For any equation in the form , the solutions are given by the formula:

You simply identify the values of , , and from your equation and substitute them into the formula.

The part under the square root, , is called the discriminant. It quickly tells you how many real solutions the equation has:

  • If , there are two distinct real solutions.
  • If , there is exactly one real solution.
  • If , there are no real solutions (the solutions involve imaginary numbers, which are outside the scope of this lesson).

Conclusion

In this foundational lesson, we have covered the essential skills for working with basic algebraic equations. Here are the key takeaways:

  • Algebraic expressions use variables to represent unknown values, and can be simplified by combining like terms and using the distributive property.
  • Linear equations () involve a variable to the first power and have one unique solution, found by isolating the variable.
  • Quadratic equations () involve a variable to the second power and can have zero, one, or two real solutions.
  • They can be solved by factoring (if simple), completing the square (a general method), or using the quadratic formula (a universal tool).

You have taken a significant first step. These algebraic tools are not just abstract math problems; they are the instruments used to model and solve problems across all scientific and engineering disciplines.

In the next lesson, we will build on this foundation by exploring the concept of functions. We'll move from finding a single unknown value to describing the relationship between two or more variables, which is a central concept in programming and modeling systems.