Confusion with how to handle constant in differential equation











up vote
1
down vote

favorite












I'm trying to learn to solve differential equations. Currently in class we are discussing integration factors. Here is one of the problems on the homework -



$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$



We can quickly see that if we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term and we see that they are not equal, so we need an integrating factor.



An integrating factor of $x$ gets us a bit farther:



$$(3x^2e^y+2xy)dx + (x^3e^y+x^2)dy=0tag{2}$$



And now when we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term , the two are equal.



From here, I think we would integrate the left term with respect to $x$ and right term with respect to $y$ as follows -



$$int {(3x^2e^y+2xy)dx} + int (x^3e^y+x^2)dy = 0 tag{3}$$
$$2x^3e^y+2x^2y+C=0tag{4}$$
$$x^3e^y+x^2y=Ctag{5}$$



Am I thinking about this the right way?



Also, in $(5)$, is it fine to move the Constant to the right and absorb the common coefficient of 2 into it to simplify the expression?
$(5)$ is the answer in the book and (4) was my answer. Either I have done something wrong, or I am confused in regard to what may be combined into the constant $C$.










share|cite|improve this question




















  • 1




    Here you have some examples with exercices and full solutions. You may find it helpful tutorial.math.lamar.edu/Classes/DE/Exact.aspx
    – Isham
    yesterday










  • Just for your curiosity, there is an analytical expression of $y(x)$ in terms of Lambert function.
    – Claude Leibovici
    yesterday















up vote
1
down vote

favorite












I'm trying to learn to solve differential equations. Currently in class we are discussing integration factors. Here is one of the problems on the homework -



$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$



We can quickly see that if we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term and we see that they are not equal, so we need an integrating factor.



An integrating factor of $x$ gets us a bit farther:



$$(3x^2e^y+2xy)dx + (x^3e^y+x^2)dy=0tag{2}$$



And now when we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term , the two are equal.



From here, I think we would integrate the left term with respect to $x$ and right term with respect to $y$ as follows -



$$int {(3x^2e^y+2xy)dx} + int (x^3e^y+x^2)dy = 0 tag{3}$$
$$2x^3e^y+2x^2y+C=0tag{4}$$
$$x^3e^y+x^2y=Ctag{5}$$



Am I thinking about this the right way?



Also, in $(5)$, is it fine to move the Constant to the right and absorb the common coefficient of 2 into it to simplify the expression?
$(5)$ is the answer in the book and (4) was my answer. Either I have done something wrong, or I am confused in regard to what may be combined into the constant $C$.










share|cite|improve this question




















  • 1




    Here you have some examples with exercices and full solutions. You may find it helpful tutorial.math.lamar.edu/Classes/DE/Exact.aspx
    – Isham
    yesterday










  • Just for your curiosity, there is an analytical expression of $y(x)$ in terms of Lambert function.
    – Claude Leibovici
    yesterday













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm trying to learn to solve differential equations. Currently in class we are discussing integration factors. Here is one of the problems on the homework -



$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$



We can quickly see that if we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term and we see that they are not equal, so we need an integrating factor.



An integrating factor of $x$ gets us a bit farther:



$$(3x^2e^y+2xy)dx + (x^3e^y+x^2)dy=0tag{2}$$



And now when we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term , the two are equal.



From here, I think we would integrate the left term with respect to $x$ and right term with respect to $y$ as follows -



$$int {(3x^2e^y+2xy)dx} + int (x^3e^y+x^2)dy = 0 tag{3}$$
$$2x^3e^y+2x^2y+C=0tag{4}$$
$$x^3e^y+x^2y=Ctag{5}$$



Am I thinking about this the right way?



Also, in $(5)$, is it fine to move the Constant to the right and absorb the common coefficient of 2 into it to simplify the expression?
$(5)$ is the answer in the book and (4) was my answer. Either I have done something wrong, or I am confused in regard to what may be combined into the constant $C$.










share|cite|improve this question















I'm trying to learn to solve differential equations. Currently in class we are discussing integration factors. Here is one of the problems on the homework -



$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$



We can quickly see that if we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term and we see that they are not equal, so we need an integrating factor.



An integrating factor of $x$ gets us a bit farther:



$$(3x^2e^y+2xy)dx + (x^3e^y+x^2)dy=0tag{2}$$



And now when we take $frac{partial}{partial y}$ of the left term and $frac{partial}{partial x}$ of the right term , the two are equal.



