integration by parts

nickname

New member
Joined
Mar 24, 2009
Messages
39
?xsinxdx

using ?udv=uv-?vdu

I thought that for this problem x was going to be u and sinx dv,

but the solution is the following

?xsinxdx x is dv and u is sinx

= x(-cosx) - ?(-cosx) 1dx
= -xcosx+ ?(cosx) dx
= -xcosx+sinx+c

this is the same as sinx-xcosx+c

could anyone please clarify why x in dv instead of u? I thought that that the simplest term should be used as u.

Thanks again!
 
f(x) = xsin(x)dx, I by P: udv = uv vdu\displaystyle f(x) \ = \ \int x sin(x)dx, \ I \ by \ P: \ \int udv \ = \ uv \ -\int v du

Let u = x      du = dx, and let dv = sin(x)dx      v = cos(x)\displaystyle Let \ u \ = \ x \ \implies \ du \ = \ dx, \ and \ let \ dv \ = \ sin(x)dx \ \implies \ v \ = \ -cos(x)

Ergo, we have xsin(x)dx = xcos(x) + cos(x)dx\displaystyle Ergo, \ we \ have \ \int x sin(x)dx \ = \ -xcos(x) \ + \ \int cos(x)dx

xsin(x)dx = xcos(x) + sin(x) + C, QED\displaystyle \int x sin(x)dx \ = \ -xcos(x) \ + \ sin(x) \ + \ C, \ QED

Note, above comment, to wit:\displaystyle Note, \ above \ comment, \ to \ wit:

could anyone please clarify why x in dv instead of u? I thought that the\displaystyle could \ anyone \ please \ clarify \ why \ x \ in \ dv \ instead \ of \ u? \ I \ thought \ that \ the

 simplest term should be used as u.\displaystyle \ simplest \ term \ should \ be \ used \ as \ u.

You thought wrong, however; if you want to make it hard upon yourself, go for it.\displaystyle You \ thought \ wrong, \ however; \ if \ you \ want \ to \ make \ it \ hard \ upon \ yourself, \ go \ for \ it.
 
Top