MATLAB: How integral is calculated with variable interval

integral

I need to solve problem that shown in fig.
I have the following code:
clear all
clc
syms s x
g(x)=exp(-x^4);
f =tan(s^2 + exp(-s));
fnew =int(f,0,x);
final_function =int( fnew * g(x), 0,1)

Best Answer

I am not sure what the question is?
That function has no closed form representation, so you will need to evaluate it numerically.
double(final_function) will perform a numeric integration.