Suppose underlying asset $S$
$$dS = \mu Sdt + \sigma Sd W$$
our portfolio $\pi$ consist with $q(t)$ stock
$S$ and cash
$\pi - qS$ at time $t,$ so we have
$$d\pi = r(\pi− qS) dt + q dS.$$
with $|q|\leq 1.$
And assume the final payment of our passport option
is
$$V(\pi,s, T) = \max\{\pi,0\}.$$
Use the hedge portfolio
, we can obtain the PDE
$$V_t + \dfrac{1}{2}\sigma^2s^2 V_{ss} + q\sigma^2s^2V_{s\pi} + \dfrac{1}{2}q^2\sigma^2s^2V_{\pi\pi} + rsV_s + r\pi V_{\pi} -rV = 0.$$
We want to choose $q(t)$ to maximize
$V.$
One thing I confuse here, why does author only easily maximize the terms containing $q$ in the PDE? i.e $$\max\limits_{|q|\leq 1}\ \left(q\sigma^2s^2V_{s\pi} + \dfrac{1}{2}q^2\sigma^2s^2V_{\pi\pi}\right) $$
That is the book Paul Wilmott on Quantitative Finance
page 455