Concerning the origin of four terms in DSolve's hyperbolic solution to an ODE The Next CEO of Stack OverflowSymbolic integration of a indexed product term?What should I learn from DSolve working better with a named constant than a number in this case?Solution of Coupled second-order ODEs and plot the diagramWhy does the Part::partw error appear when using DSolve?DSolve returns a Solve expressionHow to use DEigensystem with periodic boundary conditions on the derivative?Why does the DSolve solution to the Cauchy-Euler differential equation not match the analytical solution?why Mathematica gives zero as eigenvalue for $y''+lambda y=0$ for these boundary conditions?Oversimplify of products of square roots in DSolve solutionExtra constant in solution of ODE using DSolve
MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs
What does "Its cash flow is deeply negative" mean?
Any way to transfer all permissions from one role to another?
How easy is it to start Magic from scratch?
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
Are there languages with no euphemisms?
What does this shorthand mean?
How to Reset Passwords on Multiple Websites Easily?
WOW air has ceased operation, can I get my tickets refunded?
What can we do to stop prior company from asking us questions?
Opposite of a diet
Too much space between section and text in a twocolumn document
Does it take more energy to get to Venus or to Mars?
Anatomically Correct Mesopelagic Aves
What happens if you roll doubles 3 times then land on "Go to jail?"
How do scammers retract money, while you can’t?
Only print output after finding pattern
Text adventure game code
Customer Requests (Sometimes) Drive Me Bonkers!
How can I open an app using Terminal?
How do I construct this japanese bowl?
Horror movie/show or scene where a horse creature opens its mouth really wide and devours a man in a stables
% symbol leads to superlong (forever?) compilations
Is it okay to store user locations?
Concerning the origin of four terms in DSolve's hyperbolic solution to an ODE
The Next CEO of Stack OverflowSymbolic integration of a indexed product term?What should I learn from DSolve working better with a named constant than a number in this case?Solution of Coupled second-order ODEs and plot the diagramWhy does the Part::partw error appear when using DSolve?DSolve returns a Solve expressionHow to use DEigensystem with periodic boundary conditions on the derivative?Why does the DSolve solution to the Cauchy-Euler differential equation not match the analytical solution?why Mathematica gives zero as eigenvalue for $y''+lambda y=0$ for these boundary conditions?Oversimplify of products of square roots in DSolve solutionExtra constant in solution of ODE using DSolve
$begingroup$
Typing
DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y]
where $k$ and $G_y$ are constants gives
$$leftleftg(y)to C_1 expleft(frack ysqrtG_yright)+C_2 expleft(-frack ysqrtG_yright)rightright$$
This anwer can be expressed in terms of hyperbolic functions
$$g(y)=C_1coshleft(frack ysqrtG_yright)+C_2sinhleft(frack ysqrtG_yright)$$
where $C_1$ and $C_2$ are not technically the same as the constants for the exponential form but for the purposes of this question it doesn't matter. When I type ExpToTrig[DSolve[ g''[y] - k^2/Gy g[y] == 0, g[y], y]] I get
$$leftleftg(y)to C_1 sinh left(frack ysqrtG_yright)-C_2 sinh left(frack ysqrtG_yright)+C_1 cosh left(frack ysqrtG_yright)+C_2 cosh left(frack ysqrtG_yright)rightright$$
How come Mathematica creates four terms instead of two? Doesn't this make finding solutions more difficult?
differential-equations calculus-and-analysis
$endgroup$
add a comment |
$begingroup$
Typing
DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y]
where $k$ and $G_y$ are constants gives
$$leftleftg(y)to C_1 expleft(frack ysqrtG_yright)+C_2 expleft(-frack ysqrtG_yright)rightright$$
This anwer can be expressed in terms of hyperbolic functions
$$g(y)=C_1coshleft(frack ysqrtG_yright)+C_2sinhleft(frack ysqrtG_yright)$$
where $C_1$ and $C_2$ are not technically the same as the constants for the exponential form but for the purposes of this question it doesn't matter. When I type ExpToTrig[DSolve[ g''[y] - k^2/Gy g[y] == 0, g[y], y]] I get
$$leftleftg(y)to C_1 sinh left(frack ysqrtG_yright)-C_2 sinh left(frack ysqrtG_yright)+C_1 cosh left(frack ysqrtG_yright)+C_2 cosh left(frack ysqrtG_yright)rightright$$
How come Mathematica creates four terms instead of two? Doesn't this make finding solutions more difficult?
differential-equations calculus-and-analysis
$endgroup$
1
$begingroup$
Mathematica does not know that C1 and C2 are arbitrary constants, but you do, and you can write C1*Sinh+C2*Cosh. There is no mistake here.
$endgroup$
– Vsevolod A.
Mar 18 at 7:37
$begingroup$
You have a type in your M code, you typedG_yforGy
$endgroup$
– Nasser
Mar 18 at 7:47
$begingroup$
@Nasser corrected
$endgroup$
– enea19
Mar 18 at 8:47
add a comment |
$begingroup$
Typing
DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y]
where $k$ and $G_y$ are constants gives
$$leftleftg(y)to C_1 expleft(frack ysqrtG_yright)+C_2 expleft(-frack ysqrtG_yright)rightright$$
This anwer can be expressed in terms of hyperbolic functions
$$g(y)=C_1coshleft(frack ysqrtG_yright)+C_2sinhleft(frack ysqrtG_yright)$$
where $C_1$ and $C_2$ are not technically the same as the constants for the exponential form but for the purposes of this question it doesn't matter. When I type ExpToTrig[DSolve[ g''[y] - k^2/Gy g[y] == 0, g[y], y]] I get
$$leftleftg(y)to C_1 sinh left(frack ysqrtG_yright)-C_2 sinh left(frack ysqrtG_yright)+C_1 cosh left(frack ysqrtG_yright)+C_2 cosh left(frack ysqrtG_yright)rightright$$
How come Mathematica creates four terms instead of two? Doesn't this make finding solutions more difficult?
differential-equations calculus-and-analysis
$endgroup$
Typing
DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y]
where $k$ and $G_y$ are constants gives
$$leftleftg(y)to C_1 expleft(frack ysqrtG_yright)+C_2 expleft(-frack ysqrtG_yright)rightright$$
This anwer can be expressed in terms of hyperbolic functions
$$g(y)=C_1coshleft(frack ysqrtG_yright)+C_2sinhleft(frack ysqrtG_yright)$$
where $C_1$ and $C_2$ are not technically the same as the constants for the exponential form but for the purposes of this question it doesn't matter. When I type ExpToTrig[DSolve[ g''[y] - k^2/Gy g[y] == 0, g[y], y]] I get
$$leftleftg(y)to C_1 sinh left(frack ysqrtG_yright)-C_2 sinh left(frack ysqrtG_yright)+C_1 cosh left(frack ysqrtG_yright)+C_2 cosh left(frack ysqrtG_yright)rightright$$
How come Mathematica creates four terms instead of two? Doesn't this make finding solutions more difficult?
differential-equations calculus-and-analysis
differential-equations calculus-and-analysis
edited Mar 18 at 9:56
m_goldberg
87.9k872198
87.9k872198
asked Mar 18 at 7:11
enea19enea19
877
877
1
$begingroup$
Mathematica does not know that C1 and C2 are arbitrary constants, but you do, and you can write C1*Sinh+C2*Cosh. There is no mistake here.
$endgroup$
– Vsevolod A.
Mar 18 at 7:37
$begingroup$
You have a type in your M code, you typedG_yforGy
$endgroup$
– Nasser
Mar 18 at 7:47
$begingroup$
@Nasser corrected
$endgroup$
– enea19
Mar 18 at 8:47
add a comment |
1
$begingroup$
Mathematica does not know that C1 and C2 are arbitrary constants, but you do, and you can write C1*Sinh+C2*Cosh. There is no mistake here.
$endgroup$
– Vsevolod A.
Mar 18 at 7:37
$begingroup$
You have a type in your M code, you typedG_yforGy
$endgroup$
– Nasser
Mar 18 at 7:47
$begingroup$
@Nasser corrected
$endgroup$
– enea19
Mar 18 at 8:47
1
1
$begingroup$
Mathematica does not know that C1 and C2 are arbitrary constants, but you do, and you can write C1*Sinh+C2*Cosh. There is no mistake here.
$endgroup$
– Vsevolod A.
Mar 18 at 7:37
$begingroup$
Mathematica does not know that C1 and C2 are arbitrary constants, but you do, and you can write C1*Sinh+C2*Cosh. There is no mistake here.
$endgroup$
– Vsevolod A.
Mar 18 at 7:37
$begingroup$
You have a type in your M code, you typed
G_y for Gy$endgroup$
– Nasser
Mar 18 at 7:47
$begingroup$
You have a type in your M code, you typed
G_y for Gy$endgroup$
– Nasser
Mar 18 at 7:47
$begingroup$
@Nasser corrected
$endgroup$
– enea19
Mar 18 at 8:47
$begingroup$
@Nasser corrected
$endgroup$
– enea19
Mar 18 at 8:47
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Mathematica always did this, and I do not know of an option or assumption to avoid this. But I always did something like this for this case
ClearAll[g, y, k, Gy];
sol = DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y];
sol = Simplify[ExpToTrig[sol]];
sol /. C[1] + C[2] -> C[3], C[1] - C[2] -> C[4]

