At origin, the value of the function is
and then it again becomes zero for the first time is at $2$
but the function isn't repeating itself (it's going downwards)
at $x=4$, it's exactly same, hence the period is $4$
9.4m questions
12.2m answers