Math is excluded from copyright. So you can use any piece of math you ever heard from anyone and publish it, whatever the context, I think.