Solveeit Logo

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)=xexxdxf(x) = \int {x{e^x}}-x dx if f(1)=1f( - 1) = 1 ?

Explanation

Solution

The given function can be expressed as a product of 22 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[(d(f(x))dxg(x)dx]\int {f(x)g(x)dx = f(x)\int {g(x)dx - \int {[(\dfrac{{d(f(x))}}{{dx}}} } \int {g(x)dx]} }

Complete step-by-step solution:
The first part of the given expression, which is xexx{e^x}, can be expressed as a product of 22 separate functions. This separation of the function is of great utility as it will be used to integrate the function. The function xexxx{e^x} - x can be split up into 22 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[(d(f(x))dxg(x)dx]\int {f(x)g(x)dx = f(x)\int {g(x)dx - \int {[(\dfrac{{d(f(x))}}{{dx}}} } \int {g(x)dx]} }
Where f(x)f(x) and g(x)g(x) are 22 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
xexxdx=xexxdx\int {x{e^x} - xdx} = \int {x{e^x} - \int {xdx} }
xexxdx=xexdxxdx\int {x{e^x} - xdx = \int {x{e^x}dx - \int {xdx} } }
Now applying the integration by parts formula on the first part of the RHS of this expression we have,
xexdx=xex[(d(x)dx)exdx]\int {x{e^x}dx = x\int {{e^x} - \int {[(\dfrac{{d(x)}}{{dx}})\int {{e^x}} dx]} } }
On integrating the RHS we have,
x.ex=xex[1.exdx]\int {} x.{e^x} = x{e^x} - \int {[1.{e^x}} dx]
On further integration we have,
x.ex=xexex\int {} x.{e^x} = x{e^x} - \int {} {e^x}
The final step of integrating this first part of the function is,
x.ex=xexex\int {} x.{e^x} = x{e^x} - {e^x}
Hence, the first part of the given expression is now integrated. Now moving on to the full expression we have,
xexxdx=xexexxdx\int {x{e^x} - xdx} = x{e^x} - {e^x} - \int {xdx}
Integrating xx in the RHS to complete this integration by parts process, we have,
xexxdx=xexexx22+c\int {x{e^x} - xdx} = x{e^x} - {e^x} - \dfrac{{{x^2}}}{2} + c Hence this is the final value of the given function when fully integrated, where cc stands for constant.
Now, as mentioned in the question, we have to find the value of f(x)f(x), if the value of f(1)f( - 1) is 11 . In order to find the complete value off(x)f(x), we have to determine the value of the constant cc in the expression. To find that value, we replace xx with 1 - 1 inf(x)f(x), and equate it with 11, as mentioned in the question.
f(1)=(1)×e1e1(1)22+cf( - 1) = ( - 1) \times {e^{ - 1}} - {e^{ - 1}} - \dfrac{{{{( - 1)}^2}}}{2} + c
It is given in the question that the above expression is equal to 11. Hence equating the expression to 11 we have,
(1)×e1e1(1)22+c( - 1) \times {e^{ - 1}} - {e^{ - 1}} - \dfrac{{{{( - 1)}^2}}}{2} + c= 1
On simplifying the above equation we have,
e1e112+c=1- {e^{ - 1}} - {e^{ - 1}} - \dfrac{1}{2} + c = 1
On further simplification,
c=1+12+2e1c = 1 + \dfrac{1}{2} + 2{e^{ - 1}}
Hence, the value of constantccis
c=32+2e1c = \dfrac{3}{2} + 2{e^{ - 1}}
Therefore, replacing cc with 32+2e1\dfrac{3}{2} + 2{e^{ - 1}} in the expression, we have the complete value of f(x)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 Integrationccmust be written with the result obtained to complete the expression, otherwise it is incomplete and may lead to wrong answers.