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

• To: mathgroup at smc.vnet.net
• Subject: [mg132375] Re: How to replace some variables and how to solve a differential
• From: Narasimham <mathma18 at gmail.com>
• Date: Sun, 2 Mar 2014 01:05:52 -0500 (EST)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• Delivered-to: l-mathgroup@wolfram.com
• Delivered-to: mathgroup-outx@smc.vnet.net
• Delivered-to: mathgroup-newsendx@smc.vnet.net

```> 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
>

```

• Prev by Date: Re: can we use ListVectorPlot to plot arrows? (tail at point, head at displacement)
• Next by Date: Re: Some linear constraints seem to be ignored in function
• Previous by thread: Re: can we use ListVectorPlot to plot arrows? (tail at point, head at displacement)
• Next by thread: Bug in Homogeneous Solution of Differential equation?