Integrate z where z=xy

2 次查看(过去 30 天)
How to integerate z where z=xy which i will be substituting separately
after integrating i need the answer back to xy not z
eg: integral(-2/z) should be 1/x^2*y^2 where z=x*y

采纳的回答

John D'Errico
John D'Errico 2021-3-16
Why does this seem obvious? Yet, the result that you seem to want is incorrect.
syms z x y
zint = int(-2/z,z)
zint = 
subs(zint,z,x*y)
ans = 
And that is because the integral of -2/z is NOT 1/z^2. I think you may be confusing integration and differentiation.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by