Maple Solving Differentiating a Streamfunction with Maple Help

AI Thread Summary
The discussion revolves around differentiating a complex streamfunction to derive x and y velocities. The user successfully computed the derivative with respect to x but encountered confusion with the derivative with respect to y, particularly regarding a term that introduced a new variable, D(k)(y-vt). The confusion stemmed from Maple's interpretation of the expression, which applied the chain rule and treated k as a function of the argument (y-vt). Clarification was provided that Maple requires explicit multiplication to avoid misinterpretation, resolving the user's concerns about the differentiation process.
neilgregge
Messages
3
Reaction score
0
Hello,

I was set the problem to differentiate the following streamfunction in order to find its x and y velocities:

psi=psinought*tanh(y/d)+mu*exp(-((x-L)^2+y^2)/2*sigma^2)*cos(k(y-vt)).

Being the lazy sort I am, I called in Maple.

dpsi/dx worked out perfectly (in that I got the same answer by hand)

dpsi/dy, however, threw up the following:

dpsi/dy=(psinought/d)*(1-tanh(y/d)^2)-(mu*y/sigma^2)*exp(...)*cos(...)-mu*exp(...)*sin(...)*D(k)(y-vt)


the last term D(k)... makes no sense to me. How can differentiating introduce a new variable?

I know I'm probably being a moron, and I'm certainly no expert in using maple, but anyone who can shine a light in my general direction would be muchly appreciated.
 
Physics news on Phys.org
neilgregge said:
*cos(k(y-vt))

Should be k*(y-v*t). Maple has to be told explicitly about multiplication.

Maple applied the chain rule. It interpreted the brackets as saying that k is a function evaluated at argument y-v*t.
 
That makes perfect sense. Thank you.
 

Similar threads

Back
Top