Tutorials › Stochastic Calculus › Running Rewards and Inhomogeneous Parabolic Equations

The Feynman-Kac Formula · Tutorial 392 of 600

Running Rewards and Inhomogeneous Parabolic Equations

Learn how a running reward changes the backward parabolic equation and how Itô’s formula yields its expectation representation.

Advanced 10 min read

What You'll Learn

  • State sufficient conditions for representing a classical solution of an inhomogeneous backward equation.
  • Derive the running-reward term and its sign using Itô’s formula.
  • Identify the integrability condition that makes the stochastic integral a true martingale.
  • Compute representations for Brownian and drifted Brownian examples.
  • Check candidate solutions directly in both the PDE and expectation formula.

From a Source Term to an Accumulated Reward

A terminal payoff depends only on the state at a fixed future time. A running reward, by contrast, is earned throughout the time interval, so its contribution must accumulate along the diffusion path. The corresponding backward equation is inhomogeneous: the source term \(f\) appears in the PDE and, with the appropriate sign, as a time integral in the expectation formula. The purpose here is to derive that sign and formula under conditions that also ensure the stochastic integral has zero conditional mean.

Work on a filtered probability space \((\Omega,\mathcal{F},(\mathcal{F}_t)_{t\ge0},\mathbb{P})\) carrying a Brownian motion \(B_t\). On a finite interval \([0,T]\), consider the SDE \(dX_s=\mu(s,X_s)\,ds+\sigma(s,X_s)\,dB_s\). Here \(\mu\) is the drift coefficient and \(\sigma\) is the diffusion coefficient. Assume they are deterministic, continuous in time, globally Lipschitz in the state variable uniformly in time, and satisfy linear growth bounds. Assume the SDE has a strong solution: it is adapted to the given filtration and driven by the Brownian motion on this space. A weak solution instead allows the probability space and Brownian motion to be chosen as part of the solution. Pathwise uniqueness means two solutions driven by the same Brownian motion and with the same initial condition agree almost surely; uniqueness in law means their distributions agree. The representation below assumes a strong solution and makes no separate uniqueness claim.

