How to solve this ode $xy''-(1+x)y'+y=x^2$?
Find the general solution of $xy''-(1+x)y'+y=x^2$ knowing that the homogeneous equation has the following solution: $e^{ax}$, where $a$ is a parameter you have to find.
I have found that $a=1$ or $a=1/x$.
differential-equations
New contributor
add a comment |
Find the general solution of $xy''-(1+x)y'+y=x^2$ knowing that the homogeneous equation has the following solution: $e^{ax}$, where $a$ is a parameter you have to find.
I have found that $a=1$ or $a=1/x$.
differential-equations
New contributor
1
The parameter cannot depend on $x$.
– dmtri
2 days ago
add a comment |
Find the general solution of $xy''-(1+x)y'+y=x^2$ knowing that the homogeneous equation has the following solution: $e^{ax}$, where $a$ is a parameter you have to find.
I have found that $a=1$ or $a=1/x$.
differential-equations
New contributor
Find the general solution of $xy''-(1+x)y'+y=x^2$ knowing that the homogeneous equation has the following solution: $e^{ax}$, where $a$ is a parameter you have to find.
I have found that $a=1$ or $a=1/x$.
differential-equations
differential-equations
New contributor
New contributor
edited 2 days ago
dmtri
1,4321521
1,4321521
New contributor
asked 2 days ago
Gloria Guerrero
211
211
New contributor
New contributor
1
The parameter cannot depend on $x$.
– dmtri
2 days ago
add a comment |
1
The parameter cannot depend on $x$.
– dmtri
2 days ago
1
1
The parameter cannot depend on $x$.
– dmtri
2 days ago
The parameter cannot depend on $x$.
– dmtri
2 days ago
add a comment |
3 Answers
3
active
oldest
votes
Hint. You are correct, the homogeneous case of the given linear ODE has $e^x$ as a solution (the parameter $a$ is supposed to be a constant real number). Note that $y=-x^2$ is a particular solution. Is there any other polynomial solution? Substitute $y(x)=Ax^2+Bx+C$ into the ODE, then
$$x(2A)-(1+x)(2Ax+B)+(Ax^2+Bx+C)=x^2$$
What may we conclude?
add a comment |
The equation $xy''-(1+x)y'+y=x^2$ can be rewritten as $(xy''-y')+(y-xy')=x^2.$ After division by $x^2$ we have
$$
frac{xy''-y'}{x^2} + frac{y-xy'}{x^2} = 1,
$$
which can be rewritten as
$$
Big( frac{y'}{x} Big)' - Big( frac{y}{x} Big)' = 1.
$$
Taking the antiderivative gives
$$
frac{y'}{x} - frac{y}{x} = x + C,
$$
which after multiplication with $x$ gives
$$y' - y = x^2+ Cx.$$
Now we multiply with the integrating factor $e^{-x}$:
$$e^{-x} y' - e^{-x} y = x^2 e^{-x} + Cx e^{-x}.$$
The left hand side can be rewritten as a derivative:
$$( e^{-x} y )' = x^2 e^{-x} + Cx e^{-x}.$$
Taking the antiderivative gives
$$e^{-x} y = -(x^2+2x+2) e^{-x} - C(x+1) e^{-x} + D.$$
Thus, all solutions to the original differential equation are given by
$$y = -(x^2+2x+2) - C(x+1) + D e^x,$$
where $C$ and $D$ are two constants.
add a comment |
Substitute $$y(x)=(-x-1)v(x)$$ then we get
$$-xfrac{d^2v(x)}{dx^2(x+1)}+frac{dv(x)}{dx}(x^2+1)=x^2$$
let $$frac{dv(x)}{dx}=u(x)$$ then we get
$$frac{du(x)}{dx}+frac{-x^2-1)u(x)}{x(x+1)}=-frac{x}{x+1}$$
with $$mu(x)=e^{intfrac{-x^2-1}{x(x+1)}dx}=frac{e^{-x}(x+1)^2}{x}$$ we get
$$frac{e^{-x}(x+1)^2}{x}frac{du(x)}{dx}+frac{d}{dx}left(frac{e^{-x}(x+1)^2}{x}right)u(x)=-e^{-x}(x+1)$$ and this is
$$intfrac{d}{dx}left(frac{e^{-x}(x+1)^2u(x)}{x}right)=int-e^{-x}(x+1)dx$$
Can you finish?
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
});
}
});
Gloria Guerrero is a new contributor. Be nice, and check out our Code of Conduct.
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%2f3060774%2fhow-to-solve-this-ode-xy-1xyy-x2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Hint. You are correct, the homogeneous case of the given linear ODE has $e^x$ as a solution (the parameter $a$ is supposed to be a constant real number). Note that $y=-x^2$ is a particular solution. Is there any other polynomial solution? Substitute $y(x)=Ax^2+Bx+C$ into the ODE, then
$$x(2A)-(1+x)(2Ax+B)+(Ax^2+Bx+C)=x^2$$
What may we conclude?
add a comment |
Hint. You are correct, the homogeneous case of the given linear ODE has $e^x$ as a solution (the parameter $a$ is supposed to be a constant real number). Note that $y=-x^2$ is a particular solution. Is there any other polynomial solution? Substitute $y(x)=Ax^2+Bx+C$ into the ODE, then
$$x(2A)-(1+x)(2Ax+B)+(Ax^2+Bx+C)=x^2$$
What may we conclude?
add a comment |
Hint. You are correct, the homogeneous case of the given linear ODE has $e^x$ as a solution (the parameter $a$ is supposed to be a constant real number). Note that $y=-x^2$ is a particular solution. Is there any other polynomial solution? Substitute $y(x)=Ax^2+Bx+C$ into the ODE, then
$$x(2A)-(1+x)(2Ax+B)+(Ax^2+Bx+C)=x^2$$
What may we conclude?
Hint. You are correct, the homogeneous case of the given linear ODE has $e^x$ as a solution (the parameter $a$ is supposed to be a constant real number). Note that $y=-x^2$ is a particular solution. Is there any other polynomial solution? Substitute $y(x)=Ax^2+Bx+C$ into the ODE, then
$$x(2A)-(1+x)(2Ax+B)+(Ax^2+Bx+C)=x^2$$
What may we conclude?
edited 2 days ago
answered 2 days ago
Robert Z
93.5k1061132
93.5k1061132
add a comment |
add a comment |
The equation $xy''-(1+x)y'+y=x^2$ can be rewritten as $(xy''-y')+(y-xy')=x^2.$ After division by $x^2$ we have
$$
frac{xy''-y'}{x^2} + frac{y-xy'}{x^2} = 1,
$$
which can be rewritten as
$$
Big( frac{y'}{x} Big)' - Big( frac{y}{x} Big)' = 1.
$$
Taking the antiderivative gives
$$
frac{y'}{x} - frac{y}{x} = x + C,
$$
which after multiplication with $x$ gives
$$y' - y = x^2+ Cx.$$
Now we multiply with the integrating factor $e^{-x}$:
$$e^{-x} y' - e^{-x} y = x^2 e^{-x} + Cx e^{-x}.$$
The left hand side can be rewritten as a derivative:
$$( e^{-x} y )' = x^2 e^{-x} + Cx e^{-x}.$$
Taking the antiderivative gives
$$e^{-x} y = -(x^2+2x+2) e^{-x} - C(x+1) e^{-x} + D.$$
Thus, all solutions to the original differential equation are given by
$$y = -(x^2+2x+2) - C(x+1) + D e^x,$$
where $C$ and $D$ are two constants.
add a comment |
The equation $xy''-(1+x)y'+y=x^2$ can be rewritten as $(xy''-y')+(y-xy')=x^2.$ After division by $x^2$ we have
$$
frac{xy''-y'}{x^2} + frac{y-xy'}{x^2} = 1,
$$
which can be rewritten as
$$
Big( frac{y'}{x} Big)' - Big( frac{y}{x} Big)' = 1.
$$
Taking the antiderivative gives
$$
frac{y'}{x} - frac{y}{x} = x + C,
$$
which after multiplication with $x$ gives
$$y' - y = x^2+ Cx.$$
Now we multiply with the integrating factor $e^{-x}$:
$$e^{-x} y' - e^{-x} y = x^2 e^{-x} + Cx e^{-x}.$$
The left hand side can be rewritten as a derivative:
$$( e^{-x} y )' = x^2 e^{-x} + Cx e^{-x}.$$
Taking the antiderivative gives
$$e^{-x} y = -(x^2+2x+2) e^{-x} - C(x+1) e^{-x} + D.$$
Thus, all solutions to the original differential equation are given by
$$y = -(x^2+2x+2) - C(x+1) + D e^x,$$
where $C$ and $D$ are two constants.
add a comment |
The equation $xy''-(1+x)y'+y=x^2$ can be rewritten as $(xy''-y')+(y-xy')=x^2.$ After division by $x^2$ we have
$$
frac{xy''-y'}{x^2} + frac{y-xy'}{x^2} = 1,
$$
which can be rewritten as
$$
Big( frac{y'}{x} Big)' - Big( frac{y}{x} Big)' = 1.
$$
Taking the antiderivative gives
$$
frac{y'}{x} - frac{y}{x} = x + C,
$$
which after multiplication with $x$ gives
$$y' - y = x^2+ Cx.$$
Now we multiply with the integrating factor $e^{-x}$:
$$e^{-x} y' - e^{-x} y = x^2 e^{-x} + Cx e^{-x}.$$
The left hand side can be rewritten as a derivative:
$$( e^{-x} y )' = x^2 e^{-x} + Cx e^{-x}.$$
Taking the antiderivative gives
$$e^{-x} y = -(x^2+2x+2) e^{-x} - C(x+1) e^{-x} + D.$$
Thus, all solutions to the original differential equation are given by
$$y = -(x^2+2x+2) - C(x+1) + D e^x,$$
where $C$ and $D$ are two constants.
The equation $xy''-(1+x)y'+y=x^2$ can be rewritten as $(xy''-y')+(y-xy')=x^2.$ After division by $x^2$ we have
$$
frac{xy''-y'}{x^2} + frac{y-xy'}{x^2} = 1,
$$
which can be rewritten as
$$
Big( frac{y'}{x} Big)' - Big( frac{y}{x} Big)' = 1.
$$
Taking the antiderivative gives
$$
frac{y'}{x} - frac{y}{x} = x + C,
$$
which after multiplication with $x$ gives
$$y' - y = x^2+ Cx.$$
Now we multiply with the integrating factor $e^{-x}$:
$$e^{-x} y' - e^{-x} y = x^2 e^{-x} + Cx e^{-x}.$$
The left hand side can be rewritten as a derivative:
$$( e^{-x} y )' = x^2 e^{-x} + Cx e^{-x}.$$
Taking the antiderivative gives
$$e^{-x} y = -(x^2+2x+2) e^{-x} - C(x+1) e^{-x} + D.$$
Thus, all solutions to the original differential equation are given by
$$y = -(x^2+2x+2) - C(x+1) + D e^x,$$
where $C$ and $D$ are two constants.
answered 2 days ago
md2perpe
7,71111028
7,71111028
add a comment |
add a comment |
Substitute $$y(x)=(-x-1)v(x)$$ then we get
$$-xfrac{d^2v(x)}{dx^2(x+1)}+frac{dv(x)}{dx}(x^2+1)=x^2$$
let $$frac{dv(x)}{dx}=u(x)$$ then we get
$$frac{du(x)}{dx}+frac{-x^2-1)u(x)}{x(x+1)}=-frac{x}{x+1}$$
with $$mu(x)=e^{intfrac{-x^2-1}{x(x+1)}dx}=frac{e^{-x}(x+1)^2}{x}$$ we get
$$frac{e^{-x}(x+1)^2}{x}frac{du(x)}{dx}+frac{d}{dx}left(frac{e^{-x}(x+1)^2}{x}right)u(x)=-e^{-x}(x+1)$$ and this is
$$intfrac{d}{dx}left(frac{e^{-x}(x+1)^2u(x)}{x}right)=int-e^{-x}(x+1)dx$$
Can you finish?
add a comment |
Substitute $$y(x)=(-x-1)v(x)$$ then we get
$$-xfrac{d^2v(x)}{dx^2(x+1)}+frac{dv(x)}{dx}(x^2+1)=x^2$$
let $$frac{dv(x)}{dx}=u(x)$$ then we get
$$frac{du(x)}{dx}+frac{-x^2-1)u(x)}{x(x+1)}=-frac{x}{x+1}$$
with $$mu(x)=e^{intfrac{-x^2-1}{x(x+1)}dx}=frac{e^{-x}(x+1)^2}{x}$$ we get
$$frac{e^{-x}(x+1)^2}{x}frac{du(x)}{dx}+frac{d}{dx}left(frac{e^{-x}(x+1)^2}{x}right)u(x)=-e^{-x}(x+1)$$ and this is
$$intfrac{d}{dx}left(frac{e^{-x}(x+1)^2u(x)}{x}right)=int-e^{-x}(x+1)dx$$
Can you finish?
add a comment |
Substitute $$y(x)=(-x-1)v(x)$$ then we get
$$-xfrac{d^2v(x)}{dx^2(x+1)}+frac{dv(x)}{dx}(x^2+1)=x^2$$
let $$frac{dv(x)}{dx}=u(x)$$ then we get
$$frac{du(x)}{dx}+frac{-x^2-1)u(x)}{x(x+1)}=-frac{x}{x+1}$$
with $$mu(x)=e^{intfrac{-x^2-1}{x(x+1)}dx}=frac{e^{-x}(x+1)^2}{x}$$ we get
$$frac{e^{-x}(x+1)^2}{x}frac{du(x)}{dx}+frac{d}{dx}left(frac{e^{-x}(x+1)^2}{x}right)u(x)=-e^{-x}(x+1)$$ and this is
$$intfrac{d}{dx}left(frac{e^{-x}(x+1)^2u(x)}{x}right)=int-e^{-x}(x+1)dx$$
Can you finish?
Substitute $$y(x)=(-x-1)v(x)$$ then we get
$$-xfrac{d^2v(x)}{dx^2(x+1)}+frac{dv(x)}{dx}(x^2+1)=x^2$$
let $$frac{dv(x)}{dx}=u(x)$$ then we get
$$frac{du(x)}{dx}+frac{-x^2-1)u(x)}{x(x+1)}=-frac{x}{x+1}$$
with $$mu(x)=e^{intfrac{-x^2-1}{x(x+1)}dx}=frac{e^{-x}(x+1)^2}{x}$$ we get
$$frac{e^{-x}(x+1)^2}{x}frac{du(x)}{dx}+frac{d}{dx}left(frac{e^{-x}(x+1)^2}{x}right)u(x)=-e^{-x}(x+1)$$ and this is
$$intfrac{d}{dx}left(frac{e^{-x}(x+1)^2u(x)}{x}right)=int-e^{-x}(x+1)dx$$
Can you finish?
answered 2 days ago
Dr. Sonnhard Graubner
73.3k42865
73.3k42865
add a comment |
add a comment |
Gloria Guerrero is a new contributor. Be nice, and check out our Code of Conduct.
Gloria Guerrero is a new contributor. Be nice, and check out our Code of Conduct.
Gloria Guerrero is a new contributor. Be nice, and check out our Code of Conduct.
Gloria Guerrero is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2f3060774%2fhow-to-solve-this-ode-xy-1xyy-x2%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
1
The parameter cannot depend on $x$.
– dmtri
2 days ago