Господин Экзамен

Другие калькуляторы

7*sin(2*x)+2+7*cos(2*x) если x=-2

Выражение, которое надо упростить:

Решение

Вы ввели [src]
7*sin(2*x) + 2 + 7*cos(2*x)
$$7 \sin{\left(2 x \right)} + 7 \cos{\left(2 x \right)} + 2$$
7*sin(2*x) + 2 + 7*cos(2*x)
Общее упрощение [src]
        ___    /      pi\
2 + 7*\/ 2 *sin|2*x + --|
               \      4 /
$$7 \sqrt{2} \sin{\left(2 x + \frac{\pi}{4} \right)} + 2$$
2 + 7*sqrt(2)*sin(2*x + pi/4)
Подстановка условия [src]
7*sin(2*x) + 2 + 7*cos(2*x) при x = -2
подставляем
7*sin(2*x) + 2 + 7*cos(2*x)
$$7 \sin{\left(2 x \right)} + 7 \cos{\left(2 x \right)} + 2$$
        ___    /      pi\
2 + 7*\/ 2 *sin|2*x + --|
               \      4 /
$$7 \sqrt{2} \sin{\left(2 x + \frac{\pi}{4} \right)} + 2$$
переменные
x = -2
$$x = -2$$
        ___    /         pi\
2 + 7*\/ 2 *sin|2*(-2) + --|
               \         4 /
$$7 \sqrt{2} \sin{\left(2 (-2) + \frac{\pi}{4} \right)} + 2$$
        ___    /    pi\
2 + 7*\/ 2 *cos|4 + --|
               \    4 /
$$7 \sqrt{2} \cos{\left(\frac{\pi}{4} + 4 \right)} + 2$$
2 + 7*sqrt(2)*cos(4 + pi/4)
Раскрыть выражение [src]
           2                      
-5 + 14*cos (x) + 14*cos(x)*sin(x)
$$14 \sin{\left(x \right)} \cos{\left(x \right)} + 14 \cos^{2}{\left(x \right)} - 5$$
         2           2                      
2 - 7*sin (x) + 7*cos (x) + 14*cos(x)*sin(x)
$$- 7 \sin^{2}{\left(x \right)} + 14 \sin{\left(x \right)} \cos{\left(x \right)} + 7 \cos^{2}{\left(x \right)} + 2$$
2 - 7*sin(x)^2 + 7*cos(x)^2 + 14*cos(x)*sin(x)
Численный ответ [src]
2.0 + 7.0*cos(2*x) + 7.0*sin(2*x)
2.0 + 7.0*cos(2*x) + 7.0*sin(2*x)
Степени [src]
       -2*I*x      2*I*x       /   -2*I*x    2*I*x\
    7*e         7*e        7*I*\- e       + e     /
2 + --------- + -------- - ------------------------
        2          2                  2            
$$\frac{7 e^{2 i x}}{2} - \frac{7 i \left(e^{2 i x} - e^{- 2 i x}\right)}{2} + 2 + \frac{7 e^{- 2 i x}}{2}$$
2 + 7*exp(-2*i*x)/2 + 7*exp(2*i*x)/2 - 7*i*(-exp(-2*i*x) + exp(2*i*x))/2
Тригонометрическая часть [src]
        ___    /      pi\
2 + 7*\/ 2 *cos|2*x - --|
               \      4 /
$$7 \sqrt{2} \cos{\left(2 x - \frac{\pi}{4} \right)} + 2$$
        ___    /      pi\
2 + 7*\/ 2 *sin|2*x + --|
               \      4 /
$$7 \sqrt{2} \sin{\left(2 x + \frac{\pi}{4} \right)} + 2$$
                        2   
-5 + 7*sin(2*x) + 14*cos (x)
$$14 \cos^{2}{\left(x \right)} + 7 \sin{\left(2 x \right)} - 5$$
           ___   
       7*\/ 2    
2 + -------------
       /      pi\
    csc|2*x + --|
       \      4 /
$$2 + \frac{7 \sqrt{2}}{\csc{\left(2 x + \frac{\pi}{4} \right)}}$$
           ___   
       7*\/ 2    
