Integration (different substitution = different answer)

Click For Summary

Discussion Overview

The discussion revolves around the integration of the function sin(x)cos(x) using different substitutions in the context of integration by substitution. Participants explore the implications of choosing u = sin(x) versus u = cos(x) and the resulting differences in the integrated expressions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants note that using u = cos(x) works well for integrating sin(x)cos(x), while others argue that u = sin(x) is more straightforward as it avoids multiplying by -1.
  • A participant mentions that the two different substitutions yield answers that differ by a constant of integration, specifically 1/2, suggesting that they are not fundamentally different.
  • Another participant questions the validity of the substitution u = sin(x), citing MATLAB results that suggest it is incorrect, leading to a discussion on the importance of substitution choices.
  • Some participants express that the choice of substitution can greatly simplify the integration process, emphasizing that the integrand should ideally contain both a function and its derivative.
  • There is a discussion about the nature of indefinite integrals and the role of the constant of integration, with some participants suggesting that constants can be disregarded in the context of indefinite integrals.
  • One participant highlights that both substitutions ultimately lead to equivalent results when considering the arbitrary constant of integration.

Areas of Agreement / Disagreement

Participants express differing views on the effectiveness of the substitutions used for integration. While some argue that both substitutions are valid and yield equivalent results when constants are considered, others maintain that one substitution may be more appropriate than the other, leading to unresolved disagreements.

Contextual Notes

Participants acknowledge that the results differ by a constant, which is a crucial aspect of indefinite integrals. There is also a discussion about the implications of using software like MATLAB for integration, which may not account for constants in the same way as manual calculations.

Who May Find This Useful

This discussion may be useful for students and practitioners of calculus, particularly those interested in integration techniques and the nuances of substitution methods.

n0_3sc
Messages
238
Reaction score
1
Out of curiosity there are several trig functions that can be integrated (WITHOUT the use of trig identities) using Integration by Substitution.

One particular example is this:
sin(x)cos(x) dx

Integrating this with substitution u = cos(x) works out fine.
HOWEVER integrating with substitution u = sin(x) does not.

Can someone please explain why this is, and how to distinguish what substitution to make?
 
Physics news on Phys.org
Why does the substitution u=sin(x) not work?
 
In fact u=sin x actually works BETTER than u=cos x, no need to multiply by factors of negative 1 to get things to work.
 
your chosen example is a bad one,... but I can imagine that there are cases where only a "correct" substitution will greatly simplify things.. which is your objective in the first place. remember, integrate by substitution/change of variables works best when the integrand has both f(x) and its derviative present (as a product).
 
You get different answers until you remember that there's a constant of integration. The answers differ by a constant (1/2), so they aren't really different.
 
Sorry i meant u = cos(x) works fine but u = sin(x) doesn't. (My bad).

In fact u=sin x actually works BETTER than u=cos x, no need to multiply by factors of negative 1 to get things to work.

Even if you didn't know about the different substitutions how would you know that you need to multiply by -1 to get the right answer (assuming you have no way to check your answer).

your chosen example is a bad one,... but I can imagine that there are cases where only a "correct" substitution will greatly simplify things.. which is your objective in the first place. remember, integrate by substitution/change of variables works best when the integrand has both f(x) and its derviative present (as a product).

I agree it may have been a bad example but this was a spur of the moment quesiton...in this integrand f(x) does have a derivative present that's why substitution is best here...this doesn't explain why the one substitution works.

You get different answers until you remember that there's a constant of integration. The answers differ by a constant (1/2), so they aren't really different.

There is a constant of integration for everything you integrate, I am just concerned with the integrands solution. Are you saying that some substitutions don't work because they require extra info in getting the constant of integrations?

I'm not trying to be arrogant, I just think there is a logical solution to it like everything else in math :smile:
 
Let u = sin(x).
Then du = cos(x)dx, so
\int \sin(x)\cos(x)dx = \int udu = \frac{1}{2}u^2 + C = \frac{1}{2}\sin^2(x) + C

