clear all; close all;

% MATLAB INTEGRATION EXAMPLES

syms x


% MATLAB can do Integration by Parts
f = x*cos(x);
int_f = int(f)

% MATLAB can do Integration by Substitution
f = (x+4)^5;
int_f = int(f)

f = 2*x*sqrt(1 + x^2);
int_f = int(f)

% Double Integration
syms y

f = exp(2*x+3*y);
int_f =int(int(f,x),y)






