How do I evaluate these tricky integrals?

  • MHB
  • Thread starter GreenGoblin
  • Start date
  • Tags
    Integrals
In summary: say, 8th grade.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x^2 + x - 6 = (x - 2)(x + 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . = (x + 2 - 4)(x + 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . = (x + 2
  • #1
GreenGoblin
68
0
Please help me to evaluate the following integrals:

1) $\int\frac{x^{4}+1}{x^{2}+1}dx$

I recognise the form of $x^{2}+1$ in the denominator corresponds to an inverse tangent derivative. But how would I deal with the numerator in this respect?

2) $\int\frac{1}{x^{2}+x-6}dx$

I believe this involves completing the square, I made the first step of doing this, rearranging to $\int\frac{1}{(x + \frac{1}{2})^{2}-\frac{25}{4}}dx$, but I am not entirely sure of the exact integration formula corresponding to this. I observe 25 and 4 are clearly both squares too so I assume this problem set this up intentionally, and this bears a relevance for the remainder of the problem.Gracias,
GreenGoblin
 
Last edited:
Physics news on Phys.org
  • #2
GreenGoblin said:
Please help me to evaluate the following integrals:

1) $\int\frac{x^{4}+1}{x^{2}+1}dx$

I recognise the form of $x^{2}+1$ in the denominator corresponds to an inverse tangent derivative. But how would I deal with the numerator in this respect?

Gracias,
GreenGoblin

$\displaystyle \frac{1+x^{4}}{1+x^{2}}= x^{2}-1+\frac{2}{1+x^{2}}$

Kind regards

$\chi$ $\sigma$
 
  • #3
GreenGoblin said:
2) $\int\frac{1}{x^{2}+x-6}dx$

Partial fractions:\[ \int\frac{1}{x^{2}+x-6}dx ={\Large{\int}} \left[-\frac{1}{5(x+3)}+\frac{1}{5(x-2)}\right]\; dx\]

CB
 
Last edited:
  • #4
Hello, GreenGoblin!

$2)\;\int\dfrac{1}{x^{2}+x-6}dx$

I believe this involves completing the square,
I made the first step of doing this, rearranging to $\int\frac{1}{(x + \frac{1}{2})^{2}-\frac{25}{4}}dx$
but I am not entirely sure of the exact integration formula corresponding to this.

You have the inverse secant form.

Let $x+\frac{1}{2} \:=\:\frac{5}{2}\sec\theta \quad\Rightarrow\quad dx \:=\:\frac{5}{2}\sec\theta\tan\theta\,d\theta$
. . . And the denominator becomes: $\frac{25}{4}\tan^2\theta$

$\displaystyle\text{Substitute: }\:\int\dfrac{\frac{5}{2}\sec\theta\tan\theta\,d\theta}{\frac{25}{4}\tan^2\theta} \;=\;\tfrac{2}{5}\int\frac{d\theta}{\sin\theta}$

. . . . . . . . $\displaystyle=\;\tfrac{2}{5}\int \csc\theta\,d\theta \;=\; \tfrac{2}{5}\ln|\csc\theta - \cot\theta| + C $Back-substitute: .$\sec\theta \:=\:\dfrac{x+\frac{1}{2}}{\frac{5}{2}} \:=\:\dfrac{hyp}{adj}$

$\theta\text{ is in a right triangle with: }\,adj = \frac{5}{2},\;hyp = x + \frac{1}{2}$

Then: .$opp \,=\,\sqrt{(x+\frac{1}{2})^2 - (\frac{5}{2})^2} \:=\:\sqrt{x^2+x-6} $

