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

Exercise 9.3 · Q4: General solution of sec⁡2xtan⁡y dx+sec⁡2ytan⁡x dy=0\sec^2x\tan y\,dx + \sec^2y\tan x\,dy = 0

Exercise 9.3Variables separable · Section 9.4.1
The question

For each of the differential equations in Exercises 1 to 10, find the general solution:

4. sec⁡2xtan⁡y dx+sec⁡2ytan⁡x dy=0\sec^2x\tan y\,dx + \sec^2y\tan x\,dy = 0

Exam answer

Dividing by tan⁡xtan⁡y\tan x\tan y (≠0\ne 0⁠),

sec⁡2xtan⁡x dx+sec⁡2ytan⁡y dy=0\frac{\sec^2x}{\tan x}\,dx + \frac{\sec^2y}{\tan y}\,dy = 0

Integrating both sides,

∫sec⁡2xtan⁡x dx+∫sec⁡2ytan⁡y dy=log⁡∣C∣\begin{aligned} &\int\frac{\sec^2x}{\tan x}\,dx \\ &\quad + \int\frac{\sec^2y}{\tan y}\,dy = \log|C| \end{aligned}

Put tan⁡x=t\tan x = t⁠, tan⁡y=u\tan y = u⁠. Then sec⁡2x dx=dt\sec^2x\,dx = dt and sec⁡2y dy=du\sec^2y\,dy = du⁠.

∫dtt+∫duu=log⁡∣C∣log⁡∣t∣+log⁡∣u∣=log⁡∣C∣log⁡∣tan⁡xtan⁡y∣=log⁡∣C∣\begin{aligned} \int\frac{dt}{t} + \int\frac{du}{u} &= \log|C| \\ \log|t| + \log|u| &= \log|C| \\ \log|\tan x\tan y| &= \log|C| \end{aligned}

∴\therefore tan⁡xtan⁡y=C\tan x\tan y = C is the general solution.

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

The one idea this problem is built on

Each term mixes xx and yy⁠, but as a product: sec⁡2x⋅tan⁡y\sec^2x\cdot\tan y and sec⁡2y⋅tan⁡x\sec^2y\cdot\tan x⁠. Dividing by tan⁡xtan⁡y\tan x\tan y leaves sec⁡2xtan⁡x\frac{\sec^2x}{\tan x} with dxdx and sec⁡2ytan⁡y\frac{\sec^2y}{\tan y} with dydy⁠. Each is a derivative over its function, so it integrates to a logarithm, and writing the constant as log⁡∣C∣\log|C| lets the logs combine.

Given, to find, and the plan
Given
sec⁡2xtan⁡y dx+sec⁡2ytan⁡x dy=0\sec^2x\tan y\,dx + \sec^2y\tan x\,dy = 0⁠, for xx and yy where tan⁡x\tan x and tan⁡y\tan y are defined.
To find
The general solution, with one arbitrary constant.
Plan
(1) Divide by tan⁡xtan⁡y\tan x\tan y⁠, saying where that is allowed. (2) Integrate each term by a substitution, one constant written as log⁡∣C∣\log|C|⁠. (3) Combine the logs and remove them. (4) Check by implicit differentiation.

Basics you need

1Variables separable

An equation f1(x) g1(y) dx+f2(x) g2(y) dy=0f_1(x)\,g_1(y)\,dx + f_2(x)\,g_2(y)\,dy = 0 separates on dividing by g1(y) f2(x)g_1(y)\,f_2(x)⁠, where that is nonzero (Section 9.4.1). Lesson: separate, then integrate

2Derivative over function

With t=f(x)t = f(x)⁠, dt=f′(x) dxdt = f'(x)\,dx⁠: ∫f′(x)f(x) dx=∫dtt=log⁡∣f(x)∣+C\int\frac{f'(x)}{f(x)}\,dx = \int\frac{dt}{t} = \log|f(x)| + C (Sections 7.2 and 7.3.1). Basics: every method ends with an integral

3Laws of logarithms

log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|⁠, and log⁡∣p∣=log⁡∣q∣\log|p| = \log|q| gives ∣p∣=∣q∣|p| = |q|⁠.

4One arbitrary constant

Any form of one constant will do: CC⁠, or log⁡∣C∣\log|C|⁠, which can also be any real number. Basics: order n gives n constants

Solution

  1. Divide by tan⁡xtan⁡y\tan x\tan y⁠: the variables separate

    Take xx and yy where tan⁡x\tan x and tan⁡y\tan y are defined (cos⁡x≠0\cos x \ne 0⁠, cos⁡y≠0\cos y \ne 0⁠, so sec⁡\sec is defined too) and nonzero. Dividing every term by tan⁡xtan⁡y\tan x\tan y⁠:

    sec⁡2xtan⁡x dx+sec⁡2ytan⁡y dy=0.\frac{\sec^2x}{\tan x}\,dx + \frac{\sec^2y}{\tan y}\,dy = 0.
    In the first term tan⁡y\tan y cancels, in the second tan⁡x\tan x cancels, so each term keeps one variable only. Dividing needs tan⁡xtan⁡y≠0\tan x\tan y \ne 0⁠. The lines where tan⁡y=0\tan y = 0 (y=nπy = n\pi⁠) do satisfy the equation (tan⁡y=0\tan y = 0 and dy=0dy = 0⁠); they will come back as C=0C = 0 in Step 3.
    Section 9.4.1: separate by dividing by a nonzero factor. Lesson: separate, then integrate
  2. Integrate each term, with one constant log⁡∣C∣\log|C|

    Put t=tan⁡xt = \tan x⁠, so dt=sec⁡2x dxdt = \sec^2x\,dx⁠, and u=tan⁡yu = \tan y⁠, so du=sec⁡2y dydu = \sec^2y\,dy⁠:

    ∫dtt+∫duu=log⁡∣C∣\int\frac{dt}{t} + \int\frac{du}{u} = \log|C| log⁡∣tan⁡x∣+log⁡∣tan⁡y∣=log⁡∣C∣.\log|\tan x| + \log|\tan y| = \log|C|.

    Check each integral by differentiating: ddxlog⁡∣tan⁡x∣=sec⁡2xtan⁡x\frac{d}{dx}\log|\tan x| = \frac{\sec^2x}{\tan x}⁠, and the same with yy⁠.

    Each fraction is the derivative of tan⁡\tan over tan⁡\tan⁠, so it integrates to log⁡∣tan⁡∣\log|\tan|⁠. The integral of 0 is a constant; we write it as log⁡∣C∣\log|C| with C≠0C \ne 0⁠, which is still one arbitrary constant (as CC varies, log⁡∣C∣\log|C| takes every real value). This choice lets the logs combine in the next step.
    Sections 7.2 (formula (iv), (xii)) and 7.3.1. Basics: every method ends with an integral
  3. Combine the logs and remove them

    log⁡∣tan⁡xtan⁡y∣=log⁡∣C∣⇒ ∣tan⁡xtan⁡y∣=∣C∣.\begin{aligned} \log|\tan x\tan y| &= \log|C| \\ \Rightarrow\ |\tan x\tan y| &= |C|. \end{aligned}

    So tan⁡xtan⁡y=±C\tan x\tan y = \pm C⁠. Since CC is arbitrary, write CC for ±C\pm C⁠:

    tan⁡xtan⁡y=C.\tan x\tan y = C.
    tan⁡xtan⁡y\tan x\tan y is continuous along a solution curve and never 0 in the region of Step 1, so its sign does not change and the ±\pm is one fixed sign. Allowing C=0C = 0 as well adds back the lines tan⁡y=0\tan y = 0 set aside in Step 1. (It also gives the lines x=nπx = n\pi⁠, where tan⁡x=0\tan x = 0 and dx=0dx = 0⁠; they too satisfy the equation as written with dxdx and dydy⁠.)
    log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|⁠; log⁡\log is one-one. Basics: one arbitrary constant
  4. Check: differentiate the answer back

    Differentiate tan⁡xtan⁡y=C\tan x\tan y = C with respect to xx⁠, with yy a function of xx (product rule and chain rule):

    sec⁡2xtan⁡y+tan⁡xsec⁡2y dydx=0.\sec^2x\tan y + \tan x\sec^2y\,\frac{dy}{dx} = 0.

    Multiplying by dxdx gives sec⁡2xtan⁡y dx+sec⁡2ytan⁡x dy=0\sec^2x\tan y\,dx + \sec^2y\tan x\,dy = 0⁠, the given equation.

    The constant has disappeared, so the given equation holds on every member of the family. This is the substitution check for an answer left in implicit form.
    Product rule and chain rule (Chapter 5). Basics: y′ is the slope
