You are on page 1of 3

2y-a1-bx-ex-0

-y-an bx-«x|-12)
0
cb
>22(y-a- bx-x)(-x) =0
xy-ax-bx* -©x'=0
xy-ax+bx+c*-13)
=0

2(y-a-bx-)(-x*)-o
x y - a * - b x - < ' =0

=y-a+b+x-14
To find a, b, c solve equations (2), 13) and (4) and
Put in (1).
Let, y = a + bx be straight line,

x xy

1.8 1.8 x=10, y =16.9,


2 3.3 6.6 4 xy 47.1, x 3 0
33 4.5 13.5 9

44 6.3 25.2|16
16.9 6a +10b
47.1 10a +30b
Solving. a =0.72, b =1.33
y 0.72+1.33x|
Ex. 3: Fit the equation of form V A+ Bx, where
=
V =logy.
x:1 2 3 4 5 6 7 8
y:1 1.2 1.8 2.5 3.6 4.7 6.6 9.1

11.4 Chapter 1
Secondly set, B =
logb, A =
loga, then find a, b and state the type
of equation you get.
(8.U, M-2005)
Solution:

x y V= logy x XV

1 0
Normal equations are
2 1.2 0.0791 4 0.1582 VV= An+Bx
3 1.8 0.2552 9 0.7656
xV-Ax+Bx --)
4 2.5 0.3979 16 1.5916
5 3.6 0.5563 25 2.78
6 4.7| 0.6720 36 4.03
7 6.6 0.8195 49 5.73
8 8 9.1 0.9590 64 7.67
X 36, V=3.74
=

204, xV= 22.72


:. Eq. ()
3.74 8A+36B
22.72 36A +204B
A=-0.1625, B =0.14
I , A =loga, B = logb

loga -0.1625a =0.85 =

logb 0.14~b=1.155
Now, V= A+Bx
logy loga + logb x =

logy loga + logb*


=

=y-ab
Ex. 4: Fit a curve of the form y = ab* to following data using method of

least squares.
3 4 5
X: 2
181.90 418.36 962.23
V: 34.385 79.0856 (S.U., M-2007)
ab° > 10gy =
1oga+ Xiogb
Solution: y =

Curve Fitting 11.5


y =
A +Bx, Y =
logy, A =
loga, B =
logb
Normal equations, Y = An +B2x
xY AXx +Bx

yy-logy logy x2 | xY

2 34.385 1.5363 4 3.0726


3 74.085s1.8980 9 5.694
4 181.90 2.25983 16 9.03932
5 418.36 2.62155 25 13.10775

6 962.23 2.98327 36 17.8996

Zx=20. xY=48.8132
Y=11.29895, x =90
5A+2OB =11.29895 A = 0.81282a = 6.5

20A +90B=48.8132 B 0.36174b =2.3

y =(6.5) (2.3)*
second degree parabola to the following data and estimatea
Ex. 5: Fit a

y if x 6.
=

1 2 3 4 5
X
(s.U., M-2006)
y: 25 28 33 39 46
Solution: Let, y =a +bx + Cx be second degree parabola.

Values of x, x°, x" are bigger » Let u =X- x

u = X -3

X y u -3 u us u uy uy
25 -2 4 -816-50 100

28 1 -1 -28 28
2
O 0 0
3 33
39 39 39
4
5 46 2 4 8 16 92 184

Chapter 11
11.6

You might also like