Integral with sine(x) and x multiplied

  • Thread starter gfd43tg
  • Start date
  • Tags
    Integral
In summary, the conversation discusses a physics problem involving a difficult integral. The speaker attempts to solve it by separating it into two integrals and using integration by parts. However, they are unsure if this is the best method and consider using a table. Another person suggests using differentiation under the integral sign as an alternative method.
  • #1
gfd43tg
Gold Member
950
50

Homework Statement


I'm doing a physics problem, but I'm stuck on the math part. My integral is

$$ \frac {2 \sqrt {15}}{a^{3}} \int_{0}^{a} \hspace{0.01 in} sin(\frac {n \pi}{a} x)x(a-x) dx $$
Where ##a## is a constant, and ##n = 1,2,3,...##

Homework Equations

The Attempt at a Solution


I will separate these into two integrals

$$ \frac {2 \sqrt {15}}{a^{3}} \Big [ \int_{0}^{a} ax \hspace{0.01 in} sin(\frac {n \pi}{a}x) dx - \int_{0}^{a} x^{2} \hspace {0.01 in} sin( \frac {n \pi}{a} x) \Big ] dx $$

But from here, I know I could look up on the internet some sort of integral table, but the one I found

upload_2015-3-1_0-13-19.png

upload_2015-3-1_0-14-0.png

Is this integral reasonable to solve by hand, or is it just better to use the table?
 
Physics news on Phys.org
  • #2
Maylis said:

Homework Statement


I'm doing a physics problem, but I'm stuck on the math part. My integral is

$$ \frac {2 \sqrt {15}}{a^{3}} \int_{0}^{a} \hspace{0.01 in} sin(\frac {n \pi}{a} x)x(a-x) dx $$
Where ##a## is a constant, and ##n = 1,2,3,...##

Homework Equations

The Attempt at a Solution


I will separate these into two integrals

$$ \frac {2 \sqrt {15}}{a^{3}} \Big [ \int_{0}^{a} ax \hspace{0.01 in} sin(\frac {n \pi}{a}x) dx - \int_{0}^{a} x^{2} \hspace {0.01 in} sin( \frac {n \pi}{a} x) \Big ] dx $$

But from here, I know I could look up on the internet some sort of integral table, but the one I found

View attachment 79722
View attachment 79723
Is this integral reasonable to solve by hand, or is it just better to use the table?

It's just integration by parts. Try doing x*sin(x) using the method. It would be good practice.
 
  • #3
