Step 1: Form the equations
Given: f(x)=x3−px2+14x–q
A polynomial f(x) is exactly divisible by (x-a) if and only if f(a)=0.
f(x) is exactly divisible by (x-1)
∴f(1)=0
(1)3−p(1)2+14(1)−q=0
1−p+14−q=0
p=15−q (i)
Also, f(x) is exactly divisible by f(x-2).
∴f(2)=0
(2)3−p(2)2+14(2)−q=0
8−4p+28−q=0
4p+q=36 (ii)
Step 2: Find the value of p and q
Put the value of p in equation (ii)
4(15−q)+q=36
60−4q+q=36
3q=24
q=8
Put the value of q in equation ()
p=15−8
p=7
Hence, p=7 and q=8.