The assumption below:
Simplify[Integrate[Sin[2 n π x], {x, 0, 1}], Assumptions -> n ∈ Integers]
simplifies the integration and gives $0$ as the correct answer. However, for other functions like TriangleWave[x] or Floor[x], assumptions do not appear to work (Linux, Version 10.0).
None of the commands below simplifies:
Simplify[Integrate[TriangleWave[n x]^2, {x, 0, 1}, Assumptions -> n ∈ Integers]]
Simplify[Integrate[TriangleWave[n x]^2, {x, 0, 1}], Assumptions -> n ∈ Integers]
Simplify[Integrate[Floor[x], {x, 0, n}], Assumptions -> {n ∈ Integers, n > 0}]
I have to use command like:
Table[Integrate[TriangleWave[n x]^2, {x, 0, 1}], {n, 1, 5, 1}]
to generate a list of result, and "extract" the formula $f(n)$ by observation. Did I miss something?