Welcome. In this part we are going to work through issuance, secondary trading, and bond valuation. The core of bond valuation is not a formula. It is discounting every future cash flow to a common date.
Start with the central idea. New bonds raise financing in the primary market and later trade in secondary markets. If maturity-specific spot rates are available, each cash flow should be discounted at its matching rate. YTM compresses the full cash-flow stream into one internal discount rate. Now put it into a concrete example. A two-year bond pays cash in year one and year two. If one-year and two-year spot rates differ, discounting both cash flows at the coupon rate has no no-arbitrage basis.