Question
Question: What is the integral of \[y - 2y{e^x}\] with respect to \[x?\]...
What is the integral of y−2yex with respect to x?
Solution
In order to solve this question, we will use the concept that as we have to find the integration with respect to x so we will treat y as a constant term and then integrate the given function using the formulas:
∫xndx=n+1xn+1+c
∫exdx=ex+c
where c is the constant of integration.
Complete answer:
We have to find the integral of y−2yex with respect to x
which means we have to find ∫(y−2yex) dx
Let the given integral be I
i.e., I=∫(y−2yex) dx −−−(i)
Now using the difference rule of integration, we know that
∫(f(x)−g(x)) dx = ∫f(x) dx−∫g(x) dx
Therefore, from equation (i) we have
I=∫(y−2yex) dx = ∫y dx−∫2yex dx
I= ∫y dx−∫2yex dx −−−(ii)
Now as we have to find the integration with respect to x so we will treat y as a constant term
We know that according to the constant coefficient rule
∫cf(x) dx=c∫f(x)dx
Therefore, from equation (ii) we have
I= y∫dx−2y∫ex dx
⇒I= y∫x0dx−2y∫ex dx
Now we know that
∫xndx=n+1xn+1+c
and ∫exdx=ex+c
where c is the constant of integration.
Therefore, from the above equation, we get
I=y(0+1x0+1)−2y(ex)+c
On solving, we get
I=xy−2yex+c
Hence, the integral of y−2yex with respect to x is equal to xy−2yex+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 c . Also remember when you are asked to calculate the integral f(x,y) with respect to x , x and y are assumed as independent variables. The idea behind is that you are summing up the infinitely many f(x,y)dx as x goes through all values in the range whereas y is consistent. Thus, x is considered to be variable and y as far as the integral is concerned, considered to be constant. But it does not mean that y is an unvarying value. It is just that y is unvarying throughout the infinite sum.