Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 14 years ago

Shu gravatar image

integral of 1/x, tan x

why integral(1/x,x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

click to hide/show revision 2
No.2 Revision

integral of 1/x, tan x

why integral(1/x,x) integral (1/x,x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

click to hide/show revision 3
No.3 Revision

integral of 1/x, tan x

why integral (1/x,x) (1/x,x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

click to hide/show revision 4
No.4 Revision

integral of 1/x, tan x

why integral (1/x,x) (1x, x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

click to hide/show revision 5
No.5 Revision

integral of 1/x, tan x

why integral (1x, (1/x, x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

click to hide/show revision 6
No.6 Revision

integral of 1/x, tan x

why integral (1/x, (1/x, x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

click to hide/show revision 7
No.7 Revision

integral of 1/x, tan x

why integral (1/x, x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

After previous post, I dig a little bit and find:

 sage: equation=integral(1/x+x,x).real()
 sage: equation
 1/2*real_part(x)^2 - 1/2*imag_part(x)^2 + log(abs(x))
 sage:

Now, anyway to set real_part(x)=x and imag_part(x)=0 in "eq" and get the resultant "eq"?

click to hide/show revision 8
No.8 Revision

integral of 1/x, tan x

why integral (1/x, x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

After previous post, I dig a little bit and find:

 sage: equation=integral(1/x+x,x).real()
 sage: equation
 1/2*real_part(x)^2 - 1/2*imag_part(x)^2 + log(abs(x))
 sage:

Now, anyway to set real_part(x)=x and imag_part(x)=0 in "eq" and get the resultant "eq"?

More>>

sage: integral(1/(x^3-1),x).real()
-1/3*sqrt(3)*real_part(arctan(1/3*(2*x + 1)*sqrt(3))) + 1/3*log(abs(x - 1)) - 1/6*log(abs(x^2 + x + 1))

Everything is fine in the above computation except the word "real_part". Anyway to get rid of that?

click to hide/show revision 9
retagged

updated 13 years ago

Kelvin Li gravatar image

integral of 1/x, tan x

why integral (1/x, x) returns log(x)? Shouldn't it return log(|x|). Similarly, integral(tan(x),x) returns log(sec(x)) shouldn't it return log(|sec(x)|). Can anyone explain?

After previous post, I dig a little bit and find:

 sage: equation=integral(1/x+x,x).real()
 sage: equation
 1/2*real_part(x)^2 - 1/2*imag_part(x)^2 + log(abs(x))
 sage:

Now, anyway to set real_part(x)=x and imag_part(x)=0 in "eq" and get the resultant "eq"?

More>>

sage: integral(1/(x^3-1),x).real()
-1/3*sqrt(3)*real_part(arctan(1/3*(2*x + 1)*sqrt(3))) + 1/3*log(abs(x - 1)) - 1/6*log(abs(x^2 + x + 1))

Everything is fine in the above computation except the word "real_part". Anyway to get rid of that?