Differentiate etan⁡x\text{e}^{\tan x} with respect to xx. Hence find ∫etan⁡xsec⁡4x dx\int \text{e}^{\tan x} \sec^4 x \text{ d}x.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

4(a)

1. Apply the chain rule to differentiate the exponential function

ddx(etan⁡x)=etan⁡x⋅ddx(tan⁡x)\frac{\text{d}}{\text{d}x}(\text{e}^{\tan x}) = \text{e}^{\tan x} \cdot \frac{\text{d}}{\text{d}x}(\tan x)

2. Evaluate the derivative of $\tan x$ to obtain the final expression

=etan⁡x(sec⁡2x)= \text{e}^{\tan x} (\sec^2 x)
=sec⁡2x etan⁡x= \sec^2 x \text{ e}^{\tan x}

Answer

sec⁡2x etan⁡x\sec^2 x \text{ e}^{\tan x}

4(b)

1. Recall the derivative from part (a) to set up integration by parts.

From part (a), we have:
ddx(etan⁡x)=etan⁡xsec⁡2x\frac{\text{d}}{\text{d}x} (\text{e}^{\tan x}) = \text{e}^{\tan x} \sec^2 x

We rewrite the integral to extract this exact expression:
∫etan⁡xsec⁡4x dx=∫sec⁡2x(etan⁡xsec⁡2x) dx\int \text{e}^{\tan x} \sec^4 x \text{ d}x = \int \sec^2 x (\text{e}^{\tan x} \sec^2 x) \text{ d}x

2. Apply integration by parts for the first time.

Let u=sec⁡2xu = \sec^2 x and dvdx=etan⁡xsec⁡2x\frac{\text{d}v}{\text{d}x} = \text{e}^{\tan x} \sec^2 x.
Then dudx=2sec⁡x(sec⁡xtan⁡x)=2sec⁡2xtan⁡x\frac{\text{d}u}{\text{d}x} = 2 \sec x (\sec x \tan x) = 2 \sec^2 x \tan x, and v=etan⁡xv = \text{e}^{\tan x}.

Using the integration by parts formula ∫udvdx dx=uv−∫vdudx dx\int u \frac{\text{d}v}{\text{d}x} \text{ d}x = uv - \int v \frac{\text{d}u}{\text{d}x} \text{ d}x:
∫sec⁡2x(etan⁡xsec⁡2x) dx=sec⁡2xetan⁡x−∫etan⁡x(2sec⁡2xtan⁡x) dx\int \sec^2 x (\text{e}^{\tan x} \sec^2 x) \text{ d}x = \sec^2 x \text{e}^{\tan x} - \int \text{e}^{\tan x} (2 \sec^2 x \tan x) \text{ d}x
=sec⁡2xetan⁡x−∫2tan⁡x(etan⁡xsec⁡2x) dx= \sec^2 x \text{e}^{\tan x} - \int 2 \tan x (\text{e}^{\tan x} \sec^2 x) \text{ d}x

3. Apply integration by parts a second time to the remaining integral.

We evaluate ∫2tan⁡x(etan⁡xsec⁡2x) dx\int 2 \tan x (\text{e}^{\tan x} \sec^2 x) \text{ d}x:
Let u2=2tan⁡xu_2 = 2 \tan x and dv2dx=etan⁡xsec⁡2x\frac{\text{d}v_2}{\text{d}x} = \text{e}^{\tan x} \sec^2 x.
Then du2dx=2sec⁡2x\frac{\text{d}u_2}{\text{d}x} = 2 \sec^2 x and v2=etan⁡xv_2 = \text{e}^{\tan x}.

Applying integration by parts again:
∫2tan⁡x(etan⁡xsec⁡2x) dx=2tan⁡xetan⁡x−∫2sec⁡2xetan⁡x dx\int 2 \tan x (\text{e}^{\tan x} \sec^2 x) \text{ d}x = 2 \tan x \text{e}^{\tan x} - \int 2 \sec^2 x \text{e}^{\tan x} \text{ d}x

4. Integrate the final term directly and combine all components to obtain the answer.

Using the derivative result from part (a) again:
∫2sec⁡2xetan⁡x dx=2etan⁡x\int 2 \sec^2 x \text{e}^{\tan x} \text{ d}x = 2 \text{e}^{\tan x}

Substitute this back into the overall expression:
∫etan⁡xsec⁡4x dx=sec⁡2xetan⁡x−(2tan⁡xetan⁡x−2etan⁡x)+C\int \text{e}^{\tan x} \sec^4 x \text{ d}x = \sec^2 x \text{e}^{\tan x} - (2 \tan x \text{e}^{\tan x} - 2 \text{e}^{\tan x}) + C
=etan⁡x(sec⁡2x−2tan⁡x+2)+C= \text{e}^{\tan x} (\sec^2 x - 2 \tan x + 2) + C
(Note: Equivalently, using sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x, the answer can also be written as etan⁡x(tan⁡2x−2tan⁡x+3)+C\text{e}^{\tan x} (\tan^2 x - 2 \tan x + 3) + C)

Answer

etan⁡x(sec⁡2x−2tan⁡x+2)+C\text{e}^{\tan x} (\sec^2 x - 2 \tan x + 2) + C

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1The curve C has equation x+y=(x−y)2x + y = (x - y)^2. It is given that C has only one turning point. Show that 1−dydx=21+2x−2y1 - \frac{dy}{dx} = \frac{2}{1 + 2x - 2y}…
  2. 2The curve C has equation x+y=(x−y)2.x + y = (x - y)^2. It is given that C has only one turning point. Show that 1−dydx=21+2x−2y1 - \dfrac{dy}{dx} = \dfrac{2}{1 + 2x - 2y}…
  3. 3A curve C1C_1 has the equation p2x2−y2=p2p^2x^2 - y^2 = p^2 where p>1p > 1. Sketch C1C_1, stating the coordinates of any points o…
  4. 4A curve CC has parametric equations x=2cos⁡θ+cos⁡2θ,y=2sin⁡θ−sin⁡2θ,x = 2\cos\theta + \cos 2\theta, \quad y = 2\sin\theta - \sin 2\theta, where 0<θ<2π0 < \theta < 2\pi…
  5. 5It is given that y=1+tan⁡−12xy = \sqrt{1 + \tan^{-1} 2x} where −12<x<12-\frac{1}{2} < x < \frac{1}{2}. Show that yd2ydx2+(dydx)2+8x(1+4x2)2=0.y \frac{\mathrm{d}^2 y}{\mathrm{d}x^2} + \left(\frac{\mathrm{d}y}{\mathrm{d}x}\right)^2 + \frac{8x}{(1 + 4x^2)^2} = 0.…