Lesson 3 — Linear (Affine) Functions
Linear function f(x) = ax + b. Slope as a CONSTANT rate of change — conceptual bridge to the derivative.
Used in: 1.º ano EM
Linear (affine) function: the coefficient a is the rate of change (how much y changes when x increases by 1 unit). The b is the value of y when x = 0. When b = 0, it is a linear function. When a = 0, it is a constant function.
Rigorous notation, full derivation, hypotheses
Definition and properties
- : slope (angular coefficient, inclination)
- : y-intercept (linear coefficient)
- Graph: a straight line. : increasing. : decreasing. : constant.
"The slope of a line that passes through two points and is ." — OpenStax College Algebra 2e, §2.2
Zero of the function and intercepts
(when ). The pair is the vertical intercept. The pair is the zero (or horizontal intercept).
Uniqueness theorem: two points determine a line
Proof (sketch). Existence: define by the formula above and . One verifies by construction, and . Uniqueness: if also satisfies , then and . ∎
Composition and operations
Let and . Then:
- Sum: — affine, with slopes added.
- Composition: — affine, with slopes multiplied.
- Inverse (if ): — also affine, with slope .
The set of invertible affine functions () under composition forms a group — the structure . This observation will be used in linear algebra (Lesson 31+) and in affine geometry.
Family of parallel lines
Family of lines with the same slope a = 1 and different intercepts b. Vertical translation: changing b only shifts the line up or down, without rotating it.
Family of concurrent lines
Family with the same intercept (0, 1) and different slopes — all crossing at that point. Rotation: changing a rotates the line around the intercept.
Worked examples
Five examples with increasing difficulty — from direct evaluation of a given line to modeling a break-even point for transport plans. Each example cites its source: the original problem always comes from an open-licensed book.
Exercise list
45 exercises · 11 with worked solution (25%)
- Ex. 3.1Modeling
Terry is hiking down a steep hill. Her elevation, , in feet after seconds is . What does this affine model tell us about her initial elevation and how it changes over time?
Show solution
In , the initial value is the starting elevation (feet), and is the rate of change: the elevation drops 70 feet each second.Show step-by-step (with the why)
- Compare with : here and .
- The y-intercept is the value at : the initial elevation.
- The slope indicates a drop of 70 feet per second.
- Conclusion: starts at 3,000 feet and descends 70 ft/s.
- Ex. 3.2ModelingAnswer key
Jessica is walking home from a friend's house. After 2 minutes she is 1.4 miles from home; 12 minutes after leaving, she is 0.9 miles away. What is her speed in miles per hour?
Show solution
The rate of change is miles per minute. Converting: miles per hour.Show step-by-step (with the why)
- Compute the change in distance: mi in 10 minutes.
- Rate per minute: mi/min.
- Convert to mi/h: mi/h.
- Ex. 3.3ModelingAnswer key
A boat is 100 miles from the marina, sailing directly toward it at 10 miles per hour. Write an equation for the distance of the boat from the marina after hours.
Show solution
The boat starts 100 miles away and approaches at 10 mi/h, so . The slope indicates the distance decreases by 10 miles per hour. - Ex. 3.4Understanding
Determine whether the function is increasing or decreasing.
Show solution
In , the slope , therefore the function is increasing. - Ex. 3.5Understanding
Determine whether the function is increasing or decreasing.
Show solution
In , the slope , therefore the function is decreasing. - Ex. 3.6Understanding
Determine whether the function is increasing or decreasing.
Show solution
In , the slope , therefore the function is decreasing. - Ex. 3.7UnderstandingAnswer key
Determine whether the function is increasing or decreasing.
Show solution
In , the slope , therefore the function is increasing. - Ex. 3.8Application
Calculate the slope of the line passing through the points and .
Show solution
The slope is . - Ex. 3.9ApplicationAnswer key
Calculate the slope of the line passing through the points and .
Show solution
The slope is . - Ex. 3.10Application
Calculate the slope of the line passing through the points and .
Show solution
The slope is . - Ex. 3.11Application
Calculate the slope of the line passing through the points and .
Show solution
The slope is . - Ex. 3.12ApplicationAnswer key
Calculate the slope of the line passing through the points and .
Show solution
The slope is .Show step-by-step (with the why)
- Compute .
- Compute .
- Divide: .
- Ex. 3.13ApplicationAnswer key
Find the equation of the affine function satisfying and .
Show solution
The slope is . Using : . Therefore . - Ex. 3.14Application
Find the equation of the affine function satisfying and .
Show solution
The slope is . Using : . Therefore . - Ex. 3.15Application
Find the equation of the affine function whose graph passes through the points and .
Show solution
The slope is . Using : . Therefore . - Ex. 3.16Application
Find the equation of the affine function whose zero is (x-intercept: ) and whose y-intercept is .
Show solution
The zero is and the y-intercept is . The slope is . Therefore .Show step-by-step (with the why)
- Identify the two points: and .
- Compute the slope: .
- The y-intercept is (given directly).
- Write: .
- Ex. 3.17Application
Find the equation of the affine function whose zero is (x-intercept: ) and whose y-intercept is .
Show solution
The zero is and the y-intercept is . The slope is . Therefore . - Ex. 3.18Understanding
Are the lines and parallel, perpendicular, or neither?
Show solution
Converting: and . The product of the slopes is , so they are perpendicular.Show step-by-step (with the why)
- Isolate in the first equation: .
- Isolate in the second equation: .
- Compute .
- Conclude: perpendicular.
- Ex. 3.19Understanding
Are the lines and parallel, perpendicular, or neither?
Show solution
Converting: , slope . And , slope . The slopes are different and the product , so they are neither parallel nor perpendicular. - Ex. 3.20UnderstandingAnswer key
Are the lines and parallel, perpendicular, or neither?
Show solution
Converting: and . Both have slope , so they are parallel. - Ex. 3.21Understanding
Are the lines and parallel, perpendicular, or neither?
Show solution
Converting: , slope . And , slope . Product: , so they are perpendicular. - Ex. 3.22Application
Find the zero (x-intercept) and the y-intercept of the function .
Show solution
For : the zero is ; the y-intercept is . - Ex. 3.23Application
Find the zero (x-intercept) and the y-intercept of the function .
Show solution
For : the zero is ; the y-intercept is . - Ex. 3.24Application
Find the zero (x-intercept) and the y-intercept of the function .
Show solution
For : the zero is ; the y-intercept is . - Ex. 3.25Application
Write the equation of the line parallel to that passes through .
Show solution
A line parallel to has slope . Using : . Therefore . - Ex. 3.26ApplicationAnswer key
Write the equation of the line parallel to that passes through .
Show solution
A line parallel to has slope . Using : . Therefore . - Ex. 3.27Application
Write the equation of the line perpendicular to that passes through .
Show solution
A line perpendicular to has slope . Using : . Therefore .Show step-by-step (with the why)
- Slope of is .
- Perpendicular slope: .
- Using : .
- Result: .
- Ex. 3.28ApplicationAnswer key
Write the equation of the line perpendicular to that passes through .
Show solution
A line perpendicular to has slope . Using : . Therefore . - Ex. 3.29Understanding
Can the table below represent a linear function? If so, find the equation.
0 5 10 15 Show solution
Checking the differences: and in all intervals, so . Using : . - Ex. 3.30UnderstandingAnswer key
Can the table below represent a linear function? If so, find the equation.
2 4 6 8 Show solution
Checking: and in all intervals, so . Using : . Therefore . - Ex. 3.31ChallengeAnswer key
If is a linear function with and , find the equation of .
Show solution
The slope is . Using : . Therefore . - Ex. 3.32Modeling
At noon, a barista has 0.50 per customer, what is the affine function that models the total amount in the jar after serving customers?
Show solution
The initial amount is 20 (y-intercept) and it grows by 0.50 per customer (slope). Therefore . - Ex. 3.33Modeling
A gym membership with 2 personal training sessions costs 260. What is the cost per individual session?
Show solution
The price difference for 3 extra sessions is . Cost per session: .Show step-by-step (with the why)
- Cost difference: .
- Session difference: sessions.
- Cost per session: .
- Ex. 3.34Modeling
A city's population was growing linearly. In 2003 there were 45,000 inhabitants, with a growth of 1,700 people per year. Write the function that models the population.
Show solution
The population starts at 45,000 in 2003 and grows by 1,700 per year. Therefore , where corresponds to 2003. - Ex. 3.35Modeling
When the temperature is 0 °C, Fahrenheit is 32. When Celsius is 100, Fahrenheit is 212. Express Fahrenheit as an affine function of Celsius.
Show solution
Two points: and . The slope is . With : .Show step-by-step (with the why)
- Identify two known points: and .
- Compute the slope: .
- The y-intercept is (when ).
- Write: .
- Ex. 3.36Modeling
A city's population was decreasing at a constant rate. In 2010 it was 5,900; in 2012 it fell to 4,700. Write the affine function modeling the population, with in 2010.
Show solution
Rate of change: inhabitants/year. With : . - Ex. 3.37Modeling
In 2004, a school's population was 1,001. In 2008 it grew to 1,697. Assuming linear growth, what was the annual growth rate?
Show solution
Growth rate: people/year. - Ex. 3.38Challenge
You are choosing between two prepaid cell phone plans. Plan A charges 19.95 plus $0.11/minute. After how many minutes does Plan B become cheaper?
Show solution
Plan 1: . Plan 2: . Setting equal: minutes.Show step-by-step (with the why)
- Model: and .
- Set equal to find the break-even: .
- Isolate : .
- Solve: minutes.
- Ex. 3.39Challenge
At a new sales job, you have two salary options:
- Option A: base salary of $17,000/year + 12% commission on sales.
- Option B: base salary of $20,000/year + 5% commission on sales.
Above what sales value does Option A earn more?
Show solution
Option A: ; Option B: . Setting equal: . Above approximately 42,857 in sales, Option A is more profitable. - Ex. 3.40Modeling
Company A washes windows for 40 plus $3 per window. For how many windows does Company B become cheaper?
Show solution
Company 1: ; Company 2: . Setting equal: windows. Above 20 windows, Company 2 is cheaper. - Ex. 3.41Application
Determine whether each function is increasing or decreasing: and .
Show solution
In the slope is , so it is increasing. In the slope is , so it is decreasing. - Ex. 3.42Application
Find the equation of the affine function whose graph passes through the points and .
Show solution
The slope is . With : . Therefore .Show step-by-step (with the why)
- Compute .
- Use : .
- Write: .
- Verify: . Correct.
- Ex. 3.43Application
Find the equation of the affine function whose graph passes through the points and .
Show solution
The slope is . With : . Therefore . - Ex. 3.44Modeling
A newborn weighs 7.5 pounds. In the first year, they gain half a pound per month. Write the affine function that models the weight after months.
Show solution
The baby is born weighing 7.5 lb (y-intercept) and gains 0.5 lb/month (slope). Therefore . - Ex. 3.45Modeling
Using the model from the previous exercise, after how many months did the baby weigh 10.0 pounds?
Show solution
Using , solve months.
Sources
Only books that directly fed the text and exercises. Full catalog at /livros.
- OpenStax College Algebra 2e — Jay Abramson et al. · 2022 · EN · CC-BY 4.0 · §2.1–2.4, §5.1–5.3. Primary source for blocks A, B, C.
- Yoshiwara — Modeling, Functions, and Graphs — Katherine Yoshiwara · 2020 · EN · free · ch. 1. Primary source for block E (modeling).
- Active Calculus — Matt Boelkins · 2024, ed. 2.0 · EN · CC-BY-NC-SA · §1.2–1.3 (rate of change as motivation for the derivative). Source for Door 25.
- Stitz–Zeager Precalculus — Carl Stitz, Jeff Zeager · 2013, v3 · EN · CC-BY-NC-SA · §2.1, §10.6.
- Hammack — Book of Proof — Richard Hammack · 2018 · EN · free · §12. Source for exercise 3.15 (composition of affine functions).