Integrals computation: Help me please

In summary, Maple 14 delivers answers in terms of logarithms and square roots for the given integrals. The results may be real or complex, but they are written in a symbolic form that does not involve complex quantities explicitly. It is recommended to try a different symbolic package, as different packages may yield different results. One possible approach is to integrate the functions and then take the real part using the 'evalc' command. It is also suggested to set assumptions for the variables to obtain a shorter and more manageable result. With this method, the problem was successfully solved.
  • #1
Phantony
4
0
Hi all,

can you help me to compute these integrals?

[tex]\int \frac{x \sqrt{a x+b+x^2}}{d^2+x^2} \, dx[/tex]

[tex]\int \frac{x}{\left(d^2+x^2\right) \sqrt{a x+b+x^2}} \, dx[/tex]

a,b and d are real and positive.

I tried with Mathematica, but the results involve logarithmic functions with complex argument whereas I need a solution in the real domain.

Thank you to all in advance.
 
Physics news on Phys.org
  • #2
Phantony said:
Hi all,

can you help me to compute these integrals?

[tex]\int \frac{x \sqrt{a x+b+x^2}}{d^2+x^2} \, dx[/tex]

[tex]\int \frac{x}{\left(d^2+x^2\right) \sqrt{a x+b+x^2}} \, dx[/tex]

a,b and d are real and positive.

I tried with Mathematica, but the results involve logarithmic functions with complex argument whereas I need a solution in the real domain.

Thank you to all in advance.


Maple 14 delivers answers in terms of logarithms and square roots and the like. These may be real or complex, depending on the relative magnitudes of a, b and d, but they are written in a symbolic form that does not involve complex quantities explicitly. They are much too large and complicated to be reproduced here. All I can suggest is that you try a tool other than Mathematica; it is often the case that when something does not work out well using one symbolic package, it is better done in another (and there is no consisitency: no one package is universally better than another).

RGV
 
  • #3
Thank you soo much, RGV.
I will try with maple and I'll let you know.

:)
 
  • #4
Phantony said:
Thank you soo much, RGV.
I will try with maple and I'll let you know.

:)

The best way to do it is to recognize that for real d and x we have Re(1/(x + I*d)) = x/(x^2 + d^2), so you can integrate g1 = sqrt(x^2 + ax + b)/(x + I*d) or g2 = 1/(x + I*d)/sqrt(x^2 + ax + b), then (by assuming a,b,x,d real) take the real part *after* doing the integrals, by using the 'evalc' command. This shorter and sweeter than a direct approach.

RGV
 
  • #5
Thank you again RGV.

Just one other thing. I'm using maple for the first time and I think that I'm doing something wrong because the result which I obtain is very long.
Is this the right sequence of commands?

[tex]int( \!{\frac { \sqrt{{x}^{2}+bx+c}}{x+id}},x) [/tex]
[tex]assume(x, 'real', b, 'real', c, 'real', d, 'real') [/tex]
[tex]evalc(\%) [/tex]


Phantony.
 
  • #6
Phantony said:
Thank you again RGV.

Just one other thing. I'm using maple for the first time and I think that I'm doing something wrong because the result which I obtain is very long.
Is this the right sequence of commands?

[tex]int( \!{\frac { \sqrt{{x}^{2}+bx+c}}{x+id}},x) [/tex]
[tex]assume(x, 'real', b, 'real', c, 'real', d, 'real') [/tex]
[tex]evalc(\%) [/tex]


Phantony.

No, those are all wrong. You should use
J:=int(sqrt(x^2+a*x+b)/(x+I*d),x);
J1:=evalc(J) assuming real;
or
J1:=evalc(J) assuming a>0,b>0,d>0,x>0;
If you don't want output echoed on the screen, use the command end ':' instead of ';'

I actually prefer to use something like g1:=sqrt(x^2+a*x+b)/(x+I*d): (or ;) then put
J:=int(g1,x). That way I can get back later to the function g1, or to the function
f1 given as:
evalc(g1) assuming x>0,a>0,b>0,d>0; f1:=Re(%) assuming x>0,a>0,b>0,d>0;
This can all be shortened by setting
assns:=x>0,a>0,b>0,d>0;
evalc(g1) assuming assns; f1:=Re(%) assuming assns.

RGV
 
  • #7
I have no words to express my gratitude to you.

I solved the problem :))

:biggrin::!):biggrin::!)
 

FAQ: Integrals computation: Help me please

What is an integral?

An integral is a mathematical concept that represents the area under a curve on a graph. It is used to calculate the total value of a function over a given interval.

How do I solve integrals?

To solve an integral, you need to use integration techniques such as substitution, integration by parts, or trigonometric substitution. You also need to identify the limits of integration and use the appropriate formula or method to find the solution.

What is the purpose of computing integrals?

Integrals are used in many fields of science and engineering to calculate quantities such as distance, velocity, acceleration, volume, and mass. They are also important in probability and statistics for calculating probabilities and expected values.

Are there any tips for solving integrals?

Yes, some helpful tips for solving integrals include understanding the properties of integrals, practicing with various types of integrals, and using online tools or software to check your solutions. It is also important to carefully read and understand the problem before attempting to solve it.

How can I check if my integral solution is correct?

You can check your integral solution by taking the derivative of the function you integrated and seeing if it matches the original function. You can also use online tools or software to graph the function and its integral to visually confirm the solution. Additionally, you can compare your solution with the solutions of others or consult with a tutor or teacher for feedback.

Similar threads

Back
Top