Class 12 Maths, Worked in Full Past papersGet updates
Chapter 9 · Differential Equations

Miscellaneous · Q6: Curve through (0,π4)(0, \frac{\pi}{4}) with sin⁡xcos⁡y dx+cos⁡xsin⁡y dy=0\sin x\cos y\,dx + \cos x\sin y\,dy = 0

Miscellaneous ExerciseVariables separable, particular solution · Section 9.4.1
The question

6. Find the equation of the curve passing through the point (0,π4)\left(0, \dfrac{\pi}{4}\right) whose differential equation is sin⁡xcos⁡y dx+cos⁡xsin⁡y dy=0\sin x\cos y\,dx + \cos x\sin y\,dy = 0⁠.

Exam answer

Dividing by cos⁡xcos⁡y\cos x\cos y (≠0\ne 0⁠), the variables separate:

tan⁡x dx+tan⁡y dy=0\tan x\,dx + \tan y\,dy = 0

Integrating both sides,

∫tan⁡x dx+∫tan⁡y dy=log⁡∣C∣log⁡∣sec⁡x∣+log⁡∣sec⁡y∣=log⁡∣C∣log⁡∣sec⁡xsec⁡y∣=log⁡∣C∣\begin{aligned} \int\tan x\,dx + \int\tan y\,dy &= \log|C| \\ \log|\sec x| + \log|\sec y| &= \log|C| \\ \log|\sec x\sec y| &= \log|C| \end{aligned} ∴ sec⁡xsec⁡y=C…(i)\therefore\ \sec x\sec y = C\quad\ldots(\text{i})

The curve passes through (0,π4)\left(0, \frac{\pi}{4}\right)⁠. Putting x=0x = 0⁠, y=π4y = \frac{\pi}{4} in (i): sec⁡0⋅sec⁡π4=C\sec 0\cdot\sec\frac{\pi}{4} = C⁠, so C=2C = \sqrt2⁠.

sec⁡xsec⁡y=2 ⇒ 1cos⁡y=2sec⁡x\sec x\sec y = \sqrt2\ \Rightarrow\ \frac{1}{\cos y} = \frac{\sqrt2}{\sec x}

∴\therefore The equation of the curve is cos⁡y=sec⁡x2\cos y = \dfrac{\sec x}{\sqrt2}⁠.

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

The one idea this problem is built on

Each term is a product of an xx-part and a yy-part. Dividing by cos⁡xcos⁡y\cos x\cos y leaves tan⁡x dx+tan⁡y dy=0\tan x\,dx + \tan y\,dy = 0⁠, with the variables separated. Integrating gives the family sec⁡xsec⁡y=C\sec x\sec y = C⁠, and the given point picks the one curve through it.

Given, to find, and the plan
Given
sin⁡xcos⁡y dx+cos⁡xsin⁡y dy=0\sin x\cos y\,dx + \cos x\sin y\,dy = 0⁠, and the curve passes through (0,π4)\left(0, \frac{\pi}{4}\right)⁠.
To find
The equation of that curve (a particular solution).
Plan
(1) Separate by dividing by cos⁡xcos⁡y\cos x\cos y⁠. (2) Integrate, with one constant. (3) Put in the point to find CC⁠. (4) Write the curve and find where it lives. (5) Check by substituting back, and see the curve.

Basics you need

1Variables separable

When the equation can be arranged as (function of xx⁠) dxdx ++ (function of yy⁠) dy=0dy = 0⁠, integrate each part (Section 9.4.1). Lesson: variables separable

2∫tan⁡x dx\int\tan x\,dx

∫tan⁡x dx=log⁡∣sec⁡x∣+C\int\tan x\,dx = \log|\sec x| + C (Section 7.3.1, standard integral (i)). Basics: every method ends with an integral

3Particular solution through a point

Putting the coordinates of the given point into the general solution fixes the constant (Section 9.3). Lesson: general and particular solutions

4Values of sec

sec⁡0=1\sec 0 = 1⁠, sec⁡π4=2\sec\frac{\pi}{4} = \sqrt2⁠, and sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}⁠. Basics: dy = y′ dx

