Sol. f(x) is continuous ∀x∈R.
Hence, it must be continuous at x=1,3.
f(1−)=limx→1ax(x−1)+b=b
f(1+)=limx→1(x−1)=0
Now f(1−)=f(1+)=f(1) (for continuity at x=1 )
⇒b=0
f(3−)=limx→3(x−1)=2
f(3+)=limx→3(px2+qx+2)=9p+3q+2
Now f(3−)=f(3+)=f(3) (for continuity at x=3 )
⇒9p+3q=0⋯(1)
f′(x)=⎧⎪⎨⎪⎩2ax−a,x<11,1≤x≤32px+q,x>3
Now given that f′(1) does not exist
⇒f′(1+)≠f′(1−)
⇒1≠2a−a
⇒a≠1
Also given that f′(3) exists.
⇒f′(3−)=f′(3+)
⇒1=6p+q⋯(2)
Solving equations (1) and (2) for p and q, we get p=1/3,q=−1.
Thus p+q3+1=1