Exercise: A first-order linear differential equation with $x^x$
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
This is a question I'll be giving to my students on a quiz, and I want to have a solution typed up nicely for them. Hopefully posting it as a question here will help future students too.
For $x>0$, how do you solve the differential equation
$$x^xdoty + lnleft(x^x^xright)y = 1,?$$
I'll probably write $lnleft(x^x^xright)$ as $x^xln(x)$ on the quiz though; I don't want them to get tripped up on that since that's not what I'm quizzing them on.
differential-equations
add a comment |Â
up vote
1
down vote
favorite
This is a question I'll be giving to my students on a quiz, and I want to have a solution typed up nicely for them. Hopefully posting it as a question here will help future students too.
For $x>0$, how do you solve the differential equation
$$x^xdoty + lnleft(x^x^xright)y = 1,?$$
I'll probably write $lnleft(x^x^xright)$ as $x^xln(x)$ on the quiz though; I don't want them to get tripped up on that since that's not what I'm quizzing them on.
differential-equations
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
This is a question I'll be giving to my students on a quiz, and I want to have a solution typed up nicely for them. Hopefully posting it as a question here will help future students too.
For $x>0$, how do you solve the differential equation
$$x^xdoty + lnleft(x^x^xright)y = 1,?$$
I'll probably write $lnleft(x^x^xright)$ as $x^xln(x)$ on the quiz though; I don't want them to get tripped up on that since that's not what I'm quizzing them on.
differential-equations
This is a question I'll be giving to my students on a quiz, and I want to have a solution typed up nicely for them. Hopefully posting it as a question here will help future students too.
For $x>0$, how do you solve the differential equation
$$x^xdoty + lnleft(x^x^xright)y = 1,?$$
I'll probably write $lnleft(x^x^xright)$ as $x^xln(x)$ on the quiz though; I don't want them to get tripped up on that since that's not what I'm quizzing them on.
differential-equations
edited Aug 11 at 22:52
asked Aug 8 at 16:52
Mike Pierce
11k93574
11k93574
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
$$x^xy'+ln(x^x^x) y =1$$
$$x^xy'+x^xln x y =1$$
Observe that
$$(x^x)'=(e^ x ln x)'=x^x(x ln x)'=x^x( ln x +1)$$
Now
$$x^xy'+x^xln x y +x^xy=1+x^xy$$
$$(x^xy)'=1+x^xy$$
$$implies z'=1+z$$
Where $z=x^xy$
It's easy to solve
$$(x^xye^-x)'=e^-x$$
After integration
$$x^xye^-x=-e^-x+K$$
$$boxed y=frac Ke^x-1x^x$$
add a comment |Â
up vote
1
down vote
accepted
This differential equation looks linear, but let's actually write it in the standard form of a first-order linear differential equation, $doty + p(x)y = q(x) newcommandexmathrme$ before we continue, just to be sure.
beginalign
x^xdoty + lnleft(x^x^xright)y &= 1
\[0.5em]
x^xdoty + x^xlnleft(xright)y &= 1
\[0.5em]
doty + lnleft(xright)y &= x^-x
endalign
Since $x>0$, $x^x neq 0$, so dividing through by $x^x$ doesn't cause any problems. So yeah, it's linear. Nifty! Now we recall that we can solve a first-order linear differential equation by multiplying through by the integrating factor $ex^int p(x) mathrmdx$ which allows us to "undo the derivative of a product" on the left-hand side. In terms of a general first-order linear differential equation, this looks like
beginalign
doty + p(x)y &= q(x)
\[0.5em]
ex^int p(x) mathrmdxdoty + ex^int p(x) mathrmdxp(x)y &= ex^int p(x) mathrmdxq(x)
\[0.5em]
fracmathrmdmathrmdxleft(ex^int p(x) mathrmdxyright) &= ex^int p(x) mathrmdxq(x)
,.
endalign
For our particular differential equation though, after we remember that $int ln(x),mathrmdx = xln(x)-x$, this integrating factor is
$$
ex^int ln(x) mathrmdx
=ex^xln(x)-x
=ex^ln(x^x)ex^-x
=x^xex^-x
,,
colormaroonLARGE^star
$$
and our differential equation becomes
beginalign
doty + lnleft(xright)y &= x^-x
\[0.5em]
ex^int ln(x) mathrmdxdoty + ex^int ln(x) mathrmdxlnleft(xright)y &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(ex^int ln(x) ,mathrmdxyright) &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= x^xex^-xx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= ex^-x
,.endalign
Then by taking the antiderivative of both sides we get
beginalign
intfracmathrmdmathrmdxleft(x^xex^-x yright) ,mathrmdx &= int ex^-x,mathrmdx
\[0.5em]
x^xex^-x y &= C-ex^-x
\[0.5em]
y &= fracC-ex^-xx^xex^-x
\[0.5em]
y &= fracCex^x-1x^x
endalign
There's no problem dividing through by $ex^-x$ since $ex^-x$ is never zero, so this is our general solution.
$colormaroonLARGE star$ An astute reader might ask at this point, shouldn't there be a constant of integration inside the exponent here? Shouldn't it be $ex^xln(x)-x+k$? That astute reader would be correct, but eventually the constant $k$ can be absorbed into the constant $C$ that appears later in the calculation. An explicit calcuation of this can be found in Paul's Lecture Notes, but after you see this once and realize that this is what happens, you can safely drop the constant of integration $k$ that should appear at this step.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
$$x^xy'+ln(x^x^x) y =1$$
$$x^xy'+x^xln x y =1$$
Observe that
$$(x^x)'=(e^ x ln x)'=x^x(x ln x)'=x^x( ln x +1)$$
Now
$$x^xy'+x^xln x y +x^xy=1+x^xy$$
$$(x^xy)'=1+x^xy$$
$$implies z'=1+z$$
Where $z=x^xy$
It's easy to solve
$$(x^xye^-x)'=e^-x$$
After integration
$$x^xye^-x=-e^-x+K$$
$$boxed y=frac Ke^x-1x^x$$
add a comment |Â
up vote
2
down vote
$$x^xy'+ln(x^x^x) y =1$$
$$x^xy'+x^xln x y =1$$
Observe that
$$(x^x)'=(e^ x ln x)'=x^x(x ln x)'=x^x( ln x +1)$$
Now
$$x^xy'+x^xln x y +x^xy=1+x^xy$$
$$(x^xy)'=1+x^xy$$
$$implies z'=1+z$$
Where $z=x^xy$
It's easy to solve
$$(x^xye^-x)'=e^-x$$
After integration
$$x^xye^-x=-e^-x+K$$
$$boxed y=frac Ke^x-1x^x$$
add a comment |Â
up vote
2
down vote
up vote
2
down vote
$$x^xy'+ln(x^x^x) y =1$$
$$x^xy'+x^xln x y =1$$
Observe that
$$(x^x)'=(e^ x ln x)'=x^x(x ln x)'=x^x( ln x +1)$$
Now
$$x^xy'+x^xln x y +x^xy=1+x^xy$$
$$(x^xy)'=1+x^xy$$
$$implies z'=1+z$$
Where $z=x^xy$
It's easy to solve
$$(x^xye^-x)'=e^-x$$
After integration
$$x^xye^-x=-e^-x+K$$
$$boxed y=frac Ke^x-1x^x$$
$$x^xy'+ln(x^x^x) y =1$$
$$x^xy'+x^xln x y =1$$
Observe that
$$(x^x)'=(e^ x ln x)'=x^x(x ln x)'=x^x( ln x +1)$$
Now
$$x^xy'+x^xln x y +x^xy=1+x^xy$$
$$(x^xy)'=1+x^xy$$
$$implies z'=1+z$$
Where $z=x^xy$
It's easy to solve
$$(x^xye^-x)'=e^-x$$
After integration
$$x^xye^-x=-e^-x+K$$
$$boxed y=frac Ke^x-1x^x$$
answered Aug 8 at 20:39
Isham
10.8k3829
10.8k3829
add a comment |Â
add a comment |Â
up vote
1
down vote
accepted
This differential equation looks linear, but let's actually write it in the standard form of a first-order linear differential equation, $doty + p(x)y = q(x) newcommandexmathrme$ before we continue, just to be sure.
beginalign
x^xdoty + lnleft(x^x^xright)y &= 1
\[0.5em]
x^xdoty + x^xlnleft(xright)y &= 1
\[0.5em]
doty + lnleft(xright)y &= x^-x
endalign
Since $x>0$, $x^x neq 0$, so dividing through by $x^x$ doesn't cause any problems. So yeah, it's linear. Nifty! Now we recall that we can solve a first-order linear differential equation by multiplying through by the integrating factor $ex^int p(x) mathrmdx$ which allows us to "undo the derivative of a product" on the left-hand side. In terms of a general first-order linear differential equation, this looks like
beginalign
doty + p(x)y &= q(x)
\[0.5em]
ex^int p(x) mathrmdxdoty + ex^int p(x) mathrmdxp(x)y &= ex^int p(x) mathrmdxq(x)
\[0.5em]
fracmathrmdmathrmdxleft(ex^int p(x) mathrmdxyright) &= ex^int p(x) mathrmdxq(x)
,.
endalign
For our particular differential equation though, after we remember that $int ln(x),mathrmdx = xln(x)-x$, this integrating factor is
$$
ex^int ln(x) mathrmdx
=ex^xln(x)-x
=ex^ln(x^x)ex^-x
=x^xex^-x
,,
colormaroonLARGE^star
$$
and our differential equation becomes
beginalign
doty + lnleft(xright)y &= x^-x
\[0.5em]
ex^int ln(x) mathrmdxdoty + ex^int ln(x) mathrmdxlnleft(xright)y &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(ex^int ln(x) ,mathrmdxyright) &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= x^xex^-xx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= ex^-x
,.endalign
Then by taking the antiderivative of both sides we get
beginalign
intfracmathrmdmathrmdxleft(x^xex^-x yright) ,mathrmdx &= int ex^-x,mathrmdx
\[0.5em]
x^xex^-x y &= C-ex^-x
\[0.5em]
y &= fracC-ex^-xx^xex^-x
\[0.5em]
y &= fracCex^x-1x^x
endalign
There's no problem dividing through by $ex^-x$ since $ex^-x$ is never zero, so this is our general solution.
$colormaroonLARGE star$ An astute reader might ask at this point, shouldn't there be a constant of integration inside the exponent here? Shouldn't it be $ex^xln(x)-x+k$? That astute reader would be correct, but eventually the constant $k$ can be absorbed into the constant $C$ that appears later in the calculation. An explicit calcuation of this can be found in Paul's Lecture Notes, but after you see this once and realize that this is what happens, you can safely drop the constant of integration $k$ that should appear at this step.
add a comment |Â
up vote
1
down vote
accepted
This differential equation looks linear, but let's actually write it in the standard form of a first-order linear differential equation, $doty + p(x)y = q(x) newcommandexmathrme$ before we continue, just to be sure.
beginalign
x^xdoty + lnleft(x^x^xright)y &= 1
\[0.5em]
x^xdoty + x^xlnleft(xright)y &= 1
\[0.5em]
doty + lnleft(xright)y &= x^-x
endalign
Since $x>0$, $x^x neq 0$, so dividing through by $x^x$ doesn't cause any problems. So yeah, it's linear. Nifty! Now we recall that we can solve a first-order linear differential equation by multiplying through by the integrating factor $ex^int p(x) mathrmdx$ which allows us to "undo the derivative of a product" on the left-hand side. In terms of a general first-order linear differential equation, this looks like
beginalign
doty + p(x)y &= q(x)
\[0.5em]
ex^int p(x) mathrmdxdoty + ex^int p(x) mathrmdxp(x)y &= ex^int p(x) mathrmdxq(x)
\[0.5em]
fracmathrmdmathrmdxleft(ex^int p(x) mathrmdxyright) &= ex^int p(x) mathrmdxq(x)
,.
endalign
For our particular differential equation though, after we remember that $int ln(x),mathrmdx = xln(x)-x$, this integrating factor is
$$
ex^int ln(x) mathrmdx
=ex^xln(x)-x
=ex^ln(x^x)ex^-x
=x^xex^-x
,,
colormaroonLARGE^star
$$
and our differential equation becomes
beginalign
doty + lnleft(xright)y &= x^-x
\[0.5em]
ex^int ln(x) mathrmdxdoty + ex^int ln(x) mathrmdxlnleft(xright)y &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(ex^int ln(x) ,mathrmdxyright) &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= x^xex^-xx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= ex^-x
,.endalign
Then by taking the antiderivative of both sides we get
beginalign
intfracmathrmdmathrmdxleft(x^xex^-x yright) ,mathrmdx &= int ex^-x,mathrmdx
\[0.5em]
x^xex^-x y &= C-ex^-x
\[0.5em]
y &= fracC-ex^-xx^xex^-x
\[0.5em]
y &= fracCex^x-1x^x
endalign
There's no problem dividing through by $ex^-x$ since $ex^-x$ is never zero, so this is our general solution.
$colormaroonLARGE star$ An astute reader might ask at this point, shouldn't there be a constant of integration inside the exponent here? Shouldn't it be $ex^xln(x)-x+k$? That astute reader would be correct, but eventually the constant $k$ can be absorbed into the constant $C$ that appears later in the calculation. An explicit calcuation of this can be found in Paul's Lecture Notes, but after you see this once and realize that this is what happens, you can safely drop the constant of integration $k$ that should appear at this step.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
This differential equation looks linear, but let's actually write it in the standard form of a first-order linear differential equation, $doty + p(x)y = q(x) newcommandexmathrme$ before we continue, just to be sure.
beginalign
x^xdoty + lnleft(x^x^xright)y &= 1
\[0.5em]
x^xdoty + x^xlnleft(xright)y &= 1
\[0.5em]
doty + lnleft(xright)y &= x^-x
endalign
Since $x>0$, $x^x neq 0$, so dividing through by $x^x$ doesn't cause any problems. So yeah, it's linear. Nifty! Now we recall that we can solve a first-order linear differential equation by multiplying through by the integrating factor $ex^int p(x) mathrmdx$ which allows us to "undo the derivative of a product" on the left-hand side. In terms of a general first-order linear differential equation, this looks like
beginalign
doty + p(x)y &= q(x)
\[0.5em]
ex^int p(x) mathrmdxdoty + ex^int p(x) mathrmdxp(x)y &= ex^int p(x) mathrmdxq(x)
\[0.5em]
fracmathrmdmathrmdxleft(ex^int p(x) mathrmdxyright) &= ex^int p(x) mathrmdxq(x)
,.
endalign
For our particular differential equation though, after we remember that $int ln(x),mathrmdx = xln(x)-x$, this integrating factor is
$$
ex^int ln(x) mathrmdx
=ex^xln(x)-x
=ex^ln(x^x)ex^-x
=x^xex^-x
,,
colormaroonLARGE^star
$$
and our differential equation becomes
beginalign
doty + lnleft(xright)y &= x^-x
\[0.5em]
ex^int ln(x) mathrmdxdoty + ex^int ln(x) mathrmdxlnleft(xright)y &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(ex^int ln(x) ,mathrmdxyright) &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= x^xex^-xx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= ex^-x
,.endalign
Then by taking the antiderivative of both sides we get
beginalign
intfracmathrmdmathrmdxleft(x^xex^-x yright) ,mathrmdx &= int ex^-x,mathrmdx
\[0.5em]
x^xex^-x y &= C-ex^-x
\[0.5em]
y &= fracC-ex^-xx^xex^-x
\[0.5em]
y &= fracCex^x-1x^x
endalign
There's no problem dividing through by $ex^-x$ since $ex^-x$ is never zero, so this is our general solution.
$colormaroonLARGE star$ An astute reader might ask at this point, shouldn't there be a constant of integration inside the exponent here? Shouldn't it be $ex^xln(x)-x+k$? That astute reader would be correct, but eventually the constant $k$ can be absorbed into the constant $C$ that appears later in the calculation. An explicit calcuation of this can be found in Paul's Lecture Notes, but after you see this once and realize that this is what happens, you can safely drop the constant of integration $k$ that should appear at this step.
This differential equation looks linear, but let's actually write it in the standard form of a first-order linear differential equation, $doty + p(x)y = q(x) newcommandexmathrme$ before we continue, just to be sure.
beginalign
x^xdoty + lnleft(x^x^xright)y &= 1
\[0.5em]
x^xdoty + x^xlnleft(xright)y &= 1
\[0.5em]
doty + lnleft(xright)y &= x^-x
endalign
Since $x>0$, $x^x neq 0$, so dividing through by $x^x$ doesn't cause any problems. So yeah, it's linear. Nifty! Now we recall that we can solve a first-order linear differential equation by multiplying through by the integrating factor $ex^int p(x) mathrmdx$ which allows us to "undo the derivative of a product" on the left-hand side. In terms of a general first-order linear differential equation, this looks like
beginalign
doty + p(x)y &= q(x)
\[0.5em]
ex^int p(x) mathrmdxdoty + ex^int p(x) mathrmdxp(x)y &= ex^int p(x) mathrmdxq(x)
\[0.5em]
fracmathrmdmathrmdxleft(ex^int p(x) mathrmdxyright) &= ex^int p(x) mathrmdxq(x)
,.
endalign
For our particular differential equation though, after we remember that $int ln(x),mathrmdx = xln(x)-x$, this integrating factor is
$$
ex^int ln(x) mathrmdx
=ex^xln(x)-x
=ex^ln(x^x)ex^-x
=x^xex^-x
,,
colormaroonLARGE^star
$$
and our differential equation becomes
beginalign
doty + lnleft(xright)y &= x^-x
\[0.5em]
ex^int ln(x) mathrmdxdoty + ex^int ln(x) mathrmdxlnleft(xright)y &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(ex^int ln(x) ,mathrmdxyright) &= ex^int ln(x) mathrmdxx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= x^xex^-xx^-x
\[0.5em]
fracmathrmdmathrmdxleft(x^xex^-x yright) &= ex^-x
,.endalign
Then by taking the antiderivative of both sides we get
beginalign
intfracmathrmdmathrmdxleft(x^xex^-x yright) ,mathrmdx &= int ex^-x,mathrmdx
\[0.5em]
x^xex^-x y &= C-ex^-x
\[0.5em]
y &= fracC-ex^-xx^xex^-x
\[0.5em]
y &= fracCex^x-1x^x
endalign
There's no problem dividing through by $ex^-x$ since $ex^-x$ is never zero, so this is our general solution.
$colormaroonLARGE star$ An astute reader might ask at this point, shouldn't there be a constant of integration inside the exponent here? Shouldn't it be $ex^xln(x)-x+k$? That astute reader would be correct, but eventually the constant $k$ can be absorbed into the constant $C$ that appears later in the calculation. An explicit calcuation of this can be found in Paul's Lecture Notes, but after you see this once and realize that this is what happens, you can safely drop the constant of integration $k$ that should appear at this step.
edited Aug 8 at 17:24
answered Aug 8 at 16:52
Mike Pierce
11k93574
11k93574
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2876318%2fexercise-a-first-order-linear-differential-equation-with-xx%23new-answer', 'question_page');
);
Post as a guest
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
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
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