Group Abstract Group Abstract

Message Boards Message Boards

0
|
348 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Substitute x in f[x] by a function. Fail to find out how to do that

Posted 23 days ago

Dear all,
Despite many a Google search I am unable to find the way for the following type of substitution. In a differential equation for the function u the independent variable is x. The variable x is to replaced by y^2. When I do it by hand, then from y=x^2 the first order derivative is performed like du/dx=du/dy*2x because later the x comes to be be multiplied by x from the diff.eqn. so that it is replaced by y.

In Mathematica I assume that the substitution has to be y=Sqrt[x]. Now if the expression eqn describes the diff.eqn. as a sum of terms like D[u[x],x] , second order derivative and u[x], I am unable to find the way to perform the substitution from x --> y in eqn

Could anyone hint me as how this is done?

Best regards,
ChG

3 Replies

Thank you for the suggestions. DSolveChangeVariables works in my old 13.1 version. It does, in one step, all what I try to follow step-by-step to get he radial equation for a 3D harmonic QM oscillator.

Gorni's answer is in line with the stp-by-step solution I asked for.

Best regards, ChG

Does this do what you need?

u[x] + 2 u'[x] + 3 u''[x]
% /. u -> Function[x, v[Sqrt[x]]]
% /. x -> y^2
% // PowerExpand
POSTED BY: Gianluca Gorni

Have you seen DSolveChangeVariables ?

POSTED BY: David Trimas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard