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

Example 31: dydx\frac{dy}{dx} when x=acos⁡θx=a\cos\theta⁠, y=asin⁡θy=a\sin\theta

ExamplesParametric differentiation · Section 5.6
The question

Find dydx\dfrac{dy}{dx}⁠, if x=acos⁡θx = a\cos\theta⁠, y=asin⁡θy = a\sin\theta⁠.

Exam answer

Here x=acos⁡θx = a\cos\theta and y=asin⁡θy = a\sin\theta⁠.

Differentiating w.r.t. θ\theta⁠,

dxdθ=−asin⁡θdydθ=acos⁡θ\begin{aligned} \frac{dx}{d\theta} &= -a\sin\theta \\ \frac{dy}{d\theta} &= a\cos\theta \end{aligned} dydx=dy/dθdx/dθ=acos⁡θ−asin⁡θ\frac{dy}{dx} = \frac{dy/d\theta}{dx/d\theta} = \frac{a\cos\theta}{-a\sin\theta}

∴ dydx=−cot⁡θ\therefore\ \dfrac{dy}{dx} = -\cot\theta (θ≠nπ, n∈Z)(\theta \ne n\pi,\ n \in \Z)⁠.

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

The one idea this problem is built on

Here xx and yy are not linked to each other directly. Each is given in terms of a third variable θ\theta⁠, the parameter. We never need to write yy in terms of xx⁠: we find how fast xx and yy each change with θ\theta⁠, and divide,

dydx=dy/dθdx/dθ,\frac{dy}{dx} = \frac{dy/d\theta}{dx/d\theta},

which is allowed whenever dxdθ≠0\frac{dx}{d\theta} \neq 0⁠. The points (acos⁡θ,asin⁡θ)(a\cos\theta, a\sin\theta) run round a circle, and the answer is the slope of the tangent to that circle.

Given, to find, and the plan
Given
x=acos⁡θx = a\cos\theta and y=asin⁡θy = a\sin\theta⁠, where aa is a nonzero constant and θ\theta is the parameter. (If a=0a = 0⁠, every θ\theta gives the single point (0,0)(0,0) and there is no curve to talk about.)
To find
dydx\dfrac{dy}{dx}⁠, the rate of change of yy with respect to xx (the slope of the curve).
Plan
Differentiate xx and yy separately with respect to θ\theta⁠. Find the values of θ\theta where dxdθ=0\frac{dx}{d\theta} = 0⁠, because the formula cannot be used there. Divide and simplify. Then check the answer a second way, by implicit differentiation of the circle's equation.

Basics you need

1Derivatives of sine and cosine

ddθ(sin⁡θ)=cos⁡θ\dfrac{d}{d\theta}(\sin\theta) = \cos\theta and ddθ(cos⁡θ)=−sin⁡θ\dfrac{d}{d\theta}(\cos\theta) = -\sin\theta (Table 5.3, with θ\theta as the variable). Note the minus sign for cosine. Basics: derivative rules

2A constant factor stays outside

If aa is a constant, ddθ(a u)=a dudθ\dfrac{d}{d\theta}\big(a\,u\big) = a\,\dfrac{du}{d\theta}⁠. This is the product rule with dadθ=0\frac{da}{d\theta} = 0⁠. Basics: derivative rules

3The parametric formula (Section 5.6)

If x=f(t)x = f(t) and y=g(t)y = g(t)⁠, the chain rule gives dydt=dydx⋅dxdt\frac{dy}{dt} = \frac{dy}{dx}\cdot\frac{dx}{dt}⁠. Dividing by dxdt\frac{dx}{dt}⁠, which is only allowed when it is not zero,

dydx=g′(t)f′(t),  if f′(t)≠0.\frac{dy}{dx} = \frac{g'(t)}{f'(t)}, \ \text{ if } f'(t) \neq 0.

Lesson: parametric differentiation

4Cotangent

cot⁡θ=cos⁡θsin⁡θ\cot\theta = \dfrac{\cos\theta}{\sin\theta}⁠, defined exactly when sin⁡θ≠0\sin\theta \neq 0⁠, that is when θ\theta is not a multiple of π\pi⁠. Basics: trigonometric identities

5What dydx\frac{dy}{dx} means on a curve

