AP Calculus AB Practice Quiz: Integrating Functions Using Long Division and Completing the Square
Written by AP Content Team, Verified for 2026 AP Exams, Last updated: May 2026
Test your understanding with short quizzes. This quiz has 7 questions to check your progress.
Question 1 of 7
All Questions (7)
A) Use u-substitution with u = x + 2.
B) Perform long division on the integrand.
C) Complete the square on the denominator.
D) Use integration by parts.
Correct Answer: B
The integrand is a rational function where the degree of the numerator (2) is greater than the degree of the denominator (1). Therefore, the most appropriate first step is to use long division to rewrite the integrand as a polynomial plus a proper rational function.
A) (1/2)x^2 + x + ln|x - 1| + C
B) x + ln|x - 1| + C
C) (1/2)x^2 - x + ln|x - 1| + C
D) x^2 + ln|x - 1| + C
Correct Answer: A
First, use long division to rewrite the integrand: (x^2)/(x - 1) = x + 1 + 1/(x - 1). Then, integrate term by term: ∫(x + 1 + 1/(x - 1)) dx = (1/2)x^2 + x + ln|x - 1| + C.
A) ln|x^2 - 6x + 10| + C
B) arctan(x - 3) + C
C) (1/2)arctan(x - 3) + C
D) ln|(x - 3)^2 + 1| + C
Correct Answer: B
The denominator is an irreducible quadratic. Complete the square: x^2 - 6x + 10 = (x^2 - 6x + 9) - 9 + 10 = (x - 3)^2 + 1. The integral becomes ∫(1)/((x - 3)^2 + 1^2) dx. This is a standard arctangent form, ∫(1)/(u^2 + a^2) du = (1/a)arctan(u/a), where u = x - 3 and a = 1. The result is arctan(x - 3) + C.
A) 1/2 - ln(2)
B) 1 - (1/2)ln(2)
C) 1/2 - (1/2)ln(2)
D) 1/2 + (1/2)ln(2)
Correct Answer: C
First, use long division to simplify the integrand: (x^3)/(x^2 + 1) = x - x/(x^2 + 1). The integral becomes ∫(x - x/(x^2 + 1)) dx. The antiderivative is (1/2)x^2 - (1/2)ln(x^2 + 1). Now, evaluate the definite integral: [(1/2)(1)^2 - (1/2)ln(1^2 + 1)] - [(1/2)(0)^2 - (1/2)ln(0^2 + 1)] = [(1/2) - (1/2)ln(2)] - [0 - (1/2)ln(1)] = 1/2 - (1/2)ln(2).
A) π/8
B) π/4
C) π/2
D) arctan(2)
Correct Answer: A
First, complete the square in the denominator: x^2 - 2x + 5 = (x^2 - 2x + 1) + 4 = (x - 1)^2 + 2^2. The integral is ∫(1)/((x - 1)^2 + 2^2) dx. The antiderivative is (1/2)arctan((x - 1)/2). Evaluating from 1 to 3: [(1/2)arctan((3 - 1)/2)] - [(1/2)arctan((1 - 1)/2)] = (1/2)arctan(1) - (1/2)arctan(0) = (1/2)(π/4) - 0 = π/8.
A) 4 arctan(x + 1) + C
B) 2 ln|x^2 + 2x + 2| + C
C) 2 ln|x^2 + 2x + 2| - 4 arctan(x + 1) + C
D) 4 ln|x^2 + 2x + 2| - 2 arctan(x + 1) + C
Correct Answer: C
The derivative of the denominator x^2 + 2x + 2 is 2x + 2. We can rewrite the numerator 4x as 2(2x + 2) - 4. This allows us to split the integral: ∫(2(2x + 2) - 4)/(x^2 + 2x + 2) dx = 2∫(2x + 2)/(x^2 + 2x + 2) dx - 4∫(1)/(x^2 + 2x + 2) dx. The first integral is 2 ln|x^2 + 2x + 2|. For the second integral, complete the square: x^2 + 2x + 2 = (x + 1)^2 + 1. So, -4∫(1)/((x + 1)^2 + 1) dx = -4 arctan(x + 1). Combining the results gives 2 ln|x^2 + 2x + 2| - 4 arctan(x + 1) + C.
A) 2x + 1 + (2x + 7)/(x^2 + 2x + 2)
B) 2x + 1 + 7/(x^2 + 2x + 2)
C) 2x - 1 + (4x + 11)/(x^2 + 2x + 2)
D) 2x + 9 + (-13x - 9)/(x^2 + 2x + 2)
Correct Answer: A
Performing polynomial long division: (2x^3 + 5x^2 + 9) divided by (x^2 + 2x + 2). The first term of the quotient is 2x. Multiplying 2x by the divisor gives 2x^3 + 4x^2 + 4x. Subtracting this from the dividend gives x^2 - 4x + 9. The next term of the quotient is 1. Multiplying 1 by the divisor gives x^2 + 2x + 2. Subtracting this from the previous result gives (-4x - 2x) + (9 - 2) = -6x + 7. Wait, let me recheck the calculation. Dividend: 2x^3+5x^2+0x+9. Divisor: x^2+2x+2. Quotient term 1: 2x. 2x(x^2+2x+2) = 2x^3+4x^2+4x. Subtract: (2x^3+5x^2+9) - (2x^3+4x^2+4x) = x^2-4x+9. Quotient term 2: +1. 1(x^2+2x+2) = x^2+2x+2. Subtract: (x^2-4x+9) - (x^2+2x+2) = -6x+7. The result is 2x + 1 + (-6x+7)/(x^2+2x+2). Let me re-evaluate the options and my work. Ah, I see a potential error in my initial calculation or the options. Let's re-do the long division carefully. (2x^3 + 5x^2 + 9) / (x^2 + 2x + 2). First term is 2x. 2x(x^2+2x+2) = 2x^3+4x^2+4x. Subtract: (2x^3+5x^2+0x+9) - (2x^3+4x^2+4x) = x^2-4x+9. Next term is +1. 1(x^2+2x+2) = x^2+2x+2. Subtract: (x^2-4x+9) - (x^2+2x+2) = -6x+7. My result is 2x+1 + (-6x+7)/(x^2+2x+2). None of the options match. Let me check the provided options as the source of truth. Let's assume Option A is correct and work backwards. (2x+1)(x^2+2x+2) + (2x+7) = (2x^3+4x^2+4x+x^2+2x+2) + (2x+7) = 2x^3+5x^2+8x+9. This is not the original numerator. Let's check Option B. (2x+1)(x^2+2x+2) + 7 = 2x^3+5x^2+6x+9. Not correct. Let's check Option C. (2x-1)(x^2+2x+2) + (4x+11) = (2x^3+4x^2+4x-x^2-2x-2) + (4x+11) = 2x^3+3x^2+6x+9. Not correct. There seems to be an error in the question's options. Let me create a correct version. Let's change the dividend to 2x^3 + 5x^2 + 8x + 9. Then (2x+1) is the quotient and (2x+7) is the remainder. Let's use this corrected problem. New dividend: 2x^3 + 5x^2 + 8x + 9. Long division: 2x(x^2+2x+2) = 2x^3+4x^2+4x. Subtracting gives x^2+4x+9. Next term is +1. 1(x^2+2x+2) = x^2+2x+2. Subtracting gives 2x+7. So (2x^3+5x^2+8x+9)/(x^2+2x+2) = 2x+1 + (2x+7)/(x^2+2x+2). I will use this corrected version for the question. The question tests the process of long division as a preparatory step for integration. The correct result of the division is the quotient plus the remainder over the divisor.