Mister Exam

Integral of sin(x)cos(nx) dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
 pi                   
  /                   
 |                    
 |  sin(x)*cos(n*x) dx
 |                    
/                     
0                     
$$\int\limits_{0}^{\pi} \sin{\left(x \right)} \cos{\left(n x \right)}\, dx$$
The answer (Indefinite) [src]
                            //                 2                                        \
                            ||              sin (x)                                     |
  /                         ||              -------                for Or(n = -1, n = 1)|
 |                          ||                 2                                        |
 | sin(x)*cos(n*x) dx = C + |<                                                          |
 |                          ||cos(x)*cos(n*x)   n*sin(x)*sin(n*x)                       |
/                           ||--------------- + -----------------        otherwise      |
                            ||          2                  2                            |
                            \\    -1 + n             -1 + n                             /
$$-{{\cos \left(\left(n+1\right)\,x\right)}\over{2\,\left(n+1\right) }}-{{\cos \left(\left(1-n\right)\,x\right)}\over{2\,\left(1-n\right) }}$$
The answer [src]
/          0            for Or(n = -1, n = 1)
|                                            
|     1      cos(pi*n)                       
<- ------- - ---------        otherwise      
|        2          2                        
|  -1 + n     -1 + n                         
\                                            
$$\begin{cases} 0 & \text{for}\: n = -1 \vee n = 1 \\- \frac{\cos{\left(\pi n \right)}}{n^{2} - 1} - \frac{1}{n^{2} - 1} & \text{otherwise} \end{cases}$$
=
=
/          0            for Or(n = -1, n = 1)
|                                            
|     1      cos(pi*n)                       
<- ------- - ---------        otherwise      
|        2          2                        
|  -1 + n     -1 + n                         
\                                            
$$\begin{cases} 0 & \text{for}\: n = -1 \vee n = 1 \\- \frac{\cos{\left(\pi n \right)}}{n^{2} - 1} - \frac{1}{n^{2} - 1} & \text{otherwise} \end{cases}$$

    Use the examples entering the upper and lower limits of integration.