The first term should be $f(a)$, not $p(a)$
The first term should be$f(a)$ , not $p(a)$