# Thread:

1. ## Integrals - first by substitution then by parts

we're given the integral 2cos(ln(x))dx

and told to first use substitution then integration by parts, could someone kindly point me in the right direction

2. Originally Posted by dsspence
we're given the integral 2cos(ln(x))dx

and told to first use substitution then integration by parts, could someone kindly point me in the right direction
Right direction?
Okay, go to the Calculus thread in this forum, look for the posting by nirva, "Some calc questions". Open that. The second problem there is almost the same as yours, except that yours has "2" before the cos(ln(x)).
If you know what to do with that "2", and you could follow the solution there of that second problem, then you should be able to get your integral.

3. Originally Posted by dsspence
we're given the integral 2cos(ln(x))dx

and told to first use substitution then integration by parts, could someone kindly point me in the right direction
You have,
$\int \cos (\ln x) dx=\int \frac{x\cos (\ln x)}{x}<br />$
Use substitution $u=\ln x$ then, $u'=1/x$ and $x=e^u$
Thus,
$\int e^u \cos u \frac{du}{dx} dx=\int e^u \cos u du$

----
I am going to stop here because I realized that ticbol made a post before me and already answered this question. Do as he says.
{"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": 5, "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.9334362745285034, "perplexity_flag": "middle"}