Question Statement
Find the derivative of the function:
y=(1+cosx)(x−sinx)
Background and Explanation
This problem requires the product rule for differentiation, which is used when differentiating the product of two functions. You should also be familiar with basic trigonometric derivatives (dxdcosx=−sinx) and the Pythagorean identity sin2x+cos2x=1.
Solution
We are given:
y=(1+cosx)(x−sinx)
To differentiate this function, we recognize it as a product of two functions:
- Let u=1+cosx
- Let v=x−sinx
Step 1: Apply the product rule dxd(uv)=dxdu⋅v+u⋅dxdv
dxdy=dxd(1+cosx)⋅(x−sinx)+(1+cosx)⋅dxd(x−sinx)
Step 2: Compute the derivatives of the individual terms
- dxd(1+cosx)=0−sinx=−sinx
- dxd(x−sinx)=1−cosx
Substituting these back:
dxdy=(−sinx)(x−sinx)+(1+cosx)(1−cosx)
Step 3: Expand both products
First term: (−sinx)(x−sinx)=−xsinx+sin2x
Second term: (1+cosx)(1−cosx)=1−cos2x (this is a difference of squares: (1+cosx)(1−cosx)=12−cos2x)
So:
dxdy=−xsinx+sin2x+1−cos2x
Step 4: Simplify using the Pythagorean identity
Recall that 1−cos2x=sin2x. Substituting this:
dxdy=−xsinx+sin2x+sin2x
Step 5: Combine like terms
dxdy=−xsinx+2sin2x
Or rearranged:
dxdy=2sin2x−xsinx
- Product Rule: dxd[u(x)v(x)]=u′(x)v(x)+u(x)v′(x)
- Derivative of cosine: dxd(cosx)=−sinx
- Derivative of sine: dxd(sinx)=cosx
- Pythagorean Identity: 1−cos2x=sin2x
- Algebraic expansion: (a+b)(a−b)=a2−b2
Summary of Steps
- Identify the two factors in the product: (1+cosx) and (x−sinx)
- Apply the product rule: dxdy=u′v+uv′
- Differentiate each factor: dxd(1+cosx)=−sinx and dxd(x−sinx)=1−cosx
- Expand the resulting expression: (−sinx)(x−sinx)+(1+cosx)(1−cosx)
- Simplify using the identity 1−cos2x=sin2x to combine trigonometric terms
- Combine like terms to obtain the final answer: 2sin2x−xsinx