AbstractFor an operator whose domain is the kernel of a functional that is a finite sum of simpler functionals, we show that the resolvent of the operator can be decomposed as an affine combination of resolvents associated with these simpler functionals. Specifically, given an operator A and a finite number of functionals $$\phi $$ ϕ defined on the domain of A, we prove that the resolvent $$(\lambda - A_{|\ker \sum \phi })^{-1}$$ ( λ - A | ker ∑ ϕ ) - 1 is an affine combination of resolvents $$(\lambda - A_{|\ker \phi })^{-1}$$ ( λ - A | ker ϕ ) - 1 , provided that the sum of the functionals is nontrivial on the kernel of $$\lambda - A$$ λ - A . We use this result to derive generation theorems for semigroups and cosine functions.As applications, we prove that there are cosine functions associated with skew and snapping out Brownian motions on star graphs, and that skew Brownian motion can be approximated by snapping out Brownian motion.