%% Indefinite Integrals of Multivariate Function
% Define a multivariate function with variables x and z.

syms x z
f(x,z) = x/(1+z^2);

% Find the indefinite integrals of the multivariate expression with respect to the variables x and z.

Fx = int(f,x)
Fz = int(f,z)

% If you do not specify the integration variable, then int uses the first variable returned by symvar as the integration variable.

var = symvar(f,1)
F = int(f)

%
% Copyright 2006-2019 The MathWorks, Inc.