Solution

  1. Separate the variables

    Near the point (0,π4)\left(0, \frac{\pi}{4}\right)⁠, cos⁡x>0\cos x > 0 and cos⁡y>0\cos y > 0⁠. Divide every term by cos⁡xcos⁡y\cos x\cos y⁠:

    sin⁡xcos⁡x dx+sin⁡ycos⁡y dy=0,tan⁡x dx+tan⁡y dy=0.\begin{aligned} \frac{\sin x}{\cos x}\,dx + \frac{\sin y}{\cos y}\,dy &= 0, \\ \tan x\,dx + \tan y\,dy &= 0. \end{aligned}
    In the first term cos⁡y\cos y cancels, leaving sin⁡xcos⁡x\frac{\sin x}{\cos x}⁠; in the second cos⁡x\cos x cancels, leaving sin⁡ycos⁡y\frac{\sin y}{\cos y}⁠. Now each term holds one variable only. The lines where cos⁡x=0\cos x = 0 or cos⁡y=0\cos y = 0 (such as x=±π2x = \pm\frac{\pi}{2}⁠, y=π2y = \frac{\pi}{2}⁠) are excluded by the division; none of them passes through (0,π4)\left(0, \frac{\pi}{4}\right)⁠.
    Section 9.4.1: separate, then integrate. Lesson: variables separable
  2. Integrate, with one constant

    ∫tan⁡x dx+∫tan⁡y dy=log⁡∣C∣log⁡∣sec⁡x∣+log⁡∣sec⁡y∣=log⁡∣C∣log⁡∣sec⁡xsec⁡y∣=log⁡∣C∣,\begin{aligned} \int\tan x\,dx + \int\tan y\,dy &= \log|C| \\ \log|\sec x| + \log|\sec y| &= \log|C| \\ \log|\sec x\sec y| &= \log|C|, \end{aligned}

    so sec⁡xsec⁡y=±C\sec x\sec y = \pm C⁠. Renaming ±C\pm C as CC⁠, the general solution is

    sec⁡xsec⁡y=C.…(1)\sec x\sec y = C.\quad\ldots(1)
    Writing the arbitrary constant as log⁡∣C∣\log|C| (with C≠0C \ne 0⁠) lets the logarithms combine into one; it is still a single arbitrary constant, the right number for a first order equation. log⁡∣u∣+log⁡∣w∣=log⁡∣uw∣\log|u| + \log|w| = \log|uw|⁠.
    Section 7.3.1, standard integral (i): ∫tan⁡x dx=log⁡∣sec⁡x∣+C\int\tan x\,dx = \log|\sec x| + C⁠. Basics: every method ends with an integral
  3. Use the point (0,π4)\left(0, \frac{\pi}{4}\right)

    Putting x=0x = 0⁠, y=π4y = \frac{\pi}{4} in (1):

    sec⁡0⋅sec⁡π4=1⋅2=C,\sec 0\cdot\sec\frac{\pi}{4} = 1\cdot\sqrt2 = C,

    so C=2C = \sqrt2⁠.

    "Passing through (0,π4)\left(0, \frac{\pi}{4}\right)" means y=π4y = \frac{\pi}{4} when x=0x = 0⁠. Of all the curves (1), only the one with C=2C = \sqrt2 contains this point.
    Section 9.3: a particular solution from the general one. Lesson: Examples 4 to 9
  4. The curve, and where it lives

    With C=2C = \sqrt2⁠, sec⁡xsec⁡y=2\sec x\sec y = \sqrt2⁠. Since sec⁡y=1cos⁡y\sec y = \frac{1}{\cos y}⁠, this is 1cos⁡y=2sec⁡x\frac{1}{\cos y} = \frac{\sqrt2}{\sec x}⁠, that is

    cos⁡y=sec⁡x2,\cos y = \frac{\sec x}{\sqrt2},

    or, multiplying by cos⁡x\cos x⁠, cos⁡xcos⁡y=12\cos x\cos y = \frac{1}{\sqrt2}⁠.

    A cosine is at most 1, so sec⁡x2≤1\frac{\sec x}{\sqrt2} \le 1⁠, which with cos⁡x>0\cos x > 0 means cos⁡x≥12\cos x \ge \frac{1}{\sqrt2}⁠, that is −π4≤x≤π4-\frac{\pi}{4} \le x \le \frac{\pi}{4}⁠. The branch through (0,π4)\left(0, \frac{\pi}{4}\right) is

    y=cos⁡−1(sec⁡x2),−π4<x<π4.y = \cos^{-1}\left(\frac{\sec x}{\sqrt2}\right),\qquad -\frac{\pi}{4} < x < \frac{\pi}{4}.
    At x=±π4x = \pm\frac{\pi}{4} the curve reaches y=0y = 0⁠, where sin⁡y=0\sin y = 0 and the tangent is vertical; there it stops being a function y(x)y(x) with a derivative, so the open interval is the honest domain. The principal value of cos⁡−1\cos^{-1} lies in [0,π][0, \pi]⁠, and y=π4y = \frac{\pi}{4} at x=0x = 0 is on that branch.
    Principal value branch of cos⁡−1\cos^{-1} (Chapter 2, Section 2.2). Lesson: Miscellaneous exercise player
  5. Check by substituting back, and see the curve

    Differentiate cos⁡xcos⁡y=12\cos x\cos y = \frac{1}{\sqrt2} with respect to xx⁠:

    −sin⁡xcos⁡y−cos⁡xsin⁡y dydx=0,-\sin x\cos y - \cos x\sin y\,\frac{dy}{dx} = 0,

    which, multiplied by −dx-dx⁠, is sin⁡xcos⁡y dx+cos⁡xsin⁡y dy=0\sin x\cos y\,dx + \cos x\sin y\,dy = 0⁠: the given equation. And cos⁡0cos⁡π4=12\cos 0\cos\frac{\pi}{4} = \frac{1}{\sqrt2}⁠, so the curve passes through the point.

    X Y X′ Y′ (0, π/4) (π/4, 0) (−π/4, 0) cos y = sec x/√2 O
    Slope field of dydx=−tan⁡xtan⁡y\frac{dy}{dx} = -\frac{\tan x}{\tan y}⁠, with equal scales, and the closed curve cos⁡xcos⁡y=12\cos x\cos y = \frac{1}{\sqrt2}⁠. The bold arc is the required curve cos⁡y=sec⁡x2\cos y = \frac{\sec x}{\sqrt2} through (0,π4)\left(0, \frac{\pi}{4}\right)⁠; it meets the xx-axis at (±π4,0)\left(\pm\frac{\pi}{4}, 0\right) (hollow dots) with vertical tangents. The dashed lower arc belongs to the same relation but is a different solution.
    Getting the equation back proves the answer. The picture shows the whole relation cos⁡xcos⁡y=12\cos x\cos y = \frac{1}{\sqrt2} is a closed oval; the slope field is tangent to it everywhere, and the given point sits at its top.
    Implicit differentiation (Chapter 5, Section 5.3.2). Basics: a rule for slopes