btw, Maple also does similar thing here.
ode:=diff(g(y),y$2)-k^2/Gy*g(y)=0;
sol:=dsolve(ode,g(y));
convert(sol,trig);
simplify(%);

Sometimes you have to manipulate the CAS output a little.
$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: "387"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
,
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%2fmathematica.stackexchange.com%2fquestions%2f193473%2fconcerning-the-origin-of-four-terms-in-dsolves-hyperbolic-solution-to-an-ode%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
$begingroup$
Mathematica always did this, and I do not know of an option or assumption to avoid this. But I always did something like this for this case
ClearAll[g, y, k, Gy];
sol = DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y];
sol = Simplify[ExpToTrig[sol]];
sol /. C[1] + C[2] -> C[3], C[1] - C[2] -> C[4]

btw, Maple also does similar thing here.
ode:=diff(g(y),y$2)-k^2/Gy*g(y)=0;
sol:=dsolve(ode,g(y));
convert(sol,trig);
simplify(%);

Sometimes you have to manipulate the CAS output a little.
$endgroup$
add a comment |
$begingroup$
Mathematica always did this, and I do not know of an option or assumption to avoid this. But I always did something like this for this case
ClearAll[g, y, k, Gy];
sol = DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y];
sol = Simplify[ExpToTrig[sol]];
sol /. C[1] + C[2] -> C[3], C[1] - C[2] -> C[4]