Hence: .$\csc\theta \:=\:\dfrac{hyp}{opp} \:=\:\dfrac{x+\frac{1}{2}}{\sqrt{x^2+x-6}},\;\;\cot\theta \:=\:\dfrac{adj}{opp} \:=\:\dfrac{\frac{5}{2}}{\sqrt{x^2+x-6}} $$\text{The solution is: }\:\dfrac{2}{5}\ln\left|\dfrac{x+\frac{1}{2}}{\sqrt{x^2+x-6}} - \dfrac{\frac{5}{2}}{\sqrt{x^2+x-6}}\right| + C \;=\; \dfrac{2}{5}\ln\left|\dfrac{x-2}{\sqrt{x^2+x-6}}\right| + C$~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Why is it printing those things in red?Evidently the program thinks I've made an error
. . and it's pointing it out.
Well, I've made no error ... I've re-type it.
. . I've even re-type the entire statement.
. . It still tells me that it's wrong.
I've never had any problems with Latex before.
. . What's going on?
 
  • #5
soroban said:

$\text{The solution is: }\:\dfrac{2}{5}\ln\left|\dfrac{x+\frac{1}{2}}{ \sqrt{x^2+x-6}} - \dfrac{\frac{5}{2}}{\sqrt{x^2+x-6}}\right| + C \;=\; \dfrac{2}{5}\ln\left|\dfrac{x-2}{\sqrt{x^2+x-6}}\right| + C$
Putting a space before the red term usually takes it away (like it did above).
 
  • #6
Sherlock, I am sure, means after \sqrt. The LaTeX does not recognise \sqrtx. You need \sqrt x.
 
  • #7
Soroban earlier (now he changed it but put the space in the wrong place) had...

\text{The solution is: }\:\dfrac{2}{5}\ln\left|\dfrac{x+\frac{1}{2}}{\sqrt{x^2+x-6}} - \dfrac{\frac{5}{2}}{\sqrt{x^2+x-6}}\right| + C \;=\; \dfrac{2}{5}\ln\left|\dfrac{x-2}{\sqrt{x^2+x-6}}\right| + C

... which is absolutely fine, but it didn't render well somehow:

$\text{The solution is: }\:\dfrac{2}{5}\ln\left|\dfrac{x+\frac{1}{2}}{\sqrt{x^2+x-6}} - \dfrac{\frac{5}{2}}{\sqrt{x^2+x-6}}\right| + C \;=\; \dfrac{2}{5}\ln\left|\dfrac{x-2}{\sqrt{x^2+x-6}}\right| + C$

All I did was to put space in here
{\sqrt{x^2+x-6}} and turned it into { \sqrt{x^2+x-6}}

$\text{The solution is: }\:\dfrac{2}{5}\ln\left|\dfrac{x+\frac{1}{2}}{ \sqrt{x^2+x-6}} - \dfrac{\frac{5}{2}}{\sqrt{x^2+x-6}}\right| + C \;=\; \dfrac{2}{5}\ln\left|\dfrac{x-2}{\sqrt{x^2+x-6}}\right| + C$

It did that to me many times but I figured spacing does the trick.

 
  • #8
Hello,

$\int \frac{1}{(\frac{b}{a})^{2}-x^{2}}dx = (\frac{a}{b})tanh^{-1}(\frac{a}{b})$

Is it not? Is this something I should use here? If I take a -1 outside of the integral, I have this form. Which is the better approach, this or those others suggested? I see there is more than one way to approach this problem.

As for the partial fractions, can someone explain to me how that rearranges to that form please?
 
  • #9
GreenGoblin said:
Hello,

$\int \frac{1}{(\frac{b}{a})^{2}-x^{2}}dx = (\frac{a}{b})tanh^{-1}(\frac{a}{b})$

Is it not? Is this something I should use here? If I take a -1 outside of the integral, I have this form. Which is the better approach, this or those others suggested? I see there is more than one way to approach this problem.

As for the partial fractions, can someone explain to me how that rearranges to that form please?
Return to your algebra books from high-school!
 
  • #10
Also sprach Zarathustra said:
Return to your algebra books from high-school!

This is an unneccesary comment, also makes a couple of unfounded assumptions. Regardless you need not be insulting, I asked a genuine question.
 
  • #11
I think he meant it about your last line, so he's right and probably someone woulda told you something related as using google or check your books.
 
  • #12
