Why don't we account for the constant in integration by parts?

Click For Summary

Discussion Overview

The discussion centers around the treatment of constants in the context of integration by parts, particularly why the constant that arises from integrating \( dv \) is often not explicitly included in the resulting expressions. Participants explore the implications of this omission in both indefinite and definite integrals, as well as the potential for confusion it may cause.

Discussion Character

  • Technical explanation, Conceptual clarification, Debate/contested

Main Points Raised

  • Some participants note that integration by parts is defined as \( \int u \, dv = uv - \int v \, du \) and question why the constant from integrating \( dv \) is ignored on the right-hand side.
  • Others clarify that in definite integrals, the expression \( \int_a^b u \, dv \) does not present ambiguity regarding constants.
  • A participant states that in indefinite integrals, the constant is implied, as each indefinite integral represents an equivalence class of functions.
  • Some argue that adding a constant \( c \) to \( f \) in the integration by parts formula does not affect the outcome, as shown through algebraic manipulation.
  • A later reply emphasizes the necessity of using the same indefinite integral in both terms of the integration by parts formula to avoid confusion.
  • Several participants share personal experiences or examples from textbooks where including the constant was beneficial in solving problems.
  • There is a suggestion that the shorthand notation in calculus may lead to confusion, and using full functional notation could clarify the situation.
  • Some participants express differing views on the complexity of including constants in indefinite integrals, with one suggesting that two constants are necessary when integrating products of functions.

Areas of Agreement / Disagreement

Participants express a mix of agreement and disagreement regarding the treatment of constants in integration by parts. While some see the omission as unproblematic, others highlight potential confusion and the need for clarity in notation.

Contextual Notes

The discussion reveals limitations in understanding how constants interact in indefinite integrals, particularly when integrating products of functions. There are also unresolved questions about the implications of using different constants in the integration process.

Mayhem
Messages
425
Reaction score
317
As we all know, integration by parts can be defined as follows: $$\int u dv = uv - \int v du$$ And the usual strategy for solving problems of these types is to intelligently define ##u## and ##dv## such that the RHS integral can easily be evaluated. However, something that is never addressed is why the implicit constant that arises from integrating ##dv## is simply ignored on the RHS. And it is not as trivial as simply saying that "a constant plus a constant is just another constant" as the constant would sometimes become a function of the integrating variable upon integration. Or does the constant always disappear upon simplification for all problems that can be solved using IBP?
 
Physics news on Phys.org
\int_a^b u dv = [uv]_a^b - \int_a^b v du
Here you may find no ambiguity.
 
  • Like
Likes   Reactions: DaveE
mitochan said:
\int_a^b u dv = [uv]_a^b - \int_a^b v du
Here you may find no ambiguity.
Elaborate. AFAIK integration by parts works for indefinite integrals, no?
 
More precisely
\int_{x=a}^{x=b} u(x) dv(x) = [u(x)v(x)]_{x=a}^{x=b} - \int_{x=a}^{x=b} v(x) du(x)
or
\int_{a}^{b} u(x) v'(x)dx = [u(x)v(x)]_{a}^{b} - \int_{a}^{b} v(x) u'(x)dx

The integrals are function of a and b. you may choose them constant or variables.

\int^{x} u(y) v'(y)dy = [u(y)v(y)]^{x} - \int^{x} v(y) u'(y)dy + C
 
Last edited:
Mayhem said:
AFAIK integration by parts works for indefinite integrals, no?
In an indefinite integral equation, the constant is implied, as each indefinite integral represents an equivalence class of functions. For example: $$\int \sin^2 x \ dx = \int (1 - \cos^2 x)dx = x - \int \cos^2 x \ dx$$ And note that, for example: $$x - \int \cos^2 x \ dx = x + C - \int \cos^2 x \ dx $$ As the equals sign here signifies an equality of equivalence classes of functions.
 
Suppose you replace f with f+c in
$$\int g\,df = fg - \int f\,dg.$$ You get
$$\int g\,df = (f+c)g - \int (f+c)\,dg = fg + cg - \int f\,dg - c\int dg = fg - \int f\,dg.$$
 
  • Like
  • Love
Likes   Reactions: PeroK and Mayhem
vela said:
Suppose you replace f with f+c in
$$\int g\,df = fg - \int f\,dg.$$ You get
$$\int g\,df = (f+c)g - \int (f+c)\,dg = fg + cg - \int f\,dg - c\int dg = fg - \int f\,dg.$$
This is the kind of explanation I was looking for. Thanks! I was doing some practice problems to see if I could find an example where the + C became a problem, but every single (correct) solution seemed to simplify nicely into the usual form.
 
