For Mathematica Users RELATED: To simplify with an assumption that the variable "n" is an integer, use, for example Simplify[ Integrate[Sin[n Pi x],{x,0,1}], Element[n, Integers]] http://reference.wolfram.com/mathematica/tutorial/SimplifyingWithAssumptions.html