At a point of a curve, dydx\frac{dy}{dx} is the slope of the tangent line there. A vertical tangent has no slope, so dydx\frac{dy}{dx} cannot exist at such a point. Basics: slope at a point

Solution

  1. Name the parameter and the two derivatives we need

    Both coordinates are written in terms of θ\theta⁠:

    x=acos⁡θ,y=asin⁡θ.x = a\cos\theta, \qquad y = a\sin\theta.

    So θ\theta is the parameter, and by Basic 3 we need dxdθ\dfrac{dx}{d\theta} and dydθ\dfrac{dy}{d\theta}⁠.

    We could try to get yy in terms of xx first: from x2+y2=a2x^2 + y^2 = a^2 we would get y=a2−x2y = \sqrt{a^2 - x^2} on the upper half of the circle and y=−a2−x2y = -\sqrt{a^2 - x^2} on the lower half. That means two formulas and square roots. The parametric route avoids all of this: each of xx and yy is a simple function of θ\theta⁠.
    A parameter is just a third variable that both xx and yy depend on. Think of θ\theta as a clock: as it runs, the point (x,y)(x, y) moves along the curve. Lesson: parametric differentiation
  2. Differentiate xx with respect to θ\theta

    The constant aa stays outside (Basic 2), and the derivative of cos⁡θ\cos\theta is −sin⁡θ-\sin\theta (Basic 1):

    dxdθ=a ddθ(cos⁡θ)=−asin⁡θ.\frac{dx}{d\theta} = a\,\frac{d}{d\theta}(\cos\theta) = -a\sin\theta.
    dxdθ\frac{dx}{d\theta} measures how fast xx changes as θ\theta increases. For 0<θ<π0 \lt \theta \lt \pi (with a>0a \gt 0⁠) it is negative: moving anticlockwise over the top of the circle, the point moves to the left.
    ddθcos⁡θ=−sin⁡θ\frac{d}{d\theta}\cos\theta = -\sin\theta⁠. Forgetting this minus sign is the most common slip in this example. Basics: derivative rules
  3. Differentiate yy with respect to θ\theta

    dydθ=a ddθ(sin⁡θ)=acos⁡θ.\frac{dy}{d\theta} = a\,\frac{d}{d\theta}(\sin\theta) = a\cos\theta.
    This is the same kind of step as Step 2, now for the second coordinate. Both rates are needed because the slope compares the change in yy with the change in xx⁠.
    ddθsin⁡θ=cos⁡θ\frac{d}{d\theta}\sin\theta = \cos\theta (Table 5.3).
  4. Find where the formula may be used

    Basic 3 needs dxdθ≠0\frac{dx}{d\theta} \neq 0⁠. Since a≠0a \neq 0⁠,

    −asin⁡θ≠0  ⟺  sin⁡θ≠0  ⟺  θ≠nπ, n∈Z.\begin{aligned} -a\sin\theta \neq 0 &\iff \sin\theta \neq 0 \\ &\iff \theta \neq n\pi,\ n \in \Z. \end{aligned}

    The excluded values θ=0,±2π,…\theta = 0, \pm 2\pi, \dots give the point (a,0)(a, 0)⁠, and θ=±π,±3π,…\theta = \pm\pi, \pm 3\pi, \dots give (−a,0)(-a, 0)⁠. These are the two ends of the horizontal diameter of the circle.

    At these two points xx momentarily stops changing while yy keeps changing, so the curve is heading straight up or down. The tangent is vertical and has no slope, so no formula could give a value of dydx\frac{dy}{dx} there (see the figure).
    sin⁡θ=0\sin\theta = 0 exactly when θ\theta is an integer multiple of π\pi⁠. Basics: trigonometric identities
  5. Divide and simplify

    For θ≠nπ\theta \neq n\pi⁠, by the parametric formula,

    dydx=dy/dθdx/dθ=acos⁡θ−asin⁡θ=−cos⁡θsin⁡θ=−cot⁡θ.\begin{aligned} \frac{dy}{dx} &= \frac{dy/d\theta}{dx/d\theta} = \frac{a\cos\theta}{-a\sin\theta} \\ &= -\frac{\cos\theta}{\sin\theta} = -\cot\theta. \end{aligned}

    So dydx=−cot⁡θ\dfrac{dy}{dx} = -\cot\theta, for every θ\theta that is not a multiple of π\pi⁠.

    The θ\theta-rate of yy goes on top and the θ\theta-rate of xx goes underneath, because dydx\frac{dy}{dx} asks "how much does yy change per unit change in xx". Cancelling aa is allowed because a≠0a \neq 0⁠. The answer is in terms of θ\theta only, which is normal for parametric problems (the book's Note after Example 33 says the same).
    cos⁡θsin⁡θ=cot⁡θ\frac{\cos\theta}{\sin\theta} = \cot\theta (Basic 4).
  6. See what the answer means

    Every point of the curve lies on a circle, because

    x2+y2=a2cos⁡2θ+a2sin⁡2θ=a2.x^2 + y^2 = a^2\cos^2\theta + a^2\sin^2\theta = a^2.

    So the curve is the circle of radius ∣a∣|a| centred at the origin OO⁠. Where cos⁡θ≠0\cos\theta \neq 0⁠, the radius OPOP to the point P(acos⁡θ,asin⁡θ)P(a\cos\theta, a\sin\theta) has slope yx=tan⁡θ\frac{y}{x} = \tan\theta⁠, and

    tan⁡θ×(−cot⁡θ)=−1.\tan\theta \times (-\cot\theta) = -1.

    Slopes with product −1-1 belong to perpendicular lines: the tangent is perpendicular to the radius, which is exactly the geometry fact about tangents to a circle. (Where cos⁡θ=0\cos\theta = 0⁠, the radius is vertical and −cot⁡θ=0-\cot\theta = 0⁠, so the tangent is horizontal: again perpendicular.)

    x y O −a a −a a θ P tangent at P: slope −cot θ radius OP: slope tan θ (product −1) θ = 0 or π: dx/dθ = 0, vertical tangent
    The circle x=acos⁡θx = a\cos\theta⁠, y=asin⁡θy = a\sin\theta with PP at θ=π3\theta = \frac{\pi}{3}⁠. The tangent at PP (gold) has slope −cot⁡π3=−13-\cot\frac{\pi}{3} = -\frac{1}{\sqrt3} and is perpendicular to the radius OPOP⁠. At the two rose points dxdθ=0\frac{dx}{d\theta} = 0 and the tangent is vertical.
    A figure turns the formula into something you can see: −cot⁡θ-\cot\theta is not just an expression, it is the steepness of the circle at the point labelled by θ\theta⁠. It also explains the excluded values of Step 4.
    cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1 for every θ\theta⁠. Basics: trigonometric identities
  7. Check by a second method: implicit differentiation

    Differentiate x2+y2=a2x^2 + y^2 = a^2 with respect to xx⁠, treating yy as a function of xx (chain rule on y2y^2⁠):

    2x+2y dydx=0,  so  dydx=−xy2x + 2y\,\frac{dy}{dx} = 0, \ \text{ so } \ \frac{dy}{dx} = -\frac{x}{y}

    wherever y≠0y \neq 0⁠.

    Put in x=acos⁡θx = a\cos\theta⁠, y=asin⁡θy = a\sin\theta⁠:

    −xy=−acos⁡θasin⁡θ=−cot⁡θ.-\frac{x}{y} = -\frac{a\cos\theta}{a\sin\theta} = -\cot\theta.

    The same answer, and the condition y≠0y \neq 0 is the same as sin⁡θ≠0\sin\theta \neq 0 from Step 4.

    Getting one answer by two independent methods is strong evidence that neither contains a slip. It also shows that the parametric answer −cot⁡θ-\cot\theta and the answer −xy-\frac{x}{y} in terms of xx and yy are the same slope, written in different variables.
    Implicit differentiation: ddx(y2)=2ydydx\frac{d}{dx}(y^2) = 2y\frac{dy}{dx} by the chain rule. Lesson: implicit differentiation
Result dydx=−cot⁡θ(θ≠nπ, n∈Z).\frac{dy}{dx} = -\cot\theta \qquad (\theta \neq n\pi,\ n\in\Z).

In terms of xx and yy this is −xy-\frac{x}{y}⁠. At θ=nπ\theta = n\pi⁠, the points (±a,0)(\pm a, 0)⁠, the tangent is vertical and dydx\frac{dy}{dx} does not exist. (Book's answer: −cot⁡θ-\cot\theta⁠.)

Check it with numbers

Take a=2a = 2 and θ=π3≈1.0471976\theta = \frac{\pi}{3} \approx 1.0471976⁠. The point is P=(1,3)≈(1,1.7320508)P = (1, \sqrt3) \approx (1, 1.7320508) and the predicted slope is −cot⁡π3=−13≈−0.5773503-\cot\frac{\pi}{3} = -\frac{1}{\sqrt3} \approx -0.5773503⁠.

Move θ\theta by 0.0010.001 either way. At θ−0.001\theta - 0.001⁠: (1.0017316, 1.7310499)(1.0017316,\ 1.7310499)⁠. At θ+0.001\theta + 0.001⁠: (0.9982674, 1.7330499)(0.9982674,\ 1.7330499)⁠. The chord between them has

ΔyΔx=0.0020000−0.0034641≈−0.5773503.\frac{\Delta y}{\Delta x} = \frac{0.0020000}{-0.0034641} \approx -0.5773503.

This agrees with −cot⁡π3-\cot\frac{\pi}{3} to all seven decimals. (On a circle the agreement is exact, since a chord whose ends are placed symmetrically about PP is parallel to the tangent at PP⁠.) Also −xy=−11.7320508≈−0.5773503-\frac{x}{y} = -\frac{1}{1.7320508} \approx -0.5773503⁠.

Common mistakes
  1. Dividing the wrong way round. dx/dθdy/dθ\frac{dx/d\theta}{dy/d\theta} gives −tan⁡θ-\tan\theta⁠, which is dxdy\frac{dx}{dy}⁠, not dydx\frac{dy}{dx}⁠. The yy-rate goes on top.
  2. Losing the minus sign. ddθcos⁡θ=−sin⁡θ\frac{d}{d\theta}\cos\theta = -\sin\theta⁠. Without the minus you get +cot⁡θ+\cot\theta⁠. At θ=π3\theta = \frac{\pi}{3} that would be a positive slope, but the figure shows the tangent at PP sloping downwards.
  3. Ignoring the condition. The formula needs dxdθ≠0\frac{dx}{d\theta} \neq 0⁠. At θ=0\theta = 0 or π\pi the expression −cot⁡θ-\cot\theta is undefined, and that is correct: the tangent there is vertical.
  4. Thinking the answer must be in xx and yy⁠. For parametric curves an answer in the parameter is complete. If you want xx and yy⁠, use −xy-\frac{x}{y} (Step 7).
What to take away
  1. Parametric recipe: differentiate both coordinates with respect to the parameter, then divide the yy-rate by the xx-rate.
  2. Always state where dxdθ≠0\frac{dx}{d\theta} \neq 0⁠. The excluded parameter values are where the tangent is vertical (or where the curve misbehaves).
  3. x=acos⁡θx = a\cos\theta⁠, y=asin⁡θy = a\sin\theta is the standard parametrisation of the circle x2+y2=a2x^2+y^2=a^2⁠, and its slope −cot⁡θ-\cot\theta is perpendicular to the radius slope tan⁡θ\tan\theta⁠.

Every fact used, and where it comes from

FactUsed inSource
dydx=g′(t)f′(t)\frac{dy}{dx} = \frac{g'(t)}{f'(t)}⁠, f′(t)≠0f'(t) \neq 0Steps 1, 4, 5Section 5.6 (Lesson: parametric differentiation)
(sin⁡θ)′=cos⁡θ(\sin\theta)' = \cos\theta⁠, (cos⁡θ)′=−sin⁡θ(\cos\theta)' = -\sin\thetaSteps 2, 3Table 5.3, Section 5.3
(a u)′=a u′(a\,u)' = a\,u' for constant aaSteps 2, 3Algebra of derivatives (product rule), Section 5.3
sin⁡θ=0  ⟺  θ=nπ\sin\theta = 0 \iff \theta = n\piStep 4Class XI, Trigonometric Functions
cot⁡θ=cos⁡θsin⁡θ\cot\theta = \frac{\cos\theta}{\sin\theta}Step 5Definition of cotangent
cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1Step 6Pythagorean identity
Perpendicular lines: slopes multiply to −1-1Step 6Class XI, Straight Lines
Chain rule; implicit differentiationSteps 1, 7Theorem 4 and Section 5.3.2 (Lesson: implicit differentiation)
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 →