Solveeit Logo

Question

Question: What is the integral of \[y - 2y{e^x}\] with respect to \[x?\]...

What is the integral of y2yexy - 2y{e^x} with respect to x?x?

Explanation

Solution

In order to solve this question, we will use the concept that as we have to find the integration with respect to xx so we will treat yy as a constant term and then integrate the given function using the formulas:
xndx=xn+1n+1+c\int {{x^n}dx = \dfrac{{{x^{n + 1}}}}{{n + 1}}} + c
exdx=ex+c\int {{e^x}dx = {e^x}} + c
where cc is the constant of integration.

Complete answer:
We have to find the integral of y2yexy - 2y{e^x} with respect to xx
which means we have to find (y2yex) dx\int {\left( {y - 2y{e^x}} \right)} {\text{ }}dx
Let the given integral be II
i.e., I=(y2yex) dx (i)I = \int {\left( {y - 2y{e^x}} \right)} {\text{ }}dx{\text{ }} - - - \left( i \right)
Now using the difference rule of integration, we know that
(f(x)g(x)) dx = f(x) dxg(x) dx\int {\left( {f\left( x \right) - g\left( x \right)} \right)} {\text{ }}dx{\text{ }} = {\text{ }}\int {f\left( x \right)} {\text{ }}dx - \int {g\left( x \right)} {\text{ }}dx
Therefore, from equation (i)\left( i \right) we have
I=(y2yex) dx = y dx2yex dxI = \int {\left( {y - 2y{e^x}} \right)} {\text{ }}dx{\text{ }} = {\text{ }}\int y {\text{ }}dx - \int {2y{e^x}} {\text{ }}dx
I= y dx2yex dx (ii)I = {\text{ }}\int y {\text{ }}dx - \int {2y{e^x}} {\text{ }}dx{\text{ }} - - - \left( {ii} \right)
Now as we have to find the integration with respect to xx so we will treat yy as a constant term
We know that according to the constant coefficient rule
cf(x) dx=cf(x)dx\int {cf\left( x \right)} {\text{ }}dx = c\int {f\left( x \right)dx}
Therefore, from equation (ii)\left( {ii} \right) we have
I= ydx2yex dx I = {\text{ }}y\int {dx} - 2y\int {{e^x}} {\text{ }}dx{\text{ }}
I= yx0dx2yex dx \Rightarrow I = {\text{ }}y\int {{x^0}dx} - 2y\int {{e^x}} {\text{ }}dx{\text{ }}
Now we know that
xndx=xn+1n+1+c\int {{x^n}dx = \dfrac{{{x^{n + 1}}}}{{n + 1}}} + c
and exdx=ex+c\int {{e^x}dx = {e^x}} + c
where cc is the constant of integration.
Therefore, from the above equation, we get
I=y(x0+10+1)2y(ex)+cI = y\left( {\dfrac{{{x^{0 + 1}}}}{{0 + 1}}} \right) - 2y\left( {{e^x}} \right) + c
On solving, we get
I=xy2yex+cI = xy - 2y{e^x} + c
Hence, the integral of y2yexy - 2y{e^x} with respect to xx is equal to xy2yex+cxy - 2y{e^x} + c

Note: Note that the given integral is an example of an indefinite integral. So, after integrating and finding an indefinite integral, make sure that you add an arbitrary constant cc . Also remember when you are asked to calculate the integral f(x,y)f\left( {x,y} \right) with respect to xx , xx and yy are assumed as independent variables. The idea behind is that you are summing up the infinitely many f(x,y)dxf\left( {x,y} \right)dx as xx goes through all values in the range whereas yy is consistent. Thus, xx is considered to be variable and yy as far as the integral is concerned, considered to be constant. But it does not mean that yy is an unvarying value. It is just that yy is unvarying throughout the infinite sum.