For continuity at x = 2,
Left hand limit
f (2 – 0) = limh→0 f(2 – A)
= limh→0 [(2 – h)2 + m(2 – h) + n]
= (2 – 0)2 + m(2 – 0) + n
= 4 + 2m + n
Right hand limit
f(2 + 0) = limh→0 f(2 + h)
= limh→0 [4(2 + h) – 1 ]
= 4(2 + 0) – 1
= 8 – 1
= 7
At x = 2, value of f (x),
f(2) = 4 × 2 – 1 = 8 – 1 = 7
Given function is continuous at x = 2, then
f(2 – 0) = f(2 + 0) = f(2)
4 + 2m + n = 7 = 7
⇒ 4 + 2m + n = 7
⇒ 2m + n = 7 – 4
or
2m + n = 3
For continuity at x = 4,
Left hand limit
f (4 – 0) = limh→0 f (4-h)
= limh→0 [4(4 – h) – 1]
= 4 (4 – 0) – 1
= 16 – 1
= 15
Right hand limit
f (4 + 0) = limh→0 f (4 – h)
= limh→0 [m(4 + h)2 + 17n]
= m (4 + 0)2 + 17n
= 16m + 17n
At x = 4, value of function
f(4) = 4 × 4 – 1 = 16 – 1 = 15
Given function is continuous at x = 4,
f (4 – 0) = f (4 + 0) = f (4)
15 = 16m + 17n = 15
⇒ 16m + 17n = 15 ……(ii)
Putting n = 3 – 2m from (i) in
16m + 17(3 – 2m) = 15
16m + 51 – 34m = 15
– 18m = 15 – 51
– 18m = – 36
m = 2
From equation (i),
2 × 2 + n = 3
n = 3 – 4
Hence, m = 2,n = – 1.