# Linear Functions > A complete lesson on linear functions: definition, graph, slope, and applications. --- LLMS index: [llms.txt](/llms.txt) --- ## Introduction to Linear Functions A **linear function** is a function that creates a straight line when graphed. It describes a relationship where one variable changes at a constant rate with respect to another. The general form of a linear function is: --- ## 1. Understanding the Slope (a) The slope a measures the **steepness** of the line. It represents the rate of change: how much y changes when x increases by 1. * If a>0, the line goes **up** (increasing function). * If a<0, the line goes **down** (decreasing function). * If a=0, the line is **horizontal** (constant function). **Formula for slope between two points:** a=y−y′x−x′ --- ## 2. The y-Intercept (b) The y-intercept b is the point where the line crosses the y-axis. This happens when x=0. So, f(0)=b. --- ## 3. Graphing a Linear Function To draw the graph of a linear function, you only need **two points**. **Example 1:** Graph f(x)=2x+1. **Step 1:** Find two points. * When x=0, f(0)=1. Point: (0,1). * When x=2, f(2)=2×2+1=5. Point: (2,5). **Step 2:** Plot the points and draw the line through them. --- ## 4. Finding the Equation from a Graph If you have a line, you can find its equation by identifying a and b. **Example 2:** A line passes through (0,3) and (2,7). Find its equation. **Step 1:** The y-intercept is b=3 (because the line passes through (0,3)). **Step 2:** Calculate the slope. a=7−32−0=42=2 **Step 3:** Write the equation. f(x)=2x+3 --- ## 5. Applications: Word Problems Linear functions are used to model real-life situations with a constant rate of change. **Example 3:** A taxi charges a base fare of \$3 plus \$2 per kilometer. **Step 1:** Identify the fixed cost (y-intercept) and the variable cost (slope). * Fixed cost: b=3 * Cost per km: a=2 **Step 2:** Write the function. f(x)=2x+3 where x is the distance in km. **Step 3:** Calculate the cost for 10 km. f(10)=2×10+3=23 The cost is **\$23**. --- ## 6. Summary Table | Concept | Formula | Meaning | | :--- | :--- | :--- | | **Linear Function** | f(x)=ax+b | Equation of a line | | **Slope** | a=y−y′x−x′ | Rate of change (steepness) | | **y-Intercept** | b | Point where x=0 | | **Increasing** | a>0 | Line goes up | | **Decreasing** | a<0 | Line goes down | --- Section pages: - [Exercises: Linear Functions](/mathematics/college/3ac/linear-functions/exercises/): Interactive exercises on linear functions, slope, and equations. - [assessments](/mathematics/college/3ac/linear-functions/assessments/) - [lessons](/mathematics/college/3ac/linear-functions/lessons/)