Result

The general solution is sec⁡xsec⁡y=C\sec x\sec y = C⁠, and the curve through (0,π4)\left(0, \frac{\pi}{4}\right) is

cos⁡y=sec⁡x2(−π4<x<π4).\cos y = \frac{\sec x}{\sqrt2}\quad\left(-\frac{\pi}{4} < x < \frac{\pi}{4}\right).

(Textbook answer: cos⁡y=sec⁡x2\cos y = \dfrac{\sec x}{\sqrt2}⁠.)

Check it with numbers

Take x=0.5x = 0.5⁠. Then cos⁡0.5≈0.877583\cos 0.5 \approx 0.877583⁠, so cos⁡y=12cos⁡0.5≈0.805744\cos y = \frac{1}{\sqrt2\cos 0.5} \approx 0.805744 and y≈0.633866y \approx 0.633866⁠. The equation gives the slope −tan⁡0.5tan⁡y≈−0.5463020.735053≈−0.74322-\frac{\tan 0.5}{\tan y} \approx -\frac{0.546302}{0.735053} \approx -0.74322⁠.

The curve itself: y(0.501)≈0.6331212506y(0.501) \approx 0.6331212506 and y(0.499)≈0.6346076865y(0.499) \approx 0.6346076865⁠. Their difference is

0.6331212506−0.6346076865=−0.0014864359,\begin{aligned} &0.6331212506 - 0.6346076865 \\ &= -0.0014864359, \end{aligned}

and −0.0014864359÷0.002≈−0.74322-0.0014864359 \div 0.002 \approx -0.74322⁠, the slope the equation gives.

Common mistakes
  1. ∫tan⁡x dx=log⁡∣cos⁡x∣\int\tan x\,dx = \log|\cos x|⁠. The correct result is −log⁡∣cos⁡x∣=log⁡∣sec⁡x∣-\log|\cos x| = \log|\sec x|⁠.
  2. Swapping the coordinates of the point. (0,π4)\left(0, \frac{\pi}{4}\right) means x=0x = 0⁠, y=π4y = \frac{\pi}{4}⁠.
  3. Leaving CC as 12\frac{1}{\sqrt2} in the sec form. In sec⁡xsec⁡y=C\sec x\sec y = C⁠, C=2C = \sqrt2⁠; it is cos⁡xcos⁡y\cos x\cos y that equals 12\frac{1}{\sqrt2}⁠.
What to take away
  1. Products of an xx-part and a yy-part separate after dividing by the "wrong" parts.
  2. Write the constant as log⁡∣C∣\log|C| when the other terms are logarithms.
  3. Find CC from the point, then see where the curve is defined.

Every fact used, and where it comes from

FactUsed inSource
Separating the variables; integrate both sidesSteps 1, 2Section 9.4.1 (Lesson)
∫tan⁡x dx=log⁡∣sec⁡x∣+C\int\tan x\,dx = \log|\sec x| + CStep 2Section 7.3.1, standard integral (i) (Basics)
log⁡∣u∣+log⁡∣w∣=log⁡∣uw∣\log|u| + \log|w| = \log|uw|Step 2Laws of logarithms (Basics)
Particular solution from a given pointStep 3Section 9.3 (Lesson)
sec⁡0=1\sec 0 = 1⁠, sec⁡π4=2\sec\frac{\pi}{4} = \sqrt2Step 3Class XI trigonometry
Principal value branch of cos⁡−1\cos^{-1}Step 4Chapter 2, Section 2.2
Implicit differentiationStep 5Chapter 5, Section 5.3.2 (Basics)
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 →