# Answer on Quantitative Methods Question for ahmed faraz

Question #8498

let f(x)=cosx

xo=0,x1=.6,x2=.9

find linear and quadratic interpolation

xo=0,x1=.6,x2=.9

find linear and quadratic interpolation

Expert's answer

y0=1

y1=0.8253

y2=0.6216

ai=(0.8253-1)/(0.6-0)=-0.2912

bi=1+0.2912*0=1

y=-0.2912x+1--- linear interpolation

(0^2)*ai+0*bi+ci=1

(0.6^2)*ai^2+0.6*bi+ci=0.8253

(0.9^2)*ai^2+0.9*bi+ci=0.6216

ci=1

(0.6^2)*ai+0.6bi=-0.1747

(0.9^2)*ai+0.9*bi=-0.3784

ai=-(0.6bi+0.1747)/(0.6^2)

-(0.9^2)*(0.6bi+0.1747)/(0.6^2)+0.9*bi=-0.3784

-1.35bi-0.3931=-0.3784

bi=-0,0109

ai=-(0.6bi+0.1747)/0.36=-0.4672

y=-0.4672*x^2-0,0109*x+1

y1=0.8253

y2=0.6216

ai=(0.8253-1)/(0.6-0)=-0.2912

bi=1+0.2912*0=1

y=-0.2912x+1--- linear interpolation

(0^2)*ai+0*bi+ci=1

(0.6^2)*ai^2+0.6*bi+ci=0.8253

(0.9^2)*ai^2+0.9*bi+ci=0.6216

ci=1

(0.6^2)*ai+0.6bi=-0.1747

(0.9^2)*ai+0.9*bi=-0.3784

ai=-(0.6bi+0.1747)/(0.6^2)

-(0.9^2)*(0.6bi+0.1747)/(0.6^2)+0.9*bi=-0.3784

-1.35bi-0.3931=-0.3784

bi=-0,0109

ai=-(0.6bi+0.1747)/0.36=-0.4672

y=-0.4672*x^2-0,0109*x+1

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment