if f(t)=1/t find the average rate of f with respect to t over the intervals from t=2 to t=3

Asked by karthik kale

karthik kale (view profile)

on 3 Aug 2019
Latest activity Commented on by Navya Seelam

on 6 Aug 2019
syms t
f(t)=1/t;
t=2;
t=3;
f(3)-f(2)/3-2
disp(t)

Geoff Hayes

Geoff Hayes (view profile)

on 3 Aug 2019
karthik - what exactly is your question? Why do you have this line of code
f(3)-f(2)/3-2
? Is this supposed to be your average (though isn't being assigned to anything)? Be careful here...you may want to add some brackets around the numerator and denominator...
KALYAN ACHARJYA

KALYAN ACHARJYA (view profile)

on 3 Aug 2019
Is this?
syms t
f(t)=1/t;
t=2;
t=3;
ft_averg=(f(3)-f(2))/(3-2);
disp(ft_averg);

Tags

Answer by Navya Seelam

Navya Seelam (view profile)

on 6 Aug 2019
Edited by Navya Seelam

Navya Seelam (view profile)

on 6 Aug 2019

Hi,
Do you want to find average rate or average? Method to find both is given below
syms t
f=@(t) 1./t;
tmin=2;
tmax=3;
average_rate=(f(3)-f(2))/(tmax-tmin) % average rate of f(t) with respect to t
average=integral(f,tmin,tmax)/(tmax-tmin) % average of f(t)