vela said:
Suppose you replace f with f+c in
$$\int g\,df = fg - \int f\,dg.$$ You get
$$\int g\,df = (f+c)g - \int (f+c)\,dg = fg + cg - \int f\,dg - c\int dg = fg - \int f\,dg.$$
I'd never thought of this before, but we have to use the same indefinite integral in both terms. We can't do:
$$\int g\,df = (f+c_1)g - \int (f+c_2)\,dg$$
 
PeroK said:
I'd never thought of this before, but we have to use the same indefinite integral in both terms. We can't do:
$$\int g\,df = (f+c_1)g - \int (f+c_2)\,dg$$

Because in general <br /> \frac{d}{dx}(f(x) + c_1)g(x)) \neq (f(x) + c_2) \frac{dg}{dx} + g(x)\frac{df}{dx}.
 
  • #10
Mayhem said:
This is the kind of explanation I was looking for. Thanks! I was doing some practice problems to see if I could find an example where the + C became a problem, but every single (correct) solution seemed to simplify nicely into the usual form.
I recall seeing in one textbook an example where the author noted including the constant helped in solving the problem. Unfortunately, I don't remember the example, and I've never run across that situation since then.
 
  • #11
I'm not sure whether I saw examples in my calculus classes where we added the constant. The first time I recall seeing this was in Numerical methods for scientists and engineers by Hamming. He used it while deriving the integral form of the remainder for Taylor series. At the time I thought it was quite clever, which is certainly why I remember it. Start with
## f(x) = f(a) + \int_a^x f^\prime(t) dt ##.
In the standard integration by parts formula ##\int u dv = uv - \int v du##, we let ##u=f^\prime##, ##du = f^{\prime\prime} dt##, as expected. For the other term we have ##dv = dt##, but set ##v = t - x##. The constant addition makes our final expression
## f(x) = f(a) + (x-a) f^\prime(a) + \int_a^x f^{\prime\prime}(t) (x-t) dt ##.
The subsequent terms of the series follow from further integration by parts.

jason
 
Last edited:
  • #12
It's clear from the following what's happening. For functions ##f, g## we have: $$f(x)g(x) + C = \int (fg)'(x) \ dx = \int f(x)g'(x) \ dx + \int f'(x) g(x) \ dx$$ And, if we take one of the indefinite integrals to the LHS, then we can drop the constant: $$f(x)g(x) - \int f(x)g'(x) \ dx = \int f'(x) g(x) \ dx$$ And there is nothing to get confused about. Most of the confusion students have about calculus seems to stem from the shorthand differential notation. As soon as we use the full functional notation the ambiguities vanish.
 
  • Like
Likes   Reactions: jasonRF
  • #13
PeroK said:
It's clear from the following what's happening. For functions ##f, g## we have: $$f(x)g(x) + C = \int (fg)'(x) \ dx = \int f(x)g'(x) \ dx + \int f'(x) g(x) \ dx$$ And, if we take one of the indefinite integrals to the LHS, then we can drop the constant: $$f(x)g(x) - \int f(x)g'(x) \ dx = \int f'(x) g(x) \ dx$$ And there is nothing to get confused about. Most of the confusion students have about calculus seems to stem from the shorthand differential notation. As soon as we use the full functional notation the ambiguities vanish.

I think it is clearer to write distinguishing integral parameter and up integral value, i.e.
f(x)g(x) + C = \int^x (fg)&#039;(y) \ dy +C_1= \int^x f(y)g&#039;(y) \ dy + \int^x f&#039;(y) g(y) \ dy+C_2
Any down values for integrals are all right because of adjustment by ##C,C_1,C_2##.
 
  • Skeptical
Likes   Reactions: weirdoguy and PeroK
  • #14
mitochan said:
I think it is clearer to write distinguishing integral parameter and up integral value, i.e.
f(x)g(x) + C = \int^x (fg)&#039;(y) \ dy +C_1= \int^x f(y)g&#039;(y) \ dy + \int^x f&#039;(y) g(y) \ dy+C_2
Any down values for integrals are all right because of adjustment by ##C,C_1,C_2##.
In my view, that is very muddled.
 
  • #15
Let me tell the point again. For definite integral
f(x)g(x) -f(a)g(a) = \int^x_a (fg)&#039;(y) \ dy = \int^x_a f(y)g&#039;(y) \ dy + \int^x_a f&#039;(y) g(y) \ dy
by changing low integral parameters
f(x)g(x) -f(a)g(a) = \int^x_b (fg)&#039;(y) \ dy + [f(b)g(b)-f(a)g(a)]= \int^x_d f(y)g&#039;(y) \ dy + \int^x_e f&#039;(y) g(y) \ dy + C

So if we take indefinite integrals
f(x)g(x) = \int^x (fg)&#039;(y) \ dy + C_1 = \int^x f(y)g&#039;(y) \ dy + \int^x f&#039;(y) g(y) \ dy + C_2
two Cs are required.
 
  • #17
I thought indefinite integrals come from freedom of choice of lower integral period of definite integrals. I appreciate your teachings.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K