GreenGoblin said:
As for the partial fractions, can someone explain to me how that rearranges to that form please?

\[\frac{1}{x^2+x-6}=\frac{1}{(x-2)(x+3)}=\frac{A}{x-2}+\frac{B}{x+3}\]

Now it is just algebra to establish what \(A\) and \(B\) need to be.

CB
 
  • #13
Also sprach Zarathustra said:
Return to your algebra books from high-school!

Your response was totally unnecessary. :mad:

I didn't learn about partial fractions until my second semester of calculus.
 
  • #14
Random Variable said:
Your response was totally unnecessary. :mad:

I didn't learn about partial fractions until my second semester of calculus.
What do you want?
 
  • #15
Also sprach Zarathustra said:
What do you want?

GreenGolbin clearly felt insulted by your response. Was your intention to insult him?

And partial fractions is not something that is usually covered in an high school algebra class. It's probably covered in a later section in his calculus book.
 
  • #16
You don't have to know the method of partial fractions, to be honest -- as:

$\displaystyle \frac{1}{x^2+x-6} = \frac{1}{(x+3)(x-2)} = \frac{(x+3)-(x-2)}{5(x+3)(x-2)} = \frac{1}{5(x-2)}-\frac{1}{5(x+3)}$

Moreover, you don't even have to use that -- you can let $t = \frac{x+3}{x-2}$ or $t = \frac{x-2}{x+3}$.

By the way, ASZ might have been genuinely suggesting to search this in a book.
(Sometimes there is a language barrier that maligns a perfectly innocent tone).
 
  • #17
Sherlock said:
You don't have to know the method of partial fractions, to be honest -- as:

$\displaystyle \frac{1}{x^2+x-6} = \frac{1}{(x+3)(x-2)} = \frac{(x+3)-(x-2)}{5(x+3)(x-2)} = \frac{1}{5(x-2)}-\frac{1}{5(x+3)}$

Moreover, you don't even have to use that -- you can let $t = \frac{x+3}{x-2}$ or $t = \frac{x-2}{x+3}$.

By the way, ASZ might have been genuinely suggesting to search this in a book.
(Sometimes there is a language barrier that maligns a perfectly innocent tone).

Perhaps. I just don't like anyone to feel that they're being mocked or ridiculed unless they truly deserve it.

Interesting substitutions, BTW.
 
  • #18
Sorry, I'm actually mistaking my terminology. It wasn't the partial fractions I needed assistance with, regardless I've worked out the problem I had before so this is redundant. Thanks for those that did post assistance, however. As an aside I'm self-taught so references to schooling timeframes are lost on me. I've learned all I've learned at my own pace and over a shorter time period than most.

So, are we arriving at a conclusion that going into hyperbolic tan inverses are an unneccesary step here? I wouldn't technically be wrong in doing it this way? (This is what I had attempted initially). Is it always better to use partial fractions when the denominator factorises thusly?
 
Last edited:
  • #19
So, are we arriving at a conclusion that going into hyperbolic tan inverses are an unneccesary step here? I wouldn't technically be wrong in doing it this way? (This is what I had attempted initially).

Your approach is the approach suggested by WolframAlpha.

http://www.wolframalpha.com/input/?i=integrate+1%2F(x^2%2Bx-6)
 
  • #20
Random Variable said:
Your approach is the approach suggested by WolframAlpha.

http://www.wolframalpha.com/input/?i=integrate+1/(x^2+x-6)

It might be, but it is a joke to do it that way (that alpha suggests) compared to partial fractions, which involve next to no effort and is far less error prone.

CB
 
Last edited:
  • #21
The partial fractions method is excellent in all cases... except when the denominator has complex roots. I wonder why nobody has examined the [much better...] procedure used by GreenGoblin...

$\displaystyle \frac{1}{x^{2}+x-6}= -\frac{1}{\frac{25}{4}-(x+\frac{1}{2})^{2}}$ (1)

