Question
Question: What is the value of \(f(x) = \int {x{e^x}}-x dx\) if \(f( - 1) = 1\) ?...
What is the value of f(x)=∫xex−xdx if f(−1)=1 ?
Solution
The given function can be expressed as a product of 2 separate functions, and this can be evaluated using Integration by parts, by splitting the function and applying the formula for integration by parts.
Formula used: Integration by parts formula - ∫f(x)g(x)dx=f(x)∫g(x)dx−∫[(dxd(f(x))∫g(x)dx]
Complete step-by-step solution:
The first part of the given expression, which is xex, can be expressed as a product of 2 separate functions. This separation of the function is of great utility as it will be used to integrate the function. The function xex−x can be split up into 2 parts to integrate it and from there it becomes easier to break down this expression and integrate it. This approach of breaking down a complex function into individual functions and then integrating it in parts as per a given method is called Integration by parts. Now the question arises; how do we decide which functions to integrate first, and in what order do we choose functions for integration? For this process of selecting which functions to integrate first, we have a set order of function determination called ILATE, which stands for Inverse, Logarithmic, Algebraic, Trigonometric, and Exponential. This basically means that when we have a set of functions to integrate and we have to decide the order in which we pick and integrate them, we follow this pattern, that is, first we integrate the inverse function, then the logarithmic function, then the algebraic function, and so on and so forth. The formula which is used in integration by parts is,∫f(x)g(x)dx=f(x)∫g(x)dx−∫[(dxd(f(x))∫g(x)dx]
Where f(x) and g(x) are 2 different and distinct functions, and the order of integration is decided using the above mentioned ILATE method.
To put this formula into practice, we have
∫xex−xdx=∫xex−∫xdx
∫xex−xdx=∫xexdx−∫xdx
Now applying the integration by parts formula on the first part of the RHS of this expression we have,
∫xexdx=x∫ex−∫[(dxd(x))∫exdx]
On integrating the RHS we have,
∫x.ex=xex−∫[1.exdx]
On further integration we have,
∫x.ex=xex−∫ex
The final step of integrating this first part of the function is,
∫x.ex=xex−ex
Hence, the first part of the given expression is now integrated. Now moving on to the full expression we have,
∫xex−xdx=xex−ex−∫xdx
Integrating x in the RHS to complete this integration by parts process, we have,
∫xex−xdx=xex−ex−2x2+c Hence this is the final value of the given function when fully integrated, where c stands for constant.
Now, as mentioned in the question, we have to find the value of f(x), if the value of f(−1) is 1 . In order to find the complete value off(x), we have to determine the value of the constant c in the expression. To find that value, we replace x with −1 inf(x), and equate it with 1, as mentioned in the question.
f(−1)=(−1)×e−1−e−1−2(−1)2+c
It is given in the question that the above expression is equal to 1. Hence equating the expression to 1 we have,
(−1)×e−1−e−1−2(−1)2+c= 1
On simplifying the above equation we have,
−e−1−e−1−21+c=1
On further simplification,
c=1+21+2e−1
Hence, the value of constantcis
c=23+2e−1
Therefore, replacing c with 23+2e−1 in the expression, we have the complete value of f(x), which is x{e^x} - {e^x} - \dfrac{{{x^2}}}{2} + $$$$\dfrac{3}{2} + 2{e^{ - 1}}.
Note: Keep in mind that after completing indefinite integration, that is integration without limits, the constant of Integrationcmust be written with the result obtained to complete the expression, otherwise it is incomplete and may lead to wrong answers.