2 + -------------
       /      pi\
    sec|2*x - --|
       \      4 /
$$2 + \frac{7 \sqrt{2}}{\sec{\left(2 x - \frac{\pi}{4} \right)}}$$
       7          7    
2 + -------- + --------
    csc(2*x)   sec(2*x)
$$2 + \frac{7}{\sec{\left(2 x \right)}} + \frac{7}{\csc{\left(2 x \right)}}$$
                      /      pi\
2 + 7*cos(2*x) + 7*cos|2*x - --|
                      \      2 /
$$7 \cos{\left(2 x \right)} + 7 \cos{\left(2 x - \frac{\pi}{2} \right)} + 2$$
                      /pi      \
2 + 7*sin(2*x) + 7*sin|-- + 2*x|
                      \2       /
$$7 \sin{\left(2 x \right)} + 7 \sin{\left(2 x + \frac{\pi}{2} \right)} + 2$$
       7             7      
2 + -------- + -------------
    sec(2*x)      /      pi\
               sec|2*x - --|
                  \      2 /
$$2 + \frac{7}{\sec{\left(2 x - \frac{\pi}{2} \right)}} + \frac{7}{\sec{\left(2 x \right)}}$$
       7             7      
2 + -------- + -------------
    sec(2*x)      /pi      \
               sec|-- - 2*x|
                  \2       /
$$2 + \frac{7}{\sec{\left(- 2 x + \frac{\pi}{2} \right)}} + \frac{7}{\sec{\left(2 x \right)}}$$
       7             7      
2 + -------- + -------------
    csc(2*x)      /pi      \
               csc|-- - 2*x|
                  \2       /
$$2 + \frac{7}{\csc{\left(- 2 x + \frac{\pi}{2} \right)}} + \frac{7}{\csc{\left(2 x \right)}}$$
          7               7      
2 + ------------- + -------------
    csc(pi - 2*x)      /pi      \
                    csc|-- - 2*x|
                       \2       /
$$2 + \frac{7}{\csc{\left(- 2 x + \frac{\pi}{2} \right)}} + \frac{7}{\csc{\left(- 2 x + \pi \right)}}$$
         ___    /    pi\
    14*\/ 2 *tan|x + --|
                \    8 /
2 + --------------------
             2/    pi\  
      1 + tan |x + --|  
              \    8 /  
$$2 + \frac{14 \sqrt{2} \tan{\left(x + \frac{\pi}{8} \right)}}{\tan^{2}{\left(x + \frac{\pi}{8} \right)} + 1}$$
         2           2                      
2 - 7*sin (x) + 7*cos (x) + 14*cos(x)*sin(x)
$$- 7 \sin^{2}{\left(x \right)} + 14 \sin{\left(x \right)} \cos{\left(x \right)} + 7 \cos^{2}{\left(x \right)} + 2$$
      /       2   \              
    7*\1 - tan (x)/    14*tan(x) 
2 + --------------- + -----------
             2               2   
      1 + tan (x)     1 + tan (x)
$$\frac{7 \cdot \left(- \tan^{2}{\left(x \right)} + 1\right)}{\tan^{2}{\left(x \right)} + 1} + 2 + \frac{14 \tan{\left(x \right)}}{\tan^{2}{\left(x \right)} + 1}$$
                         /    pi\ 
                   14*tan|x + --| 
     14*tan(x)           \    4 / 
2 + ----------- + ----------------
           2             2/    pi\
    1 + tan (x)   1 + tan |x + --|
                          \    4 /
$$2 + \frac{14 \tan{\left(x + \frac{\pi}{4} \right)}}{\tan^{2}{\left(x + \frac{\pi}{4} \right)} + 1} + \frac{14 \tan{\left(x \right)}}{\tan^{2}{\left(x \right)} + 1}$$
                         /    pi\ 
                   14*tan|x + --| 
     14*cot(x)           \    4 / 
2 + ----------- + ----------------
           2             2/    pi\
    1 + cot (x)   1 + tan |x + --|
                          \    4 /