From here, I think we would integrate the left term with respect to $x$ and right term with respect to $y$ as follows -



$$int {(3x^2e^y+2xy)dx} + int (x^3e^y+x^2)dy = 0 tag{3}$$
$$2x^3e^y+2x^2y+C=0tag{4}$$
$$x^3e^y+x^2y=Ctag{5}$$



Am I thinking about this the right way?



Also, in $(5)$, is it fine to move the Constant to the right and absorb the common coefficient of 2 into it to simplify the expression?
$(5)$ is the answer in the book and (4) was my answer. Either I have done something wrong, or I am confused in regard to what may be combined into the constant $C$.







integration differential-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited yesterday

























asked yesterday









blueether

1134




1134








  • 1




    Here you have some examples with exercices and full solutions. You may find it helpful tutorial.math.lamar.edu/Classes/DE/Exact.aspx
    – Isham
    yesterday










  • Just for your curiosity, there is an analytical expression of $y(x)$ in terms of Lambert function.
    – Claude Leibovici
    yesterday














  • 1




    Here you have some examples with exercices and full solutions. You may find it helpful tutorial.math.lamar.edu/Classes/DE/Exact.aspx
    – Isham
    yesterday










  • Just for your curiosity, there is an analytical expression of $y(x)$ in terms of Lambert function.
    – Claude Leibovici
    yesterday








1




1




Here you have some examples with exercices and full solutions. You may find it helpful tutorial.math.lamar.edu/Classes/DE/Exact.aspx
– Isham
yesterday




Here you have some examples with exercices and full solutions. You may find it helpful tutorial.math.lamar.edu/Classes/DE/Exact.aspx
– Isham
yesterday












Just for your curiosity, there is an analytical expression of $y(x)$ in terms of Lambert function.
– Claude Leibovici
yesterday




Just for your curiosity, there is an analytical expression of $y(x)$ in terms of Lambert function.
– Claude Leibovici
yesterday










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$
multiply by X as integrating factor as you wrote
$$(3x^2e^y+2yx)dx + (x^3e^y+x^2)dy=0$$
Rearrange terms
$$(3x^2e^ydx+x^3e^ydy)+(2yxdx + x^2dy)=0$$
$$d(x^3e^y)+d(x^2y)=0$$
After integration
$$x^3e^y+x^2y=K$$
For the constant yes it absorbs the factor 2 and you can have it on the other side. Your result is correct but I wouldn't write the integrals you wrote...
$$2x^3e^y+2x^2y+C=0$$
$$implies x^3e^y+x^2y=-frac C 2$$
Substitute
$$K=-frac C2 implies x^3e^y+x^2y=K$$
K is just a constant.






share|cite|improve this answer























  • Thank you, this is helpful. Could you expand on why you wouldn't write the integrals that I wrote?
    – blueether
    yesterday










  • I used to write them separeately not in an single equation..@blueether How can you justify the step from equation 2 to 3 ?? But if the teacher allows you to do that ...thats it
    – Isham
    yesterday








  • 1




    Ah, I see. I've been away from the math for a decade or so and trying to get back into it. I was figuring, since the equation is equal to zero I could move one of the terms to the other side, then integrate both sides with respect to x on the left and y on the right (I simply didn't bother moving anything around). I appreciate your feedback, being an adult and back in school I am far less interested in what the teacher allows and would rather learn to do things the proper way. Style is certainly important.
    – blueether
    yesterday






  • 1




    Well you did a good job except for that step 2 to 3...@blueether note that when you integrate a function of two variable with respect to one variable then the constant of integration is a function of the other variable..For the constant as you can see you made ,no mistake and your answer is the same as that of your book Call the constant C or K these are just names thats all
    – Isham
    yesterday













Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999349%2fconfusion-with-how-to-handle-constant-in-differential-equation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$
multiply by X as integrating factor as you wrote
$$(3x^2e^y+2yx)dx + (x^3e^y+x^2)dy=0$$
Rearrange terms
$$(3x^2e^ydx+x^3e^ydy)+(2yxdx + x^2dy)=0$$
$$d(x^3e^y)+d(x^2y)=0$$
After integration
$$x^3e^y+x^2y=K$$
For the constant yes it absorbs the factor 2 and you can have it on the other side. Your result is correct but I wouldn't write the integrals you wrote...
$$2x^3e^y+2x^2y+C=0$$
$$implies x^3e^y+x^2y=-frac C 2$$
Substitute
$$K=-frac C2 implies x^3e^y+x^2y=K$$
K is just a constant.






