MHB Integration by Parts for Cosine Squared: Is My Approach Correct?

Click For Summary
The discussion centers on the integration of cos²(x) using integration by parts. The original approach incorrectly defines u and du, leading to complications in the integration process. A more effective method involves using the double angle identity for cosine, which simplifies the integral significantly. The correct solution can be derived directly as 1/2 x + 1/4 sin(2x) + C. Overall, while integration by parts can work, leveraging trigonometric identities is a more straightforward approach.
jamescv31
Messages
17
Reaction score
0
Greetings :)

Well I wanted to seek help if my solution is on the right path, given as follows:

1) $$ \int cos ^2x dx $$

So my solution follows like this:

[math]
u = cos^2x [/math]
[math]du = 1/2 (1+cos(2x)) [/math]
[math]v = x[/math]
[math]dv = dx$$

but I've stuck when its in the $$u.v - \int v.du$$

$$cos^2 (x) - \int (x) (1+cos(2x)/2)$$

Is this a correct path?
 
Physics news on Phys.org
(Wave)It is known that :

$$\cos^2 x=\frac{1+ \cos{(2x)}}{2}$$

You can calculate easier the integral using the above equality.

$$\int \cos^2 x dx=\int \frac{1+ \cos{(2x)}}{2}dx =\int \frac{1}{2}dx+\int \frac{\cos(2x)}{2}dx= \frac{1}{2}x+ \frac{\sin(2x)}{4}+C$$
 
jamescv31 said:
1) $$ \int cos ^2x dx $$

So my solution follows like this:

[math]
u = cos^2x [/math]
[math]du = 1/2 (1+cos(2x)) [/math]
[math]v = x[/math]
[math]dv = dx[/math]
You have handled your u incorrectly.

If [math]u = cos^2(x)[/math] then [math]du = 2 \cdot cos(x) \cdot -sin(x)~dx[/math]

So your integration line reads:
[math]\int u~dv = u \cdot v - \int v~du[/math]

[math]\int cos^2(x)~dx = cos^2(x) \cdot x - \int x \cdot -2~sin(x)~cos(x)~dx[/math]
 
jamescv31 said:
Greetings :)

Well I wanted to seek help if my solution is on the right path, given as follows:

1) $$ \int cos ^2x dx $$

So my solution follows like this:

[math]
u = cos^2x [/math]
[math]du = 1/2 (1+cos(2x)) [/math]
[math]v = x[/math]
[math]dv = dx$$

but I've stuck when its in the $$u.v - \int v.du$$

$$cos^2 (x) - \int (x) (1+cos(2x)/2)$$

Is this a correct path?

If you really want to use integration by parts, you really should use $\displaystyle \begin{align*} u = \cos{(x)} \implies \mathrm{d}u = -\sin{(x)}\,\mathrm{d}x \end{align*}$ and $\displaystyle \begin{align*} \mathrm{d}v = \cos{(x)}\,\mathrm{d}x \implies v = \sin{(x)} \end{align*}$ to get

$\displaystyle \begin{align*} \int{\cos^2{(x)}\,\mathrm{d}x} &= \sin{(x)}\cos{(x)} - \int{ -\sin^2{(x)}\,\mathrm{d}x } \\ \int{\cos^2{(x)}\,\mathrm{d}x} &= \sin{(x)}\cos{(x)} + \int{\sin^2{(x)}\,\mathrm{d}x} \\ \int{\cos^2{(x)}\,\mathrm{d}x} &= \sin{(x)}\cos{(x)} + \int{ 1 - \cos^2{(x)}\,\mathrm{d}x} \\ \int{\cos^2{(x)}\,\mathrm{d}x} &= \sin{(x)}\cos{(x)} + \int{1\,\mathrm{d}x} - \int{\cos^2{(x)}\,\mathrm{d}x} \\ 2\int{\cos^2{(x)}\,\mathrm{d}x} &= \sin{(x)}\cos{(x)} + x \\ \int{\cos^2{(x)}\,\mathrm{d}x} &= \frac{1}{2}\sin{(x)}\cos{(x)} + \frac{1}{2}x \end{align*}$

with an integration constant on the end of course...

As you can see, this was the long way about it though, using the double angle identity for cosine would have made this a much easier problem...
 
Thread 'Problem with calculating projections of curl using rotation of contour'
Hello! I tried to calculate projections of curl using rotation of coordinate system but I encountered with following problem. Given: ##rot_xA=\frac{\partial A_z}{\partial y}-\frac{\partial A_y}{\partial z}=0## ##rot_yA=\frac{\partial A_x}{\partial z}-\frac{\partial A_z}{\partial x}=1## ##rot_zA=\frac{\partial A_y}{\partial x}-\frac{\partial A_x}{\partial y}=0## I rotated ##yz##-plane of this coordinate system by an angle ##45## degrees about ##x##-axis and used rotation matrix to...

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K