Given that y=ex(1+cos⁡x)y = e^x (1+\cos x), show dydx=ex(1+cos⁡x−sin⁡x)\dfrac{dy}{dx} = e^x (1+\cos x - \sin x). Hence find ∫ex(cos⁡x−sin⁡x) dx\displaystyle \int e^x (\cos x - \sin x)\,dx.

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

12(a)

1. Apply the product rule to differentiate the function

Let u=exu = e^x and v=1+cos⁡xv = 1+\cos x.
dudx=ex\dfrac{du}{dx} = e^x
dvdx=−sin⁡x\dfrac{dv}{dx} = -\sin x
dydx=dudxv+udvdx\dfrac{dy}{dx} = \dfrac{du}{dx}v + u\dfrac{dv}{dx}
dydx=ex(1+cos⁡x)+ex(−sin⁡x)\dfrac{dy}{dx} = e^x(1+\cos x) + e^x(-\sin x)

2. Factorise to show the required result

dydx=ex(1+cos⁡x−sin⁡x)\dfrac{dy}{dx} = e^x(1+\cos x - \sin x)

Answer

dydx=ex(1+cos⁡x−sin⁡x)\dfrac{dy}{dx} = e^x (1+\cos x - \sin x)

12(b)

1. Express the integral of the derivative from part (a)

From (a), ddx[ex(1+cos⁡x)]=ex(1+cos⁡x−sin⁡x)\frac{d}{dx}[e^x(1+\cos x)] = e^x(1+\cos x - \sin x).
Integrating both sides with respect to xx:
∫ex(1+cos⁡x−sin⁡x) dx=ex(1+cos⁡x)+c1\int e^x(1+\cos x - \sin x)\,dx = e^x(1+\cos x) + c_1

2. Split the integral to isolate the required term

∫(ex+ex(cos⁡x−sin⁡x)) dx=ex(1+cos⁡x)+c1\int (e^x + e^x(\cos x - \sin x))\,dx = e^x(1+\cos x) + c_1
∫ex dx+∫ex(cos⁡x−sin⁡x) dx=ex(1+cos⁡x)+c1\int e^x\,dx + \int e^x(\cos x - \sin x)\,dx = e^x(1+\cos x) + c_1

3. Evaluate the standard integral and rearrange to find the final answer

ex+∫ex(cos⁡x−sin⁡x) dx=ex(1+cos⁡x)+c1e^x + \int e^x(\cos x - \sin x)\,dx = e^x(1+\cos x) + c_1
∫ex(cos⁡x−sin⁡x) dx=ex(1+cos⁡x)−ex+c\int e^x(\cos x - \sin x)\,dx = e^x(1+\cos x) - e^x + c

Answer

ex(1+cos⁡x)−ex+ce^x(1 + \cos x) - e^x + 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. 1Given that y=3ln⁡2xx2y = \dfrac{3\ln 2x}{x^2} for x>0x>0. Show that dydx=3x3(1−2ln⁡2x).\dfrac{dy}{dx} = \dfrac{3}{x^3}\left(1 - 2\ln 2x\right). He…
  2. 2A curve has the equation y=2x−33x+4y = \frac{2x - 3}{3x + 4}, where x≠−43x \ne -\frac{4}{3}. The normal to the point PP on the cur…
  3. 3Given that y=6x22−5xy = \frac{6x^2}{2-5x}, find the range of values of xx for which yy is a decreasing function of xx.
  4. 4已知函数f(x)=ex−1f(x)={{e}^{x}}-1,g(x)=sin⁡x(1)g(x)=\sin x(1)判断F(x)=f(x)−g(x)F(x)=f(x)-g(x)在x∈[0,+∞)x\in[0,+\infty)上零点的个数; (2)当x∈[0,π]x\in[0,\pi]时,f(x)⩾ag(x)(a∈R)f(x)\geqslant ag(x)(a\in R)…
  5. 5The equation of a curve is given by y=5xe2x+1y = 5xe^{2x+1}. Find dydx\frac{dy}{dx}. Hence, find ∫xe2x+1 dx\int xe^{2x+1} \text{ d}x. Det…