Method: Write px+q = A * d/dx() + B = A(2ax+b) + B. Solve for A and B: 2aA = p, Ab + B = q. So A = , B = q - .
Split the integral: integral () dx = A * integral () dx + B * integral dx/sqrt()
First integral: integral () dx = 2*sqrt() + C (since the numerator is the derivative of the expression under the root)
Second integral: Complete the square and use standard forms:
- integral dx/sqrt(X^{2+k}^2) = ln|X+sqrt(X^{2+k}^2)| + C
- integral dx/sqrt(k^{2-X}^2) = arcsin + C
- integral dx/sqrt(X^{2-k}^2) = ln|X+sqrt(X^{2-k}^2)| + C