What does Launch Ad Pulses and Word of Mouth conclude, in numbers, about “Pricing Every Yuan: the Hamiltonian, the Co-State and the Switching Function”?

Answer: The two columns are almost identical: on the first day the needle gives +0.4627 and the switching function +0.4579; on day fifteen they are -0.4638 and -0.4633; on day thirty, -0.7314 and -0.7313. The small gaps arise because a hundred yuan is not infinitesimal, and nonlinearity makes a finite perturbation drift slightly from the derivative; the later the day, the smaller the gap. The switching function is therefore not an abstract multiplier. It is how much the whole window's profit changes, net, for one more yuan on that day, the true price of each yuan.

Scope of the numbers: Chapter 8 gives the first-week pulse schedule, the switch-day judgement, the Launch Ad-Pulse Switch-Day Calculator and a pre-registered protocol (simulated power 0.840 with 20 units per arm). Marked boxes separate published evidence, runnable Python calculations (20 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: -0.4633, -0.4638, -0.7313, -0.7314, 0.4579, 0.4627

dayneedle (profit change per yuan)sigma_t
0+0.4627+0.4579
3+0.1717+0.1687
5+0.0200+0.0177
6-0.0673-0.0655
8-0.1808-0.1794
15-0.4638-0.4633
30-0.7314-0.7313
rule days spent spend profit
6-day pulse 6 30000 531909
myopic return rule 21 105000 480047
cap all 60 days 60 300000 294289

Key formula

\[H_t=V f(x_t,u_t)-u_t+\lambda_{t+1}\bigl(x_t+f(x_t,u_t)\bigr).\]
Show the full program
# Chapter 2. p22: A needle test: sigma is the profit of one more yuan.
# Add delta = 100 yuan to day t of the 6-day pulse (or remove it on a
# pulse day), recompute the 60-day profit exactly, and divide by delta.
# The maximum principle says the ratio approaches sigma_t of p21. Then
# compare three rules: the 6-day pulse, the myopic rule (spend while the
# direct return V beta (1 - x) exceeds 1) and spending the whole window.
# Parameters as in p12 (illustrative).
import math

M, MARGIN, P, Q, BETA, UMAX, T = 20000, 30.0, 0.001, 0.08, 4e-6, 5000.0, 60
V = MARGIN * M


def run(us):
    x, cash = 0.0, []
    for u in us:
        x2 = x + (P + BETA * u + Q * x) * (1 - x)
        cash.append(V * (x2 - x) - u)
        x = x2
    return math.fsum(cash)


def sigma(us):
    xs = [0.0]
    for u in us:
        x = xs[-1]
        xs.append(x + (P + BETA * u + Q * x) * (1 - x))
    lam, sig = 0.0, [0.0] * T
    for t in range(T - 1, -1, -1):
        x, u = xs[t], us[t]
        sig[t] = (V + lam) * BETA * (1 - x) - 1
        lam = (V + lam) * (Q - P - BETA * u - 2 * Q * x) + lam
    return sig


base = [UMAX] * 6 + [0.0] * (T - 6)
v0, sig, d = run(base), sigma(base), 100.0
print("day  needle (profit change per yuan)  sigma_t")
for t in (0, 3, 5, 6, 8, 15, 30):
    us = list(base)
    us[t] += d if us[t] == 0 else -d
    sgn = 1 if base[t] == 0 else -1
    print("%3d  %+.4f                          %+.4f"
          % (t, (run(us) - v0) / (sgn * d), sig[t]))


def myopic():
    x, us = 0.0, []
    for _ in range(T):
        u = UMAX if V * BETA * (1 - x) > 1 else 0.0
        us.append(u)
        x = x + (P + BETA * u + Q * x) * (1 - x)
    return us


my = myopic()
print("rule                 days spent  spend    profit")
for name, us in (("6-day pulse", base), ("myopic return rule", my),
                 ("cap all 60 days", [UMAX] * T)):
    n = len([u for u in us if u > 0])
    print("%-20s %3d         %6.0f   %.0f"
          % (name, n, math.fsum(us), run(us)))

Single source and citation

Fan, Y. (2026). Pontryagin's Maximum Principle at Product Launch: Optimal Ad-Pulse Burn Rates and the Hand-Over to Word of Mouth (Version 1.0.0), Chapter 2: Pricing Every Yuan: the Hamiltonian, the Co-State and the Switching Function. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-241 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026241,
  author    = {Fan, Yafu},
  title     = {Pontryagin's Maximum Principle at Product Launch: Optimal Ad-Pulse Burn Rates and the Hand-Over to Word of Mouth},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book