A doubt on integration by parts

My friend had the following doubt:

dxxlnx \int { \frac { dx }{ x\ln { x } } }

You might laugh at me and say this is a straightforward integration by substitution which gets us to

ln(lnx)+C \ln { (\ln { x)+C } }

But what if we try integration by parts???

I=dxxlnx=1lnxdxx(1(lnx)21xdxx)dx=1lnxlnx+dxxlnx=1+II=I+11=0 I=\int { \frac { dx }{ x\ln { x } } } =\frac { 1 }{ \ln { x } } \int { \frac { dx }{ x } } -\int { \left( -\frac { 1 }{ { (\ln { x } ) }^{ 2 } } \frac { 1 }{ x } \int { \frac { dx }{ x } } \right) dx } =\frac { 1 }{ \ln { x } } \ln { x } +\int { \frac { dx }{ x\ln { x } } } =1+I\quad \\ \Rightarrow I=I+1\Rightarrow 1=0

Please tell me where are we wrong?

#IntegrationByParts #IntegrationTechniques #Integrals

Note by Krishna Jha
6 years, 9 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Yes the approach using integration by parts tells us that something is wrong, but you will be surprised that both answers are true!

As long as we are working with indefinite integrals, the key here is the constant of integration. You forgot to add a constant when you integrated by parts. we know that this constant is arbitrary, that is, you could use C+1C+1 as constant of integration rather than CC.

Therefore this is correct using either methods, and you can assure that by two ideas :

1) you can differentiate both answers, you will get the same initial function.

2) suppose you are dealing with definite integral: when you use the fundamental theorem of calculus, the excess "11" will be cancelled.

Hasan Kassim - 6 years, 9 months ago

Log in to reply

This is one of my favorite "fallacies" in calculus.

In a similar vein: How to show that sinθ=cosθ=0 \sin \theta = \cos \theta = 0 .

sinθcosθdθ=sinθdsinθ=12sin2θ, \int \sin \theta \cos \theta \, d \theta = \int \sin \theta \, d \sin \theta = \frac{1}{2} \sin ^2 \theta,

sinθcosθdθ=cosθdcosθ=12cos2θ \int \sin \theta \cos \theta \, d \theta = - \int \cos \theta \, d \cos \theta = - \frac{1}{2} \cos^2 \theta

Hence, 12sin2θ=12cos2θ \frac{1}{2} \sin^2 \theta = - \frac{1}{2} \cos ^2 \theta . But since squares are non-negative, they must both be 0.


Of course, as pointed out by Hasan, the correct conclusion should be:

12sin2θ+C1=12cos2θ+C2sin2θ+cos2θ=C2C1, \frac{1}{2} \sin ^2 \theta + C_1 = - \frac{1}{2} \cos ^2 \theta + C_2 \Rightarrow \sin^2 \theta + \cos^2 \theta = C_2 - C_1,

which is a well known fact.

Calvin Lin Staff - 6 years, 9 months ago

Log in to reply

Yes, examples like these "fake" proofs are somehow interesting.

Another example is The integral \displaystyle \int \mathrm \tan x \sec^2 x \mathrm {d}x . Using substitution u=secxu=\sec x and u=tanxu=\tan x will yield two obviously different answers.

Hasan Kassim - 6 years, 9 months ago

And wouldn't this imply that C2C1=1C_2-C_1=1?

John M. - 6 years, 9 months ago

How is integration of \sin \theta \cos \theta =sin^2(theta) ... if we assume \sin \theta = t, then we will get t^2/2 ...thus (sin theta)^2 / 2 ...and how can u write dsin(theta)...I understood the fallacies, but plz respond to my doubts

Anirban Roy - 6 years, 9 months ago

Log in to reply

@Anirban Roy He just used the substitution you proposed, just in a disguised way. And you're right. Wolfram|Alpha agrees.

Calvin made a boo-boo

John M. - 6 years, 9 months ago

@Anirban Roy Thanks for pointing out the error. I've edited the comment accordingly. Sorry for the confusion.

As explained by @John Muradeli , I used the substitution of u=sinθ u = \sin \theta and u=cosθ u = \cos \theta respectively. It is a shorthand way of expressing it, without stating it explicitly.

Note: I've edited your comment to show you how to use the brackets \ ( \ ) around the math code to make the formulas display correctly.

