Consider a classical elliptic pseudodifferential operator P on Rn of order 2a (0<a<1) with even symbol. For example, P=A(x,D)a where f1011d6f72b4b0c66f5b" title="Click to view the MathML source">A(x,D) is a second-order strongly elliptic differential operator; the fractional Laplacian (−Δ)a is a particular case. For solutions u of the Dirichlet problem on a bounded smooth subset Ω⊂Rn, we show an integration-by-parts formula with a boundary integral involving (d−au)|∂Ω, where . This extends recent results of Ros-Oton, Serra and Valdinoci, to operators that are x -dependent, nonsymmetric, and have lower-order parts. We also generalize their formula of Pohozaev-type, that can be used to prove unique continuation properties, and nonexistence of nontrivial solutions of semilinear problems. An illustration is given with P=(−Δ+m2)a. The basic step in our analysis is a factorization of P , 70f2800876c1a52c864a35e74683" title="Click to view the MathML source">P∼P−P+, where we set up a calculus for the generalized pseudodifferential operators P± that come out of the construction.