Mister Exam

Integral of xcos(x-y) dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
  1                
  /                
 |                 
 |  x*cos(x - y) dx
 |                 
/                  
0                  
01xcos(xy)dx\int\limits_{0}^{1} x \cos{\left(x - y \right)}\, dx
Integral(x*cos(x - y), (x, 0, 1))
Detail solution
  1. Use integration by parts:

    udv=uvvdu\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}

    Let u(x)=xu{\left(x \right)} = x and let dv(x)=cos(xy)\operatorname{dv}{\left(x \right)} = \cos{\left(x - y \right)}.

    Then du(x)=1\operatorname{du}{\left(x \right)} = 1.

    To find v(x)v{\left(x \right)}:

    1. Let u=xyu = x - y.

      Then let du=dxdu = dx and substitute dudu:

      cos(u)du\int \cos{\left(u \right)}\, du

      1. The integral of cosine is sine:

        cos(u)du=sin(u)\int \cos{\left(u \right)}\, du = \sin{\left(u \right)}

      Now substitute uu back in:

      sin(xy)\sin{\left(x - y \right)}

    Now evaluate the sub-integral.

  2. Let u=xyu = x - y.

    Then let du=dxdu = dx and substitute dudu:

    sin(u)du\int \sin{\left(u \right)}\, du

    1. The integral of sine is negative cosine:

      sin(u)du=cos(u)\int \sin{\left(u \right)}\, du = - \cos{\left(u \right)}

    Now substitute uu back in:

    cos(xy)- \cos{\left(x - y \right)}

  3. Add the constant of integration:

    xsin(xy)+cos(xy)+constantx \sin{\left(x - y \right)} + \cos{\left(x - y \right)}+ \mathrm{constant}


The answer is:

xsin(xy)+cos(xy)+constantx \sin{\left(x - y \right)} + \cos{\left(x - y \right)}+ \mathrm{constant}

The answer (Indefinite) [src]
  /                                               
 |                                                
 | x*cos(x - y) dx = C + x*sin(x - y) + cos(x - y)
 |                                                
/                                                 
(yx)sin(yx)ysin(yx)+cos(yx)\left(y-x\right)\,\sin \left(y-x\right)-y\,\sin \left(y-x\right)+ \cos \left(y-x\right)
The answer [src]
-cos(y) - sin(-1 + y) + cos(-1 + y)
cosysin(y1)+cos(y1)-\cos y-\sin \left(y-1\right)+\cos \left(y-1\right)
=
=
-cos(y) - sin(-1 + y) + cos(-1 + y)
sin(y1)cos(y)+cos(y1)- \sin{\left(y - 1 \right)} - \cos{\left(y \right)} + \cos{\left(y - 1 \right)}

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