... after that we have the definite integral 'reported in all manuals'...

$\displaystyle \int \frac{d x}{a^{2}-x^{2}}= \frac{1}{a}\ \tanh^{-1} \frac{x}{a} +c$ (2)

The advantage of the procedure is evident if we have to integrate $\displaystyle f(x)= \frac{1}{x^{2}+x+\frac{13}{2}}$. In this case the partial fraction method is difficult to apply but proceeding 'like GreenGoblin' we obtain...

$\displaystyle \frac{1}{x^{2}+x + \frac{13}{2}}= \frac{1}{\frac{25}{4}+(x+\frac{1}{2})^{2}}$ (3)

... and now the definite integral 'reported in all manuals' is...

$\displaystyle \int \frac{d x}{a^{2}+x^{2}}= \frac{1}{a}\ \tan^{-1} \frac{x}{a} + c$ (4)

Kind regards

$\chi$ $\sigma$
 
Last edited:
  • #22
I appreciate the discussion, chisigma, I appreciate you take the time to consider the problem.

I do note that CaptainBlack is correct in that the partial fraction method is relatively straight forward but I also don't see that completing a square is that difficult. However, would it suffice to leave the solution in the form of an inverse (hyperbolic) tangent, or would it be a requirement to express this in the form of logarithms? (In which case the partial fraction method gets you there 'automatically').

Also one other pointer I noticed when looking at this problem is that, the derivative of inverse hyperbolic tangent and inverse hyperbolic cotangent are... identical... so, you could integrate this to inverse hyperbolic cotangent, correct or not? However, I note the identity for these in terms of logs are not identical. This I find confusing, can someone explain how this is possible please?
 
Last edited:
  • #23
GreenGoblin said:
I appreciate the discussion, chisigma, I appreciate you take the time to consider the problem.

I do note that CaptainBlack is correct in that the partial fraction method is relatively straight forward but I also don't see that completing a square is that difficult. However, would it suffice to leave the solution in the form of an inverse (hyperbolic) tangent, or would it be a requirement to express this in the form of logarithms? (In which case the partial fraction method gets you there 'automatically').

It was not completing the square in principle that I was complaining about but the was that Wolfram Alpha explained it.CB
 
Last edited:

Related to How do I evaluate these tricky integrals?

1. How do I determine which integration method to use?

When evaluating a tricky integral, it is important to first identify the type of integral you are dealing with. This can include trigonometric, logarithmic, or exponential functions. Once you have determined the type, you can then choose an appropriate integration method, such as substitution, integration by parts, or partial fractions.

2. How do I know if my answer is correct?

One way to check the accuracy of your solution is by using an online calculator or software that can solve integrals. You can also take the derivative of your answer and see if it matches the original function. Another option is to plug in various values for the variable and see if the original function and your answer produce the same result.

3. Is there a shortcut or trick to solving tricky integrals?

There are some common techniques that can be helpful in solving tricky integrals. These include using trigonometric identities, applying algebraic manipulation, or using symmetry to simplify the integral. However, every integral is unique and may require a different approach, so it is important to have a strong understanding of integration methods.

4. How do I handle improper integrals?

Improper integrals are those that have one or both bounds at infinity or involve a singularity. To evaluate these integrals, you can use the limit definition of the integral or break it into two separate integrals with finite bounds. It is also important to check for convergence before attempting to evaluate an improper integral.

5. How can I improve my integration skills?

One of the best ways to improve your integration skills is by practicing regularly. Start with simple integrals and gradually work your way up to more challenging ones. You can also review common integration techniques and look for patterns in how they are applied. Collaborating with others and seeking help from a mentor or tutor can also be beneficial.

Similar threads

Replies
2
Views
1K
Replies
2
Views
1K
Replies
3
Views
1K
Replies
3
Views
1K
Replies
6
Views
917
  • Calculus
Replies
6
Views
1K
Replies
14
Views
2K
Replies
17
Views
1K
Back
Top