We can often use linearity to avoid calculating integrals.
Suppose you are given the DTFT X for a discrete-time signal x,
X(w) = e-iw + e-i2w
and you are asked to find x. Because the DTFT is linear, you can find the inverse DTFT for each component,
X1(w) = e-iw
X2(w) = e-i2w
which we recognize as
x1(n) = d (n - 1)
x2(n) = d (n - 2)
Since
X(w) = X1(w) + X2(w)
we get the result
x(n) = x1(n) + x2(n) = d (n - 1) + d (n - 2).