Now instead, let u = cos(x).
Then du = -sin(x)dx, so
\int \sin(x)\cos(x)dx = \int -udu = -\frac{1}{2}u^2 + C = -\frac{1}{2}\cos^2(x) + C

But
\frac{1}{2}\sin^2(x) = -\frac{1}{2}\cos^2(x) + \frac{1}{2}
so they differ by a constant. Where is there a problem?
 
Even if you didn't know about the different substitutions how would you know that you need to multiply by -1 to get the right answer (assuming you have no way to check your answer).

No I was talking about since the derivative of cos x is NEGATIVE sin x, but we only have a sin x in the integrand, the natural thing to do is to multiply everything inside the integral by -1, and the outside by -1, to even it out.
 
Yes they do differ by a half.
Thus, the two integrals are indeed different.

My point is if you were doing an analytical problem, then your end result will differ (by a constant) depending on the substitution. So which result is right?

Using MATLAB the integral of sin(x)cos(x) = -0.5[cos(x)]^2.
So, the substitution u = sin(x) is incorrect.
Hence certain substitutions matter? Why?
 
  • #10
n0_3sc said:
Yes they do differ by a half.
Thus, the two integrals are indeed different.

My point is if you were doing an analytical problem, then your end result will differ (by a constant) depending on the substitution. So which result is right?

What must you always include when doing an indefinite integral? An arbitrary constant of integration, and this is because the derivative of a constant function is zero. If you were doing a definite integral either substitution would give the exact same final answer because that constant ends up disappearing when it is added and subtracted.

As a trivial example consider the function y=1, then both Y=x+1, and Z=x+3 are antiderivatives of y. Now suppose we want to evaluate this integral over the interval (1,2)

so Z(2)-Z(1)=[2+3]-[1+3]=[2-1]+[3-3]=1
similarly
Y(2)-Y(1)=[2+1]-[1+1]=[2-1]+[1-1]=1

And they evaluate to the same answer.
 
  • #11
I agree with you.

Would it be fair to say that for an indefinite integral you may remove any sum/difference constants and that would be the solution? (regardless of the substitution).
 
  • #12
n0_3sc said:
Yes they do differ by a half.
Thus, the two integrals are indeed different.

My point is if you were doing an analytical problem, then your end result will differ (by a constant) depending on the substitution. So which result is right?

Using MATLAB the integral of sin(x)cos(x) = -0.5[cos(x)]^2.
So, the substitution u = sin(x) is incorrect.
Hence certain substitutions matter? Why?

This seems to mostly be a case of you not understanding the result.

The best way to think of it is that the MATLAB result is wrong, or rather incomplete (they are just taking the constant to be 0).

It should say:

\int \sin(x)\cos(x)dx = -\frac{1}{2}\cos^2(x) + C

Which is exactly the same as:

\int \sin(x)\cos(x)dx = \frac{1}{2}\sin^2(x) + C_2

Because:

-\frac{1}{2}\cos^2(x) + C = \frac{1}{2}\sin^2(x) + C_2

You can always add an arbitrary constant to an indefinite integral. If you are worried about keeping track of constants, just "eat up" any new constants by creating a new one (in the example above one of the C's ate up the other C and a constant factor of 1/2).

You need to understand the difference between a definite and an indefinite integral.
 
  • #13
You'll also see that when you do a definite integral, again, you'll get the same value. (try it with the example above.)
 
  • #14
Instead of doing it with a single example, you can prove that for all integrable functions, the constant of integration doesn't matter for definite integrals.

\int f(x)\,dx = F(x) + C implies that \int^b_a f(x)\,dx = ( F(b) + C) - ( F(a) + C ) = F(b) - F(a) + C - C = F(b) - F(a).

This means that both F(x) and F(x) + C give the same answer.

Also, another quick way to see that both of your answers are right is just to differentiate them both and notice that they're equal.
 
Last edited:

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K