Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.3 · Q8: dydx\frac{dy}{dx} if sin⁡2x+cos⁡2y=1\sin^2x+\cos^2y=1

Exercise 5.3Implicit differentiation · Section 5.3.2
The question

Find dydx\dfrac{dy}{dx} in the following:

sin⁡2x+cos⁡2y=1\sin^2 x + \cos^2 y = 1
Exam answer

Differentiating both sides w.r.t. xx⁠,

2sin⁡xcos⁡x−2cos⁡ysin⁡y dydx=0\begin{aligned} &2\sin x\cos x \\ &\quad - 2\cos y\sin y\,\frac{dy}{dx} = 0 \end{aligned}

Using 2sin⁡θcos⁡θ=sin⁡2θ2\sin\theta\cos\theta = \sin 2\theta⁠,

⇒ sin⁡2y dydx=sin⁡2x\Rightarrow\ \sin 2y\,\frac{dy}{dx} = \sin 2x

∴ dydx=sin⁡2xsin⁡2y\therefore\ \dfrac{dy}{dx} = \dfrac{\sin 2x}{\sin 2y} (sin⁡2y≠0)(\sin 2y \ne 0)⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Differentiate both sides with respect to xx⁠: sin⁡2x\sin^2 x needs the chain rule once (outer square, inner sin⁡x\sin x⁠), and cos⁡2y\cos^2 y needs it twice, because yy itself depends on xx⁠. Solving for dydx\frac{dy}{dx} gives sin⁡2xsin⁡2y\frac{\sin 2x}{\sin 2y}⁠. The relation hides a surprise: it says exactly that sin⁡2x=sin⁡2y\sin^2 x = \sin^2 y⁠, which is a grid of straight lines of slopes 11 and −1-1⁠. The formula reproduces those slopes, which is a strong check.

Given, to find, and the plan
Given
sin⁡2x+cos⁡2y=1\sin^2 x + \cos^2 y = 1⁠, with yy a differentiable function of xx along the curve.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Differentiate implicitly, solve for dydx\frac{dy}{dx} where sin⁡2y≠0\sin 2y \ne 0⁠; then find what the curve actually is and confirm the formula on it.

Basics you need

1Differentiating a relation

Both sides of a relation that holds along a piece of curve have equal derivatives there; the derivative of 11 is 00⁠. Lesson: implicit differentiation

2Chain rule

ddx(sin⁡2x)=2sin⁡x⋅cos⁡x\frac{d}{dx}(\sin^2 x) = 2\sin x\cdot\cos x⁠, and ddx(cos⁡2y)=2cos⁡y⋅(−sin⁡y) dydx\frac{d}{dx}(\cos^2 y) = 2\cos y\cdot(-\sin y)\,\frac{dy}{dx} (Theorem 4). Lesson: the chain rule

3Trigonometric identities

2sin⁡tcos⁡t=sin⁡2t2\sin t\cos t = \sin 2t⁠; sin⁡2t+cos⁡2t=1\sin^2 t + \cos^2 t = 1⁠; sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡B\sin(A \pm B) = \sin A\cos B \pm \cos A\sin B (Class XI). Basics: trigonometric identities

4Zeros of sine

sin⁡t=0\sin t = 0 exactly when t=nπt = n\pi⁠, nn an integer. Basics: trigonometric identities

