Skip to content
Exercise 7.7 · Q6

Q.Integrate the following function: x2+4x−5\sqrt{x^2+4x-5}

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★
50% · 186/373 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The integral ∫x2+4x−5 dx\int \sqrt{x^2+4x-5} \, dx is solved by completing the square to get (x+2)2−9\sqrt{(x+2)^2 - 9}, then using the standard trigonometric substitution x+2=3sec⁡θx+2 = 3\sec\theta. The final result is x+22x2+4x−5−92log⁡∣x+2+x2+4x−5∣+C\frac{x+2}{2}\sqrt{x^2+4x-5} - \frac{9}{2}\log\left|x+2 + \sqrt{x^2+4x-5}\right| + C.

Why Completing the Square Works

When you see a quadratic inside a square root, your first instinct might be to try a uu-substitution. But x2+4x−5x^2+4x-5 isn't a perfect square — it has a linear term that blocks a clean substitution. Completing the square rewrites it as (x+2)2−9(x+2)^2 - 9, which is a difference of squares. That form screams for a trigonometric substitution, because expressions like u2−a2\sqrt{u^2 - a^2} are tailor-made for secant or hyperbolic cosine substitutions.

The core idea: turn the messy quadratic into a recognizable Pythagorean form, then let trigonometry handle the rest.


Step-by-Step Solution

1. Complete the square inside the radical.

Take x2+4x−5x^2+4x-5. Half of 4 is 2, square it to get 4. Add and subtract 4:

x2+4x−5=(x2+4x+4)−4−5=(x+2)2−9x^2+4x-5 = (x^2+4x+4) - 4 - 5 = (x+2)^2 - 9

So the integral becomes:

∫(x+2)2−9 dx\int \sqrt{(x+2)^2 - 9} \, dx

Tip

Always check: (x+2)2−9=x2+4x+4−9=x2+4x−5(x+2)^2 - 9 = x^2+4x+4-9 = x^2+4x-5 — correct. This step is just algebraic rearrangement, no calculus yet.

2. Choose a substitution that eliminates the square root.

We have u2−a2\sqrt{u^2 - a^2} with u=x+2u = x+2 and a=3a = 3. The standard trick: set u=asec⁡θu = a\sec\theta, because sec⁡2θ−1=tan⁡2θ\sec^2\theta - 1 = \tan^2\theta.

Let x+2=3sec⁡θx+2 = 3\sec\theta. Then dx=3sec⁡θtan⁡θ dθdx = 3\sec\theta\tan\theta \, d\theta.

Now substitute:

(x+2)2−9=9sec⁡2θ−9=9(sec⁡2θ−1)=3tan⁡2θ=3∣tan⁡θ∣\sqrt{(x+2)^2 - 9} = \sqrt{9\sec^2\theta - 9} = \sqrt{9(\sec^2\theta - 1)} = 3\sqrt{\tan^2\theta} = 3|\tan\theta|

For the indefinite integral, we assume the principal branch where θ∈[0,π/2)∪(π/2,π]\theta \in [0, \pi/2) \cup (\pi/2, \pi], so tan⁡θ≥0\tan\theta \ge 0 when sec⁡θ≥1\sec\theta \ge 1 (which matches x+2≥3x+2 \ge 3). We'll take tan⁡θ≥0\tan\theta \ge 0 and drop the absolute value, keeping in mind the domain.

Watch out

Forgetting the absolute value on tan⁡2θ\sqrt{\tan^2\theta} is a common mistake. In definite integrals, you must consider the sign of tan⁡θ\tan\theta over the interval. For indefinite integrals, we typically work on a branch where the sign is positive.

3. Rewrite the integral in terms of θ\theta.

∫(x+2)2−9 dx=∫(3tan⁡θ)⋅(3sec⁡θtan⁡θ dθ)=9∫sec⁡θtan⁡2θ dθ\int \sqrt{(x+2)^2 - 9} \, dx = \int (3\tan\theta) \cdot (3\sec\theta\tan\theta \, d\theta) = 9 \int \sec\theta \tan^2\theta \, d\theta

4. Simplify tan⁡2θ\tan^2\theta using the Pythagorean identity.

Recall tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1. So:

9∫sec⁡θ(sec⁡2θ−1) dθ=9∫(sec⁡3θ−sec⁡θ) dθ9 \int \sec\theta (\sec^2\theta - 1) \, d\theta = 9 \int (\sec^3\theta - \sec\theta) \, d\theta

Now we need two standard integrals: ∫sec⁡3θ dθ\int \sec^3\theta \, d\theta and ∫sec⁡θ dθ\int \sec\theta \, d\theta.

Standard integrals:

∫sec⁡θ dθ=log⁡∣sec⁡θ+tan⁡θ∣+C\int \sec\theta \, d\theta = \log|\sec\theta + \tan\theta| + C

∫sec⁡3θ dθ=12sec⁡θtan⁡θ+12log⁡∣sec⁡θ+tan⁡θ∣+C\int \sec^3\theta \, d\theta = \frac{1}{2}\sec\theta\tan\theta + \frac{1}{2}\log|\sec\theta + \tan\theta| + C

5. Apply the formulas.

9∫sec⁡3θ dθ=9(12sec⁡θtan⁡θ+12log⁡∣sec⁡θ+tan⁡θ∣)9 \int \sec^3\theta \, d\theta = 9\left(\frac{1}{2}\sec\theta\tan\theta + \frac{1}{2}\log|\sec\theta + \tan\theta|\right)

9∫sec⁡θ dθ=9log⁡∣sec⁡θ+tan⁡θ∣9 \int \sec\theta \, d\theta = 9\log|\sec\theta + \tan\theta|

Subtract: …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.