btw, Maple also does similar thing here.
ode:=diff(g(y),y$2)-k^2/Gy*g(y)=0;
sol:=dsolve(ode,g(y));
convert(sol,trig);
simplify(%);

Sometimes you have to manipulate the CAS output a little.
$endgroup$
add a comment |
$begingroup$
Mathematica always did this, and I do not know of an option or assumption to avoid this. But I always did something like this for this case
ClearAll[g, y, k, Gy];
sol = DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y];
sol = Simplify[ExpToTrig[sol]];
sol /. C[1] + C[2] -> C[3], C[1] - C[2] -> C[4]

btw, Maple also does similar thing here.
ode:=diff(g(y),y$2)-k^2/Gy*g(y)=0;
sol:=dsolve(ode,g(y));
convert(sol,trig);
simplify(%);

Sometimes you have to manipulate the CAS output a little.
$endgroup$
Mathematica always did this, and I do not know of an option or assumption to avoid this. But I always did something like this for this case
ClearAll[g, y, k, Gy];
sol = DSolve[g''[y] - k^2/Gy g[y] == 0, g[y], y];
sol = Simplify[ExpToTrig[sol]];
sol /. C[1] + C[2] -> C[3], C[1] - C[2] -> C[4]

btw, Maple also does similar thing here.
ode:=diff(g(y),y$2)-k^2/Gy*g(y)=0;
sol:=dsolve(ode,g(y));
convert(sol,trig);
simplify(%);

Sometimes you have to manipulate the CAS output a little.
edited Mar 18 at 7:57
answered Mar 18 at 7:46
NasserNasser
58.6k489206
58.6k489206
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica 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%2fmathematica.stackexchange.com%2fquestions%2f193473%2fconcerning-the-origin-of-four-terms-in-dsolves-hyperbolic-solution-to-an-ode%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
$begingroup$
Mathematica does not know that C1 and C2 are arbitrary constants, but you do, and you can write C1*Sinh+C2*Cosh. There is no mistake here.
$endgroup$
– Vsevolod A.
Mar 18 at 7:37
$begingroup$
You have a type in your M code, you typed
G_yforGy$endgroup$
– Nasser
Mar 18 at 7:47
$begingroup$
@Nasser corrected
$endgroup$
– enea19
Mar 18 at 8:47