Integrales de Linea
Integrales de Linea
E.1.-
syms x
F = sin(sinh(x));
int(F, x)
ans =
int(sin(sinh(x)), x)
If int cannot compute a closed form of an indefinite integral, try to approximate the
expression around some point using taylor, and then compute the integral. For
example, approximate the expression around x = 0:
syms x
F = int(cos(x)/sqrt(1 + x^2), x, 0, 10)
F =
int(cos(x)/(x^2 + 1)^(1/2), x, 0, 10)
If int cannot compute a closed form of a definite integral, try approximating that
integral numerically using vpa. For example, approximate F with five significant digits:
vpa(F, 5)
ans =
0.37571
E.3.-
syms x
int(-2*x/(1 + x^2)^2)
ans =
1/(x^2 + 1)
Find indefinite integrals of this multivariate expression with respect to the variables x
and z:
syms x z
int(x/(1 + z^2), x)
int(x/(1 + z^2), z)
ans =
x^2/(2*(z^2 + 1))
ans =
x*atan(z)
If you do not specify the integration variable, int uses the variable returned by symvar.
For this expression, symvar returns x:
symvar(x/(1 + z^2), 1)
ans =
x