According to the statement of the problem, the antiderivative is
x−AKtan−1(AKtanx+1)+C.
Replacing x by tan−1t (because t=tanx), the same result can be rewritten in terms of t as
tan−1t−AKtan−1(AKt+1)+C.
In order for this expression to be an antiderivative, its derivative with respect to t must equal the integrand we already found, namely (1+t+t2)(1+t2)t.
We now differentiate the supposed antiderivative with respect to t. The derivative of tan−1u is 1+u2u′, so:
But A+K2t2+2Kt+1=(1+t2)(1+t+t2) is not automatically true, so we equate the derivative we just found with the required integrand and match coefficients. We therefore impose
A+K2t2+2Kt+1(A+1−K2)+2Kt=1+t+t2t.
Cross-multiplying gives
(A+1−K2+2Kt)(1+t+t2)=t(A+K2t2+2Kt+1).
Expanding the left side completely:
A+1−K2+2Kt
times
1+t+t2
yields
(A+1−K2)+(A+1−K2+2K)t+(A+1−K2+2K)t2+2Kt3.
The right side expands to
(A+1)t+2Kt2+K2t3.
Matching coefficients of like powers of t we get four equations:
Constant term: A+1−K2=0.
Coefficient of t: A+1−K2+2K=A+1.
Coefficient of t2: A+1−K2+2K=2K.
Coefficient of t3: 2K=K2.
From the constant term we have K2=A+1. From the t3 term we get K2=2K, leading to K(K−2)=0. Since K=0 would give a negative A (namely A=−1) and a meaningless square root, we discard it and keep K=2.
Substituting K=2 into K2=A+1 gives 4=A+1, whence A=3.
Thus the ordered pair is (K,A)=(2,3).
Option B lists exactly this pair. Hence, the correct answer is Option B.
Tagged Integration by substitution. Machine-assigned, so read it as a strong shortlist rather than a verdict.