Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 1 of 6

Complete the square before integrating

Turn a quadratic denominator into a scaled inverse-trigonometric integral and verify the result.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

Consider the integral of 1/(x² − 4x + 13). The denominator does not factor into real linear factors, and its derivative 2x − 4 is not the numerator. A logarithm substitution therefore does not immediately fit. Instead, rewrite the quadratic to expose a translated square:

x² − 4x + 13 = (x − 2)² + 9.

Check this identity by expanding. Completing the square has preserved the entire denominator, including its constant term; replacing 13 with 4 would change the function. Predict which familiar derivative involves a positive constant plus a square in its denominator. The inverse tangent derivative, d(arctan u)/du = 1/(1 + u²), supplies the relevant pattern.

Predict

Compare these three proposed antiderivatives before differentiating them:

CandidateProposed expression
Aarctan(x − 2)
Barctan((x − 2)/3)
C(1/3)arctan((x − 2)/3)

All three have an inverse tangent and a horizontal shift. That resemblance alone cannot choose the correct one. Predict what happens when the inner input is divided by 3: its derivative contributes a factor 1/3, while normalizing the quadratic denominator contributes a factor 9. Track both factors rather than memorizing the final coefficient.

Experiment

Make the change of variable u = (x − 2)/3. Then x − 2 = 3u, dx = 3 du, and the denominator is 9(1 + u²). Write the transformed numerator and denominator on separate lines:

∫ dx/((x − 2)² + 9) = ∫ 3 du/[9(1 + u²)] = (1/3)arctan u + C.

Thus candidate C is correct. Verify it independently by differentiation:

F′(x) = (1/3) · [1/(1 + ((x − 2)/3)²)] · (1/3) = 1/((x − 2)² + 9).

Now differentiate candidate B. Its derivative is 3/((x − 2)² + 9), three times the desired integrand. Candidate A instead has denominator 1 + (x − 2)², so changing only an outside coefficient cannot repair its incorrect horizontal scale. Write a one-sentence diagnosis of each failure.

Understand

For a definite integral from x = 2 to x = 5, transform the bounds along with the variable. The lower bound becomes u = 0; the upper becomes u = 1. Consequently the integral is (1/3)[arctan(1) − arctan(0)] = π/12. Inverse-trigonometric values are in radians in these differentiation formulas. A degree-mode calculator result cannot be substituted into the same formula without accounting for its unit conversion.

Original input xNormalized input uPrincipal arctangent
200
51π/4

You can either evaluate the original-variable antiderivative at x = 2 and 5, or evaluate the transformed integral at u = 0 and 1. Mixing the original bounds with the u-variable integrand is an error. The integrand is positive throughout this interval, so the answer must be positive; reversing the limits would change its sign.

More generally, with a positive constant a, the integral of 1/((x − h)² + a²) is (1/a)arctan((x − h)/a) + C. Here h locates the shift and a is the positive square root of the constant added to the square. The substitution x − h = au explains the coefficient: dx supplies a, while the denominator supplies a². The integrand is defined for every real x because its denominator is at least a², which is positive.

This domain argument is part of method selection. A denominator such as (x − h)² − a² has real zeros and a different antiderivative structure; it cannot be handled by copying the plus-sign formula. If completing the square leaves zero rather than a positive constant, a reciprocal-square power rule applies away from the excluded input. The appearance of a quadratic alone does not guarantee an inverse-tangent answer.

Apply

For a new positive quadratic denominator, perform four checks: expand the completed square, identify the positive scale, differentiate the antiderivative, and check the original domain. Retain the leading coefficient if the quadratic is not monic. For example, factoring a nonzero constant outside a denominator changes the reciprocal integrand by the reciprocal constant, not by that same constant.

A nearby numerator can call for two mechanisms. Since x = (x − 2) + 2, the integral of x/((x − 2)² + 9) splits into a logarithmic part and twice the inverse-tangent part. An antiderivative is (1/2)ln((x − 2)² + 9) + (2/3)arctan((x − 2)/3). Differentiate both terms to recover (x − 2 + 2)/((x − 2)² + 9). The logarithm’s argument is always positive here; in other substitutions, any needed absolute value and excluded inputs must be retained.

Use a calculator only after obtaining the structure when an approximation is requested. Report π/12 as the exact worked answer, and a decimal as an approximation. A matching decimal at one input is weaker evidence than a derivative identity on the stated domain.

Continue

The written practice asks for both a calculation and a repair of a plausible error. Keep the substitution, bounds and derivative check together. This method belongs to a broader selection process: inspect the numerator, denominator structure and domain before choosing a familiar antiderivative pattern.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

For ∫dx/(x²+6x+25), write a primitive as k arctan((x+3)/4)+C. Find k.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Complete x²−10x+34=(x−h)²+a² with a>0. Find h.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Evaluate ∫₀² dx/(x²−2x+5) exactly, showing transformed limits and a derivative check.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Find a primitive of (2x+1)/(x²+2x+10). Explain how the numerator splits into a denominator derivative and a remainder.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

A learner applies an inverse-tangent rule to ∫₀² dx/(x²−2x). Explain why completing the square does not justify that method or an ordinary definite value.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

For real b,c with c>b², derive a primitive of 1/(x²+2bx+c). Explain what changes when c=b² and when c<b².

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.