Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Convolution Solutions for Drug-Driven Production

Indirect Response Models · Tutorial 131 of 598

Convolution Solutions for Drug-Driven Production

Learn how constant response loss weights past drug-driven production and how to calculate the resulting response trajectory for exponentially declining concentrations.

Advanced 12 min read

What You'll Learn

  • Derive the convolution solution for time-varying production and constant loss.
  • Separate baseline production from a drug-induced production increment.
  • Calculate an exact trajectory for linear concentration-driven production.
  • Apply Simpson’s rule to a saturable production effect during exponential concentration decline.
  • Handle the equal-rate case without dividing by zero.
  • Check convolution results using units, limiting behavior, and response slopes.

Why Convolution Describes a Delayed Response

A drug may change the rate at which a response is produced, while the response itself is removed continuously. In that situation, the response at a given time reflects not only the current drug concentration but also the production stimulated or inhibited earlier. Past production still contributes, but its contribution is reduced by loss over the time since it occurred. A convolution expresses this weighted accumulation directly.

This tutorial considers a response \(R(t)\) with constant first-order loss rate \(k_{\mathrm{out}}>0\). Drug concentration \(C(t)\) may vary over time and affect production through a function \(q(C(t))\). The production effect is assumed to act immediately on the production rate; the delay in \(R(t)\) arises from accumulation and loss, not from a separate effect compartment.

Definition: Under constant loss, a response with baseline production \(k_{\mathrm{in},0}\) and a drug-induced production increment \(q(C(t))\) satisfies $$ \frac{dR(t)}{dt}=k_{\mathrm{in},0}+q(C(t))-k_{\mathrm{out}}R(t). $$ Here \(k_{\mathrm{in},0}\) and \(q(C(t))\) have units of response per unit time, \(k_{\mathrm{out}}\) has units of inverse time, and \(R(t)\) has units of response. The convolution solution is $$ R(t)=R(0)e^{-k_{\mathrm{out}}t} +\int_0^t e^{-k_{\mathrm{out}}(t-s)} \left[k_{\mathrm{in},0}+q(C(s))\right]\,ds. $$

The integration variable \(s\) denotes the time at which a contribution to production occurs. The factor \(e^{-k_{\mathrm{out}}(t-s)}\) is the fraction of that contribution remaining at time \(t\), after loss over the elapsed time \(t-s\). Thus the convolution does not simply add all past production equally: recent production has had less time to be lost than production that occurred earlier.

Deriving the Convolution and Isolating the Drug Effect

The convolution follows from the integrating-factor solution for a linear differential equation. Multiply both sides of the model by \(e^{k_{\mathrm{out}}t}\). The product rule gives $$ \frac{d}{dt}\left[e^{k_{\mathrm{out}}t}R(t)\right] =e^{k_{\mathrm{out}}t}\left[k_{\mathrm{in},0}+q(C(t))\right]. $$

Integrating from 0 to \(t\), then multiplying by \(e^{-k_{\mathrm{out}}t}\), yields $$ e^{k_{\mathrm{out}}t}R(t)-R(0) =\int_0^t e^{k_{\mathrm{out}}s}\left[k_{\mathrm{in},0}+q(C(s))\right]ds, $$ and hence the stated convolution. This derivation requires constant \(k_{\mathrm{out}}\), a well-defined production function over the interval, and a response trajectory satisfying the differential equation. It does not require that \(q\) be linear in concentration.

With no drug effect, the baseline steady state is \(R_0=k_{\mathrm{in},0}/k_{\mathrm{out}}\). If the response starts at that baseline, the constant baseline production and baseline loss balance at every time, so the solution simplifies to $$ R(t)=R_0+\int_0^t e^{-k_{\mathrm{out}}(t-s)}q(C(s))\,ds. $$ If the initial response is not at baseline, the general expression is $$ R(t)=R_0+\left[R(0)-R_0\right]e^{-k_{\mathrm{out}}t} +\int_0^t e^{-k_{\mathrm{out}}(t-s)}q(C(s))\,ds. $$ The first term after \(R_0\) describes relaxation of the initial deviation; the integral describes the accumulated drug-driven change. A negative \(q\), as in production inhibition, contributes negatively to the response deviation.

Exponential Concentration Decline With Linear Production

Suppose concentration after a dose declines as \(C(t)=C_0e^{-k_et}\), where \(C_0\) is the concentration at time zero and \(k_e>0\) is the concentration decline rate. For a linear production increment \(q(C)=\alpha C\), the drug-driven response change from baseline is $$ \Delta R(t)=\alpha C_0\int_0^t e^{-k_{\mathrm{out}}(t-s)}e^{-k_es}\,ds. $$ When \(k_{\mathrm{out}}\ne k_e\), evaluating this integral gives $$ \Delta R(t)=\alpha C_0 \frac{e^{-k_et}-e^{-k_{\mathrm{out}}t}}{k_{\mathrm{out}}-k_e}. $$ The concentration decline rate and response loss rate enter symmetrically in the exponential terms, but they describe different processes: \(k_e\) governs the drug concentration, whereas \(k_{\mathrm{out}}\) governs response removal.

