> ## Documentation Index
> Fetch the complete documentation index at: https://programming-for-career.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Algebra Basics

> A comprehensive guide to algebra basics, covering fundamental concepts, equations, expressions, and problem-solving techniques.

## Introduction

Algebra is a branch of mathematics that deals with symbols and rules for manipulating those symbols. It is a fundamental area of study in mathematics, forming the basis for advanced topics such as calculus, linear algebra, and number theory. Algebra is widely used in engineering, physics, computer science, and economics.

## Key Concepts of Algebra

### 1. Variables and Constants

* **Variable:** A symbol (like `x`, `y`, or `z`) that represents an unknown value.
* **Constant:** A fixed numerical value (like `5`, `-3`, or `2.7`).

Example:

```
Equation: x + 3 = 7
Variable: x
Constant: 3, 7
```

### 2. Expressions and Equations

* **Expression:** A mathematical phrase that combines variables, numbers, and operators but does not include an equals sign.
  * Example: `3x + 5`
* **Equation:** A mathematical statement that shows the equality between two expressions.
  * Example: `3x + 5 = 14`

### 3. Operations in Algebra

* **Addition (`+`)**
* **Subtraction (`-`)**
* **Multiplication (`*` or `×`)**
* **Division (`/` or `÷`)**
* **Exponentiation (`^`)**

Example:

```
(2x + 3) * (x - 4)
```

## Fundamental Algebraic Properties

1. **Commutative Property** (Order doesn’t matter)

   * Addition: `a + b = b + a`
   * Multiplication: `a × b = b × a`

2. **Associative Property** (Grouping doesn’t matter)

   * Addition: `(a + b) + c = a + (b + c)`
   * Multiplication: `(a × b) × c = a × (b × c)`

3. **Distributive Property** (Multiplication distributes over addition)

   * `a × (b + c) = a × b + a × c`

4. **Identity Properties**

   * Additive Identity: `a + 0 = a`
   * Multiplicative Identity: `a × 1 = a`

5. **Inverse Properties**
   * Additive Inverse: `a + (-a) = 0`
   * Multiplicative Inverse: `a × (1/a) = 1` (for `a ≠ 0`)

## Solving Linear Equations

A **linear equation** is an equation of the form `ax + b = c`.

### Steps to Solve:

1. **Simplify the equation** (if needed).
2. **Isolate the variable** by performing inverse operations.
3. **Solve for the variable.**
4. **Check your solution.**

Example:

```
Solve: 2x + 3 = 7
Step 1: Subtract 3 from both sides → 2x = 4
Step 2: Divide by 2 → x = 2
```

## Quadratic Equations

A **quadratic equation** is of the form `ax² + bx + c = 0`.

### Methods to Solve Quadratic Equations

1. **Factoring**
2. **Quadratic Formula**: `x = (-b ± √(b² - 4ac)) / 2a`
3. **Completing the Square**
4. **Graphing**

Example:

```
x² - 5x + 6 = 0
Factoring: (x - 2)(x - 3) = 0
Solutions: x = 2 or x = 3
```

## Exponents and Powers

* `a^n` means `a` multiplied by itself `n` times.
* **Laws of Exponents:**
  1. `a^m * a^n = a^(m+n)`
  2. `a^m / a^n = a^(m-n)`
  3. `(a^m)^n = a^(m*n)`
  4. `a^0 = 1` (for `a ≠ 0`)
  5. `a^-n = 1 / a^n`

## Polynomials

A **polynomial** is an algebraic expression with one or more terms.

Example:

```
3x² - 4x + 5
```

* **Degree of a Polynomial**: The highest exponent in the expression.
* **Types of Polynomials:**
  * Monomial: `5x`
  * Binomial: `3x - 4`
  * Trinomial: `x² + 2x + 1`

## Functions and Graphs

A **function** is a relation that assigns exactly one output for each input.

Example:

```
Function: f(x) = 2x + 3
```

* **Linear Function:** Straight-line graph, `y = mx + b`
* **Quadratic Function:** Parabolic graph, `y = ax² + bx + c`
* **Exponential Function:** Growth/decay curve, `y = a^x`

## Conclusion

Algebra is the foundation of advanced mathematics and problem-solving. Mastering algebraic concepts will help in various fields, including engineering, physics, computer science, and economics.
