Group Abstract Group Abstract

Message Boards Message Boards

0
|
130 Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

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

Posted 2 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

2 Replies

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