Worked Example: Linear Production During Exponential Decline

Assume a hypothetical response has baseline \(R_0=20.0\) response units. Drug concentration is \(C(t)=4.00e^{-0.200t}\) mg/L, the production increment is \(q(C)=0.750C\) response units per hour, and \(k_{\mathrm{out}}=0.500\ \mathrm{h}^{-1}\). Calculate the response at \(t=2.00\) h.

The effect is additive to baseline production, and the response starts at baseline. The concentration follows the stipulated exponential decline, and both rates are positive and constant, so the convolution for constant loss applies. Here \(\alpha C_0=(0.750)(4.00)=3.00\) response units per hour. Since \(k_{\mathrm{out}}\ne k_e\), $$ \Delta R(2)=3.00\frac{e^{-(0.200)(2.00)}-e^{-(0.500)(2.00)}}{0.500-0.200}. $$

Using \(e^{-0.400}=0.670320\) and \(e^{-1.00}=0.367879\), $$ \Delta R(2)=3.00\frac{0.670320-0.367879}{0.300} =3.02441\ \text{response units}. $$ Therefore \(R(2)=20.0+3.02441=23.0244\) response units, or \(23.0\) response units to three significant figures. This is a response above baseline, as expected from a positive production increment.

Saturable Production Requires Integrating the Actual Effect

For saturable production, a standard form is \(q(C)=E_{\max}C/(EC_{50}+C)\). Here \(E_{\max}\) is the maximum production increment and \(EC_{50}\) is the concentration giving half that increment. With exponential concentration decline, the convolution becomes $$ \Delta R(t)=\int_0^t e^{-k_{\mathrm{out}}(t-s)} \frac{E_{\max}C_0e^{-k_es}}{EC_{50}+C_0e^{-k_es}}\,ds. $$ In general this integral does not reduce to the same simple expression as the linear-effect case. It can be evaluated numerically, provided the integrand is computed using the concentration at each integration time \(s\), not just the concentration at the endpoint.

Worked Example: Numerical Convolution With Saturable Production

For a hypothetical response, let \(R_0=15.0\) response units, \(C(s)=2.00e^{-0.400s}\) mg/L, \(k_{\mathrm{out}}=0.500\ \mathrm{h}^{-1}\), \(E_{\max}=6.00\) response units per hour, and \(EC_{50}=1.00\) mg/L. Estimate the response at \(t=2.00\) h using Simpson’s rule with four equal subintervals. The assumptions are constant loss and immediate, saturable drug stimulation of production; the concentration curve is specified for the full integration interval.

The integrand is $$ f(s)=e^{-0.500(2.00-s)} \left(\frac{6.00C(s)}{1.00+C(s)}\right), \qquad \Delta R(2)=\int_0^2 f(s)\,ds. $$ At the five equally spaced times \(s=0,\ 0.500,\ 1.00,\ 1.50,\ 2.00\) h, the corresponding integrand values are approximately \(1.472,\ 1.761,\ 2.084,\ 2.445,\ 2.840\) response units per hour. For example, at \(s=1.00\) h, $$ C(1)=2.00e^{-0.400}=1.34064\ \mathrm{mg/L}, $$ $$ f(1)=e^{-0.500(2-1)} \left(\frac{6.00(1.34064)}{1.00+1.34064}\right) \approx (0.606531)(3.437)=2.084. $$

For four subintervals, the width is \(h=(2.00-0)/4=0.500\) h. Simpson’s rule gives $$ \Delta R(2)\approx\frac{h}{3} \left[f(0)+f(2)+4\{f(0.500)+f(1.50)\}+2f(1.00)\right]. $$ Substituting the rounded values, $$ \Delta R(2)\approx\frac{0.500}{3} \left[1.472+2.840+4(1.761+2.445)+2(2.084)\right] =4.217\ \text{response units}. $$ Thus \(R(2)\approx15.0+4.217=19.217\) response units. This is a numerical approximation based on the stated grid; finer quadrature can be used if greater numerical accuracy is needed.

Equal Rates, Checks, and Failure Modes

The formula for linear production appears to have a zero denominator when \(k_{\mathrm{out}}=k_e\), but the convolution itself remains finite. When the rates are equal, the exponential factors in the integrand combine: $$ e^{-k_{\mathrm{out}}(t-s)}e^{-k_es} =e^{-k_et}, $$ which is constant with respect to \(s\). Therefore $$ \Delta R(t)=\alpha C_0t e^{-k_et} \qquad \text{when }k_{\mathrm{out}}=k_e. $$ This result also follows by taking the limit of the unequal-rate expression. It is important in computation: near-equal rates can make direct subtraction in the unequal-rate formula numerically unstable, so the limiting form or a stable numerical evaluation of the integral is preferable.

Worked Example: The Equal-Rate Limit

Suppose, hypothetically, \(R_0=10.0\) response units, \(C(t)=5.00e^{-0.300t}\) mg/L, \(q(C)=0.400C\) response units per hour, and \(k_{\mathrm{out}}=0.300\ \mathrm{h}^{-1}\). Find the response at \(t=2.00\) h. The two exponential rates are equal, and the baseline initial condition and constant-loss assumptions are as required.

Here \(\alpha C_0=(0.400)(5.00)=2.00\) response units per hour. Applying the equal-rate form, $$ \Delta R(2)=2.00(2.00)e^{-(0.300)(2.00)} =4.00(0.548812)=2.19525\ \text{response units}. $$ Thus \(R(2)=10.0+2.19525=12.1953\) response units, or \(12.2\) response units to three significant figures. The finite result confirms that equal concentration and loss rates do not make the response undefined.

Several checks help identify an incorrect calculation or an unsuitable model. First, the exponent must be the loss rate multiplied by elapsed time since production, \(k_{\mathrm{out}}(t-s)\). Using \(k_{\mathrm{out}}s\) instead weights early and late production in the wrong direction. Second, the units of the integral must be response units: the kernel is dimensionless, while production rate times \(ds\) has response units. Third, if \(q(C)=0\) and \(R(0)=R_0\), the response must remain at baseline. If positive production stimulation is present and \(R(0)=R_0\), the integral is nonnegative.

A further check is the initial slope. From the differential equation, if \(R(0)=R_0\), then \(dR/dt\) at time zero equals \(q(C(0))\), because baseline production and loss cancel. A computed trajectory that initially moves in the opposite direction from the sign of \(q(C(0))\) suggests a sign, kernel, or indexing error. At late times after the drug effect has disappeared, the response deviation should decay with the constant loss rate.

Choosing and Interpreting a Calculation Method

For linear production and exponential concentration decline, the closed-form expression is efficient and makes the roles of the two rates transparent. For nonlinear production, the convolution is still exact as a mathematical representation, but its numerical evaluation may be more practical than seeking a closed form. Simpson’s rule is suitable for a smooth integrand on a finite interval; checking the estimate with a finer grid is a useful numerical diagnostic. A direct numerical solution of the differential equation is another option and can be convenient when the production function is complicated.

The earlier material on integrating-factor solutions and piecewise-constant exposure provides related ways to calculate trajectories. Convolution is particularly informative when the goal is to see how each past production increment contributes to the current response. Piecewise-constant methods approximate changing inputs by intervals, while direct differential-equation solvers propagate the state numerically. These approaches should agree to numerical precision when they use the same model and sufficiently accurate calculations.

The convolution does not establish that the chosen production mechanism is biologically correct. It assumes that loss is first-order with a constant rate, that the response is adequately described by one state variable, and that the specified production effect is the relevant drug action. If loss varies with time, this constant-loss kernel does not apply. If a response delay beyond turnover is needed, immediate production stimulation may also be inadequate. Model checking should therefore include the concentration and response time courses, the plausibility of the assumed production function, and residual patterns—not just agreement at one calculated time.

Common pitfall: It is incorrect to calculate the response increment as \(q(C(t))t\), because that treats all production during the interval as though it occurred at the endpoint and none of it were lost. The correct increment is \(\int_0^t e^{-k_{\mathrm{out}}(t-s)}q(C(s))\,ds\): it accumulates production over time and discounts each contribution according to how long it has been subject to loss.

Check Your Understanding

Answer each question, then compare your reasoning with the brief solutions.

  1. For a baseline-starting response with constant loss, what does the factor \(e^{-k_{\mathrm{out}}(t-s)}\) represent?
  2. If \(q(C(s))\) is positive throughout an interval and the response starts at baseline, what can be said about the response deviation during that interval?
  3. For linear production and \(k_{\mathrm{out}}=k_e=k\), write the response increment under \(C(t)=C_0e^{-kt}\).
  4. Why is \(q(C(t))t\) generally not the correct response increment?
  5. If the drug effect has disappeared and the response is above baseline, what rate governs the subsequent decay under this model?

Solutions. (1) It is the fraction of a production contribution made at time \(s\) that remains at time \(t\) after constant first-order loss. (2) The deviation is nonnegative because the convolution integrates a positive production increment multiplied by a positive kernel. (3) \(\Delta R(t)=\alpha C_0t e^{-kt}\). (4) It ignores loss and treats the production rate as if it had accumulated without time-dependent weighting. (5) The deviation decays exponentially at \(k_{\mathrm{out}}\), so \(\Delta R(t+\tau)=\Delta R(t)e^{-k_{\mathrm{out}}\tau}\) after the effect has ceased.

Clinical Biostats