Simple differentiation mistake?

3 replies · 2K views · last reply
influx
Messages
162
Reaction score
1
Slide with equations for stagnation point in Cartesian coordinates: psi(x,y) = U_inf y + m tan^-1(y/x), giving u = U_inf + m x/(x^2+y^2) and v = -dpsi/dx = m y/(x^2+y^2), boxed results y = 0 and stagnation point at (-m/U_inf, 0).


The working out states that v = (m/r)sin(theta) but surely this should be (-m/r)sin(theta) ? I mean there is a negative in front of the ∂Ψ/dx ?

Also, if v=0 then 0 = (m/r)sin(theta), therefore sin(theta) = 0? And from this we know cos(theta) = 1 or -1 which would mean u = Uinfinity + (m/r) or Uinfinity - (m/r) as opposed to u = Uinfinity + (m/x) as they got?
 
influx said:
The working out states that v = (m/r)sin(theta) but surely this should be (-m/r)sin(theta) ? I mean there is a negative in front of the ∂Ψ/dx ?
When you take the derivative of ##\arctan (y/x)## with respect to ##x##, you also get a ##-1## factor as ##x## is in the denominator. That cancels the first minus sign.

influx said:
Also, if v=0 then 0 = (m/r)sin(theta), therefore sin(theta) = 0? And from this we know cos(theta) = 1 or -1 which would mean u = Uinfinity + (m/r) or Uinfinity - (m/r) as opposed to u = Uinfinity + (m/x) as they got?
##x=r\cos \theta##, so ##u=U_\infty +\frac{m}{r}\cos \theta## becomes ##u=U_\infty+\frac{m}{x}## (the ##\cos \theta## cancels out, so it doesn't matter if it is +1 or -1).
 
Last edited:
influx said:
Slide showing stagnation point derivation in Cartesian coordinates: psi(x,y) = U_inf y + m arctan(y/x), velocity components u and v derived as equations (3) and (4), concluding stagnation point at (-m/U_inf, 0).


The working out states that v = (m/r)sin(theta) but surely this should be (-m/r)sin(theta) ? I mean there is a negative in front of the ∂Ψ/dx ?

Also, if v=0 then 0 = (m/r)sin(theta), therefore sin(theta) = 0? And from this we know cos(theta) = 1 or -1 which would mean u = Uinfinity + (m/r) or Uinfinity - (m/r) as opposed to u = Uinfinity + (m/x) as they got?
I think it has to do with the way the arctan is used here. There are two arguments, x and y, instead of one. There is a special rule for the derivative of tan-1(y/x), as shown in this article:

https://en.wikipedia.org/wiki/Differentiation_rules#Derivatives_of_trigonometric_functions
 
Samy_A said:
##x=r\cos \theta##, so ##u=U_\infty +\frac{m}{r}\cos \theta## becomes ##u=U_\infty+\frac{m}{x}## (the ##\cos \theta## cancels out, so it doesn't matter if it is +1 or -1).
Oops, the stated reason is wrong.

Actually, ##u=U_\infty +\frac{m}{r}\cos \theta=U_\infty +\frac{m}{x}\cos² \theta##, and as ##\cos \theta =\pm 1##, we get ##u=U_\infty+\frac{m}{x}##.

Sorry for the mistake.