Calvin Lin Staff - 6 years, 9 months ago

@Anirban Roy \sin{x} = sinx\sin{x}

\sin^2{x}= sin2x\sin^2{x}

\theta = θ\theta

Use \(...) for latex. (... replace with the code, ex. sin{x})

John M. - 6 years, 9 months ago

Log in to reply

@John M. Thx...that was my first comment,so couldnt use it properly...p.s how he took d \sin{x} in place of dx

Anirban Roy - 6 years, 9 months ago

Log in to reply

@Anirban Roy Eh just think of it as a one big blob (a chunk of "stuff"). He's integrating sin(x)\sin{(x)} with respect to sin(x)\sin{(x)}. To make sense of this, he really used the substitution: Let t=sin(x)t=\sin{(x)}. Then dt=cos(x)dxdt=\cos{(x)}dx. Then your integral will look like

tdt\int{tdt}

Now think of tt as a blob of what it originally was (sin(x)\sin{(x)}). If you do so, you end up with

sin(x)d(sin(x))\int{\sin{(x)}d(\sin{(x)}})

-see? Pretty clever, eh?

And yes you do end up with t22+C\frac{t^2}{2}+C, or, 12sin2x+C\frac{1}{2}\sin^2{x}+C.

P.S.

If you wonder why he did it, sometimes in problems its easy to see. If you notice, the stuff after dd is just the stuff he took out - integrated. This is so that to undo the d"stuff"d"stuff", when you differentiate the "stuff" it will get back into the argument and dd will take its original form. This is a bit a wacko of an explanation but you can probably see it better from the tt substitution.

Hope this helped.

Cheers,

John M. - 6 years, 9 months ago

Log in to reply

@John M. (Y) ...

Anirban Roy - 6 years, 9 months ago

@John M. Thx for the replies...and btw I cant use codes... e.g \sin{x} ... doesnt work :p

Edit: Use sinx \sin {x} . You can edit this comment (click the pencil in the top right), to see the actual code used.

Anirban Roy - 6 years, 9 months ago

Log in to reply

@Anirban Roy Like I said, encase all Latex code in \ ( ... \ ) (without the spaces). The "..." is the stuff you put in, like the \sin{x}.

John M. - 6 years, 9 months ago

@Anirban Roy For further guide click on "Formatting guide" below your reply interface. Two quick shortcuts they don't include: \frac{TOP}{BOTTOM}=TOPBOTTOM\frac{TOP}{BOTTOM}; \int {xdx} =xdx\int {xdx} .

Cool?

\pi =π\pi

\infty = \infty

\Rightarrow = \Rightarrow

When raising to a power that includes more than two characters, encase the exponent with {...}. Ex.

\e^-x=e1xe^-1x. \e^{-x}=exe^{-x}

P.S. - double enter to skip a line

John M. - 6 years, 9 months ago

@John M. I understood ur explanation and logics but ur english is quite tough for me :D ... thx again

Anirban Roy - 6 years, 9 months ago

Log in to reply

@Anirban Roy Glad to help :D

John M. - 6 years, 9 months ago

@hasan kassim @Krishna Jha Can you add this to the Wiki page of a suitable skill in Integration by Parts?

Calvin Lin Staff - 6 years, 8 months ago

Log in to reply

How do I do that sir?

Krishna Jha - 6 years, 8 months ago

@Krishna Jha Can you add this to Integration by Parts, so that others can be kept aware of this common mistake? Thanks!

Calvin Lin Staff - 6 years, 8 months ago

Log in to reply

OK.. But how to do that sir? Is this fine??

Krishna Jha - 6 years, 7 months ago

You cannot take a number that needs to be integrated out of the integration

Nihit Khunteta - 6 years, 9 months ago

The difference between the primitives of a function is a constant.

Let F(x)=G(x)=f(x)F ' (x) = G ' (x) = f(x) .

Then F(x)=G(x)+CF(x) = G(x) + C.

Adrian Neacșu - 6 years, 9 months ago

bro,, this is indefinite integral,, several functions infact infinite functions all differing by a constant give us the same derivative,,

Mvs Saketh - 6 years, 9 months ago

U can't use integration by parts for integrating two same functions

Roshan Shetty - 6 years, 9 months ago

Log in to reply

why not??

Jibin Joy K - 6 years, 9 months ago
×

Problem Loading...

Note Loading...

Set Loading...