Solving the linear first order differential equation?
$begingroup$
I was given the equation
$y' = -xy$, where $y(0) = 1$.
My solution was as follows:
$$frac{dy}{dx} = -xy $$
$$dy = -xy dx $$
$$int {dy} = int {-xy dx} $$
$$y = -frac{x^2}{2}y + c $$
$$y + frac{x^2}{2}y = c $$
$$y(1 + frac{x^2}{2}) = c $$
$$y = frac{c}{1 + frac{x^2}{2}} $$
I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.
I just know that what I did is wrong. Where did I go wrong, please? Thanks!
ordinary-differential-equations derivatives
$endgroup$
add a comment |
$begingroup$
I was given the equation
$y' = -xy$, where $y(0) = 1$.
My solution was as follows:
$$frac{dy}{dx} = -xy $$
$$dy = -xy dx $$
$$int {dy} = int {-xy dx} $$
$$y = -frac{x^2}{2}y + c $$
$$y + frac{x^2}{2}y = c $$
$$y(1 + frac{x^2}{2}) = c $$
$$y = frac{c}{1 + frac{x^2}{2}} $$
I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.
I just know that what I did is wrong. Where did I go wrong, please? Thanks!
ordinary-differential-equations derivatives
$endgroup$
$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
11 hours ago
add a comment |
$begingroup$
I was given the equation
$y' = -xy$, where $y(0) = 1$.
My solution was as follows:
$$frac{dy}{dx} = -xy $$
$$dy = -xy dx $$
$$int {dy} = int {-xy dx} $$
$$y = -frac{x^2}{2}y + c $$
$$y + frac{x^2}{2}y = c $$
$$y(1 + frac{x^2}{2}) = c $$
$$y = frac{c}{1 + frac{x^2}{2}} $$
I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.
I just know that what I did is wrong. Where did I go wrong, please? Thanks!
ordinary-differential-equations derivatives
$endgroup$
I was given the equation
$y' = -xy$, where $y(0) = 1$.
My solution was as follows:
$$frac{dy}{dx} = -xy $$
$$dy = -xy dx $$
$$int {dy} = int {-xy dx} $$
$$y = -frac{x^2}{2}y + c $$
$$y + frac{x^2}{2}y = c $$
$$y(1 + frac{x^2}{2}) = c $$
$$y = frac{c}{1 + frac{x^2}{2}} $$
I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.
I just know that what I did is wrong. Where did I go wrong, please? Thanks!
ordinary-differential-equations derivatives
ordinary-differential-equations derivatives
edited 2 hours ago
David Richerby
2,18011324
2,18011324
asked 12 hours ago
A.SmithA.Smith
212
212
$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
11 hours ago
add a comment |
$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
11 hours ago
$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
11 hours ago
$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
11 hours ago
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
Hint:
This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$
Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?
Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.
$endgroup$
$begingroup$
That helped a lot! Thank you!
$endgroup$
– A.Smith
5 hours ago
add a comment |
$begingroup$
After writing
$$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$
you get $ln|y|=-frac{x^2}{2}+c_1$, which implies
$$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$
After plugging in $y(0)=1$, you get $c=1$, so
$$y(x)=exp(-x^2/2).$$
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
$begingroup$
Thank you so so much! I super appreciate it!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
You're welcome :)
$endgroup$
– st.math
4 hours ago
add a comment |
$begingroup$
Here is another method that does not use separation of variables and uses integrating factors. Write
$$
y'+xy=0
$$
and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
$$
0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
$$
So
$$
ye^{x^2/2}=cimplies y=ce^{-x^2/2}
$$
for some $c$. Since $y(0)=1$, we deduce that
$$
y=exp(-x^2/2).
$$
$endgroup$
add a comment |
$begingroup$
(Too long for a comment.)
No one else has mentioned this, so I will...
Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".
Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
$$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$
Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
left( frac{-1}{2}x^2 y(x) right)'
&= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
end{align*}
which isn't quite "$- x y,mathrm{d}x$".
(However, we have shown begin{align*}
int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
&= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
&= frac{-1}{2}x^2 y(x) + C text{.}
end{align*}
Familiarity with this kind of manipulation could be useful in the future.)
$endgroup$
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3124604%2fsolving-the-linear-first-order-differential-equation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Hint:
This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$
Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?
Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.
$endgroup$
$begingroup$
That helped a lot! Thank you!
$endgroup$
– A.Smith
5 hours ago
add a comment |
$begingroup$
Hint:
This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$
Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?
Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.
$endgroup$
$begingroup$
That helped a lot! Thank you!
$endgroup$
– A.Smith
5 hours ago
add a comment |
$begingroup$
Hint:
This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$
Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?
Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.
$endgroup$
Hint:
This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$
Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?
Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.
edited 12 hours ago
answered 12 hours ago
Paras KhoslaParas Khosla
1,021215
1,021215
$begingroup$
That helped a lot! Thank you!
$endgroup$
– A.Smith
5 hours ago
add a comment |
$begingroup$
That helped a lot! Thank you!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
That helped a lot! Thank you!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
That helped a lot! Thank you!
$endgroup$
– A.Smith
5 hours ago
add a comment |
$begingroup$
After writing
$$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$
you get $ln|y|=-frac{x^2}{2}+c_1$, which implies
$$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$
After plugging in $y(0)=1$, you get $c=1$, so
$$y(x)=exp(-x^2/2).$$
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
$begingroup$
Thank you so so much! I super appreciate it!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
You're welcome :)
$endgroup$
– st.math
4 hours ago
add a comment |
$begingroup$
After writing
$$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$
you get $ln|y|=-frac{x^2}{2}+c_1$, which implies
$$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$
After plugging in $y(0)=1$, you get $c=1$, so
$$y(x)=exp(-x^2/2).$$
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
$begingroup$
Thank you so so much! I super appreciate it!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
You're welcome :)
$endgroup$
– st.math
4 hours ago
add a comment |
$begingroup$
After writing
$$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$
you get $ln|y|=-frac{x^2}{2}+c_1$, which implies
$$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$
After plugging in $y(0)=1$, you get $c=1$, so
$$y(x)=exp(-x^2/2).$$
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
After writing
$$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$
you get $ln|y|=-frac{x^2}{2}+c_1$, which implies
$$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$
After plugging in $y(0)=1$, you get $c=1$, so
$$y(x)=exp(-x^2/2).$$
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 11 hours ago
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 11 hours ago
st.mathst.math
2807
2807
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
st.math is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$begingroup$
Thank you so so much! I super appreciate it!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
You're welcome :)
$endgroup$
– st.math
4 hours ago
add a comment |
$begingroup$
Thank you so so much! I super appreciate it!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
You're welcome :)
$endgroup$
– st.math
4 hours ago
$begingroup$
Thank you so so much! I super appreciate it!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
Thank you so so much! I super appreciate it!
$endgroup$
– A.Smith
5 hours ago
$begingroup$
You're welcome :)
$endgroup$
– st.math
4 hours ago
$begingroup$
You're welcome :)
$endgroup$
– st.math
4 hours ago
add a comment |
$begingroup$
Here is another method that does not use separation of variables and uses integrating factors. Write
$$
y'+xy=0
$$
and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
$$
0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
$$
So
$$
ye^{x^2/2}=cimplies y=ce^{-x^2/2}
$$
for some $c$. Since $y(0)=1$, we deduce that
$$
y=exp(-x^2/2).
$$
$endgroup$
add a comment |
$begingroup$
Here is another method that does not use separation of variables and uses integrating factors. Write
$$
y'+xy=0
$$
and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
$$
0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
$$
So
$$
ye^{x^2/2}=cimplies y=ce^{-x^2/2}
$$
for some $c$. Since $y(0)=1$, we deduce that
$$
y=exp(-x^2/2).
$$
$endgroup$
add a comment |
$begingroup$
Here is another method that does not use separation of variables and uses integrating factors. Write
$$
y'+xy=0
$$
and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
$$
0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
$$
So
$$
ye^{x^2/2}=cimplies y=ce^{-x^2/2}
$$
for some $c$. Since $y(0)=1$, we deduce that
$$
y=exp(-x^2/2).
$$
$endgroup$
Here is another method that does not use separation of variables and uses integrating factors. Write
$$
y'+xy=0
$$
and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
$$
0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
$$
So
$$
ye^{x^2/2}=cimplies y=ce^{-x^2/2}
$$
for some $c$. Since $y(0)=1$, we deduce that
$$
y=exp(-x^2/2).
$$
answered 4 hours ago
Foobaz JohnFoobaz John
22.2k41452
22.2k41452
add a comment |
add a comment |
$begingroup$
(Too long for a comment.)
No one else has mentioned this, so I will...
Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".
Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
$$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$
Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
left( frac{-1}{2}x^2 y(x) right)'
&= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
end{align*}
which isn't quite "$- x y,mathrm{d}x$".
(However, we have shown begin{align*}
int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
&= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
&= frac{-1}{2}x^2 y(x) + C text{.}
end{align*}
Familiarity with this kind of manipulation could be useful in the future.)
$endgroup$
add a comment |
$begingroup$
(Too long for a comment.)
No one else has mentioned this, so I will...
Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".
Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
$$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$
Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
left( frac{-1}{2}x^2 y(x) right)'
&= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
end{align*}
which isn't quite "$- x y,mathrm{d}x$".
(However, we have shown begin{align*}
int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
&= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
&= frac{-1}{2}x^2 y(x) + C text{.}
end{align*}
Familiarity with this kind of manipulation could be useful in the future.)
$endgroup$
add a comment |
$begingroup$
(Too long for a comment.)
No one else has mentioned this, so I will...
Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".
Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
$$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$
Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
left( frac{-1}{2}x^2 y(x) right)'
&= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
end{align*}
which isn't quite "$- x y,mathrm{d}x$".
(However, we have shown begin{align*}
int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
&= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
&= frac{-1}{2}x^2 y(x) + C text{.}
end{align*}
Familiarity with this kind of manipulation could be useful in the future.)
$endgroup$
(Too long for a comment.)
No one else has mentioned this, so I will...
Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".
Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
$$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$
Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
left( frac{-1}{2}x^2 y(x) right)'
&= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
end{align*}
which isn't quite "$- x y,mathrm{d}x$".
(However, we have shown begin{align*}
int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
&= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
&= frac{-1}{2}x^2 y(x) + C text{.}
end{align*}
Familiarity with this kind of manipulation could be useful in the future.)
answered 1 hour ago
Eric TowersEric Towers
32.7k22370
32.7k22370
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3124604%2fsolving-the-linear-first-order-differential-equation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
11 hours ago