Lawfare Academy · Complete Business Mathematics edition 3
Linear models, break-even and the limits of a forecast
This original on-site unit connects algebra to a business decision. Work through the explanations, fictional records and complete optional models here. Publisher references are optional. All costs refer to a stipulated planning period, and no real firm, tax rule or professional recommendation is implied. This is part of the complete six-unit on-site sequence.
Define a function before fitting a line
A function assigns one output to each admissible input. The expression C(q)=F+vq models total cost for a quantity q: F is a fixed amount for the period and v is the additional cost per unit within a stated operating range. If q is units per month, F is dollars per month and v is dollars per unit. Multiplying v by q produces dollars per month, compatible with F. A coefficient with the wrong time unit makes the equation incoherent even when a calculator returns a number.
“Fixed” describes behavior within a particular decision and range, not an expense's permanent nature. A monthly lease can be fixed for one month's output planning and avoidable when a facility contract ends. Variable unit cost can be approximately constant over a narrow range but change with overtime or bulk purchasing. If the business needs a second shift beyond 300 units, a single line through all quantities can hide a step in cost. State both the relevant period and the range in which the relationship is being used.
A constant rate of change gives a linear function. For two observations with distinct quantities, the slope is (C₂−C₁)/(q₂−q₁), and the intercept is C₁−vq₁. Two points determine a line mathematically. They do not prove that production caused the cost difference or that all intermediate and future points lie on it. Different product mix, input prices, maintenance events or measurement conventions can also change costs. Separate the fitted relationship from an independently established operational mechanism.
Intercepts, slopes and equivalent forms
The slope-intercept form y=ax+b makes the constant rate and zero-input output explicit. Point-slope form y−y₁=a(x−x₁) is often easier when an observed point is known. Both represent the same line after expansion. A horizontal intercept solves y=0; a vertical intercept evaluates x=0. A model's intercept can lie outside the observed or feasible range. Calling it “fixed cost” requires economic justification, not merely a fitted regression constant.
Slope units are output units divided by input units. If a chart measures quantity in hundreds of orders rather than individual orders, its numerical slope changes by a factor of 100. The physical relationship need not change. When comparing slopes, align units first. A steeper-looking chart can result from changing axis scales rather than a larger operational response. A vertical line x=k cannot be expressed as a single-valued y function of x because the same input is paired with multiple outputs.
For C(q)=2400+18q, the slope is $18 per unit and the intercept is $2,400 per period. The average cost for q>0 is C(q)/q=2400/q+18, which is not linear in q. The total-cost line and average-cost curve answer different questions. Average cost can fall because a fixed amount is spread across more units even while total cost rises. Marginal change over one additional unit is $18 only within this line's assumed operating range.
Derive contribution and break-even
If every unit sells for a constant price p and all produced units are sold in the period, revenue is R(q)=pq. Profit under the defined cost boundary is π(q)=R(q)−C(q)=(p−v)q−F. The difference c=p−v is contribution per unit. It contributes toward fixed cost first; only after covering that fixed amount does the model report positive profit. Contribution is not a synonym for net profit per unit.
Break-even solves π(q)=0. If p−v>0 and F>0, the continuous threshold is q*=F/(p−v). If output must be a whole number, the first nonnegative-profit quantity is the smallest admissible integer at or above that threshold. Rounding to the nearest integer can produce a loss. Capacity, demand and batch-size restrictions can still make the threshold unattainable. A 125.2-unit threshold with a 100-unit capacity is not a feasible recommendation to produce 126.
The sign of contribution changes the result. If p=v and F>0, no quantity covers fixed cost: π(q)=−F for every q in this model. If p<v and F>0, increasing nonnegative output makes the loss larger. A negative algebraic value F/(p−v) is not a feasible break-even quantity. If F=0, zero output can break even, but the direction of profit away from zero still depends on contribution. Do not apply a memorized positive-threshold interpretation without checking these cases.
Target profit and the margin of safety
For a target profit T, solve (p−v)q−F≥T. With positive contribution, q≥(F+T)/(p−v). A target can be conditional on the accounting cost boundary and still be commercially unrealistic. The formula assumes a constant selling price, variable cost and product mix, and that the resulting quantity can be sold and delivered. A production calculation cannot replace evidence of demand.
If expected sales are Q and break-even quantity is q*, the quantity margin of safety is Q−q*. A common percentage measure divides this difference by Q when Q>0. State the base: dividing by break-even instead answers a different question. A large margin of safety under a fragile price assumption is not a guaranteed protection against loss. Recalculate under changes in price, cost, sales mix and capacity rather than relying on a single headline percentage.
Sales mix and charges that change contribution
If two products have different contributions, total contribution is c₁q₁+c₂q₂. A single blended break-even quantity requires a stated sales mix. If one bundle contains two units of A and one of B, bundle contribution is 2c₁+c₂, and fixed cost divided by that contribution gives a bundle threshold. Calling the result a total-unit threshold without converting the bundle composition is an error. The mix can change with customer behavior, so the blended result is conditional rather than universal.
Sales-based fees also alter contribution. If fraction f of price is paid as a transaction fee and there is an additional fixed fee a per sale, contribution is p(1−f)−v−a when each unit is a sale. A fee per order is not necessarily a fee per unit if an order includes several units. Returns, commissions or discounts need their actual bases. Use the pricing unit's retained-revenue logic to build the contribution before calculating break-even.
Piecewise costs and a range-specific answer
Some operating relationships use different formulas in different ranges. Suppose a machine lease and staffing arrangement costs C(q)=1000+10q for 0≤q≤100, but producing more than 100 requires a second crew, giving C(q)=2200+10q for 100<q≤200. This particular model has a $1,200 upward cost step immediately beyond 100. The expression for the second range is the stipulated total cost there, not a marginal add-on to the first range. Other businesses might instead have a continuous piecewise relationship; the model must specify which.
At selling price $25, the first-range profit is 15q−1000, so its threshold is 66.666… and 67 units gives a small profit. In the second range, profit is 15q−2200, so the threshold is 146.666… and 147 units is needed. There can therefore be a profitable region, then a loss after the step, then another profitable region. One break-even number from one line does not describe all feasible quantities. Evaluate candidate solutions inside the range where their formulas apply and compare profit immediately before and after a step.
Fitting is a different task from assuming a model
A line based on engineering requirements or a contract is a stipulated structural relationship within its assumptions. A line estimated from data is a description selected by a fitting rule. For observations (xᵢ,yᵢ), a fitted value is ŷᵢ=a+bxᵢ and a residual is eᵢ=yᵢ−ŷᵢ. Ordinary least squares selects a and b to minimize the sum of squared residuals. With variation in x, its slope is Σ(xᵢ−x̄)(yᵢ−ȳ)/Σ(xᵢ−x̄)², and its intercept is ȳ−bx̄. If every x is identical, the denominator is zero and the data cannot identify a slope this way.
Least squares gives larger errors more weight through squaring. An unusual observation can strongly influence the fitted line; a high fit does not establish causation, accuracy on new data or a constant underlying mechanism. Inspect residuals in order and against fitted values. Curvature suggests that a straight-line mean relationship may be inadequate; increasing residual spread suggests changing error variation; clusters can reflect omitted groups or a process change. These are diagnostic clues to investigate, not automatic diagnoses from a chart shape.
Interpolation predicts within the observed input range; extrapolation predicts beyond it. Even interpolation can fail if the operating process has changed. Extrapolation adds the further assumption that the relationship persists where it has not been observed. Use a separate prediction check where possible and report uncertainty rather than describing a fitted value as a guaranteed bill. A model built using information available only after the target period is not an honest real-time forecast. The later statistics courses develop estimation uncertainty and validation in greater depth; this unit supplies the distinction needed to interpret a line responsibly.
Worked investigation 1: a threshold that must be rounded upward
A fictional workshop has period fixed cost $3,200, variable cost $22 per completed unit and selling price $47. Contribution is 47−22=$25 per unit. The continuous break-even threshold is 3200/25=128 units. At exactly 128, revenue is $6,016 and total cost is $3,200+$2,816=$6,016. For a target profit of $1,100, the threshold is (3200+1100)/25=172 units. At 172, profit is 25×172−3200=$1,100. These are feasible only if the workshop can sell and produce those amounts in the same planning period.
Optional practice 1: contribution changes
Variable cost rises to $23.50, selling price stays $47 and capacity is 180 units. Find the first whole-unit break-even and target-profit quantities. Can the workshop attain the same $1,100 target under these assumptions?
Model reasoning
Contribution is $23.50. Break-even is 3200/23.5≈136.1702, so 137 units is the first whole-unit nonnegative-profit quantity. The target threshold is 4300/23.5≈182.9787, so 183 would be needed. Capacity 180 excludes that quantity. Maximum profit within this constant positive-contribution model and capacity is 23.5×180−3200=$1,030, below the target. Reporting 183 without the capacity check would give an infeasible recommendation. Demand must still support even the feasible quantities.
Worked investigation 2: a supplier crossover is not a profit maximum
Supplier A charges 120+8q and Supplier B charges 300+5q in the same fictional period. Equality gives 120+8q=300+5q, so 3q=180 and q=60. Both charge $600 there. For q<60, A costs less; for q>60, B costs less, assuming both contracts remain available and quality/lead time are comparable. The crossing minimizes neither total cost over every quantity nor profit by itself: ordering zero would be cheapest if no service requirement existed. The decision question is which supplier meets a specified quantity requirement at the lower relevant cost.
Optional practice 2: change the service requirement
The business needs 75 units, but Supplier B can deliver only 50 and splitting orders incurs a separate $90 coordination fee. Is the original “choose B above 60” conclusion enough? Compute the costs of all-A and a split of 25 from A plus 50 from B, assuming both suppliers' fixed charges apply to a split.
Model reasoning
All-A costs 120+8×75=$720. The split costs (120+8×25)+(300+5×50)+90=320+550+90=$960. All-B is infeasible because of its 50-unit limit. For these two feasible alternatives, all-A costs less. The original crossover assumed that either supplier could meet the whole requirement and omitted the two fixed charges and coordination fee involved in splitting. It cannot be applied mechanically to a different feasible set. Other split quantities would require explicit comparison if they were being considered.
Worked investigation 3: audit a fitted line
Three fictional observations are (q,C)=(10,220),(20,310),(30,430). Their means are q̄=20 and C̄=320. The cross-product sum is (−10)(−100)+0(−10)+10(110)=2100. The squared input-deviation sum is 100+0+100=200. The least-squares slope is therefore 10.5 and intercept 320−10.5×20=110. Fitted costs are 215, 320 and 425, with residuals 5, −10 and 5. The residuals sum to zero for this fit with an intercept. That property is not a test that the model is true. The curved residual pattern across only three points is a reason to investigate more observations and the operating mechanism, not enough evidence to establish a specific nonlinear law.
Optional practice 3: prediction outside the records
The fitted line above predicts cost 110+10.5×100=$1,160 at q=100. A supervisor confirms that quantities above 60 require a $900 additional crew commitment. Revise the forecast claim and identify what further information is needed.
Model reasoning
The $1,160 figure is an extrapolation beyond the observed range 10–30 and ignores the known cost change above 60. If the only change were an additive $900 commitment and the same variable relation continued, a conditional revised value would be $2,060. But those continuation assumptions have not been established; crew productivity, overtime and other charges may also change. Report the old line's inadequacy and obtain the new range's cost structure or observations before presenting a defensible forecast. Do not describe the conditional $2,060 as a measured cost or a statistically justified prediction interval.
Optional integrated decision packet
A fictional vendor sells one unit per order at $80, incurs $42 of variable fulfillment cost, pays a 5 percent fee on the sale and $2 per order, and has $4,800 fixed period cost. Capacity is 170 orders. The manager expects 160 orders and wants $1,000 profit. Derive the contribution, break-even, target threshold and expected profit. Then revise the recommendation if the fee becomes 8 percent. Assume constant price and no returns; these are supplied assumptions, not observed guarantees.
Complete model
Initial contribution is 80×0.95−42−2=$32 per order. Break-even is 4800/32=150 orders. The target threshold is 5800/32=181.25, requiring 182 whole orders, which exceeds capacity. At expected volume 160, profit is 32×160−4800=$320. The quantity margin of safety is 160−150=10 orders, or 6.25 percent of expected sales. The $1,000 target is infeasible within the stated capacity, and expected volume is below even the unrestricted target threshold.
With an 8 percent fee, contribution is 80×0.92−42−2=$29.60. Continuous break-even is 4800/29.6≈162.1622, requiring 163 orders. At 160, profit becomes 29.6×160−4800=−$64. The target requires 5800/29.6≈195.9459, or 196 whole orders, still infeasible. The changed fee reverses the expected-profit sign. State that revision clearly; a recommendation to proceed based on the original positive $320 is no longer supported by the changed assumptions. Capacity 170 could permit a small profit if demand reaches that level, but the expected 160 does not establish it.
Explicit optional rubric: 20 points
- Four points for defining the period, quantity, fee base and contribution with compatible units.
- Four points for break-even and correct upward integer rounding.
- Four points for target-profit/capacity and expected-sales checks rather than a formula alone.
- Four points for recalculating all materially changed conclusions under the higher fee.
- Four points for a recommendation that distinguishes supplied assumptions, expected values, feasibility and evidence still needed about demand or operating range.
Optional source summary
OpenStax's section on modeling with linear functions introduces relationships with a constant rate of change and the interpretation of a model's quantities. It is optional further reading. All business derivations, fictional records, changed-fact problems and complete models required for this unit are supplied above.