📚 Profit & Loss: Advanced University‑Level Study Notes
(Prepared for a quantitative‑aptitude course – MIT‑style)
1. Introduction
Profit and loss (P&L) analysis is a cornerstone of quantitative business mathematics.
We treat it as a problem in weighted averages and linear algebra, providing a
rigorous first‑principles foundation, exploring edge cases, and culminating in a
challenging problem that blends probability and optimization.
Key idea: A sale price or cost represents a point on a line between two extremes (cost price vs selling price). The average of many such points yields the overall profit or loss.
2. Fundamental Definitions
| Symbol | Meaning | Units |
|---|---|---|
| (C) | Cost price of an item | currency |
| (S) | Selling price of an item | currency |
| (P) | Profit per item (= S-C) | currency |
| (L) | Loss per item (= C-S) | currency |
| (\pi) | Profit percentage of a transaction | % |
| (\lambda) | Loss percentage of a transaction | % |
| (n) | Number of units sold | dimensionless |
| (R) | Rate (e.g., interest, discount) | % |
3. Derivation from First Principles
3.1 Profit and Loss as Linear Functions
Let (S = \alpha C) where (\alpha > 0) is the markup factor.
Profit per unit:
[
P = S - C = (\alpha - 1)C
]
Profit percentage:
[
\pi = \frac{P}{C}\times 100 = (\alpha - 1)\times 100
]
Similarly, if (S = \beta C) with (\beta < 1) (a markdown), loss per unit:
[
L = C - S = (1-\beta)C,\qquad
\lambda = (1-\beta)\times 100.
]
Interpretation: (\alpha) and (\beta) are affine coefficients; the profit is a linear function of the cost.
3.2 Weighted Averages for Mixed Transactions
Suppose a shop sells (n_i) units at markup factor (\alpha_i) for (i=1,\dots,k).
Total cost:
[
C_{\text{tot}} = \sum_{i=1}^{k} n_i C_i.
]
Total revenue:
[
S_{\text{tot}} = \sum_{i=1}^{k} n_i \alpha_i C_i.
]
Total profit:
[
P_{\text{tot}} = S_{\text{tot}} - C_{\text{tot}}
= \sum_{i=1}^{k} n_i (\alpha_i - 1)C_i.
]
The average markup factor weighted by cost is:
[
\bar{\alpha} = \frac{\sum_{i} n_i \alpha_i C_i}{\sum_i n_i C_i}
= \frac{S_{\text{tot}}}{C_{\text{tot}}}.
]
Thus, overall profit percentage:
[
\pi_{\text{tot}} = (\bar{\alpha} - 1)\times 100.
]
Edge case: If (\sum_i n_i C_i = 0) (no items sold), the ratio is undefined; we define profit as 0.
3.3 Profit–Loss with Discounts and Markups
Let the shop first marks up the cost by (\Delta%) (markup factor (\alpha = 1+\frac{\Delta}{100})).
Then a discount of (\delta%) is applied to the marked price:
[
S = \alpha C \times (1 - \frac{\delta}{100}) = C(1+\frac{\Delta}{100})(1-\frac{\delta}{100}).
]
Profit percentage:
[
\pi = \left[(1+\frac{\Delta}{100})(1-\frac{\delta}{100}) - 1\right]\times 100.
]
Expanding:
[
\pi = \Delta - \delta - \frac{\Delta\delta}{100}.
]
This shows the non‑linear interaction between markup and discount.
4. Advanced Topics
4.1 Profit & Loss in Multi‑Product Bundles
Consider a bundle of two products with costs (C_1, C_2).
Bundle cost (C_B = C_1 + C_2).
Bundle selling price (S_B = (1+\frac{\Delta}{100})C_B).
If one product is sold separately with discount (\delta) and the other sold at full price, the effective profit is a convex combination:
[
\pi_{\text{bundle}} = \frac{n_1 (1+\frac{\Delta}{100})(1-\frac{\delta}{100})C_1 + n_2(1+\frac{\Delta}{100})C_2}{n_1 C_1 + n_2 C_2} - 1.
]
4.2 Edge Cases & Singularities
| Scenario | Issue | Remedy |
|---|---|---|
| (\alpha = 1) (no markup) | Profit zero | Trivial |
| (\alpha < 1) (markdown) | Loss | Compute loss percentage |
| (\delta = 100%) (free) | Negative revenue | Profit = (-C) |
| (C=0) (free item) | Division by zero | Profit undefined; treat as zero cost |
4.3 Profit & Loss with Variable Costs
If the cost depends on quantity (economies of scale), let (C(q)) be a convex function.
Profit function:
[
\Pi(q) = q \cdot \alpha C(q) - q C(q) = q(\alpha-1)C(q).
]
Optimization: maximize (\Pi(q)) over (q).
First‑order condition:
[
\frac{d\Pi}{dq} = (\alpha-1)[C(q) + q C'(q)] = 0 \implies C(q) + q C'(q) = 0.
]
For linear (C(q)=c_0 + c_1 q), this yields (q^* = -\frac{c_0}{2 c_1}), provided (c_1<0).
5. Challenging Problem
Problem:
A shop sells two types of gadgets: A and B.
- Cost of A: (C_A =