I would like to compute expressions that have the following form:
$$\left(\partial_{p_1} - \partial_{p_2}\right)^2 \left(\partial_{p_1} - \partial_{p_2}\right)^2 \frac{(p_1-p_2)\cdot(p_3-p_4)}{p_1^2p_2^2p_3^2p_4^2},\tag{1}$$
where $p_i$ are $4$-vectors in Euclidean space. Since I have many similar terms, I would like to define the $p$'s symbolically without having to give the components. I did so in the following way:
$Assumptions = (p1 | p2 | p3 | p4) \[Element] Vectors[4, Reals];
Then I tried as a first test to reproduce
$$\partial_{p_1} \left( p_1 \cdot p_2 \right) = p_2 \tag{2}$$
by typing
Div[p1.p2, p1]
but that did not work. What would be the best way to deal with computations such as the one given in $(1)$?
I should also add that eq. $(1)$ is in the context of checking and later proving an identity, so anything that could help me to check if lhs==rhs is true is relevant.
Divis aware of them. – MarcoB Nov 17 '19 at 23:31