Integrating cos(px) from 1 to 2 with a constant p

  • Thread starter winston2020
  • Start date
  • Tags
    Integration
In summary, the integral seeks to find the sum of sin(u) over all values of u between -π and π. When integrating at the limits, the student mistakenly evaluates the integral at p=0 which yields an infinite answer.
  • #1
winston2020
35
0

Homework Statement


Solve the following Integral:
[tex]\int_{1}^2cos(px)dx[/tex]
where p is a constant

Homework Equations


The Attempt at a Solution


I'm totally lost here...
 
Physics news on Phys.org
  • #2
This isn't to bad. So, let u = px. du = pdx. So can you take it from there?
 
  • #3
PowerIso said:
This isn't to bad. So, let u = px. du = pdx. So can you take it from there?

Not really... what is du = pdx? du is the same as [tex]\frac{d}{dx}u[/tex] right? But why is that useful? And what is pdx?
 
  • #4
It's just a subsitution.

If du = p*dx then dx = du / p. Now integrate normally and at the end re-substitute.
 
  • #5
Substitution is important and knowing how to u-sub is the key to many integrals. But sometimes knowing that integration and differentiation are inverse operations allows you to guess the antiderivative.

What is the antiderivative of cos(x)? Where should the p be included? How do constants work when differentiating/integrating? You'll see that these questions aren't very hard to answer and it's more about thinking than just a routine substitution (though u-sub can get pretty tricky sometimes).
 
  • #6
Ok, should it go something like this?:

[tex]\int_{1}^2cos(px)dx[/tex]

Let [tex]u = px[/tex]

Therefore, [tex]du = pdx[/tex]

And, [tex]dx = \frac{du}{p}[/tex]

So,

[tex]\int_{1}^2cos(px)dx = \int_{1}^2cos(u)\frac{du}{p}[/tex]
[tex]= \frac{sin(u)}{p} + c [/tex]

Is that correct?
 
  • #7
anyone?
 
  • #8
It would be more convenient to pull the 1/p out of the integral. Your solution seems correct.
 
  • #9
You've evaluated the indefinite integral, but you still need to evaluate it at the limits you're given before the problem is complete.

i.e.,

[tex]\int_a^b f(x)~dx = F(b) - F(a)[/tex]

where F(x) is the antiderivative of f(x).
 
  • #10
winston2020 said:
So,

[tex]\int_{1}^2cos(px)dx = \int_{1}^2cos(u)\frac{du}{p}[/tex]
[tex]= \frac{sin(u)}{p} + c [/tex]

Is that correct?

Almost, but

[tex]\int_{1}^2cos(px)dx \neq \int_{1}^2cos(u)\frac{du}{p}[/tex]

...the limits are wrong on the RHS.

...in addition, you can easily see that your final equal sign is wrong by considering what happens if p=0. The answer should be 1... but your wrong answer is infinite at that value of p.
 
  • #11
It is true that [itex]\int cos(px)dx= (1/p)sin(px)+ C[/itex]. In order to do the definite integral, evaluating at the limits of integration, you can either write
[tex]\int_1^2 cos(px)dx= \left \frac{1}{p}sin(px)+ C\left|_1^2[/tex]
and evaluate at x= 1 and 2 or you can make the substitution u= px so that when x= 1, u= p and when x= 2, u= 2p and write
[tex]\int_1^2 cos(px)dx= \frac{1}{p}\int_p^{2p} cos(u)du=\left \frac{1}{p}sin(u)\right|_p^{2p}[/tex]

In more complicated problems you might have to make several substitutions and then it is better to change the limits of integration as you go (second method).
 

What is the formula for integrating cos(px)?

The formula for integrating cos(px) is 1/p * sin(px) + C, where C is the constant of integration.

What is the process for integrating cos(px)?

The process for integrating cos(px) involves using the power rule and the chain rule. First, the power rule is applied to the cos(px) term, resulting in 1/p * sin(px). Then, the chain rule is used to account for the px term, resulting in a final answer of 1/p * sin(px) + C.

What are the limits of integration for integrating cos(px)?

The limits of integration for integrating cos(px) depend on the specific problem or context in which the integral appears. In general, the limits should be chosen to encompass the entire interval over which the function is being integrated.

How does the graph of cos(px) affect the integration?

The graph of cos(px) does not directly affect the integration process. However, the shape and behavior of the graph may be useful in determining the appropriate limits of integration or in verifying the accuracy of the integrated function.

What are some applications of integrating cos(px)?

Integrating cos(px) is a common task in many branches of science and engineering, including physics, mathematics, and signal processing. It can be used to calculate the area under a curve, find the average value of a function, or solve problems involving periodic or oscillatory phenomena.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
812
  • Calculus and Beyond Homework Help
Replies
9
Views
949
  • Calculus and Beyond Homework Help
Replies
7
Views
927
Replies
5
Views
664
  • Calculus and Beyond Homework Help
Replies
7
Views
691
  • Calculus and Beyond Homework Help
Replies
2
Views
416
  • Calculus and Beyond Homework Help
Replies
10
Views
416
  • Calculus and Beyond Homework Help
Replies
9
Views
745
  • Calculus and Beyond Homework Help
Replies
3
Views
332
  • Calculus and Beyond Homework Help
Replies
3
Views
244
Back
Top