You will find this video helpful, very similar to your problem and it involves tan and domains:
https://www.youtube.com/watch?v=Boww6T_JRmA
You will find this video helpful, very similar to your problem and it involves tan and domains:
https://www.youtube.com/watch?v=Boww6T_JRmA