Okay, that was a fun little exercise to do the integration by parts (it's been a couple years)

So for the first term
$$ \frac {2 \sqrt {15}}{a^{3}} \int_{0}^{a} ax \hspace{0.01 in} sin(\frac {n \pi}{a}x) \hspace {0.01 in} dx $$
I will set ##u = x##, ##du = dx##, ##dv = sin(\frac {n \pi}{a} x) dx##, ##v = - \frac {a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x)##
So using integration by parts (and cancelling the ##a## term in the integral with the one outside)
$$ \int u \hspace {0.01 in} dv = uv - \int v \hspace {0.01 in} du $$

$$ \frac {2 \sqrt {15}}{a^{2}} \Big [ x \frac {-a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x) - \int - \frac {a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x) \hspace {0.01 in} dx \Big ] $$
$$ \frac {2 \sqrt {15}}{a^{2}} \Big [ x \frac {-a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x) + \frac {a^{2}}{n^{2} \pi^{2}} \hspace {0.01 in} sin(\frac {n \pi}{a} x) \Big ] \bigg |_{0:a} $$
$$ \frac {2 \sqrt {15}}{a^{2}} \Big [ \frac {-a^{2}}{n \pi} \hspace {0.01 in} cos (n \pi) + \frac {a^{2}}{n^{2} \pi^{2}} \hspace {0.01 in} sin(n \pi) \Big ] $$
The first term reduces to
$$ \frac {-2 \sqrt {15}}{n \pi} \hspace {0.01 in} cos (n \pi) + \frac {2 \sqrt {15}}{n^{2} \pi^{2}} \hspace {0.01 in} sin(n \pi) $$

Now for the second term
##u = x^{2}##, ##du = 2x \hspace {0.01 in} dx##, ##dv = sin(\frac {n \pi}{a} x) dx##, ##v = - \frac {a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x)##
$$ \frac {2 \sqrt {15}}{a^{3}} \Big [ x^{2} \frac {-a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x) + \frac {1}{2} \int \frac {a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x) \hspace {0.01 in} dx \Big ]$$
$$ \frac {2 \sqrt {15}}{a^{3}} \Big [ x^{2} \frac {-a}{n \pi} \hspace {0.01 in} cos (\frac {n \pi}{a} x) + \frac {a^{2}}{2n^{2} \pi^{2}} \hspace {0.01 in} sin (\frac {n \pi}{a} x) \Big ] \bigg |_{0:a} $$
$$ \frac {2 \sqrt {15}}{a^{3}} \Big [ \frac {-a^{3}}{n \pi} \hspace {0.01 in} cos (n \pi) + \frac {a^{2}}{2n^{2} \pi^{2}} \hspace {0.01 in} sin (n \pi) \Big ]$$
The second term reduces to
$$ \frac {-2 \sqrt{15}}{n \pi} \hspace {0.01 in} cos (n \pi) + \frac {\sqrt {15}}{an^{2} \pi^{2}} \hspace {0.01 in} sin (n \pi) $$

Now going all the way back, I have to subtract these terms,
$$\Big [ \frac {-2 \sqrt {15}}{n \pi} \hspace {0.01 in} cos (n \pi) + \frac {2 \sqrt {15}}{n^{2} \pi^{2}} \hspace {0.01 in} sin(n \pi) \Big ] - \Big [\frac {-2 \sqrt{15}}{n \pi} \hspace {0.01 in} cos (n \pi) + \frac {\sqrt {15}}{an^{2} \pi^{2}} \hspace {0.01 in} sin (n \pi) \Big ] $$

Simplifying to
$$ c_{n} = \frac {\sqrt {15}}{n^{2} \pi^{2}} \hspace {0.01 in} sin(n \pi) \big (2 - \frac {1}{a} \big ) $$
 
Last edited:
  • #4
I think the author just used a table, not sure if his solution is equivalent to mine
upload_2015-3-1_1-21-22.png
 
  • #5
Maylis said:
I think the author just used a table, not sure if his solution is equivalent to mine
Are you aware that ##\sin(n\pi)=0## so you got ##0##?
 
  • #6
Maylis said:

Homework Statement


I'm doing a physics problem, but I'm stuck on the math part. My integral is

$$ \frac {2 \sqrt {15}}{a^{3}} \int_{0}^{a} \hspace{0.01 in} sin(\frac {n \pi}{a} x)x(a-x) dx $$
Where ##a## is a constant, and ##n = 1,2,3,...##

Homework Equations

The Attempt at a Solution


I will separate these into two integrals

$$ \frac {2 \sqrt {15}}{a^{3}} \Big [ \int_{0}^{a} ax \hspace{0.01 in} sin(\frac {n \pi}{a}x) dx - \int_{0}^{a} x^{2} \hspace {0.01 in} sin( \frac {n \pi}{a} x) \Big ] dx $$

But from here, I know I could look up on the internet some sort of integral table, but the one I found

View attachment 79722
View attachment 79723
Is this integral reasonable to solve by hand, or is it just better to use the table?

A useful alternative method is to use "differentiation under the integral sign". Here is how it works.

We have ##\sin(\theta) = \text{Im}\: e^{i \theta}##, where ##\text{Im}## denotes the imaginary part. Also: the integral of the imaginary part equals the imaginary part of the integral (for integration over real numbers). So, if we write
[tex] F(k) = \int_0^a e^{i x k/a} \, dx [/tex]
we can use the facts that
[tex] \frac{d}{dk} e^{i k x /a} = \frac{i x}{a} e^{i k x/a} [/tex]
and
[tex] \frac{d^2}{dk^2} e^{i k x/a} = -\frac{x^2}{a^2} e^{i k x/a} [/tex]
to get
[tex] \int_0^a x(a-x) e^{i k x/a} \, dx = \left( 1 + \frac{a^2}{i} \frac{d}{dk} + a^2 \frac{d^2}{dk^2} \right) F(k) [/tex]
You can easily find ##F(k)##, take the derivatives above, and simplify. Then you can take the imaginary part, to get the integral with ##\sin(k x /a)## in the integrand. Finally, you can set ##k = n \pi## and simplify further.
 
Last edited:
  • #7
Where did I go wrong in my integration? Everything seems to check out...I overlooked that I got zero, but at least it is connect if ##n## is even...but my solution is for all ##n##
 

FAQ: Integral with sine(x) and x multiplied

1. What is an integral with sine(x) and x multiplied?

An integral with sine(x) and x multiplied is a mathematical expression that involves the integration of a function that is the product of sine(x) and x, with respect to a given variable. This type of integral is also known as a multiple integral.

2. How do you solve an integral with sine(x) and x multiplied?

To solve an integral with sine(x) and x multiplied, you can use integration by parts or substitution methods. It is also helpful to use trigonometric identities to simplify the expression before integrating.

3. What is the significance of an integral with sine(x) and x multiplied?

An integral with sine(x) and x multiplied has various applications in physics, engineering, and other fields. It is commonly used to calculate areas, volumes, and other quantities in multidimensional spaces.

4. Can an integral with sine(x) and x multiplied have multiple solutions?

Yes, an integral with sine(x) and x multiplied can have multiple solutions, depending on the bounds of integration and the method used to solve it. It is always important to check for any missing or extra solutions when solving integrals.

5. Are there any special techniques for solving integrals with sine(x) and x multiplied?

Yes, there are special techniques such as using trigonometric identities, integration by parts, and substitution methods that can be used to solve integrals with sine(x) and x multiplied. It is also important to be familiar with integration rules and properties for more efficient solving.

Similar threads

Back
Top