Result

The general solution is tan⁡xtan⁡y=C\tan x\tan y = C⁠, where CC is an arbitrary constant, for xx and yy with cos⁡x≠0\cos x \ne 0 and cos⁡y≠0\cos y \ne 0⁠. (Textbook answer: tan⁡xtan⁡y=C\tan x\tan y = C⁠.)

Check it with numbers

Take C=2C = 2 and 0<x<π20 < x < \frac{\pi}{2}⁠: then tan⁡y=2tan⁡x\tan y = \frac{2}{\tan x}⁠, so y=tan⁡−12tan⁡xy = \tan^{-1}\frac{2}{\tan x}⁠. At x=0.5x = 0.5⁠, y≈1.3041496999y \approx 1.3041496999⁠, and the equation dydx=−sec⁡2xtan⁡ysec⁡2ytan⁡x\frac{dy}{dx} = -\frac{\sec^2x\tan y}{\sec^2y\tan x} gives the slope ≈−0.60414684\approx -0.60414684⁠.

The curve itself: y(0.501)≈1.3035453225y(0.501) \approx 1.3035453225 and y(0.499)≈1.3047536166y(0.499) \approx 1.3047536166⁠, so

1.3035453225−1.30475361660.002≈−0.60415.\begin{aligned} &\frac{1.3035453225 - 1.3047536166}{0.002} \\ &\approx -0.60415. \end{aligned}
Common mistakes
  1. Dividing by sec⁡2xsec⁡2y\sec^2x\sec^2y instead. That leaves tan⁡y dx\tan y\,dx and tan⁡x dy\tan x\,dy⁠, still mixed.
  2. Getting tan⁡x+tan⁡y=C\tan x + \tan y = C from log⁡∣tan⁡x∣+log⁡∣tan⁡y∣\log|\tan x| + \log|\tan y|⁠. A sum of logs is the log of a product.
  3. A constant on each side. Integrate the whole equation once and add one constant.
What to take away
  1. For f1(x)g1(y) dx+f2(x)g2(y) dy=0f_1(x)g_1(y)\,dx + f_2(x)g_2(y)\,dy = 0⁠, divide by g1(y)f2(x)g_1(y)f_2(x)⁠.
  2. ∫f′(x)f(x) dx=log⁡∣f(x)∣\int\frac{f'(x)}{f(x)}\,dx = \log|f(x)|⁠: spot "derivative over function".
  3. When every term is a log, write the constant as log⁡∣C∣\log|C| and combine.

Every fact used, and where it comes from

FactUsed inSource
Variables separable: divide by a nonzero factor and integrateStep 1Section 9.4.1 (Lesson)
ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2x⁠; ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 2Section 7.2, formulas (iv), (xii) (Basics)
Integration by substitutionStep 2Section 7.3.1
One arbitrary constant, here written log⁡∣C∣\log|C|Steps 2, 3Section 9.3 (Basics)
log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|Step 3Laws of logarithms
Product rule and chain ruleStep 4Chapter 5 (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 →