Q.
If ' R ' is the least value of 'a' such that the function f(x)=x2+ax+1 is increasing on [1,2] and ' S' is the greatest value of 'a' such that the function f(x)=x2+ax+1 is decreasing on [1,2], then the value of ∣R−S∣ is ___
f(x)=x2+ax+1 f′(x)=2x+a
when f(x) is increasing on [1,2] 2x+a≥0∀x∈[1,2] a≥−2x∀x∈[1,2] R=−4
when f(x) is decreasing on [1,2] 2x+a≤0∀x∈[1,2] a≤−2∀x∈[1,2] S=−2 ∣R−S∣=∣−4+2∣=2