Lesson 7.6: Fixed Income (Bond) Mathematics

A Masterclass Edition lesson on the calculus and linear algebra behind bond risk management.

Of all the financial instruments, bonds may seem the most straightforward. You lend money (buy the bond), and you receive a series of fixed payments (coupons) and a final principal payment at maturity.

The complexity arises when interest rates in the market change. If rates go up, your existing bond with its lower fixed coupon becomes less attractive, so its price falls. If rates go down, your bond becomes more attractive, and its price rises.

The core challenge for any fixed income portfolio manager is to answer two questions:

  1. How much will my bond's price change if interest rates move?
  2. How can I structure a portfolio of many bonds to have a precise, desired sensitivity to interest rate changes?

The answers to these questions are not just "finance"; they are fundamentally about linear approximation, the very heart of calculus and linear algebra.

The Price of a Bond - A Vector Dot Product

Present Value of Cash Flows

A standard bond is defined by its future cash flows. Let's consider a simple 3-year bond with a $1000 face value and a 5% annual coupon.

We can represent this as a Cash Flow Vector (`C`): `C = [50, 50, 1050]`

The price of this bond today is the **dot product** of the Cash Flow vector and a **Discount Factor Vector (`D`)** derived from the current yield `y`.

Price=CD=t=1nCt(1+y)t\text{Price} = C \cdot D = \sum_{t=1}^{n} \frac{C_t}{(1+y)^t}

This vector formulation is clean, powerful, and the foundation for everything that follows.

Duration & Convexity - Risk as Derivatives

Linear and Non-Linear Risk
We want to find the sensitivity of the price-yield curve. In calculus, this means taking derivatives.

The percentage price change for a small change in yield (Δy\Delta y) is given by Modified Duration (DmodD_{mod}), which is the first derivative:

%ΔPriceDmodΔy\% \Delta \text{Price} \approx -D_{mod} \cdot \Delta y

Convexity captures the curvature of the price-yield relationship and is the second derivative. A more accurate estimate using a Taylor expansion is:

%ΔPriceDmodΔy+12Cvx(Δy)2\% \Delta \text{Price} \approx -D_{mod} \cdot \Delta y + \frac{1}{2} C_{vx} \cdot (\Delta y)^2

Portfolio Immunization - A System of Linear Equations

Liability Matching
Imagine you are a pension fund with a liability of **$100 million** due in **7.3 years**. You want to build a portfolio of bonds to fund this future payment and be immune to interest rate changes.

You must match the properties of your assets (the bond portfolio) to your liability. This creates a **system of linear equations**.

Let's say you can buy Bond A and Bond B. You need to find the weights `w_A` and `w_B` to solve:

  1. Match Present Values: wA+wB=PV(Liability)w_A + w_B = \text{PV(Liability)}
  2. Match Durations: (wA/W)DA+(wB/W)DB=DLiab(w_A/W) \cdot D_A + (w_B/W) \cdot D_B = D_{Liab}
  3. Match Convexities: (wA/W)Cvx,A+(wB/W)Cvx,B=Cvx,Liab(w_A/W) \cdot C_{vx,A} + (w_B/W) \cdot C_{vx,B} = C_{vx,Liab}

This is an `Ax=b` problem! In a real-world scenario with more bonds than constraints, you would use **least-squares approximation** to find the weights that get you as close as possible to a perfect match.

This concludes our core applications in finance.