share|cite|improve this answer























  • Thank you, this is helpful. Could you expand on why you wouldn't write the integrals that I wrote?
    – blueether
    yesterday










  • I used to write them separeately not in an single equation..@blueether How can you justify the step from equation 2 to 3 ?? But if the teacher allows you to do that ...thats it
    – Isham
    yesterday








  • 1




    Ah, I see. I've been away from the math for a decade or so and trying to get back into it. I was figuring, since the equation is equal to zero I could move one of the terms to the other side, then integrate both sides with respect to x on the left and y on the right (I simply didn't bother moving anything around). I appreciate your feedback, being an adult and back in school I am far less interested in what the teacher allows and would rather learn to do things the proper way. Style is certainly important.
    – blueether
    yesterday






  • 1




    Well you did a good job except for that step 2 to 3...@blueether note that when you integrate a function of two variable with respect to one variable then the constant of integration is a function of the other variable..For the constant as you can see you made ,no mistake and your answer is the same as that of your book Call the constant C or K these are just names thats all
    – Isham
    yesterday

















up vote
0
down vote



accepted










$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$
multiply by X as integrating factor as you wrote
$$(3x^2e^y+2yx)dx + (x^3e^y+x^2)dy=0$$
Rearrange terms
$$(3x^2e^ydx+x^3e^ydy)+(2yxdx + x^2dy)=0$$
$$d(x^3e^y)+d(x^2y)=0$$
After integration
$$x^3e^y+x^2y=K$$
For the constant yes it absorbs the factor 2 and you can have it on the other side. Your result is correct but I wouldn't write the integrals you wrote...
$$2x^3e^y+2x^2y+C=0$$
$$implies x^3e^y+x^2y=-frac C 2$$
Substitute
$$K=-frac C2 implies x^3e^y+x^2y=K$$
K is just a constant.






share|cite|improve this answer























  • Thank you, this is helpful. Could you expand on why you wouldn't write the integrals that I wrote?
    – blueether
    yesterday










  • I used to write them separeately not in an single equation..@blueether How can you justify the step from equation 2 to 3 ?? But if the teacher allows you to do that ...thats it
    – Isham
    yesterday








  • 1




    Ah, I see. I've been away from the math for a decade or so and trying to get back into it. I was figuring, since the equation is equal to zero I could move one of the terms to the other side, then integrate both sides with respect to x on the left and y on the right (I simply didn't bother moving anything around). I appreciate your feedback, being an adult and back in school I am far less interested in what the teacher allows and would rather learn to do things the proper way. Style is certainly important.
    – blueether
    yesterday






  • 1




    Well you did a good job except for that step 2 to 3...@blueether note that when you integrate a function of two variable with respect to one variable then the constant of integration is a function of the other variable..For the constant as you can see you made ,no mistake and your answer is the same as that of your book Call the constant C or K these are just names thats all
    – Isham
    yesterday















up vote
0
down vote



accepted







up vote
0
down vote



accepted






$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$
multiply by X as integrating factor as you wrote
$$(3x^2e^y+2yx)dx + (x^3e^y+x^2)dy=0$$
Rearrange terms
$$(3x^2e^ydx+x^3e^ydy)+(2yxdx + x^2dy)=0$$
$$d(x^3e^y)+d(x^2y)=0$$
After integration
$$x^3e^y+x^2y=K$$
For the constant yes it absorbs the factor 2 and you can have it on the other side. Your result is correct but I wouldn't write the integrals you wrote...
$$2x^3e^y+2x^2y+C=0$$
$$implies x^3e^y+x^2y=-frac C 2$$
Substitute
$$K=-frac C2 implies x^3e^y+x^2y=K$$
K is just a constant.






share|cite|improve this answer














$$(3xe^y+2y)dx + (x^2e^y+x)dy=0tag{1}$$
multiply by X as integrating factor as you wrote
$$(3x^2e^y+2yx)dx + (x^3e^y+x^2)dy=0$$
Rearrange terms
$$(3x^2e^ydx+x^3e^ydy)+(2yxdx + x^2dy)=0$$
$$d(x^3e^y)+d(x^2y)=0$$
After integration
$$x^3e^y+x^2y=K$$
For the constant yes it absorbs the factor 2 and you can have it on the other side. Your result is correct but I wouldn't write the integrals you wrote...
$$2x^3e^y+2x^2y+C=0$$
$$implies x^3e^y+x^2y=-frac C 2$$
Substitute
$$K=-frac C2 implies x^3e^y+x^2y=K$$
K is just a constant.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited yesterday

