$$2 + \frac{14 \cot{\left(x \right)}}{\cot^{2}{\left(x \right)} + 1} + \frac{14 \tan{\left(x + \frac{\pi}{4} \right)}}{\tan^{2}{\left(x + \frac{\pi}{4} \right)} + 1}$$
      /       1   \                       
    7*|1 - -------|                       
      |       2   |                       
      \    cot (x)/            14         
2 + --------------- + --------------------
             1        /       1   \       
      1 + -------     |1 + -------|*cot(x)
             2        |       2   |       
          cot (x)     \    cot (x)/       
$$\frac{7 \cdot \left(1 - \frac{1}{\cot^{2}{\left(x \right)}}\right)}{1 + \frac{1}{\cot^{2}{\left(x \right)}}} + 2 + \frac{14}{\left(1 + \frac{1}{\cot^{2}{\left(x \right)}}\right) \cot{\left(x \right)}}$$
                         /        2/    pi\\
      /        2   \   7*|-1 + tan |x + --||
    7*\-1 + cot (x)/     \         \    4 //
2 + ---------------- + ---------------------
             2                   2/    pi\  
      1 + cot (x)         1 + tan |x + --|  
                                  \    4 /  
$$\frac{7 \left(\tan^{2}{\left(x + \frac{\pi}{4} \right)} - 1\right)}{\tan^{2}{\left(x + \frac{\pi}{4} \right)} + 1} + \frac{7 \left(\cot^{2}{\left(x \right)} - 1\right)}{\cot^{2}{\left(x \right)} + 1} + 2$$
      /       2/    pi\\                  
    7*|1 - cot |x + --||     /       2   \
      \        \    4 //   7*\1 - tan (x)/
2 + -------------------- + ---------------
             2/    pi\              2     
      1 + cot |x + --|       1 + tan (x)  
              \    4 /                    
$$\frac{7 \cdot \left(- \tan^{2}{\left(x \right)} + 1\right)}{\tan^{2}{\left(x \right)} + 1} + \frac{7 \cdot \left(- \cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right)}{\cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1} + 2$$
            //                                /      pi\           \
            ||            0               for |2*x + --| mod pi = 0|
        ___ ||                                \      4 /           |
2 + 7*\/ 2 *|<                                                     |
            ||     2/    pi\    /    pi\                           |
            ||2*sin |x + --|*cot|x + --|          otherwise        |
            \\      \    8 /    \    8 /                           /
$$\left(7 \sqrt{2} \left(\begin{cases} 0 & \text{for}\: \left(2 x + \frac{\pi}{4}\right) \bmod \pi = 0 \\2 \sin^{2}{\left(x + \frac{\pi}{8} \right)} \cot{\left(x + \frac{\pi}{8} \right)} & \text{otherwise} \end{cases}\right)\right) + 2$$
            //                      /      pi\           \
            ||       0          for |2*x + --| mod pi = 0|
            ||                      \      4 /           |
            ||                                           |
        ___ ||      /    pi\                             |
2 + 7*\/ 2 *|< 2*cot|x + --|                             |
            ||      \    8 /                             |
            ||----------------          otherwise        |
            ||       2/    pi\                           |
            ||1 + cot |x + --|                           |
            \\        \    8 /                           /
