Latex skills and asking about antiderivatives

In summary, the conversation was about practicing Latex skills and discussing antiderivatives. The first function, \int\frac{1}{x^2 + a}dx, can be solved using a trigonometric substitution or arctan. The antiderivative for \int\frac{1}{x^2 + a}dx is \frac{\ln{|x|}}{dx} + C. The logic for this antiderivative is unclear. The expression \frac{ln|x^2 + a|}{2x} + C may be incorrect, and the only way to check is to differentiate it. The same logic does not work for a more general function, and the antiderivative can only be found using
  • #1
lendav_rott
232
10
As a way of practicing my Latex skills and asking about antiderivatives.
Suppose we have
[tex]\int\frac{1}{x^2 + a}dx
[/tex]
a is just a constant
Now I recognize this to be
[tex]\int\frac{dx}{x}[/tex] whose antiderivative is [tex]\frac{\ln{|x|}}{dx} + C[/tex]

The question is: In the first function, I could make a trigonometric substition - but do I have to ?
Is the antiderivative [tex]\frac{ln|x^2 + a|}{2x} + C[/tex] incorrect? The logic being if I only found the derivative of ln|x2+ a| I would have [tex]\frac{1}{x^2 + a} * \frac{d}{dx}(x^2+a)[/tex] so to cancel the 2nd factor I would divide the antiderivative by it.

If a=1 I could rewrite the 1st integral as
[tex]\int\frac{dx}{\tan^2x +1} = \int\frac{dx}{\sec^2x} = \int\cos^2xdx = \frac{1}{2}[ \sin(x) \cos(x) + x] + C[/tex] assuming i did my math correctly with this one.

but can it also be [tex]\frac{ln(x^2 + 1)}{2x} + C[/tex]also on a side note, if there is an expression that is clearly Always positive such as x2 + 1 , do I have to use the abs value signs when I take the natural log of it?

Cheers
 
Last edited:
Physics news on Phys.org
  • #2
lendav_rott said:
Suppose we have
[tex]\int\frac{1}{x^2 + a}dx
[/tex]
a is just a constant
Now I recognize this to be
[tex]\int\frac{dx}{x}[/tex]

Why? One has a linear term in the denominator. The other has a quadratic.

whose antiderivative is [tex]\frac{\ln{|x|}}{dx} + C[/tex]

Why does the antiderivative have a dx in it?

The question is: In the first function, I could make a trigonometric substition - but do I have to ?

Either that or arctan.

Is the antiderivative [tex]\frac{ln|x^2 + a|}{2x} + C[/tex] incorrect?

The only way to check is to differentiate it. So do it.

The logic being if I only found the derivative of ln|x2+ a| I would have [tex]\frac{1}{x^2 + a} * \frac{d}{dx}(x^2+a)[/tex] so to cancel the 2nd factor I would divide the antiderivative by it.

I have no idea what this paragraph is saying.

also on a side note, if there is an expression that is clearly Always positive such as x2 + 1 , do I have to use the abs value signs when I take the natural log of it?

No.
 
  • #3
In a more general manner. We have
[tex]\int\frac{dx}{f(x)}[/tex]

can I solve this by the logic of
[tex]\int\frac{dx}{x}[/tex] and say that the antiderivative of the first is [tex]\frac{\ln|f(x)|}{f'(x)} + C[/tex]

what I mean is, should I just find the derivative of [tex]\ln|f(x)|[/tex] it would be [tex]\frac{f'(x)}{f(x)}[/tex] because of the chain rule, the derivative of the total function * the derivative of the inner function.

Am I allowed to say like "ok, I don't want the f'(x) in the numerator so I would just divide the initial antiderative by the f'(x)"
The heart of the problem is what if f(x) can be Any function not just a linear one, will the same logic work?

Edit:

Actually, nevermind - I can only do that simple logic if I have to [tex]\int\frac{f'(x)dx}{f(x)}[/tex] and then it comes out purely as [tex]\ln|f(x)| + C[/tex] When I try to differentiate [tex]\frac{\ln|x^2 + a|}{2x}[/tex] I get only rubbish which, in no way, leads to the original :/

Okay, let's have another go.
[tex]\int\frac{dx}{x^2 + a}[/tex]
Ok What I know is that ∫dx/(x2+1) is arctan(x) + C so to get to that I would find a way to substitute so that I would get u2 + 1 as the denominator.
[tex]\frac{1}{a}\int\frac{dx}{\frac{x^2}{a} + 1} | u = \frac{x}{\sqrt{a}}|du=\frac{dx}{\sqrt{a}}\Longrightarrow dx=\sqrt{a}du[/tex]
substituting:
[tex]\frac{\sqrt{a}}{a}\int\frac{du}{u^2+1} =\frac{1}{\sqrt{a}} \arctan(\frac{x}{\sqrt{a}}) + C[/tex]ok assuming I did this one right, the problem now is it only works only if a>0. If a=0 then I would simply have to find ∫x-2dx , but what happens if a<0, I can't take a square root of a negative number or can I re write any negative -a as i2*a?

About integration by parts:
[tex]\int x^2\sin(3x^3)dx\\ \begin{array}{cc}u=x^2&v=??\\du=2xdx&dv=\sin(3x^3)dx\end{array}[/tex]having trouble finding the antiderivative of dv :/ One way I could let
[tex]\begin{array}{cc}u=x^3&du=3x^2dx\Rightarrow dx=\frac{du}{3x^2} = \frac{du}{3\sqrt[3]{u^2}} ?\end{array}[/tex]and then find [tex]\frac{1}{3}\int\frac{\sin(3u)du}{\sqrt[3]{u^2}}[/tex] ok, this is worse, how can I solve this one?
 
Last edited:
  • #4
I'm a bit confused what the one integral and the other have to do with each other in your opinion.

Of course, you are not forced to do a trigonometric substitution. I'd rather set [itex]a=b^2[/itex] and write
[tex]\frac{1}{x^2-b^2}=\frac{1}{(x-b)(x+b)}=\frac{1}{2b} \, \frac{(x+b)-(x-b)}{(x-b)(x+b)}=\frac{1}{2b} \left (\frac{1}{x-b}-\frac{1}{x+b} \right),[/tex]
which easily integrates to
[tex]\int \mathrm{d} x \frac{1}{x^2-b^2} = \frac{1}{2b} [\ln|x-b|-\ln|x+b|].[/tex]
 
  • #5
I was confused whether any f(x) in case of ∫dx/f(x) would act the same as ∫dx/x , but I found out that it didn't. This is not homework or anything, I just took up the calculus part and trying to understand how things work.

Cheers
 
  • #6
vanhees71 said:
I'm a bit confused what the one integral and the other have to do with each other in your opinion.

Of course, you are not forced to do a trigonometric substitution. I'd rather set [itex]a=b^2[/itex] and write
[tex]\frac{1}{x^2-b^2}=\frac{1}{(x-b)(x+b)}=\frac{1}{2b} \, \frac{(x+b)-(x-b)}{(x-b)(x+b)}=\frac{1}{2b} \left (\frac{1}{x-b}-\frac{1}{x+b} \right),[/tex]
which easily integrates to
[tex]\int \mathrm{d} x \frac{1}{x^2-b^2} = \frac{1}{2b} [\ln|x-b|-\ln|x+b|].[/tex]
Yes, but the question was about [itex]\frac{dx}{x^2+ a}[/itex] not [itex]\frac{dx}{x^2- a}[/itex] You would have to set [tex]a= (ib)^2i[/tex] to use your method and, if you want your answer in terms of real numbers would have to determine what ln|x- ib| is.
 
  • #7
lendav_rott said:
About integration by parts:
[tex]\int x^2\sin(3x^3)dx[/tex]

What you did was not integration by parts, and anyway integration by parts is a bad idea here.

You need to recognize the general "pattern" of transforming ##\int f(x)\,dx## into $$\int F(u)\frac{du}{dx} dx$$ which is the same as ##\int F(u)\,du##

In your example, the integral contains ##\sin{3x^3}## and ##x^2##, and of course ##\frac{d}{dx}3x^3 = 9x^2##...
 
  • #8
Oh good god, why didn't I see that, it is so obvious *smacks forehead*
[tex]\int x^2\sin(3x^3)dx \Rightarrow \frac{1}{9}\int\sin(u)du =-\frac{1}{9}\cos(u) + C =-\frac{1}{9}\cos(3x^3) + C \\ \begin{array}{cc}u=3x^3&\frac{du}{9}=x^2dx\end{array}\\\frac{d}{dx}[-\frac{1}{9}\cos(3x^3)] = -\frac{1}{9}\sin(-3x^3)9x^2[/tex]and then the 9s cancel and minuses cancel since sin(-a) = -sin(a) although I've always preffered to write it as sin(-a) and I get what I need. Thanks a lot, AlephZero.

Another problem
[tex]\int\frac{x^2}{x-3}dx[/tex]Were I to take[tex]\begin{array}{cc}u=x-3&du=dx\end{array}\Longrightarrow \int\frac{x^2du}{u}[/tex]
Can I now consider the x term to be a constant? I am no longer integrating with respect to x, but u. Technically the x should be a constant. Am I allowed to drag it in front of the integral sign as I would normally with an actual constant?

E: Grrraah, it doesn't work - what am I supposed to do here?
 
Last edited:
  • #9
lendav_rott said:
Another problem
[tex]\int\frac{x^2}{x-3}dx[/tex]Were I to take[tex]\begin{array}{cc}u=x-3&du=dx\end{array}\Longrightarrow \int\frac{x^2du}{u}[/tex]
Can I now consider the x term to be a constant? I am no longer integrating with respect to x, but u. Technically the x should be a constant. Am I allowed to drag it in front of the integral sign as I would normally with an actual constant?

E: Grrraah, it doesn't work - what am I supposed to do here?

If u is a variable then so is x isn't it?
Try simplification by long division or some other algebraic manipulation...
 
  • #10
Managed to figure it out
[tex]\begin{array}{cc}u = x-3 \Rightarrow u^2=(x-3)^2\\x^2=u^2+3(2x-3)\Rightarrow x^2=u^2 +6u +9\\2u+3=2x-3\end{array}\\ \int(\frac{u^2 + 6u + 9}{u})du =\int (u + 6 +\frac{9}{u})du=\frac{(x-3)^2}{2} + 6(x-3) + 9\ln|x-3| + C
[/tex]
any comment about the use of tex? Any formating tips, how to make stuff look better, mayhaps? Cheers.
 
  • #11
lendav_rott said:
any comment about the use of tex? Any formating tips, how to make stuff look better, mayhaps?

You did pretty well. Here are a few comments.

lendav_rott said:
[tex]\begin{array}{cc}u = x-3 \Rightarrow u^2=(x-3)^2\\x^2=u^2+3(2x-3)\Rightarrow x^2=u^2 +6u +9\\2u+3=2x-3\end{array}
[/tex]
Why did you use an array here? And you defined it to have two columns (using {cc}), but used only one.

lendav_rott said:
[tex] \int(\frac{u^2 + 6u + 9}{u})du =\int (u + 6 +\frac{9}{u})du=\frac{(x-3)^2}{2} + 6(x-3) + 9\ln|x-3| + C
[/tex]
Use \left( and \right) to make the parenthesis the right size:
$$\int \left( \frac{u^2 + 6u + 9}{u} \right) du$$

It is sometimes better to add a thin space \; before ##dx##
$$
\int x \; dx \quad \mbox{compared to} \quad \int x dx
$$
Also, although Phys. Rev. uses ##dx##, it actually makes more sense typographically to use ##\mathrm{d}x## instead.

lendav_rott said:
[tex]\frac{1}{3}\int\frac{\sin(3u)du}{\sqrt[3]{u^2}}[/tex]
This I find ugly. The ##du## should not be part of the fraction, and never use ##\sqrt[n]{}##
$$
\frac{1}{3}\int\frac{\sin(3u)}{u^{2/3}} \mathrm{d}u
$$

lendav_rott said:
[tex]\frac{ln|x^2 + a|}{2x} + C[/tex]
Don't forget the backslash!

lendav_rott said:
[tex]\frac{1}{x^2 + a} * \frac{d}{dx}(x^2+a)[/tex]
Never use a * to indicate multiplication. Use \times if you really need a symbol there (most of the time, it is unecessary)
[tex]\frac{1}{x^2 + a} \times \frac{d}{dx}(x^2+a)[/tex]
or simply
[tex]\frac{1}{x^2 + a} \frac{d}{dx}(x^2+a)[/tex]
 
  • #12
Now, to make the typography even perfect, use the good old rules from the good old days before Word & Co. spoiled the good taste for typesetting math and type differential d's upright, i.e.,
[tex]\int \mathrm{d} x \; f(x) \quad \text{and} \quad f'(x)=\frac{\mathrm{d} f(x)}{\mathrm{d} x}[/tex]
etc.

Of course all fixed names of functions are to be set upright, like [itex]\sin x[/itex], [\itex]\exp x[/itex],...
 
  • #13
vanhees71 said:
Now, to make the typography even perfect, use the good old rules from the good old days before Word & Co. spoiled the good taste for typesetting math and type differential d's upright

As much as I dislike Word, it can't be to blame here. Physical Review always used an italic d, from the very first issue (in 1893). And they were not the only ones. You can check for instance this 1925 paper from Dirac: http://rspa.royalsocietypublishing.org/content/109/752/642

There is nowadays a standard, ISO 31/XI, which mandates an upright d, as well as upright e and i for Euler's number and the imaginary unit, repectively. Many European journals (those of the IOP and Springer, among others) follow those rules. A good introduction can be found in TUGboat:
http://www.tug.org/TUGboat/Articles/tb18-1/tb54becc.pdf

While we're venting, Phys. Rev.'s convention of italicizing all one-letter subscripts, even if they are not indices, is crazy (and wrong). Why ##E_\mathrm{lab}## but ##E_l## if both ##\mathrm{lab}## and ##l## stand for laboratory (and not the variable ##l##)?
 
  • #14
lendav_rott, all your questions are typical of calculus 2 where students will spend a semester exploring all the different techniques of integration. Very common mistakes are
1) putting dx on the denominator -- dx is not a number or a function.
2) put u as a function of x, then later assume that x is independent of u (well if u = x-3, then x = u+3, no?)
3) this is not you but plenty of student throw the dx or du away while integrating and hence almost any expression which has a denominator has an answer involving the natural log.
4) Anti-derivatives take a lot of practice, algebraic skills and discipline in strictly following the rules (because there is no product and quotient rule in integration), we ended up using means and ways to solve the problem like "by parts", "u-substitution", "trig substitution", "trig integrals" or even worse the techniques involving "partial fraction". But of course, as good Phyiscs students, all these hardwork (and training) are well worth it.
 