For this diffusion, the generator acting on a twice differentiable function \(\varphi\) is \(\mathcal{L}_s\varphi(x)=\mu(s,x)\varphi'(x)+\tfrac12\sigma(s,x)^2\varphi''(x)\). All expectations below are under \(\mathbb{P}\); no change to a risk-neutral measure \(\mathbb{Q}\) is involved. Every stochastic integral in the derivation is an Itô integral. Its integrand must be progressively measurable and belong to \(\mathcal{L}^2\) on the interval in question, meaning \(\mathbb{E}\int_0^T H_s^2\,ds<\infty\). The multiplication rules used in Itô’s formula are \(dB_s\,dB_s=ds\), \(dB_s\,ds=0\), and \(ds\,ds=0\); they encode quadratic variation and are not the ordinary chain rule.

Definition: Let \(c(s,x)\) be a potential or discount-rate coefficient, \(f(s,x)\) a running reward rate, and \(g(x)\) a terminal payoff. The inhomogeneous backward equation is \(\partial_t u+\mathcal{L}_t u-cu+f=0\), with terminal condition \(u(T,x)=g(x)\). The running reward is the rate \(f(s,X_s)\); the accumulated reward is its time integral with the path-dependent weight specified by \(c\).

For a process started at \(X_t=x\), write \(\mathbb{E}_{t,x}\) for expectation under its law with that initial condition. Define \(A_{t,s}=\int_t^s c(r,X_r)\,dr\). The candidate representation is \[ u(t,x)=\mathbb{E}_{t,x}\left[e^{-A_{t,T}}g(X_T)+\int_t^T e^{-A_{t,s}}f(s,X_s)\,ds\right]. \] The exponential weights terminal data and each reward by the accumulated coefficient up to the time it is received. The following proof explains why the running term has a plus sign in this expectation, even though \(f\) appears with a plus sign in the PDE.

A Martingale Fact Needed in the Derivation

Lemma: If \(H\) is progressively measurable and \(\mathbb{E}\int_0^T H_s^2\,ds<\infty\), then \(M_t=\int_0^t H_s\,dB_s\) is a square-integrable martingale. In particular, for \(0\le t\le T\), \(\mathbb{E}[M_T\mid\mathcal{F}_t]=M_t\).

Proof. First take an elementary adapted integrand, constant on each interval of a deterministic partition with its value on that interval measurable at the left endpoint. The integral over any such interval is that measurable value multiplied by a Brownian increment independent of the past and with mean zero. Therefore its conditional expectation given the information at the left endpoint is zero. Adding intervals, and conditioning successively, gives \(\mathbb{E}[M_T\mid\mathcal{F}_t]=M_t\) at partition times. The Itô isometry gives \(\mathbb{E}[M_t^2]=\mathbb{E}\int_0^t H_s^2\,ds<\infty\). For general \(H\) in the stated class, approximate it in the norm \((\mathbb{E}\int_0^T H_s^2\,ds)^{1/2}\) by elementary adapted integrands. The Itô isometry gives convergence of their integrals in \(L^2\), and conditional expectation is a contraction in \(L^2\). Passing to the limit proves the conditional-expectation identity and square integrability for \(M\). \(\square\)

Representation Theorem and Derivation

Theorem: Suppose \(c\) and \(f\) are bounded continuous functions, \(g\) is bounded and continuous, and \(u\) is a bounded classical solution of \(\partial_tu+\mathcal{L}_tu-cu+f=0\), \(u(T,x)=g(x)\). Assume \(u\in C^{1,2}\) on \([0,T)\times\mathbb{R}\), extends continuously to the terminal time, and \(u_x(s,X_s)\sigma(s,X_s)\) is bounded for the diffusion under consideration. Then, for \(0\le t\le T\), \[ u(t,X_t)=\mathbb{E}\left[\left.e^{-A_{t,T}}g(X_T)+\int_t^T e^{-A_{t,s}}f(s,X_s)\,ds\right|\mathcal{F}_t\right]. \] Consequently, for a diffusion started from \(x\) at time \(t\), its expectation formula is the representation displayed above.

Proof. Fix \(t\) and define \(A_{t,s}=\int_t^s c(r,X_r)\,dr\) for \(s\in[t,T]\). Since \(c\) is bounded, the exponential \(e^{-A_{t,s}}\) is bounded on this finite interval. Apply Itô’s formula to the function \(u(s,x)\) along \(X_s\). Its time derivative is \(u_t\), its first spatial derivative is \(u_x\), and its second spatial derivative is \(u_{xx}\); the quadratic-variation correction is explicitly \(\tfrac12\sigma(s,X_s)^2u_{xx}(s,X_s)\,ds\). Thus \[ du(s,X_s)=\left(u_t+\mu u_x+\tfrac12\sigma^2u_{xx}\right)(s,X_s)\,ds +u_x(s,X_s)\sigma(s,X_s)\,dB_s =(c u-f)(s,X_s)\,ds+u_x(s,X_s)\sigma(s,X_s)\,dB_s, \] where the PDE gives the second equality. The finite-variation factor satisfies \(d(e^{-A_{t,s}})=-c(s,X_s)e^{-A_{t,s}}\,ds\). The product rule has no quadratic-covariation term between this finite-variation factor and the diffusion term. Therefore \[ d\big(e^{-A_{t,s}}u(s,X_s)\big) =-e^{-A_{t,s}}f(s,X_s)\,ds +e^{-A_{t,s}}u_x(s,X_s)\sigma(s,X_s)\,dB_s. \] The stochastic integrand is progressively measurable. It is bounded because \(c\) and \(u_x\sigma\) are bounded and \(T\) is finite, so its squared time integral has finite expectation. By the lemma, its Itô integral is a true square-integrable martingale, not merely a local martingale. Integrating from \(t\) to \(T\), using \(u(T,X_T)=g(X_T)\), and taking conditional expectation given \(\mathcal{F}_t\) gives \[ e^{-A_{t,T}}g(X_T)-u(t,X_t) =-\int_t^T e^{-A_{t,s}}f(s,X_s)\,ds +\int_t^T e^{-A_{t,s}}u_x(s,X_s)\sigma(s,X_s)\,dB_s. \] The last integral has conditional expectation zero. Rearranging proves the asserted formula. The integrability assumptions also make the terminal and running terms integrable, since \(c,f,g\) are bounded and \(T\) is finite. \(\square\)

This is an Itô representation, not an ordinary chain-rule calculation. In particular, the second derivative term in \(\mathcal{L}_t u\) comes from Brownian quadratic variation. The argument proves the formula for the stated classical solutions; it does not assert that every expectation-defined function is classical without additional regularity assumptions.

Worked Representations

Worked Example: A Quadratic Terminal Payoff and Linear Reward

Let \(X_s=x+B_s\), \(c=0\), \(g(y)=y^2\), and \(f(s,y)=y\), on \(0\le s\le T\). Find the classical solution and evaluate it at \(t=0,x=1,T=2\).

Since the generator is \(\mathcal{L}=\tfrac12\partial_{xx}\), try \(u(t,x)=x^2+(T-t)+(T-t)x\). Its derivatives are \(u_t=-1-x\), \(u_x=2x+(T-t)\), and \(u_{xx}=2\). Substitution into the PDE gives \(u_t+\tfrac12u_{xx}+f=(-1-x)+1+x=0\). At \(t=T\), \(u(T,x)=x^2=g(x)\).

At the specified values, the formula gives \(u(0,1)=1+2+2=5\). Check this directly from the representation: \(X_2=1+B_2\), so \(\mathbb{E}[(1+B_2)^2]=1+2\mathbb{E}[B_2]+\mathbb{E}[B_2^2]=1+0+2=3\). Also \(\mathbb{E}\int_0^2(1+B_s)\,ds=\int_0^2(1+0)\,ds=2\). The total is \(3+2=5\), agreeing with the PDE solution.

Worked Example: Constant Running Reward with a Nonzero Potential

Let \(X_s=x+B_s\), \(g=0\), \(f=1\), and \(c=1\), with terminal time \(T=2\). The candidate \(u(t,x)=1-e^{-(2-t)}\) is independent of \(x\). Its derivatives are \(u_t=-e^{-(2-t)}\), \(u_x=0\), and \(u_{xx}=0\). Consequently \(u_t+\mathcal{L}u-u+f=-e^{-(2-t)}-(1-e^{-(2-t)})+1=0\), and \(u(2,x)=0\).

The representation at \(t=0\) is \(\mathbb{E}\int_0^2e^{-s}\,ds=1-e^{-2}\), since the integrand is deterministic. The PDE gives \(u(0,x)=1-e^{-2}\) as well. The terminal contribution is zero. If one omitted the potential from the PDE or used an unweighted integral, the answer would instead be \(2\), which does not solve this equation.

Worked Example: Drift and a Constant Reward Rate

Let \(dX_s=\tfrac12\,ds+2\,dB_s\), \(c=0\), \(g(y)=y\), and \(f=1\), with \(T=2\). The candidate is \(u(t,x)=x+\tfrac32(2-t)\). Its derivatives are \(u_t=-\tfrac32\), \(u_x=1\), and \(u_{xx}=0\). The generator is \(\mathcal{L}u=\tfrac12u_x+\tfrac12(2)^2u_{xx}=\tfrac12\), so \(u_t+\mathcal{L}u+f=-\tfrac32+\tfrac12+1=0\). Its terminal value is \(u(2,x)=x\).

At \(t=0,x=3\), the PDE gives \(u(0,3)=3+\tfrac32\cdot2=6\). Independently, \(X_2=3+\tfrac12\cdot2+2B_2\), hence \(\mathbb{E}[X_2]=3+1+0=4\). The expected accumulated reward is \(\mathbb{E}\int_0^2 1\,ds=2\), so the represented value is \(4+2=6\), as required.

Why the Sign and Martingale Conditions Matter

The drift calculation determines the sign of the reward. The PDE says that the drift of the weighted terminal-value process \(e^{-A_{t,s}}u(s,X_s)\) is \(-e^{-A_{t,s}}f(s,X_s)\,ds\). Adding the accumulated reward \(\int_t^s e^{-A_{t,r}}f(r,X_r)\,dr\) cancels that drift. The resulting process is a martingale because its stochastic integrand is square-integrable under the stated assumptions. It is this cancellation—not a guess about whether the reward should have a plus or minus sign—that yields the formula.

Common mistake: reversing the sign of the running term. A tempting but incorrect expression is \(\mathbb{E}_{t,x}[e^{-A_{t,T}}g(X_T)-\int_t^T e^{-A_{t,s}}f(s,X_s)\,ds]\). For the second example, it gives \(-\int_0^2e^{-s}\,ds=-(1-e^{-2})\), whereas direct integration and the PDE both give \(1-e^{-2}\). The correction is to add the running reward: integrating the drift \(-e^{-A}f\) to the terminal time and rearranging moves that term to the other side with a plus sign.

A second pitfall is to call every stochastic integral a martingale without checking its integrand. Itô’s formula initially produces a local-martingale term in general. Here boundedness of \(c\) and \(u_x\sigma\), together with finite \(T\), puts the integrand in \(\mathcal{L}^2\); the lemma then verifies the true martingale property and justifies taking conditional expectations. Without a sufficient integrability condition, that step cannot be inferred from a local-martingale claim alone.

Check Your Understanding

For each question, identify the PDE terms before applying the representation.

  1. For \(c=0\), what is the accumulated-reward contribution when \(f(s,x)=q\) is a constant?
  2. In the first worked example, compute the representation at general \(t,x,T\) by taking the expectations of the terminal payoff and reward separately.
  3. Why does the proof require \(u_x(s,X_s)\sigma(s,X_s)\) to be square-integrable in time and probability?
  4. For \(g=0\), \(f=1\), and constant \(c=\lambda\ne0\), integrate the deterministic running-reward weight and state the result.
  5. Which term in Itô’s formula would be missing if one incorrectly used the ordinary chain rule for \(u(s,X_s)\)?