$$\left(7 \sqrt{2} \left(\begin{cases} 0 & \text{for}\: \left(2 x + \frac{\pi}{4}\right) \bmod \pi = 0 \\\frac{2 \cot{\left(x + \frac{\pi}{8} \right)}}{\cot^{2}{\left(x + \frac{\pi}{8} \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + 2$$
      //   0      for 2*x mod pi = 0\     //   1      for x mod pi = 0\
2 + 7*|<                            | + 7*|<                          |
      \\sin(2*x)      otherwise     /     \\cos(2*x)     otherwise    /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                          //      1        for x mod pi = 0\
      //   0      for 2*x mod pi = 0\     ||                               |
2 + 7*|<                            | + 7*|<   /pi      \                  |
      \\sin(2*x)      otherwise     /     ||sin|-- + 2*x|     otherwise    |
                                          \\   \2       /                  /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\sin{\left(2 x + \frac{\pi}{2} \right)} & \text{otherwise} \end{cases}\right)\right) + 2$$
      //      0        for 2*x mod pi = 0\                                  
      ||                                 |     //   1      for x mod pi = 0\
2 + 7*|<   /      pi\                    | + 7*|<                          |
      ||cos|2*x - --|      otherwise     |     \\cos(2*x)     otherwise    /
      \\   \      2 /                    /                                  
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\cos{\left(2 x - \frac{\pi}{2} \right)} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                          //              /pi      \           \
      //   0      for 2*x mod pi = 0\     ||   0      for |-- + 2*x| mod pi = 0|
2 + 7*|<                            | + 7*|<              \2       /           |
      \\sin(2*x)      otherwise     /     ||                                   |
                                          \\cos(2*x)          otherwise        /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 0 & \text{for}\: \left(2 x + \frac{\pi}{2}\right) \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                        //              /      3*pi\             \
      //   1      for x mod pi = 0\     ||   1      for |2*x + ----| mod 2*pi = 0|
2 + 7*|<                          | + 7*|<              \       2  /             |
      \\cos(2*x)     otherwise    /     ||                                       |
                                        \\sin(2*x)            otherwise          /
$$\left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: \left(2 x + \frac{3 \pi}{2}\right) \bmod 2 \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases}\right)\right) + 2$$
      //      0        for 2*x mod pi = 0\                                  
      ||                                 |     //   1      for x mod pi = 0\
      ||      1                          |     ||                          |
2 + 7*|<-------------      otherwise     | + 7*|<   1                      |
      ||   /      pi\                    |     ||--------     otherwise    |
      ||sec|2*x - --|                    |     \\sec(2*x)                  /
      \\   \      2 /                    /                                  
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{1}{\sec{\left(2 x - \frac{\pi}{2} \right)}} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{1}{\sec{\left(2 x \right)}} & \text{otherwise} \end{cases}\right)\right) + 2$$
      /         4   \                           
      |    4*sin (x)|                           
    7*|1 - ---------|                           
      |       2     |                2          
      \    sin (2*x)/          28*sin (x)       
2 + ----------------- + ------------------------
               4        /         4   \         
          4*sin (x)     |    4*sin (x)|         
      1 + ---------     |1 + ---------|*sin(2*x)
             2          |       2     |         
          sin (2*x)     \    sin (2*x)/         
$$\frac{7 \left(- \frac{4 \sin^{4}{\left(x \right)}}{\sin^{2}{\left(2 x \right)}} + 1\right)}{\frac{4 \sin^{4}{\left(x \right)}}{\sin^{2}{\left(2 x \right)}} + 1} + 2 + \frac{28 \sin^{2}{\left(x \right)}}{\left(\frac{4 \sin^{4}{\left(x \right)}}{\sin^{2}{\left(2 x \right)}} + 1\right) \sin{\left(2 x \right)}}$$
                                          //      1        for x mod pi = 0\
      //   0      for 2*x mod pi = 0\     ||                               |
      ||                            |     ||      1                        |
2 + 7*|<   1                        | + 7*|<-------------     otherwise    |
      ||--------      otherwise     |     ||   /pi      \                  |
      \\csc(2*x)                    /     ||csc|-- - 2*x|                  |
                                          \\   \2       /                  /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{1}{\csc{\left(2 x \right)}} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{1}{\csc{\left(- 2 x + \frac{\pi}{2} \right)}} & \text{otherwise} \end{cases}\right)\right) + 2$$
      //     0       for 2*x mod pi = 0\     //     1        for x mod pi = 0\
      ||                               |     ||                              |
      ||  2*cot(x)                     |     ||        2                     |
2 + 7*|<-----------      otherwise     | + 7*|<-1 + cot (x)                  |
      ||       2                       |     ||------------     otherwise    |
      ||1 + cot (x)                    |     ||       2                      |
      \\                               /     \\1 + cot (x)                   /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2 \cot{\left(x \right)}}{\cot^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{\cot^{2}{\left(x \right)} - 1}{\cot^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + 2$$
      /         2      \                                 
      |      sec (x)   |                                 
    7*|1 - ------------|                                 
      |       2/    pi\|                                 
      |    sec |x - --||                                 
      \        \    2 //             14*sec(x)           
2 + -------------------- + ------------------------------
               2           /         2      \            
            sec (x)        |      sec (x)   |    /    pi\
      1 + ------------     |1 + ------------|*sec|x - --|
             2/    pi\     |       2/    pi\|    \    2 /
          sec |x - --|     |    sec |x - --||            
              \    2 /     \        \    2 //            
$$\frac{7 \left(- \frac{\sec^{2}{\left(x \right)}}{\sec^{2}{\left(x - \frac{\pi}{2} \right)}} + 1\right)}{\frac{\sec^{2}{\left(x \right)}}{\sec^{2}{\left(x - \frac{\pi}{2} \right)}} + 1} + 2 + \frac{14 \sec{\left(x \right)}}{\left(\frac{\sec^{2}{\left(x \right)}}{\sec^{2}{\left(x - \frac{\pi}{2} \right)}} + 1\right) \sec{\left(x - \frac{\pi}{2} \right)}}$$
      //     0       for 2*x mod pi = 0\     //     1       for x mod pi = 0\
      ||                               |     ||                             |
      ||  2*tan(x)                     |     ||       2                     |
2 + 7*|<-----------      otherwise     | + 7*|<1 - tan (x)                  |
      ||       2                       |     ||-----------     otherwise    |
      ||1 + tan (x)                    |     ||       2                     |
      \\                               /     \\1 + tan (x)                  /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2 \tan{\left(x \right)}}{\tan^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{- \tan^{2}{\left(x \right)} + 1}{\tan^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + 2$$
      /       2/    pi\\                            
      |    cos |x - --||                            
      |        \    2 /|                            
    7*|1 - ------------|               /    pi\     
      |         2      |         14*cos|x - --|     
      \      cos (x)   /               \    2 /     
2 + -------------------- + -------------------------
             2/    pi\     /       2/    pi\\       
          cos |x - --|     |    cos |x - --||       
              \    2 /     |        \    2 /|       
      1 + ------------     |1 + ------------|*cos(x)
               2           |         2      |       
            cos (x)        \      cos (x)   /       
$$\frac{7 \cdot \left(1 - \frac{\cos^{2}{\left(x - \frac{\pi}{2} \right)}}{\cos^{2}{\left(x \right)}}\right)}{1 + \frac{\cos^{2}{\left(x - \frac{\pi}{2} \right)}}{\cos^{2}{\left(x \right)}}} + 2 + \frac{14 \cos{\left(x - \frac{\pi}{2} \right)}}{\left(1 + \frac{\cos^{2}{\left(x - \frac{\pi}{2} \right)}}{\cos^{2}{\left(x \right)}}\right) \cos{\left(x \right)}}$$
      /       2/pi    \\                            
      |    csc |-- - x||                            
      |        \2     /|                            
    7*|1 - ------------|               /pi    \     
      |         2      |         14*csc|-- - x|     
      \      csc (x)   /               \2     /     
2 + -------------------- + -------------------------
             2/pi    \     /       2/pi    \\       
          csc |-- - x|     |    csc |-- - x||       
              \2     /     |        \2     /|       
      1 + ------------     |1 + ------------|*csc(x)
               2           |         2      |       
            csc (x)        \      csc (x)   /       
$$\frac{7 \cdot \left(1 - \frac{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}}{\csc^{2}{\left(x \right)}}\right)}{1 + \frac{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}}{\csc^{2}{\left(x \right)}}} + 2 + \frac{14 \csc{\left(- x + \frac{\pi}{2} \right)}}{\left(1 + \frac{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}}{\csc^{2}{\left(x \right)}}\right) \csc{\left(x \right)}}$$
                                                      //     1        for x mod pi = 0\
      //         0            for 2*x mod pi = 0\     ||                              |
      ||                                        |     ||        1                     |
      ||         2                              |     ||-1 + -------                  |
      ||--------------------      otherwise     |     ||        2                     |
2 + 7*|
            
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2}{\left(1 + \frac{1}{\tan^{2}{\left(x \right)}}\right) \tan{\left(x \right)}} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{-1 + \frac{1}{\tan^{2}{\left(x \right)}}}{1 + \frac{1}{\tan^{2}{\left(x \right)}}} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                             //                      /pi      \           \
                                             ||       0          for |-- + 2*x| mod pi = 0|
      //     0       for 2*x mod pi = 0\     ||                      \2       /           |
      ||                               |     ||                                           |
      ||  2*cot(x)                     |     ||      /    pi\                             |
2 + 7*|<-----------      otherwise     | + 7*|< 2*cot|x + --|                             |
      ||       2                       |     ||      \    4 /                             |
      ||1 + cot (x)                    |     ||----------------          otherwise        |
      \\                               /     ||       2/    pi\                           |
                                             ||1 + cot |x + --|                           |
                                             \\        \    4 /                           /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2 \cot{\left(x \right)}}{\cot^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 0 & \text{for}\: \left(2 x + \frac{\pi}{2}\right) \bmod \pi = 0 \\\frac{2 \cot{\left(x + \frac{\pi}{4} \right)}}{\cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                            //                       /      3*pi\             \
                                            ||        1          for |2*x + ----| mod 2*pi = 0|
      //     1        for x mod pi = 0\     ||                       \       2  /             |
      ||                              |     ||                                                |
      ||        2                     |     ||        2/    pi\                               |
2 + 7*|<-1 + cot (x)                  | + 7*|<-1 + tan |x + --|                               |
      ||------------     otherwise    |     ||         \    4 /                               |
      ||       2                      |     ||-----------------            otherwise          |
      \\1 + cot (x)                   /     ||        2/    pi\                               |
                                            || 1 + tan |x + --|                               |
                                            \\         \    4 /                               /
$$\left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{\cot^{2}{\left(x \right)} - 1}{\cot^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: \left(2 x + \frac{3 \pi}{2}\right) \bmod 2 \pi = 0 \\\frac{\tan^{2}{\left(x + \frac{\pi}{4} \right)} - 1}{\tan^{2}{\left(x + \frac{\pi}{4} \right)} + 1} & \text{otherwise} \end{cases}\right)\right) + 2$$
      //              0                for 2*x mod pi = 0\     //             1               for x mod pi = 0\
      ||                                                 |     ||                                             |
2 + 7*|
            
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                                         //      1         for x mod pi = 0\
                                                         ||                                |
      //           0             for 2*x mod pi = 0\     ||        2                       |
      ||                                           |     ||     sin (2*x)                  |
      ||        sin(2*x)                           |     ||-1 + ---------                  |
      ||-----------------------      otherwise     |     ||          4                     |
2 + 7*|
            
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{\sin{\left(2 x \right)}}{\left(1 + \frac{\sin^{2}{\left(2 x \right)}}{4 \sin^{4}{\left(x \right)}}\right) \sin^{2}{\left(x \right)}} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{-1 + \frac{\sin^{2}{\left(2 x \right)}}{4 \sin^{4}{\left(x \right)}}}{1 + \frac{\sin^{2}{\left(2 x \right)}}{4 \sin^{4}{\left(x \right)}}} & \text{otherwise} \end{cases}\right)\right) + 2$$
      //               0                  for 2*x mod pi = 0\     //               1                 for x mod pi = 0\
      ||                                                    |     ||                                                 |
      ||/     0       for 2*x mod pi = 0                    |     ||/     1        for x mod pi = 0                  |
      |||                                                   |     |||                                                |
2 + 7*|<|  2*cot(x)                                         | + 7*|<|        2                                       |
      ||<-----------      otherwise           otherwise     |     ||<-1 + cot (x)                       otherwise    |
      |||       2                                           |     |||------------     otherwise                      |
      |||1 + cot (x)                                        |     |||       2                                        |
      \\\                                                   /     \\\1 + cot (x)                                     /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2 \cot{\left(x \right)}}{\cot^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{\cot^{2}{\left(x \right)} - 1}{\cot^{2}{\left(x \right)} + 1} & \text{otherwise} \end{cases} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                                                //        1          for x mod pi = 0\
                                                                ||                                   |
      //              0                 for 2*x mod pi = 0\     ||          2                        |
      ||                                                  |     ||       cos (x)                     |
      ||           2*cos(x)                               |     ||-1 + ------------                  |
      ||------------------------------      otherwise     |     ||        2/    pi\                  |
      ||/         2      \                                |     ||     cos |x - --|                  |
2 + 7*|<|      cos (x)   |    /    pi\                    | + 7*|<         \    2 /                  |
      |||1 + ------------|*cos|x - --|                    |     ||-----------------     otherwise    |
      |||       2/    pi\|    \    2 /                    |     ||          2                        |
      |||    cos |x - --||                                |     ||       cos (x)                     |
      ||\        \    2 //                                |     || 1 + ------------                  |
      \\                                                  /     ||        2/    pi\                  |
                                                                ||     cos |x - --|                  |
                                                                \\         \    2 /                  /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2 \cos{\left(x \right)}}{\left(\frac{\cos^{2}{\left(x \right)}}{\cos^{2}{\left(x - \frac{\pi}{2} \right)}} + 1\right) \cos{\left(x - \frac{\pi}{2} \right)}} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{\frac{\cos^{2}{\left(x \right)}}{\cos^{2}{\left(x - \frac{\pi}{2} \right)}} - 1}{\frac{\cos^{2}{\left(x \right)}}{\cos^{2}{\left(x - \frac{\pi}{2} \right)}} + 1} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                                           //        1          for x mod pi = 0\
      //            0              for 2*x mod pi = 0\     ||                                   |
      ||                                             |     ||        2/    pi\                  |
      ||           /    pi\                          |     ||     sec |x - --|                  |
      ||      2*sec|x - --|                          |     ||         \    2 /                  |
      ||           \    2 /                          |     ||-1 + ------------                  |
      ||-------------------------      otherwise     |     ||          2                        |
2 + 7*|
            
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2 \sec{\left(x - \frac{\pi}{2} \right)}}{\left(1 + \frac{\sec^{2}{\left(x - \frac{\pi}{2} \right)}}{\sec^{2}{\left(x \right)}}\right) \sec{\left(x \right)}} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{-1 + \frac{\sec^{2}{\left(x - \frac{\pi}{2} \right)}}{\sec^{2}{\left(x \right)}}}{1 + \frac{\sec^{2}{\left(x - \frac{\pi}{2} \right)}}{\sec^{2}{\left(x \right)}}} & \text{otherwise} \end{cases}\right)\right) + 2$$
                                                                //        1          for x mod pi = 0\
                                                                ||                                   |
      //              0                 for 2*x mod pi = 0\     ||          2                        |
      ||                                                  |     ||       csc (x)                     |
      ||           2*csc(x)                               |     ||-1 + ------------                  |
      ||------------------------------      otherwise     |     ||        2/pi    \                  |
      ||/         2      \                                |     ||     csc |-- - x|                  |
2 + 7*|<|      csc (x)   |    /pi    \                    | + 7*|<         \2     /                  |
      |||1 + ------------|*csc|-- - x|                    |     ||-----------------     otherwise    |
      |||       2/pi    \|    \2     /                    |     ||          2                        |
      |||    csc |-- - x||                                |     ||       csc (x)                     |
      ||\        \2     //                                |     || 1 + ------------                  |
      \\                                                  /     ||        2/pi    \                  |
                                                                ||     csc |-- - x|                  |
                                                                \\         \2     /                  /
$$\left(7 \left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{2 \csc{\left(x \right)}}{\left(\frac{\csc^{2}{\left(x \right)}}{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}} + 1\right) \csc{\left(- x + \frac{\pi}{2} \right)}} & \text{otherwise} \end{cases}\right)\right) + \left(7 \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{\frac{\csc^{2}{\left(x \right)}}{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}} - 1}{\frac{\csc^{2}{\left(x \right)}}{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}} + 1} & \text{otherwise} \end{cases}\right)\right) + 2$$
2 + 7*Piecewise((0, Mod(2*x = pi, 0)), (2*csc(x)/((1 + csc(x)^2/csc(pi/2 - x)^2)*csc(pi/2 - x)), True)) + 7*Piecewise((1, Mod(x = pi, 0)), ((-1 + csc(x)^2/csc(pi/2 - x)^2)/(1 + csc(x)^2/csc(pi/2 - x)^2), True))