👉 Try now NerdPal! Our new math app on iOS and Android

Find the integral $\int x\cos\left(x\right)^2dx$

Step-by-step Solution

Go!
Math mode
Text mode
Go!
1
2
3
4
5
6
7
8
9
0
a
b
c
d
f
g
m
n
u
v
w
x
y
z
.
(◻)
+
-
×
◻/◻
/
÷
2

e
π
ln
log
log
lim
d/dx
Dx
|◻|
θ
=
>
<
>=
<=
sin
cos
tan
cot
sec
csc

asin
acos
atan
acot
asec
acsc

sinh
cosh
tanh
coth
sech
csch

asinh
acosh
atanh
acoth
asech
acsch

Final Answer

$\frac{1}{4}x^2+\frac{1}{4}x\sin\left(2x\right)+\frac{1}{8}\cos\left(2x\right)+C_0$
Got another answer? Verify it here!

Step-by-step Solution

Specify the solving method

1

Apply the trigonometric identity: $\cos\left(\theta \right)^2$$=\frac{1+\cos\left(2\theta \right)}{2}$

$\int x\frac{1+\cos\left(2x\right)}{2}dx$
2

We can solve the integral $\int x\frac{1+\cos\left(2x\right)}{2}dx$ by applying integration by parts method to calculate the integral of the product of two functions, using the following formula

$\displaystyle\int u\cdot dv=u\cdot v-\int v \cdot du$
3

First, identify $u$ and calculate $du$

$\begin{matrix}\displaystyle{u=x}\\ \displaystyle{du=dx}\end{matrix}$
4

Now, identify $dv$ and calculate $v$

$\begin{matrix}\displaystyle{dv=\frac{1+\cos\left(2x\right)}{2}dx}\\ \displaystyle{\int dv=\int \frac{1+\cos\left(2x\right)}{2}dx}\end{matrix}$
5

Solve the integral

$v=\int\frac{1+\cos\left(2x\right)}{2}dx$
6

Take the constant $\frac{1}{2}$ out of the integral

$\frac{1}{2}\int\left(1+\cos\left(2x\right)\right)dx$
7

The integral of a constant is equal to the constant times the integral's variable

$\frac{1}{2}x+\frac{1}{2}\int\cos\left(2x\right)dx$
8

Apply the formula: $\int\cos\left(ax\right)dx$$=\frac{1}{a}\sin\left(ax\right)+C$, where $a=2$

$\frac{1}{2}x+\frac{1}{2}\cdot \left(\frac{1}{2}\right)\sin\left(2x\right)$
9

Now replace the values of $u$, $du$ and $v$ in the last formula

$x\left(\frac{1}{2}x+\frac{1}{4}\sin\left(2x\right)\right)-\int\frac{1}{2}xdx-\int\frac{1}{4}\sin\left(2x\right)dx$
10

Multiply the single term $x$ by each term of the polynomial $\left(\frac{1}{2}x+\frac{1}{4}\sin\left(2x\right)\right)$

$\frac{1}{2}x^2+\frac{1}{4}x\sin\left(2x\right)-\frac{1}{2}\int xdx-\frac{1}{4}\int\sin\left(2x\right)dx$
11

We can solve the integral $\int\sin\left(2x\right)dx$ by applying integration by substitution method (also called U-Substitution). First, we must identify a section within the integral with a new variable (let's call it $u$), which when substituted makes the integral easier. We see that $2x$ it's a good candidate for substitution. Let's define a variable $u$ and assign it to the choosen part

$u=2x$
12

Now, in order to rewrite $dx$ in terms of $du$, we need to find the derivative of $u$. We need to calculate $du$, we can do that by deriving the equation above

$du=2dx$
13

Isolate $dx$ in the previous equation

$du=2dx$
14

Substituting $u$ and $dx$ in the integral and simplify

$\frac{1}{2}x^2+\frac{1}{4}x\sin\left(2x\right)-\frac{1}{2}\int xdx-\frac{1}{4}\int\frac{\sin\left(u\right)}{2}du$
15

The integral $-\frac{1}{2}\int xdx-\frac{1}{4}\int\frac{\sin\left(u\right)}{2}du$ results in: $-\frac{1}{4}x^2+\frac{1}{8}\cos\left(2x\right)$

$-\frac{1}{4}x^2+\frac{1}{8}\cos\left(2x\right)$
16

Gather the results of all integrals

$\frac{1}{2}x^2+\frac{1}{4}x\sin\left(2x\right)+\frac{1}{8}\cos\left(2x\right)-\frac{1}{4}x^2$
17

Combining like terms $\frac{1}{2}x^2$ and $-\frac{1}{4}x^2$

$\frac{1}{4}x^2+\frac{1}{4}x\sin\left(2x\right)+\frac{1}{8}\cos\left(2x\right)$
18

As the integral that we are solving is an indefinite integral, when we finish integrating we must add the constant of integration $C$

$\frac{1}{4}x^2+\frac{1}{4}x\sin\left(2x\right)+\frac{1}{8}\cos\left(2x\right)+C_0$

Final Answer

$\frac{1}{4}x^2+\frac{1}{4}x\sin\left(2x\right)+\frac{1}{8}\cos\left(2x\right)+C_0$

Explore different ways to solve this problem

Solving a math problem using different methods is important because it enhances understanding, encourages critical thinking, allows for multiple solutions, and develops problem-solving strategies. Read more

Solve integral of xcosx^2dx using basic integralsSolve integral of xcosx^2dx using u-substitutionSolve integral of xcosx^2dx using tabular integration

Give us your feedback!

Function Plot

Plotting: $\frac{1}{4}x^2+\frac{1}{4}x\sin\left(2x\right)+\frac{1}{8}\cos\left(2x\right)+C_0$

SnapXam A2
Answer Assistant

beta
Got a different answer? Verify it!

Go!
1
2
3
4
5
6
7
8
9
0
a
b
c
d
f
g
m
n
u
v
w
x
y
z
.
(◻)
+
-
×
◻/◻
/
÷
2

e
π
ln
log
log
lim
d/dx
Dx
|◻|
θ
=
>
<
>=
<=
sin
cos
tan
cot
sec
csc

asin
acos
atan
acot
asec
acsc

sinh
cosh
tanh
coth
sech
csch

asinh
acosh
atanh
acoth
asech
acsch

How to improve your answer:

Main Topic: Integral Calculus

Integration assigns numbers to functions in a way that can describe displacement, area, volume, and other concepts that arise by combining infinitesimal data.

Used Formulas

9. See formulas

Your Math & Physics Tutor. Powered by AI

Available 24/7, 365.

Unlimited step-by-step math solutions. No ads.

Includes multiple solving methods.

Support for more than 100 math topics.

Premium access on our iOS and Android apps as well.

20% discount on online tutoring.

Choose your subscription plan:
Have a promo code?
Pay $39.97 USD securely with your payment method.
Please hold while your payment is being processed.
Create an Account