answered yesterday









Isham

12.6k3929




12.6k3929












  • Thank you, this is helpful. Could you expand on why you wouldn't write the integrals that I wrote?
    – blueether
    yesterday










  • I used to write them separeately not in an single equation..@blueether How can you justify the step from equation 2 to 3 ?? But if the teacher allows you to do that ...thats it
    – Isham
    yesterday








  • 1




    Ah, I see. I've been away from the math for a decade or so and trying to get back into it. I was figuring, since the equation is equal to zero I could move one of the terms to the other side, then integrate both sides with respect to x on the left and y on the right (I simply didn't bother moving anything around). I appreciate your feedback, being an adult and back in school I am far less interested in what the teacher allows and would rather learn to do things the proper way. Style is certainly important.
    – blueether
    yesterday






  • 1




    Well you did a good job except for that step 2 to 3...@blueether note that when you integrate a function of two variable with respect to one variable then the constant of integration is a function of the other variable..For the constant as you can see you made ,no mistake and your answer is the same as that of your book Call the constant C or K these are just names thats all
    – Isham
    yesterday




















  • Thank you, this is helpful. Could you expand on why you wouldn't write the integrals that I wrote?
    – blueether
    yesterday










  • I used to write them separeately not in an single equation..@blueether How can you justify the step from equation 2 to 3 ?? But if the teacher allows you to do that ...thats it
    – Isham
    yesterday








  • 1




    Ah, I see. I've been away from the math for a decade or so and trying to get back into it. I was figuring, since the equation is equal to zero I could move one of the terms to the other side, then integrate both sides with respect to x on the left and y on the right (I simply didn't bother moving anything around). I appreciate your feedback, being an adult and back in school I am far less interested in what the teacher allows and would rather learn to do things the proper way. Style is certainly important.
    – blueether
    yesterday






  • 1




    Well you did a good job except for that step 2 to 3...@blueether note that when you integrate a function of two variable with respect to one variable then the constant of integration is a function of the other variable..For the constant as you can see you made ,no mistake and your answer is the same as that of your book Call the constant C or K these are just names thats all
    – Isham
    yesterday


















Thank you, this is helpful. Could you expand on why you wouldn't write the integrals that I wrote?
– blueether
yesterday




Thank you, this is helpful. Could you expand on why you wouldn't write the integrals that I wrote?
– blueether
yesterday












I used to write them separeately not in an single equation..@blueether How can you justify the step from equation 2 to 3 ?? But if the teacher allows you to do that ...thats it
– Isham
yesterday






I used to write them separeately not in an single equation..@blueether How can you justify the step from equation 2 to 3 ?? But if the teacher allows you to do that ...thats it
– Isham
yesterday






1




1




Ah, I see. I've been away from the math for a decade or so and trying to get back into it. I was figuring, since the equation is equal to zero I could move one of the terms to the other side, then integrate both sides with respect to x on the left and y on the right (I simply didn't bother moving anything around). I appreciate your feedback, being an adult and back in school I am far less interested in what the teacher allows and would rather learn to do things the proper way. Style is certainly important.
– blueether
yesterday




Ah, I see. I've been away from the math for a decade or so and trying to get back into it. I was figuring, since the equation is equal to zero I could move one of the terms to the other side, then integrate both sides with respect to x on the left and y on the right (I simply didn't bother moving anything around). I appreciate your feedback, being an adult and back in school I am far less interested in what the teacher allows and would rather learn to do things the proper way. Style is certainly important.
– blueether
yesterday




1




1




Well you did a good job except for that step 2 to 3...@blueether note that when you integrate a function of two variable with respect to one variable then the constant of integration is a function of the other variable..For the constant as you can see you made ,no mistake and your answer is the same as that of your book Call the constant C or K these are just names thats all
– Isham
yesterday






Well you did a good job except for that step 2 to 3...@blueether note that when you integrate a function of two variable with respect to one variable then the constant of integration is a function of the other variable..For the constant as you can see you made ,no mistake and your answer is the same as that of your book Call the constant C or K these are just names thats all
– Isham
yesterday




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999349%2fconfusion-with-how-to-handle-constant-in-differential-equation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Актюбинская область

QoS: MAC-Priority for clients behind a repeater

AnyDesk - Fatal Program Failure