Solution

  1. Differentiate both sides with respect to xx

    • sin⁡2x\sin^2 x⁠: outer t2t^2⁠, inner sin⁡x\sin x⁠: ddx(sin⁡2x)=2sin⁡xcos⁡x=sin⁡2x.\frac{d}{dx}(\sin^2 x) = 2\sin x\cos x = \sin 2x.
    • cos⁡2y\cos^2 y⁠: outer t2t^2⁠, middle cos⁡\cos⁠, inner y(x)y(x)⁠: ddx(cos⁡2y)=2cos⁡y⋅(−sin⁡y) dydx=−sin⁡2y dydx.\begin{aligned} \frac{d}{dx}(\cos^2 y) &= 2\cos y\cdot(-\sin y)\,\frac{dy}{dx} \\ &= -\sin 2y\,\frac{dy}{dx}. \end{aligned}
    • ddx(1)=0\frac{d}{dx}(1) = 0⁠.

    So

    sin⁡2x−sin⁡2y dydx=0.\sin 2x - \sin 2y\,\frac{dy}{dx} = 0.
    Each layer of a composition gives one factor. For cos⁡2y\cos^2 y the last factor is dydx\frac{dy}{dx}⁠, because yy changes with xx⁠; sin⁡2x\sin^2 x has no such factor because its innermost variable is xx itself.
    Chain rule, Theorem 4, Section 5.3.1; (sin⁡t)′=cos⁡t(\sin t)' = \cos t⁠, (cos⁡t)′=−sin⁡t(\cos t)' = -\sin t⁠, Table 5.3; 2sin⁡tcos⁡t=sin⁡2t2\sin t\cos t = \sin 2t⁠. Basics: derivative rules
  2. Solve for dydx\frac{dy}{dx}

    sin⁡2y dydx=sin⁡2x\sin 2y\,\frac{dy}{dx} = \sin 2x⁠, so at points of the curve where sin⁡2y≠0\sin 2y \ne 0⁠,

    dydx=sin⁡2xsin⁡2y.\frac{dy}{dx} = \frac{\sin 2x}{\sin 2y}.
    We may divide only by a non-zero number. Step 4 shows what happens at the points where sin⁡2y=0\sin 2y = 0⁠.
    Collect and divide. Basics: solving for dy/dx
  3. What the curve really is

    Replace cos⁡2y\cos^2 y by 1−sin⁡2y1 - \sin^2 y⁠: the relation becomes sin⁡2x−sin⁡2y=0\sin^2 x - \sin^2 y = 0⁠. Now factor the left side. Multiplying out,

    sin⁡(x+y) sin⁡(x−y)=sin⁡2xcos⁡2y−cos⁡2xsin⁡2y=sin⁡2x(1−sin⁡2y)−(1−sin⁡2x)sin⁡2y=sin⁡2x−sin⁡2y.\begin{aligned} &\sin(x + y)\,\sin(x - y) \\ &= \sin^2 x\cos^2 y - \cos^2 x\sin^2 y \\ &= \sin^2 x(1 - \sin^2 y) - (1 - \sin^2 x)\sin^2 y \\ &= \sin^2 x - \sin^2 y. \end{aligned}

    So the relation holds exactly when sin⁡(x+y)=0\sin(x + y) = 0 or sin⁡(x−y)=0\sin(x - y) = 0⁠, that is, when

    x+y=nπorx−y=nπ,n∈Z.x + y = n\pi \quad\text{or}\quad x - y = n\pi, \quad n \in \mathbf{Z}.
    The relation is not a single smooth curve but a grid of straight lines (see the figure). The first line uses (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2 with a=sin⁡xcos⁡ya = \sin x\cos y⁠, b=cos⁡xsin⁡yb = \cos x\sin y⁠.
    sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡B\sin(A \pm B) = \sin A\cos B \pm \cos A\sin B⁠; sin⁡t=0  ⟺  t=nπ\sin t = 0 \iff t = n\pi (Class XI). Basics: trigonometric identities
  4. The formula on the lines, and where it fails

    On a line x−y=nπx - y = n\pi⁠: y=x−nπy = x - n\pi⁠, so sin⁡2y=sin⁡(2x−2nπ)=sin⁡2x\sin 2y = \sin(2x - 2n\pi) = \sin 2x⁠, and the formula gives dydx=1\frac{dy}{dx} = 1⁠, the slope of that line.

    On a line x+y=nπx + y = n\pi⁠: y=nπ−xy = n\pi - x⁠, so sin⁡2y=sin⁡(2nπ−2x)=−sin⁡2x\sin 2y = \sin(2n\pi - 2x) = -\sin 2x⁠, and the formula gives dydx=−1\frac{dy}{dx} = -1⁠, again the slope of the line.

    Where sin⁡2y=0\sin 2y = 0⁠: then y=kπ2y = \frac{k\pi}{2} for an integer kk⁠, so sin⁡2y\sin^2 y is 00 or 11⁠, and sin⁡2x=sin⁡2y\sin^2 x = \sin^2 y makes xx a multiple of π2\frac{\pi}{2} of the same kind (even or odd). Both x+yx + y and x−yx - y are then multiples of π\pi⁠: these are exactly the points where a line of slope 11 crosses a line of slope −1-1⁠. Near a crossing the curve is not the graph of one function, and Step 1 reads 0=00 = 0⁠, which gives no slope.

    Checking the formula against the true shape of the curve confirms it, and explains the condition sin⁡2y≠0\sin 2y \ne 0⁠: it removes exactly the crossing points.
    sin⁡(t+2nπ)=sin⁡t\sin(t + 2n\pi) = \sin t⁠, sin⁡(−t)=−sin⁡t\sin(-t) = -\sin t (Class XI). Basics: trigonometric identities
−π −π/2 π/2 π −π −π/2 π/2 π x y x − y = nπ: slope 1 x + y = nπ: slope −1 crossings, where sin 2y = 0
The points with sin⁡2x+cos⁡2y=1\sin^2 x + \cos^2 y = 1 for −π≤x,y≤π-\pi \le x, y \le \pi (same scale on both axes): blue lines x−y=nπx - y = n\pi of slope 11⁠, gold lines x+y=nπx + y = n\pi of slope −1-1⁠. The violet dots are the crossings, where sin⁡2y=0\sin 2y = 0 and dydx\frac{dy}{dx} is not defined.
Result dydx=sin⁡2xsin⁡2y,sin⁡2y≠0.\frac{dy}{dx} = \frac{\sin 2x}{\sin 2y}, \quad \sin 2y \ne 0.

On the lines x−y=nπx - y = n\pi this equals 11⁠, and on the lines x+y=nπx + y = n\pi it equals −1-1⁠.

(Textbook answer: sin⁡2xsin⁡2y\dfrac{\sin 2x}{\sin 2y}⁠, the same.)

Check it with numbers

(0.3,0.3)(0.3, 0.3) is on the curve: sin⁡20.3+cos⁡20.3=1\sin^2 0.3 + \cos^2 0.3 = 1⁠. Formula: sin⁡0.6sin⁡0.6=1\frac{\sin 0.6}{\sin 0.6} = 1⁠, and the line y=xy = x through it has slope 11⁠.

(0.3,π−0.3)≈(0.3,2.8415927)(0.3, \pi - 0.3) \approx (0.3, 2.8415927) is on the curve: cos⁡2(π−0.3)=cos⁡20.3\cos^2(\pi - 0.3) = \cos^2 0.3⁠, so the sum is again 11⁠. Formula: sin⁡0.6sin⁡(2π−0.6)=0.5646425−0.5646425=−1\frac{\sin 0.6}{\sin(2\pi - 0.6)} = \frac{0.5646425}{-0.5646425} = -1⁠, and the line x+y=πx + y = \pi through it has slope −1-1⁠.

Common mistakes
  1. ddx(cos⁡2y)=−2cos⁡ysin⁡y\frac{d}{dx}(\cos^2 y) = -2\cos y\sin y⁠. The factor dydx\frac{dy}{dx} is missing.
  2. A wrong sign. (cos⁡y)′=−sin⁡y(\cos y)' = -\sin y⁠, so the cos⁡2y\cos^2 y term is negative; moving it across makes the answer positive: +sin⁡2xsin⁡2y+\frac{\sin 2x}{\sin 2y}⁠.
  3. Forgetting the condition sin⁡2y≠0\sin 2y \ne 0⁠. At the crossing points the formula is 00\frac{0}{0}⁠.
What to take away
  1. Implicit differentiation works even when the "curve" is several lines; the formula gives the slope of whichever piece passes through the point.
  2. Simplifying the relation first (here to sin⁡2x=sin⁡2y\sin^2 x = \sin^2 y⁠) can reveal its shape and give an independent check of the derivative.

Every fact used, and where it comes from

FactUsed inSource
Differentiating both sides of a relationStep 1Section 5.3.2, Examples 22 and 23 (Lesson: implicit differentiation)
Chain rule, also for three functionsStep 1Theorem 4 and the extension after it, Section 5.3.1
(sin⁡t)′=cos⁡t(\sin t)' = \cos t⁠, (cos⁡t)′=−sin⁡t(\cos t)' = -\sin tStep 1Table 5.3, Section 5.3
2sin⁡tcos⁡t=sin⁡2t2\sin t\cos t = \sin 2t⁠; sin⁡2t+cos⁡2t=1\sin^2 t + \cos^2 t = 1Steps 1, 3Class XI, Trigonometric Functions
sin⁡(A±B)\sin(A \pm B) formulas; sin⁡t=0  ⟺  t=nπ\sin t = 0 \iff t = n\pi⁠; sin⁡\sin has period 2π2\pi and is oddSteps 3, 4Class XI, Trigonometric Functions
Numerical valuesCheckRecomputed in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →