Math Problem Statement

Evaluate the following definite integrals: 1. \( \int_0^\pi x \sin x \cos x \, dx \) 2. \( \int_{-1}^{1} |x| e^x \, dx \) 3. \( \int_{\frac{1}{e}}^e |\ln x| \, dx \)

Solution

Let's solve each of the three integrals step by step.

Problem 1: 0πxsinxcosxdx\int_0^\pi x \sin x \cos x \, dx

This can be simplified using the trigonometric identity: sinxcosx=12sin(2x)\sin x \cos x = \frac{1}{2} \sin(2x) Thus, the integral becomes: 0πxsinxcosxdx=120πxsin(2x)dx\int_0^\pi x \sin x \cos x \, dx = \frac{1}{2} \int_0^\pi x \sin(2x) \, dx

We can use integration by parts, where:

  • Let u=xu = x and dv=sin(2x)dxdv = \sin(2x) dx,
  • So, du=dxdu = dx and v=12cos(2x)v = -\frac{1}{2} \cos(2x).

Now applying the integration by parts formula: udv=uvvdu\int u \, dv = uv - \int v \, du 12[x2cos(2x)]0π+120π12cos(2x)dx\frac{1}{2} \left[ -\frac{x}{2} \cos(2x) \right]_0^\pi + \frac{1}{2} \int_0^\pi \frac{1}{2} \cos(2x) \, dx Evaluating this integral gives: I1=0I_1 = \boxed{0}

Problem 2: 11xexdx\int_{-1}^{1} |x| e^x \, dx

The absolute value function splits the integral into two parts: 11xexdx=10(x)exdx+01xexdx\int_{-1}^{1} |x| e^x \, dx = \int_{-1}^{0} (-x) e^x \, dx + \int_0^1 x e^x \, dx

Now, compute each part:

  1. For 10(x)exdx\int_{-1}^{0} (-x) e^x \, dx, we use integration by parts:

    • Let u=xu = -x and dv=exdxdv = e^x dx,
    • So, du=dxdu = -dx and v=exv = e^x, 10(x)exdx=[(x)ex]10+10exdx\int_{-1}^{0} (-x) e^x \, dx = -[(-x) e^x]_ {-1}^{0} + \int_{-1}^{0} e^x \, dx Evaluating gives: 10(x)exdx=e1\int_{-1}^{0} (-x) e^x \, dx = e^{-1}
  2. For 01xexdx\int_0^1 x e^x \, dx, we use the same process: 01xexdx=[xex]0101exdx=e1\int_0^1 x e^x \, dx = [xe^x]_0^1 - \int_0^1 e^x \, dx = e - 1

Thus, the final result is: I2=e1e1=e11eI_2 = e - \frac{1}{e} - 1 = \boxed{e - 1 - \frac{1}{e}}

Problem 3: 1eelnxdx\int_{\frac{1}{e}}^e |\ln x| \, dx

We need to split the integral based on the behavior of lnx|\ln x|:

  • For x[1e,1]x \in \left[\frac{1}{e}, 1\right], lnx0\ln x \leq 0, so lnx=lnx|\ln x| = -\ln x,
  • For x[1,e]x \in [1, e], lnx0\ln x \geq 0, so lnx=lnx|\ln x| = \ln x.

Thus, the integral becomes: 1eelnxdx=1e1(lnx)dx+1elnxdx\int_{\frac{1}{e}}^e |\ln x| \, dx = \int_{\frac{1}{e}}^1 (-\ln x) \, dx + \int_1^e \ln x \, dx

Now compute each part:

  1. For 1e1(lnx)dx\int_{\frac{1}{e}}^1 (-\ln x) \, dx, we use the formula lnxdx=xlnxx\int \ln x \, dx = x \ln x - x: 1e1(lnx)dx=[xlnx+x]1e1=11e\int_{\frac{1}{e}}^1 (-\ln x) \, dx = \left[ -x \ln x + x \right]_{\frac{1}{e}}^1 = 1 - \frac{1}{e}

  2. For 1elnxdx\int_1^e \ln x \, dx, the same formula gives: 1elnxdx=[xlnxx]1e=e1\int_1^e \ln x \, dx = \left[ x \ln x - x \right]_1^e = e - 1

Thus, the final result is: I3=11e+e1=e1eI_3 = 1 - \frac{1}{e} + e - 1 = \boxed{e - \frac{1}{e}}


Would you like further details or clarifications? Here are some related questions to extend your understanding:

  1. How does the trigonometric identity sinxcosx=12sin(2x)\sin x \cos x = \frac{1}{2} \sin(2x) help simplify integrals?
  2. What is the general approach to solving integrals that involve absolute value functions?
  3. Why is integration by parts a useful technique for products of functions?
  4. How does the integral lnxdx\int \ln x \, dx derive from the integration by parts method?
  5. What are some applications of definite integrals in physics and engineering?

Tip: When faced with a product of two functions in an integral, consider using integration by parts!

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Calculus
Definite Integrals
Integration by Parts
Absolute Value Function
Logarithmic Functions

Formulas

\( \sin x \cos x = \frac{1}{2} \sin(2x) \)
Integration by Parts: \( \int u \, dv = uv - \int v \, du \)
Logarithmic Integral: \( \int \ln x \, dx = x \ln x - x \)

Theorems

Integration by Parts Theorem

Suitable Grade Level

University Level