The dirac delta function is usually defined as:
$$\int_{-\infty}^\infty f(x) \delta(x - n) dx = f(n).$$
But what if the function $f$ is also dependent on $n$? For example what if we had: $$f(x, n) = (2x + 3n)^2.$$
In this case can we say: $$\int_{-\infty}^\infty f(x, n) \delta(x - n) dx = f(n, n) = (2n + 3n)^2 = 25n^2.$$
Is this valid?