How to understand the maths in generating the timeseries with different patterns

Hi @Kavia_Aravind

welcome to the community and thanks for your question!

In addition, you might wanna take a look at Time Series Modeling or prediction with:

Hope that helps, @Kavia_Aravind.

Best regards
Christian