Solution
= Solution
Set $z=x-ct$ and $u(t,x)=Q_c(z)$. Substitution into the equation gives
$$
\partial_z(Q_c''-cQ_c+Q_c^p)=0.
$$
Decay at infinity makes the integration constant zero. If
$$
Q_c(x)=c^{1/(p-1)}Q(\sqrt c\,x),
$$
then every term in $Q_c''-cQ_c+Q_c^p$ equals $c^{1+1/(p-1)}$ times the corresponding term in $Q''-Q+Q^p$. Thus the required <Generalized KdV solitary wave> is
$$
\boxed{Q_c(x)=c^{1/(p-1)}Q(\sqrt c\,x)}.
$$