Final Answer
Step-by-step Solution
Specify the solving method
Simplifying
We can solve the integral $\int\cos\left(x\right)dx$ by applying integration by parts method to calculate the integral of the product of two functions, using the following formula
First, identify $u$ and calculate $du$
Now, identify $dv$ and calculate $v$
Solve the integral
The integral of a constant is equal to the constant times the integral's variable
Now replace the values of $u$, $du$ and $v$ in the last formula
We can solve the integral $\int x\sin\left(x\right)dx$ by applying integration by parts method to calculate the integral of the product of two functions, using the following formula
First, identify $u$ and calculate $du$
Now, identify $dv$ and calculate $v$
Solve the integral
Apply the integral of the sine function: $\int\sin(x)dx=-\cos(x)$
Now replace the values of $u$, $du$ and $v$ in the last formula
The integral $\int_{0}^{\frac{\pi}{2}}\cos\left(x\right)dx$ results in: $1$
Gather the results of all integrals
Evaluate the definite integral
Simplify the expression inside the integral