Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: How to replace some variables and how to solve a differential
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Narasimham

Posts: 350
Registered: 9/16/06
Re: How to replace some variables and how to solve a differential
Posted: Mar 2, 2014 1:48 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> Dear all,
>
> I am really new to Mathematica.
>
> I have two questions, please.
>
> 1. How to replace a variable in a function?
>
> I have defined:
>
> f[r_] := Log[((2*\[Lambda])/(\[Kappa]*r*
> Cos[\[Lambda]*Log[(r/RM)]]))^2]


Replace r with Exp[u]/Kappa and then it is now f[u_]

The above does not give zero for constant numerical values assumed for RM and lambda, so may not be correct. The solution is in terms of Log and Tanh functions using DSolve.

> RM, lambda >0
>
> I want to replace r with u given by
>
> u=log[Kappa*r]
>
> I did it by hand but whant to check my result.
>
>
> 2. How to check or solve the differential equation:


It is better to use NDSolve at first numerically check for zero right hand side of equation, then DSolve analytically next.
>
> f"[u]=0.5*exp[2*u+f[u]]
>
> It would be sufficient for me to insert f[u] and see
> if both sides are
> the same. So far I failed.
>
> Thank you for your help.
>
> Regards
> Blue
>





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.