Q:

Using the symbolic function int, find the indefinite integral of the function 4x2 + 3, and the definite integral of this function from x = -1 to x = 3. Also, approximate this using the trapz function

0

Using the symbolic function int, find the indefinite integral of the function 4x2 + 3, and the definite integral of this function from x = -1 to x = 3. Also, approximate this using the trapz function. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Ch14Ex37.m

% Find integrals

x = sym('x');

f = 4*x^2 + 3;

%Indefinite integral

int(f)

%Definite integral from x = -1 to x = 3

int(f,-1,3)

%Approximation

f = sym2poly(f);

x = -1:0.1:3;

y = polyval(f,x);

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now