Last edited:
  • #15
DrClaude said:
There is nowadays a standard, ISO 31/XI, which mandates an upright d, as well as upright e and i for Euler's number and the imaginary unit, repectively. Many European journals (those of the IOP and Springer, among others) follow those rules.

Are you sure about that? Bull. Math. Sci. is a Springer publication. Here's a recent article: http://download.springer.com/static/pdf/667/art%253A10.1007%252Fs13373-013-0034-2.pdf?auth66=1390227428_821803646888a975798c8f907625d391&ext=.pdf

Even though I didn't like it, I used that ##{\rm d}x## style notation for a while. I didn't like it one bit; personally it looks quite revolting to me. But because that's what the powers that be said to use, I used it. I stopped using it when I noticed people were ignoring the powers that be in multiple journal papers. It just looks terrible.
 
Last edited by a moderator:
  • #16
D H said:
Are you sure about that? Bull. Math. Sci. is a Springer publication. Here's a recent article: http://download.springer.com/static/pdf/667/art%253A10.1007%252Fs13373-013-0034-2.pdf?auth66=1390227428_821803646888a975798c8f907625d391&ext=.pdf
So it seems that Springer was not a good example! I check a couple of books, and also found ##dx##. What I had in mind when saying Springer was the Eur. Phys. J. series. I checked other European journals, like a few from Elsevier, and they use ##{\rm d}x##.

