Solveeit Logo

Question

Question: How do you evaluate the integral of \(\int{\dfrac{\cos \left( \text{ln x} \right)}{x}dx}\) ?...

How do you evaluate the integral of cos(ln x)xdx\int{\dfrac{\cos \left( \text{ln x} \right)}{x}dx} ?

Explanation

Solution

We are asked to evaluate the integral of cos(ln x)x\dfrac{\cos \left( \text{ln }x \right)}{x} , to do so we will learn how integrals work, how the different functions are connected and how to integrate those functions. Then we see that in our given integral ln (x) and x are connected. We will use this to simplify and solve our given problem. We will use the formula that the integral of cos is sin and we will use substitution to solve our problem.

Complete step-by-step solution:
Before we start working on our problem we know about integral, integral or integration is just the opposite of the differentiation. In differentiation we usually split things to get something simpler while in integration we start with simplest (dx) and we build it to the biggest term.
Basic integration formula are xndn=xn+1n+1\int{{{x}^{n}}dn=\dfrac{{{x}^{n+1}}}{n+1}} , power is being increase by one and simultaneously divide by n+1n+1 .
Now we are asked to evaluate integration cos(ln x)xdx\int{\dfrac{\cos \left( \text{ln x} \right)}{x}dx}
We can see that ln(x)\text{ln}\left( x \right) and x are connected to each other.
The derivative of ln(x)\ln \left( x \right) is 1x\dfrac{1}{x}
So we will use this property of ln(x)\text{ln}\left( x \right) and we will solve our problem.
Now, we have to evaluate the integration of cos(ln x)xdx\int{\dfrac{\cos \left( \text{ln x} \right)}{x}dx}
We start our solution by substituting ln(x)\text{ln}\left( x \right) as ‘t’.
So ln(x)=t\ln \left( x \right)=t
Now differentiating both sides, we get –
1xdx=dt\dfrac{1}{x}dx=dt
So from here we get –
dx=xdtdx=xdt ……………………… (1)
We will use dx=xdtdx=xdt in our given integral.
So we get –
cos(ln (x))xdx=cos(t)xxdt\int{\dfrac{\cos \left( \text{ln }\left( \text{x} \right) \right)}{x}dx}=\int{\dfrac{\cos \left( t \right)}{x}xdt} (replaced ‘dx’ as ‘xdt’ and in(x)\text{in}\left( x \right) as ‘t’)
So, simplifying we get –
=cos(t)dt=\int{\cos \left( t \right)dt} (‘x’ cancel out)
Now as we know that integral of cos x is sinx+c\sin x+c
So, integration of cos will be sint+c\sin t+c
We get –
=sin(t)+c=\sin \left( t \right)+c
Now replacing back the value of ‘t’ we put t=in(x)t=\text{in}\left( x \right) back in our solution.
So we get –
=sin(ln(x))+c=\sin \left( \text{ln}\left( x \right) \right)+c
Hence, we get – cos(ln x)xdx=sin(ln(x))+c\int{\dfrac{\cos \left( \text{ln x} \right)}{x}dx}=\sin \left( \ln \left( x \right) \right)+c

Note: Remember that in case of indefinite integral, that is integral without limit it is necessary to replace or substitute back the original value of the function back which we replaced earlier.
While in case of definite integral no such thing is necessary as we change function, we also change the limit with it so we did not require changing back the function.
We simply apply the limit there but yes with change in function the limit must also be changed accordingly.