Skip to content
Exercise 5.7 · Q3

Q.Find dydx\frac{dy}{dx} in the following: x⋅cos⁡xx \cdot \cos x

Punjab PsebTextbookSubjective· 2mImportance★★★★★
49% · 139/281 Questions
✓ Free question

y=xcos⁡xy = x\cos x is a product, so by the product rule dydx=cos⁡x−xsin⁡x\frac{dy}{dx} = \cos x - x\sin x.

The function y=x⋅cos⁡xy = x\cdot\cos x is a product of two functions of xx: namely xx and cos⁡x\cos x. You cannot just differentiate each factor and multiply — that would wrongly give −sin⁡x-\sin x. Products need the product rule.

If y=u⋅vy = u\cdot v, then dydx=udvdx+vdudx\dfrac{dy}{dx} = u\dfrac{dv}{dx} + v\dfrac{du}{dx} — "first times derivative of second, plus second times derivative of first."

Set up

Take u=xu = x and v=cos⁡xv = \cos x.

Differentiate each part

dudx=1,dvdx=−sin⁡x.\frac{du}{dx} = 1, \qquad \frac{dv}{dx} = -\sin x.

Apply the rule

dydx=udvdx+vdudx=x(−sin⁡x)+cos⁡x (1)=cos⁡x−xsin⁡x.\frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx} = x(-\sin x) + \cos x\,(1) = \cos x - x\sin x.

Watch out

Watch the sign: ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x (not +sin⁡x+\sin x). Writing xsin⁡x+cos⁡xx\sin x + \cos x is off by a sign.

Tip

Check at x=0x=0: dydx=cos⁡0−0=1\frac{dy}{dx}=\cos 0 - 0 = 1. Near x=0x=0, cos⁡x≈1\cos x\approx 1 so y≈xy\approx x, which indeed has slope 11. ✓

✓Final answer

dydx=cos⁡x−xsin⁡x\dfrac{dy}{dx} = \cos x - x\sin x

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.