D H said:
Even though I didn't like it, I used that ##{\rm d}x## style notation for a while. I didn't like it one bit; personally it looks quite revolting to me. But because that's what the powers that be said to use, I used it. I stopped using it when I noticed people were ignoring the powers that be in multiple journal papers. It just looks terrible.
I rather like it. When reading math, I find it easier to pick out the different parts of an equation when roman type is used for things that are not variables. Like so many things, it's a question of taste...
 
Last edited by a moderator:
  • #17
I can't stand it myself. It is jarring to my eyes. It makes the math harder rather than easier to read. Operators are different; they're surrounded by whitespace. It's informative rather than jarring.

I also see big problems with regard to accessibility / ADA Section 508 compliance issues (then again, TeX/LaTeX is plagued end-to-end with accessibility issues). Over reliance on how things appear visually is a barrier to accessibility.
 

1. How can I improve my Latex skills?

The best way to improve your Latex skills is to practice consistently and to utilize online resources such as tutorials, forums, and templates. Additionally, familiarize yourself with the various commands and syntax used in Latex and experiment with different document styles and formats.

2. What is an antiderivative in Latex?

An antiderivative in Latex is a function that, when differentiated, results in the original function. It is represented by the integral symbol and is useful in solving integrals and differential equations.

3. How do I ask for help with antiderivatives in Latex?

If you need assistance with antiderivatives in Latex, you can ask for help on online forums or communities dedicated to Latex, reach out to a tutor or classmate, or consult textbooks and online resources for examples and explanations.

4. What are some common mistakes to avoid when working with Latex?

Some common mistakes to avoid when working with Latex include forgetting to use the correct syntax for commands, not properly closing brackets or parentheses, and not previewing the document before compiling. It is also important to pay attention to spacing and formatting to ensure a professional and error-free document.

5. Can I use Latex for other types of documents besides scientific papers?

Yes, Latex can be used for various types of documents, including resumes, presentations, and even books. Its versatility and professional look make it a great option for any type of document that requires precise formatting and equations.

Similar threads

Replies
8
Views
179
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
346
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
5K
  • Calculus and Beyond Homework Help
Replies
2
Views
877
Replies
20
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
955
  • Calculus and Beyond Homework Help
Replies
22
Views
1K
Back
Top