Linear functions describe straight line relationships, and much of business mathematics starts here: demand, supply, cost, and revenue are all modeled as lines before harder curves appear. This unit builds the line itself, applies it to markets and budgets, and ends with fitting a line to real data.
Slope and forms of a straight line
The slope m of a line measures how fast y changes when x changes by one unit. Through points (x1,y1) and (x2,y2):
The same line can be written in several forms. The slope intercept form y=mx+c shows slope m and y intercept c directly. The point slope form y−y1=m(x−x1) builds the line from one known point and the slope. The two point form computes m from two known points with the formula above, then uses the point slope form. The intercept form ax+by=1 shows the x intercept a and y intercept b directly.
Example: the line through (1,5) and (3,11) has slope m=(11−5)/(3−1)=3, so y−5=3(x−1), or y=3x+2. Check: at x=3, y=3(3)+2=11, which matches.
Linear demand, supply, cost, and revenue
A linear demand function links price P to quantity demanded Qd with a negative slope. That negative slope is the Law of Demand: quantity falls as price rises.
A linear supply function has a positive slope: higher prices call out more quantity.
FIGURE NEEDED: linear demand and supply curves on price quantity axes, showing the downward and upward slopes.
On the firm side, total cost adds fixed cost FC to variable cost v per unit for output Q:
Total revenue is price times quantity, TR=P×Q. When the selling price is fixed, revenue is also a straight line through the origin with slope P.
Elasticity on linear functions
Point price elasticity of demand measures the percentage change in quantity per one percent change in price:
For the linear demand curve Qd=a−bP, the derivative dQ/dP equals −b, so elasticity at any point is Ep=b(P/Q). Note that elasticity changes along the line even though the slope is constant. Example: for Qd=100−2P at P=20, quantity is Q=60, so Ep=2(20/60)≈0.67, which is inelastic since it is below 1. Supply elasticity uses the same formula without the minus sign and is positive. Income elasticity replaces price with income Y, EY=(dQ/dY)(Y/Q): a positive value marks a normal good and a negative value marks an inferior good.
Budget and cost constraints
A budget line shows all combinations of two goods that exactly spend income M at prices P1 and P2:
Its intercepts are M/P1 and M/P2, and its slope is −P1/P2. Example: with M=1000, P1=50, and P2=100, the budget line 50X+100Y=1000 meets the axes at X=20 and Y=10. An isocost (cost constraint) line C=wL+rK works the same way for labour L and capital K at prices w and r.
Least squares line of best fit
Given scattered data on two variables, the least squares line y^=a+bx is the line that minimizes the sum of squared vertical deviations ∑(y−y^)2. Its coefficients solve the normal equations:
Trend fitting for time series data
For yearly data, the same method fits a trend line by coding time so that ∑x=0, which reduces the normal equations to a=∑y/n and b=∑xy/∑x2. For an odd number of years, set the middle year to x=0. For an even number of years, center the origin between the two middle years with x=…,−3,−1,1,3,…. Always shift the origin this way: using raw calendar years as x produces huge numbers and arithmetic errors. Forecasts come from substituting the future coded time value into y^=a+bx. The past question bank asks 10 mark trend fitting questions on yearly income and profit tables, so this procedure is worth practicing with full tables.
Worked problem: trend line and forecast
Data: yearly profits of a trading firm in Rs. millions.
Fit a straight line trend by least squares and estimate profit for 2026.
Solution: with n=7 years, set the origin at the middle year 2020 so x=t−2020.
Since ∑x=0:
For 2026, x=6: