Тригонометрическая часть
[src]
$$\frac{\sin{\left(4 x \right)}}{2}$$
$$\frac{1}{2 \csc{\left(4 x \right)}}$$
/ pi\
cos|4*x - --|
\ 2 /
-------------
2
$$\frac{\cos{\left(4 x - \frac{\pi}{2} \right)}}{2}$$
1
---------------
/ pi\
2*sec|4*x - --|
\ 2 /
$$\frac{1}{2 \sec{\left(4 x - \frac{\pi}{2} \right)}}$$
1
-----------------
csc(2*x)*sec(2*x)
$$\frac{1}{\csc{\left(2 x \right)} \sec{\left(2 x \right)}}$$
/ pi\
cos(2*x)*cos|2*x - --|
\ 2 /
$$\cos{\left(2 x \right)} \cos{\left(2 x - \frac{\pi}{2} \right)}$$
/pi \
sin(2*x)*sin|-- + 2*x|
\2 /
$$\sin{\left(2 x \right)} \sin{\left(2 x + \frac{\pi}{2} \right)}$$
tan(2*x)
-------------
2
1 + tan (2*x)
$$\frac{\tan{\left(2 x \right)}}{\tan^{2}{\left(2 x \right)} + 1}$$
/ 2 \
\-1 + 2*cos (x)/*sin(2*x)
$$\left(2 \cos^{2}{\left(x \right)} - 1\right) \sin{\left(2 x \right)}$$
1
----------------------
/ pi\
sec(2*x)*sec|2*x - --|
\ 2 /
$$\frac{1}{\sec{\left(2 x \right)} \sec{\left(2 x - \frac{\pi}{2} \right)}}$$
1
----------------------
/pi \
csc(2*x)*csc|-- - 2*x|
\2 /
$$\frac{1}{\csc{\left(2 x \right)} \csc{\left(- 2 x + \frac{\pi}{2} \right)}}$$
1
----------------------
/pi \
sec(2*x)*sec|-- - 2*x|
\2 /
$$\frac{1}{\sec{\left(2 x \right)} \sec{\left(- 2 x + \frac{\pi}{2} \right)}}$$
1
---------------------------
/pi \
csc(pi - 2*x)*csc|-- - 2*x|
\2 /
$$\frac{1}{\csc{\left(- 2 x + \pi \right)} \csc{\left(- 2 x + \frac{\pi}{2} \right)}}$$
/ 2 \
2*\-1 + 2*cos (x)/*cos(x)*sin(x)
$$2 \cdot \left(2 \cos^{2}{\left(x \right)} - 1\right) \sin{\left(x \right)} \cos{\left(x \right)}$$
/ 2 2 \
2*\cos (x) - sin (x)/*cos(x)*sin(x)
$$2 \left(- \sin^{2}{\left(x \right)} + \cos^{2}{\left(x \right)}\right) \sin{\left(x \right)} \cos{\left(x \right)}$$
/ 0 for 4*x mod pi = 0
<
\sin(4*x) otherwise
-----------------------------
2
$$\frac{\begin{cases} 0 & \text{for}\: 4 x \bmod \pi = 0 \\\sin{\left(4 x \right)} & \text{otherwise} \end{cases}}{2}$$
/ 2 \
2*\1 - tan (x)/*tan(x)
----------------------
2
/ 2 \
\1 + tan (x)/
$$\frac{2 \cdot \left(- \tan^{2}{\left(x \right)} + 1\right) \tan{\left(x \right)}}{\left(\tan^{2}{\left(x \right)} + 1\right)^{2}}$$
/ 1 \
2*|1 - -------|
| 2 |
\ cot (x)/
---------------------
2
/ 1 \
|1 + -------| *cot(x)
| 2 |
\ cot (x)/
$$\frac{2 \cdot \left(1 - \frac{1}{\cot^{2}{\left(x \right)}}\right)}{\left(1 + \frac{1}{\cot^{2}{\left(x \right)}}\right)^{2} \cot{\left(x \right)}}$$
/ 0 for 4*x mod pi = 0
|
| 2*cot(2*x)
<------------- otherwise
| 2
|1 + cot (2*x)
\
----------------------------------
2
$$\frac{\begin{cases} 0 & \text{for}\: 4 x \bmod \pi = 0 \\\frac{2 \cot{\left(2 x \right)}}{\cot^{2}{\left(2 x \right)} + 1} & \text{otherwise} \end{cases}}{2}$$
/ pi\
4*tan(x)*tan|x + --|
\ 4 /
--------------------------------
/ 2 \ / 2/ pi\\
\1 + tan (x)/*|1 + tan |x + --||
\ \ 4 //
$$\frac{4 \tan{\left(x \right)} \tan{\left(x + \frac{\pi}{4} \right)}}{\left(\tan^{2}{\left(x \right)} + 1\right) \left(\tan^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right)}$$
/ pi\
4*cot(x)*tan|x + --|
\ 4 /
--------------------------------
/ 2 \ / 2/ pi\\
\1 + cot (x)/*|1 + tan |x + --||
\ \ 4 //
$$\frac{4 \tan{\left(x + \frac{\pi}{4} \right)} \cot{\left(x \right)}}{\left(\tan^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right) \left(\cot^{2}{\left(x \right)} + 1\right)}$$
/ 2 \ / 2/ pi\\
\-1 + cot (x)/*|-1 + tan |x + --||
\ \ 4 //
----------------------------------
/ 2 \ / 2/ pi\\
\1 + cot (x)/*|1 + tan |x + --||
\ \ 4 //
$$\frac{\left(\tan^{2}{\left(x + \frac{\pi}{4} \right)} - 1\right) \left(\cot^{2}{\left(x \right)} - 1\right)}{\left(\tan^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right) \left(\cot^{2}{\left(x \right)} + 1\right)}$$
/ 2/ pi\\ / 2 \
|1 - cot |x + --||*\1 - tan (x)/
\ \ 4 //
--------------------------------
/ 2/ pi\\ / 2 \
|1 + cot |x + --||*\1 + tan (x)/
\ \ 4 //
$$\frac{\left(- \tan^{2}{\left(x \right)} + 1\right) \left(- \cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right)}{\left(\tan^{2}{\left(x \right)} + 1\right) \left(\cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right)}$$
/ 4 \
2 | 4*sin (x)|
4*sin (x)*|1 - ---------|
| 2 |
\ sin (2*x)/
-------------------------
2
/ 4 \
| 4*sin (x)|
|1 + ---------| *sin(2*x)
| 2 |
\ sin (2*x)/
$$\frac{4 \left(- \frac{4 \sin^{4}{\left(x \right)}}{\sin^{2}{\left(2 x \right)}} + 1\right) \sin^{2}{\left(x \right)}}{\left(\frac{4 \sin^{4}{\left(x \right)}}{\sin^{2}{\left(2 x \right)}} + 1\right)^{2} \sin{\left(2 x \right)}}$$
// 0 for 2*x mod pi = 0\ // 1 for x mod pi = 0\
|< |*|< |
\\sin(2*x) otherwise / \\cos(2*x) otherwise /
$$\left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases}\right) \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases}\right)$$
// 0 for 2*x mod pi = 0\
|| | // 1 for x mod pi = 0\
|< / pi\ |*|< |
||cos|2*x - --| otherwise | \\cos(2*x) otherwise /
\\ \ 2 / /
$$\left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\cos{\left(2 x - \frac{\pi}{2} \right)} & \text{otherwise} \end{cases}\right) \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases}\right)$$
// 1 for x mod pi = 0\
// 0 for 2*x mod pi = 0\ || |
|< |*|< /pi \ |
\\sin(2*x) otherwise / ||sin|-- + 2*x| otherwise |
\\ \2 / /
$$\left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases}\right) \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\sin{\left(2 x + \frac{\pi}{2} \right)} & \text{otherwise} \end{cases}\right)$$
/ 2 \
| sec (x) |
2*|1 - ------------|*sec(x)
| 2/ pi\|
| sec |x - --||
\ \ 2 //
-------------------------------
2
/ 2 \
| sec (x) | / pi\
|1 + ------------| *sec|x - --|
| 2/ pi\| \ 2 /
| sec |x - --||
\ \ 2 //
$$\frac{2 \left(- \frac{\sec^{2}{\left(x \right)}}{\sec^{2}{\left(x - \frac{\pi}{2} \right)}} + 1\right) \sec{\left(x \right)}}{\left(\frac{\sec^{2}{\left(x \right)}}{\sec^{2}{\left(x - \frac{\pi}{2} \right)}} + 1\right)^{2} \sec{\left(x - \frac{\pi}{2} \right)}}$$
/ 2/ pi\\
| cos |x - --||
| \ 2 /| / pi\
2*|1 - ------------|*cos|x - --|
| 2 | \ 2 /
\ cos (x) /
--------------------------------
2
/ 2/ pi\\
| cos |x - --||
| \ 2 /|
|1 + ------------| *cos(x)
| 2 |
\ cos (x) /
$$\frac{2 \cdot \left(1 - \frac{\cos^{2}{\left(x - \frac{\pi}{2} \right)}}{\cos^{2}{\left(x \right)}}\right) \cos{\left(x - \frac{\pi}{2} \right)}}{\left(1 + \frac{\cos^{2}{\left(x - \frac{\pi}{2} \right)}}{\cos^{2}{\left(x \right)}}\right)^{2} \cos{\left(x \right)}}$$
// /pi \ \
// 0 for 2*x mod pi = 0\ || 0 for |-- + 2*x| mod pi = 0|
|< |*|< \2 / |
\\sin(2*x) otherwise / || |
\\cos(2*x) otherwise /
$$\left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\sin{\left(2 x \right)} & \text{otherwise} \end{cases}\right) \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)$$
// / 3*pi\ \
// 1 for x mod pi = 0\ || 1 for |2*x + ----| mod 2*pi = 0|
|< |*|< \ 2 / |
\\cos(2*x) otherwise / || |
\\sin(2*x) otherwise /
$$\left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\cos{\left(2 x \right)} & \text{otherwise} \end{cases}\right) \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)$$
// 0 for 2*x mod pi = 0\
|| | // 1 for x mod pi = 0\
|| 1 | || |
|<------------- otherwise |*|< 1 |
|| / pi\ | ||-------- otherwise |
||sec|2*x - --| | \\sec(2*x) /
\\ \ 2 / /
$$\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) \left(\begin{cases} 1 & \text{for}\: x \bmod \pi = 0 \\\frac{1}{\sec{\left(2 x \right)}} & \text{otherwise} \end{cases}\right)$$
/ 2/pi \\
| csc |-- - x||
| \2 /| /pi \
2*|1 - ------------|*csc|-- - x|
| 2 | \2 /
\ csc (x) /
--------------------------------
2
/ 2/pi \\
| csc |-- - x||
| \2 /|
|1 + ------------| *csc(x)
| 2 |
\ csc (x) /
$$\frac{2 \cdot \left(1 - \frac{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}}{\csc^{2}{\left(x \right)}}\right) \csc{\left(- x + \frac{\pi}{2} \right)}}{\left(1 + \frac{\csc^{2}{\left(- x + \frac{\pi}{2} \right)}}{\csc^{2}{\left(x \right)}}\right)^{2} \csc{\left(x \right)}}$$
// 1 for x mod pi = 0\
// 0 for 2*x mod pi = 0\ || |
|| | || 1 |
|< 1 |*|<------------- otherwise |
||-------- otherwise | || /pi \ |
\\csc(2*x) / ||csc|-- - 2*x| |
\\ \2 / /
$$\left(\begin{cases} 0 & \text{for}\: 2 x \bmod \pi = 0 \\\frac{1}{\csc{\left(2 x \right)}} & \text{otherwise} \end{cases}\right) \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)$$
// 0 for 2*x mod pi = 0\ // 1 for x mod pi = 0\
|| | || |
|| 2*cot(x) | || 2 |
|<----------- otherwise |*|<-1 + cot (x) |
|| 2 | ||------------ otherwise |
||1 + cot (x) | || 2 |
\\ / \\1 + cot (x) /
$$\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) \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)$$
// 0 for 2*x mod pi = 0\ // 1 for x mod pi = 0\
|| | || |
|| 2*tan(x) | || 2 |
|<----------- otherwise |*|<1 - tan (x) |
|| 2 | ||----------- otherwise |
||1 + tan (x) | || 2 |
\\ / \\1 + tan (x) /
$$\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) \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)$$
// 1 for x mod pi = 0\
// 0 for 2*x mod pi = 0\ || |
|| | || 1 |
|| 2 | ||-1 + ------- |
||-------------------- otherwise | || 2 |
| 1 \ |*|< tan (x) |
|||1 + -------|*tan(x) | ||------------ otherwise |
||| 2 | | || 1 |
||\ tan (x)/ | ||1 + ------- |
\\ / || 2 |
\\ tan (x) /
$$\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) \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)$$
// /pi \ \
|| 0 for |-- + 2*x| mod pi = 0|
// 0 for 2*x mod pi = 0\ || \2 / |
|| | || |
|| 2*cot(x) | || / pi\ |
|<----------- otherwise |*|< 2*cot|x + --| |
|| 2 | || \ 4 / |
||1 + cot (x) | ||---------------- otherwise |
\\ / || 2/ pi\ |
||1 + cot |x + --| |
\\ \ 4 / /
$$\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) \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)$$
// / 3*pi\ \
|| 1 for |2*x + ----| mod 2*pi = 0|
// 1 for x mod pi = 0\ || \ 2 / |
|| | || |
|| 2 | || 2/ pi\ |
|<-1 + cot (x) |*|<-1 + tan |x + --| |
||------------ otherwise | || \ 4 / |
|| 2 | ||----------------- otherwise |
\\1 + cot (x) / || 2/ pi\ |
|| 1 + tan |x + --| |
\\ \ 4 / /
$$\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) \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)$$
// 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 |
||< otherwise | ||< otherwise |
\\\sin(2*x) otherwise / \\\cos(2*x) otherwise /
$$\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) \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)$$
// 1 for x mod pi = 0\
|| |
// 0 for 2*x mod pi = 0\ || 2 |
|| | || sin (2*x) |
|| sin(2*x) | ||-1 + --------- |
||----------------------- otherwise | || 4 |
| 2 \ |*|< 4*sin (x) |
||| sin (2*x)| 2 | ||-------------- otherwise |
|||1 + ---------|*sin (x) | || 2 |
||| 4 | | || sin (2*x) |
\\\ 4*sin (x)/ / ||1 + --------- |
|| 4 |
\\ 4*sin (x) /
$$\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) \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)$$
// 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*cot(x) |*|<| 2 |
||<----------- otherwise otherwise | ||<-1 + cot (x) otherwise |
||| 2 | |||------------ otherwise |
|||1 + cot (x) | ||| 2 |
\\\ / \\\1 + cot (x) /
$$\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) \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)$$
// 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 - --| |
|<| cos (x) | / pi\ |*|< \ 2 / |
|||1 + ------------|*cos|x - --| | ||----------------- otherwise |
||| 2/ pi\| \ 2 / | || 2 |
||| cos |x - --|| | || cos (x) |
||\ \ 2 // | || 1 + ------------ |
\\ / || 2/ pi\ |
|| cos |x - --| |
\\ \ 2 / /
$$\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) \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)$$
// 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/ pi\\ |*|< sec (x) |
||| sec |x - --|| | ||----------------- otherwise |
||| \ 2 /| | || 2/ pi\ |
|||1 + ------------|*sec(x) | || sec |x - --| |
||| 2 | | || \ 2 / |
||\ sec (x) / | || 1 + ------------ |
\\ / || 2 |
\\ sec (x) /
$$\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) \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)$$
// 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| |
|<| csc (x) | /pi \ |*|< \2 / |
|||1 + ------------|*csc|-- - x| | ||----------------- otherwise |
||| 2/pi \| \2 / | || 2 |
||| csc |-- - x|| | || csc (x) |
||\ \2 // | || 1 + ------------ |
\\ / || 2/pi \ |
|| csc |-- - x| |
\\ \2 / /
$$\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) \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)$$
Piecewise((0, Mod(2*x = pi, 0)), (2*csc(x)/((1 + csc(x)^2/csc(pi/2 - x)^2)*csc(pi/2 - x)), True))*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))