# Thread:

1. ## integrate ln function

integrate ln(x^2-1)

2. Use the rules of exponents to rewrite as

$ln(x^{2}-1)=ln((x+1)(x-1))=ln(x+1)+ln(x-1)$

3. Originally Posted by galactus
Use the rules of exponents to rewrite as

$ln(x^{2}-1)=ln((x+1)(x-1))=ln(x+1)+ln(x-1)$
But care needs to be taken with domain issues since the original function is defined for x > 1 or x < -1 whereas the re-write has problems when x < -1 ....

4. Yep. I was being lazy and careless.

5. so how should I go about solving this problem?

6. Do exactly what galactus said but be careful like mr fantastic said!

$ln(x^2- 1)$ is an even function so you really only need to integrate for x> 1, where galactus' method has no problem, and then use the same integral for x< -1.

7. Or you can go with integration by parts

$\int{\ln(x^2-1)}$

sub. $\ln(x^2-1)=u \Rightarrow \frac{2x dx}{x^2-1}=du; dv = dx \Rightarrow v = x;$

so we have

$x\ln(x^2-1)-2\int{\frac{x^2}{x^2-1}dx}$
$= x\ln(x^2-1)-2\int{\frac{x^2-{\color{red}1}+{\color{red} 1}}{x^2-1}dx}$
$=x\ln(x^2-1)-2\int{\left (1+\frac{1}{x^2-1}\right )dx} =...$

correct me anyone if I did anything wrong.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 8, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9270942211151123, "perplexity_flag": "middle"}