Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on differentiate under integral sign says something went wrong

Parent

differentiate under integral sign says something went wrong

+1
−0

$$I=\int_0^\infty \frac{\tan^{-1} ax \tan^{-1}bx}{x^2}\mathrm dx$$ $$\frac{dI}{da}=\int_0^{\infty} \frac{\tan^{-1} bx}{x^2} \cdot \frac{x}{(ax)^2+1}\mathrm dx$$ $$\frac{d^2I}{\mathrm da \mathrm db} =\int_0^\infty \frac{x}{x((ax)^2+1)((bx)^2+1)}\mathrm dx$$

that's what I got. But, my book says there should be a $x^2$ in numerator and, no $x$ in denominator. But, I see that there's no $x$. Why? (ignoring $(ax)^2+1)((bx)^2+1)$ it in the context).

My book says

$$\frac{d^2I}{\mathrm da\mathrm db}=\int_0^\infty \frac{x^2}{((ax)^2+1)((bx)^2+1)}\mathrm dx$$

I can't find my mistake.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

Post
+1
−0

Assuming you copied the formula from the book correctly, your mistake is simply to assume that your book is right.

As a physicist, my first instinct was to make a dimensional analysis. The formula for $I$ gives a dimensionally valid expression as long as $a$ and $b$ have the inverse unit of $x$ (so that $ax$ and $bx$ are unitless), giving $[I]=[x]^{-1}$. Therefore the second derivative must have the unit $[I]/([a][b]) = [x]$.

Your result indeed has that property, while the book's integral has the unit $[x]^3$, which the correct result cannot have.

By the way, in your result you've got an $x$ in the numerator and another one in the denominator; you certainly can cancel those out. Therefore when completely cancelled, your result doesn't have an $x$ in the denominator either.

Explanation of the dimensional analysis:

Dimensional analysis is a method used in physics to quickly check physics equations for errors (and also to guess physical relations, but that is clearly outside the scope here). Basically it means to check that all units of an equation are correct.

Now your problem probably doesn't have an origin in physics (at least you didn't mention any), but still we can profit from dimensional analysis by assuming suitable units (this of course only works when the starting formula allows it).

In dimensional analysis, the unit of a quantity $q$ is denoted as $[q]$. For example, if $l$ is a length, then $[l]$ is a length unit (since unit-less factors are ignored in dimensional analysis, it doesn't matter which one). Such “unconcrete units” are called dimensions (e.g. $l$ has the dimension of a length).

The rules of a valid expression are then:

  • In a sum or difference, all terms must have the same dimension, and then the sum has the same dimension, too (e.g. you cannot add length and mass; if you add lengths, you get a length, if you add masses, you get a mass).

  • The dimension of a product/quotient is the product/quotient of the dimensions.

  • A dimension of a quantity to some power (whose exponent must be dimensionless) is that power of the dimension.

  • The arguments of any other mathematical function must be dimensionless (there are some complications with the logarithm which are irrelevant for this post). The function value then is dimensionless as well.

  • In an equality or inequality, both sides must have the same dimension.

  • In dimensional analysis, $\mathrm dx$ is treated the same as if it were $x$.

Looking at the definition for $I$, we see three variables that might get dimensions (units) attached: $a$, $b$ and $x$. We further see that $ax$ and $bx$ are arguments for $\tan^{-1}$ and therefore must be dimensionless, that is, $[a]=[b]=[x]^{-1}$. But there is no restriction for the dimension of $x$, therefore we can apply dimensional analysis using an arbitrary dimension for $x$.

Since the $\tan^{-1}$-terms are dimensionless factors, we can ignore them here; the only terms that contribute to the dimension are the $x^2$ in the denomuniator, and the $dx$ from the integral that is treated like a factor $x$.

We therefore get $$[I]=\frac{[x]}{[x]^2}=[x]^{-1}.$$

Now the nice thing is that if an equation does conform to dimensional analyis, this still stays true for derivatives. Therefore since $$\left[\frac{\mathrm d^2I}{\mathrm da\,\mathrm db}\right] = \frac{[I]}{[a][b]} =\frac{[x]^{-1}}{[x]^{-1}[x]^{-1}} = [x]$$ we know that whatever formula we get on the right hand side must also have that dimension.

As you should by now be able to check, your formula has that property, but the formula you quote from the book doesn't. Therefore the formula from the book is wrong.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

General Comments (4 comments)
General Comments
deleted user wrote over 3 years ago

Little bit funny, cause i don’t know what dimensional analysis is. I haven’t read anything of that. So, could you explain it easily? You had said that i didn’t have x in numerator and denominator. I can also see that. So, what's your point? If it wasn’t you than i would downvote.

celtschk‭ wrote over 3 years ago

Dimensional analysis is a quick check normally done on physics equations: If the equation is correct, all terms must have the correct units. Now while your equation for $I$ (probably) didn't come from a physics problem, one can pretend that it does, with $x$ having an arbitrary unit (that would depend on what hypothetical physical situation the equation describes). From that, one can check the formula for the derivative as detailed in the post. Failing that test means the equation is wrong.

celtschk‭ wrote over 3 years ago

Note that the fact that your result passes that test is not a proof that your result is correct, just that you cannot prove it incorrect that way (and indeed, no different power of $x$ would be correct).

On the $x$ in the numerator and denominator: You mentioned as one difference between your result and the formula of the book that the book's formula has no $x$ in the denominator. I pointed out that fully cancelled, yours doesn't either, so that isn't really a difference between them.

deleted user wrote over 3 years ago · edited over 3 years ago

I remember what dimensional analysis is. I had studied that but, It's been a long day i have studied physics so, i forgot :(.. Anyway, thanks