How to deal with the absolute value sign in the process of solving differential equation?












3














Imagine we are given a differential equation as follows
$$y'sin x-ycos x=0,$$
which seems to be very simple. We can solve it like this:
begin{align*}
&y'sin x-ycos x=0\
implies &frac{{rm d}y}{y}=cot x{rm d}x\
implies &int frac{{rm d}y}{y}=int cot x{rm d}x\
implies &ln y=lnsin x+C'\
implies &y=e^{lnsin x+C'}\
implies &y=Csin x.
end{align*}



Right? May be. But wait! Notice the transformation or operation from the the 3rd line to the 4th line. In general, we ought to write as these:
$$int frac{{rm d}y}{y}=ln |y|+C_1,~~~int cot x{rm d}x=ln|sin x|+C_2,$$
when we are finding the indefinite integral, namely, we should add an absolute value sign in the result.



Of course, sometimes, you can cancel the sign in the final result again, indeed. But some books boldly omit the sign in the process. This is irresponsible negligence, or a valid trick?










share|cite|improve this question




















  • 2




    Absolute value signs are necessary. However, in certain intervals you can argue that not all choices of $pm$ signs are necessary. For example, if you want solutions in $(0,pi)$ there are two solutions $y=Csin, x$ and $y=-Csin, x$; $y$ cannot change sign within the interval.
    – Kavi Rama Murthy
    Dec 27 '18 at 8:55












  • See it as $C=sign(y_0),sign(sin(x_0))e^{C'}$, $y=0$ is a solution that can not be crossed by another solution, and the domain has to exclude the roots of the $sin x$, all signs are constant.
    – LutzL
    Dec 27 '18 at 8:58
















3














Imagine we are given a differential equation as follows
$$y'sin x-ycos x=0,$$
which seems to be very simple. We can solve it like this:
begin{align*}
&y'sin x-ycos x=0\
implies &frac{{rm d}y}{y}=cot x{rm d}x\
implies &int frac{{rm d}y}{y}=int cot x{rm d}x\
implies &ln y=lnsin x+C'\
implies &y=e^{lnsin x+C'}\
implies &y=Csin x.
end{align*}



Right? May be. But wait! Notice the transformation or operation from the the 3rd line to the 4th line. In general, we ought to write as these:
$$int frac{{rm d}y}{y}=ln |y|+C_1,~~~int cot x{rm d}x=ln|sin x|+C_2,$$
when we are finding the indefinite integral, namely, we should add an absolute value sign in the result.



Of course, sometimes, you can cancel the sign in the final result again, indeed. But some books boldly omit the sign in the process. This is irresponsible negligence, or a valid trick?










share|cite|improve this question




















  • 2




    Absolute value signs are necessary. However, in certain intervals you can argue that not all choices of $pm$ signs are necessary. For example, if you want solutions in $(0,pi)$ there are two solutions $y=Csin, x$ and $y=-Csin, x$; $y$ cannot change sign within the interval.
    – Kavi Rama Murthy
    Dec 27 '18 at 8:55












  • See it as $C=sign(y_0),sign(sin(x_0))e^{C'}$, $y=0$ is a solution that can not be crossed by another solution, and the domain has to exclude the roots of the $sin x$, all signs are constant.
    – LutzL
    Dec 27 '18 at 8:58














3












3








3


1





Imagine we are given a differential equation as follows
$$y'sin x-ycos x=0,$$
which seems to be very simple. We can solve it like this:
begin{align*}
&y'sin x-ycos x=0\
implies &frac{{rm d}y}{y}=cot x{rm d}x\
implies &int frac{{rm d}y}{y}=int cot x{rm d}x\
implies &ln y=lnsin x+C'\
implies &y=e^{lnsin x+C'}\
implies &y=Csin x.
end{align*}



Right? May be. But wait! Notice the transformation or operation from the the 3rd line to the 4th line. In general, we ought to write as these:
$$int frac{{rm d}y}{y}=ln |y|+C_1,~~~int cot x{rm d}x=ln|sin x|+C_2,$$
when we are finding the indefinite integral, namely, we should add an absolute value sign in the result.



Of course, sometimes, you can cancel the sign in the final result again, indeed. But some books boldly omit the sign in the process. This is irresponsible negligence, or a valid trick?










share|cite|improve this question















Imagine we are given a differential equation as follows
$$y'sin x-ycos x=0,$$
which seems to be very simple. We can solve it like this:
begin{align*}
&y'sin x-ycos x=0\
implies &frac{{rm d}y}{y}=cot x{rm d}x\
implies &int frac{{rm d}y}{y}=int cot x{rm d}x\
implies &ln y=lnsin x+C'\
implies &y=e^{lnsin x+C'}\
implies &y=Csin x.
end{align*}



Right? May be. But wait! Notice the transformation or operation from the the 3rd line to the 4th line. In general, we ought to write as these:
$$int frac{{rm d}y}{y}=ln |y|+C_1,~~~int cot x{rm d}x=ln|sin x|+C_2,$$
when we are finding the indefinite integral, namely, we should add an absolute value sign in the result.



Of course, sometimes, you can cancel the sign in the final result again, indeed. But some books boldly omit the sign in the process. This is irresponsible negligence, or a valid trick?







differential-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 27 '18 at 14:27

























asked Dec 27 '18 at 8:46









mengdie1982

4,809618




4,809618








  • 2




    Absolute value signs are necessary. However, in certain intervals you can argue that not all choices of $pm$ signs are necessary. For example, if you want solutions in $(0,pi)$ there are two solutions $y=Csin, x$ and $y=-Csin, x$; $y$ cannot change sign within the interval.
    – Kavi Rama Murthy
    Dec 27 '18 at 8:55












  • See it as $C=sign(y_0),sign(sin(x_0))e^{C'}$, $y=0$ is a solution that can not be crossed by another solution, and the domain has to exclude the roots of the $sin x$, all signs are constant.
    – LutzL
    Dec 27 '18 at 8:58














  • 2




    Absolute value signs are necessary. However, in certain intervals you can argue that not all choices of $pm$ signs are necessary. For example, if you want solutions in $(0,pi)$ there are two solutions $y=Csin, x$ and $y=-Csin, x$; $y$ cannot change sign within the interval.
    – Kavi Rama Murthy
    Dec 27 '18 at 8:55












  • See it as $C=sign(y_0),sign(sin(x_0))e^{C'}$, $y=0$ is a solution that can not be crossed by another solution, and the domain has to exclude the roots of the $sin x$, all signs are constant.
    – LutzL
    Dec 27 '18 at 8:58








2




2




Absolute value signs are necessary. However, in certain intervals you can argue that not all choices of $pm$ signs are necessary. For example, if you want solutions in $(0,pi)$ there are two solutions $y=Csin, x$ and $y=-Csin, x$; $y$ cannot change sign within the interval.
– Kavi Rama Murthy
Dec 27 '18 at 8:55






Absolute value signs are necessary. However, in certain intervals you can argue that not all choices of $pm$ signs are necessary. For example, if you want solutions in $(0,pi)$ there are two solutions $y=Csin, x$ and $y=-Csin, x$; $y$ cannot change sign within the interval.
– Kavi Rama Murthy
Dec 27 '18 at 8:55














See it as $C=sign(y_0),sign(sin(x_0))e^{C'}$, $y=0$ is a solution that can not be crossed by another solution, and the domain has to exclude the roots of the $sin x$, all signs are constant.
– LutzL
Dec 27 '18 at 8:58




See it as $C=sign(y_0),sign(sin(x_0))e^{C'}$, $y=0$ is a solution that can not be crossed by another solution, and the domain has to exclude the roots of the $sin x$, all signs are constant.
– LutzL
Dec 27 '18 at 8:58










1 Answer
1






active

oldest

votes


















1














You deal with it like this



begin{align}
ln|y| &= ln|sin x| + C_2-C_1 \
|y| &= e^{C_2-C_1}|sin x| \
y &= pm e^{C_2-C_1}sin x
end{align}



Where one of the $pm$ signs is applied. You then rewrite $C = pm e^{C_2-C_1}$ to get the desired result. Clearly $C$ can be either positive or negative, depending on the given initial value.






share|cite|improve this answer





















  • $C$ could be $0$?
    – mengdie1982
    Dec 27 '18 at 14:28










  • Before anything happends, you should've pointed out that $y=0$ is a trivial solution. Then you go on to solve the equation for $yne 0$ (since you need to divide by $y$ in one step). In the end, the trivial solution happens to fit, so $C=0$ is included.
    – Dylan
    Dec 27 '18 at 16:10













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',
autoActivateHeartbeat: false,
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%2f3053717%2fhow-to-deal-with-the-absolute-value-sign-in-the-process-of-solving-differential%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









1














You deal with it like this



begin{align}
ln|y| &= ln|sin x| + C_2-C_1 \
|y| &= e^{C_2-C_1}|sin x| \
y &= pm e^{C_2-C_1}sin x
end{align}



Where one of the $pm$ signs is applied. You then rewrite $C = pm e^{C_2-C_1}$ to get the desired result. Clearly $C$ can be either positive or negative, depending on the given initial value.






share|cite|improve this answer





















  • $C$ could be $0$?
    – mengdie1982
    Dec 27 '18 at 14:28










  • Before anything happends, you should've pointed out that $y=0$ is a trivial solution. Then you go on to solve the equation for $yne 0$ (since you need to divide by $y$ in one step). In the end, the trivial solution happens to fit, so $C=0$ is included.
    – Dylan
    Dec 27 '18 at 16:10


















1














You deal with it like this



begin{align}
ln|y| &= ln|sin x| + C_2-C_1 \
|y| &= e^{C_2-C_1}|sin x| \
y &= pm e^{C_2-C_1}sin x
end{align}



Where one of the $pm$ signs is applied. You then rewrite $C = pm e^{C_2-C_1}$ to get the desired result. Clearly $C$ can be either positive or negative, depending on the given initial value.






share|cite|improve this answer





















  • $C$ could be $0$?
    – mengdie1982
    Dec 27 '18 at 14:28










  • Before anything happends, you should've pointed out that $y=0$ is a trivial solution. Then you go on to solve the equation for $yne 0$ (since you need to divide by $y$ in one step). In the end, the trivial solution happens to fit, so $C=0$ is included.
    – Dylan
    Dec 27 '18 at 16:10
















1












1








1






You deal with it like this



begin{align}
ln|y| &= ln|sin x| + C_2-C_1 \
|y| &= e^{C_2-C_1}|sin x| \
y &= pm e^{C_2-C_1}sin x
end{align}



Where one of the $pm$ signs is applied. You then rewrite $C = pm e^{C_2-C_1}$ to get the desired result. Clearly $C$ can be either positive or negative, depending on the given initial value.






share|cite|improve this answer












You deal with it like this



begin{align}
ln|y| &= ln|sin x| + C_2-C_1 \
|y| &= e^{C_2-C_1}|sin x| \
y &= pm e^{C_2-C_1}sin x
end{align}



Where one of the $pm$ signs is applied. You then rewrite $C = pm e^{C_2-C_1}$ to get the desired result. Clearly $C$ can be either positive or negative, depending on the given initial value.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 27 '18 at 10:23









Dylan

12.3k31026




12.3k31026












  • $C$ could be $0$?
    – mengdie1982
    Dec 27 '18 at 14:28










  • Before anything happends, you should've pointed out that $y=0$ is a trivial solution. Then you go on to solve the equation for $yne 0$ (since you need to divide by $y$ in one step). In the end, the trivial solution happens to fit, so $C=0$ is included.
    – Dylan
    Dec 27 '18 at 16:10




















  • $C$ could be $0$?
    – mengdie1982
    Dec 27 '18 at 14:28










  • Before anything happends, you should've pointed out that $y=0$ is a trivial solution. Then you go on to solve the equation for $yne 0$ (since you need to divide by $y$ in one step). In the end, the trivial solution happens to fit, so $C=0$ is included.
    – Dylan
    Dec 27 '18 at 16:10


















$C$ could be $0$?
– mengdie1982
Dec 27 '18 at 14:28




$C$ could be $0$?
– mengdie1982
Dec 27 '18 at 14:28












Before anything happends, you should've pointed out that $y=0$ is a trivial solution. Then you go on to solve the equation for $yne 0$ (since you need to divide by $y$ in one step). In the end, the trivial solution happens to fit, so $C=0$ is included.
– Dylan
Dec 27 '18 at 16:10






Before anything happends, you should've pointed out that $y=0$ is a trivial solution. Then you go on to solve the equation for $yne 0$ (since you need to divide by $y$ in one step). In the end, the trivial solution happens to fit, so $C=0$ is included.
– Dylan
Dec 27 '18 at 16:10




















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3053717%2fhow-to-deal-with-the-absolute-value-sign-in-the-process-of-solving-differential%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

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

File:DeusFollowingSea.jpg