Uh oh! Wolfram|Alpha doesn't run without JavaScript.
Please enable JavaScript. If you don't know how, you can find instructions
here
.
Once you've done that, refresh this page to start using Wolfram|Alpha.
Expand [//math:(p - 1)^2 q +(q - 1)^2 p + (pq - 2) (pq - p - q + 1)//]
Natural Language
Math Input
Extended Keyboard
Examples
Upload
Random