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

Exercise 9.3 · Q1: General solution of dydx=1−cos⁡x1+cos⁡x\frac{dy}{dx} = \frac{1 - \cos x}{1 + \cos x}

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:

1. dydx=1−cos⁡x1+cos⁡x\dfrac{dy}{dx} = \dfrac{1 - \cos x}{1 + \cos x}

Exam answer

Here 1+cos⁡x≠01 + \cos x \ne 0⁠. Separating the variables,

dy=1−cos⁡x1+cos⁡x dx=2sin⁡2x22cos⁡2x2 dx=tan⁡2x2 dx=(sec⁡2x2−1)dx\begin{aligned} dy &= \frac{1 - \cos x}{1 + \cos x}\,dx \\ &= \frac{2\sin^2\frac{x}{2}}{2\cos^2\frac{x}{2}}\,dx \\ &= \tan^2\frac{x}{2}\,dx \\ &= \left(\sec^2\frac{x}{2} - 1\right)dx \end{aligned}

Integrating both sides,

∫dy=∫(sec⁡2x2−1)dxy=2tan⁡x2−x+C\begin{aligned} \int dy &= \int\left(\sec^2\frac{x}{2} - 1\right)dx \\ y &= 2\tan\frac{x}{2} - x + C \end{aligned}

∴\therefore y=2tan⁡x2−x+Cy = 2\tan\dfrac{x}{2} - x + C is the general solution.

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

The one idea this problem is built on

The right side contains xx only, so the variables are already apart: dydy equals a function of xx times dxdx⁠, and yy is simply an integral of that function. The half-angle formulas turn 1−cos⁡x1+cos⁡x\frac{1 - \cos x}{1 + \cos x} into tan⁡2x2\tan^2\frac{x}{2}⁠, and tan⁡2=sec⁡2−1\tan^2 = \sec^2 - 1 makes it a standard integral.

Given, to find, and the plan
Given
dydx=1−cos⁡x1+cos⁡x\frac{dy}{dx} = \frac{1 - \cos x}{1 + \cos x}⁠, defined where cos⁡x≠−1\cos x \ne -1⁠, that is x≠(2n+1)πx \ne (2n + 1)\pi⁠.
To find
The general solution, with one arbitrary constant.
Plan
(1) See the separable form. (2) Write dydy in terms of dxdx⁠. (3) Simplify with the half-angle formulas. (4) Integrate, with one constant, and check each integral. (5) Check by substituting back.

Basics you need

1Variables separable

If dydx=g(x) h(y)\frac{dy}{dx} = g(x)\,h(y) with h(y)≠0h(y) \ne 0⁠, then ∫dyh(y)=∫g(x) dx\int\frac{dy}{h(y)} = \int g(x)\,dx (Section 9.4.1). Here h(y)=1h(y) = 1⁠. Lesson: separate, then integrate

2Half-angle formulas

1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2} and 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}⁠, both from cos⁡2θ=1−2sin⁡2θ=2cos⁡2θ−1\cos 2\theta = 1 - 2\sin^2\theta = 2\cos^2\theta - 1 with θ=x2\theta = \frac{x}{2} (Class XI).

3tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1

Divide sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1 by cos⁡2θ\cos^2\theta⁠.

4Integral of sec⁡2\sec^2

∫sec⁡2x dx=tan⁡x+C\int\sec^2x\,dx = \tan x + C (Section 7.2, formula (iv)); so ∫sec⁡2x2 dx=2tan⁡x2+C\int\sec^2\frac{x}{2}\,dx = 2\tan\frac{x}{2} + C⁠. Basics: every method ends with an integral

5One arbitrary constant

A first order equation has one arbitrary constant in its general solution. Basics: order n gives n constants

Solution

  1. Recognise the form: variables separable

    dydx=1−cos⁡x1+cos⁡x⋅1=g(x) h(y),\frac{dy}{dx} = \frac{1 - \cos x}{1 + \cos x}\cdot 1 = g(x)\,h(y),

    with g(x)=1−cos⁡x1+cos⁡xg(x) = \frac{1 - \cos x}{1 + \cos x} and h(y)=1h(y) = 1⁠. The equation only makes sense where 1+cos⁡x≠01 + \cos x \ne 0⁠, that is x≠±π,±3π,…x \ne \pm\pi, \pm 3\pi, \ldots

    An equation dydx=g(x)\frac{dy}{dx} = g(x) is the simplest separable case: h(y)=1h(y) = 1 is never 0, so there is nothing to divide by and no solution can be lost. The only restriction comes from the equation itself, whose denominator 1+cos⁡x1 + \cos x must not vanish.
    Section 9.4.1: dydx=h(y) g(x)\frac{dy}{dx} = h(y)\,g(x)⁠, with h(y)≠0h(y) \ne 0⁠. Lesson: separate, then integrate
  2. Separate: dydy in terms of dxdx

    Multiply both sides by dxdx⁠:

    dy=1−cos⁡x1+cos⁡x dx.dy = \frac{1 - \cos x}{1 + \cos x}\,dx.
    Now the left side holds only yy (with dydy⁠) and the right side only xx (with dxdx⁠). Integrating the left side will give yy itself.
    Separating: yy with dydy⁠, xx with dxdx⁠. Basics: dy = y′ dx
  3. Simplify with the half-angle formulas

    1−cos⁡x1+cos⁡x=2sin⁡2x22cos⁡2x2=tan⁡2x2=sec⁡2x2−1.\begin{aligned} \frac{1 - \cos x}{1 + \cos x} &= \frac{2\sin^2\frac{x}{2}}{2\cos^2\frac{x}{2}} = \tan^2\frac{x}{2} \\ &= \sec^2\frac{x}{2} - 1. \end{aligned}
    The fraction as it stands has no standard antiderivative. Writing both 1±cos⁡x1 \pm \cos x through the half angle cancels the 2s and leaves tan⁡2x2\tan^2\frac{x}{2}⁠. Then tan⁡2=sec⁡2−1\tan^2 = \sec^2 - 1 turns it into sec⁡2\sec^2⁠, whose integral is on the standard list. Where 1+cos⁡x≠01 + \cos x \ne 0 we have cos⁡x2≠0\cos\frac{x}{2} \ne 0⁠, so tan⁡x2\tan\frac{x}{2} and sec⁡x2\sec\frac{x}{2} are defined.
    cos⁡2θ=1−2sin⁡2θ=2cos⁡2θ−1\cos 2\theta = 1 - 2\sin^2\theta = 2\cos^2\theta - 1⁠; 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta (Class XI). Basics: every method ends with an integral
  4. Integrate both sides, with one constant

    ∫dy=∫(sec⁡2x2−1)dx\int dy = \int\left(\sec^2\frac{x}{2} - 1\right)dx y=2tan⁡x2−x+C.y = 2\tan\frac{x}{2} - x + C.

    Check each integral by differentiating: ddx(2tan⁡x2)=2sec⁡2x2⋅12=sec⁡2x2\frac{d}{dx}\left(2\tan\frac{x}{2}\right) = 2\sec^2\frac{x}{2}\cdot\frac{1}{2} = \sec^2\frac{x}{2} and ddx(x)=1\frac{d}{dx}(x) = 1⁠.

    From ∫sec⁡2u du=tan⁡u\int\sec^2u\,du = \tan u with u=x2u = \frac{x}{2}⁠, du=12dxdu = \frac{1}{2}dx⁠, so dx=2 dudx = 2\,du and ∫sec⁡2x2 dx=2tan⁡x2\int\sec^2\frac{x}{2}\,dx = 2\tan\frac{x}{2}⁠. The constants of integration from both sides combine into one CC⁠, which may be any real number: one constant for a first order equation.
    Section 7.2, formula (iv), with the substitution u=x2u = \frac{x}{2} (Section 7.3.1). Basics: order n gives n constants
  5. Check: substitute back

    For y=2tan⁡x2−x+Cy = 2\tan\frac{x}{2} - x + C⁠,

    dydx=sec⁡2x2−1=tan⁡2x2=1−cos⁡x1+cos⁡x,\begin{aligned} \frac{dy}{dx} &= \sec^2\frac{x}{2} - 1 = \tan^2\frac{x}{2} \\ &= \frac{1 - \cos x}{1 + \cos x}, \end{aligned}

    reading Step 3 backwards. So L.H.S. = R.H.S. for every CC and every xx with cos⁡x≠−1\cos x \ne -1⁠.

    Substituting back is the definition of a solution (Section 9.3). The solution lives on each interval between consecutive odd multiples of π\pi⁠, for example −π<x<π-\pi < x < \pi⁠, where tan⁡x2\tan\frac{x}{2} is defined; as x→πx \to \pi the curve goes off to infinity, just as the slope does.
    A solution makes L.H.S. = R.H.S. Lesson: general and particular solutions
Result

The general solution is y=2tan⁡x2−x+Cy = 2\tan\frac{x}{2} - x + C⁠, where CC is an arbitrary constant, valid on any interval with cos⁡x≠−1\cos x \ne -1 (for example −π<x<π-\pi < x < \pi⁠). (Textbook answer: y=2tan⁡x2−x+Cy = 2\tan\frac{x}{2} - x + C⁠.)

Check it with numbers

Take C=0C = 0⁠, the curve y=2tan⁡x2−xy = 2\tan\frac{x}{2} - x⁠. At x=1x = 1 the equation gives the slope 1−cos⁡11+cos⁡1≈0.29844641\frac{1 - \cos 1}{1 + \cos 1} \approx 0.29844641⁠.

The curve itself: y(1.001)≈0.0929037810y(1.001) \approx 0.0929037810 and y(0.999)≈0.0923068877y(0.999) \approx 0.0923068877⁠, so

0.0929037810−0.09230688770.002≈0.29845.\begin{aligned} &\frac{0.0929037810 - 0.0923068877}{0.002} \\ &\approx 0.29845. \end{aligned}
Common mistakes
  1. Splitting the fraction as 11+cos⁡x−cos⁡x1+cos⁡x\frac{1}{1 + \cos x} - \frac{\cos x}{1 + \cos x} and getting stuck. The half-angle formulas are the way in.
  2. ∫sec⁡2x2 dx=tan⁡x2\int\sec^2\frac{x}{2}\,dx = \tan\frac{x}{2}⁠. The inner x2\frac{x}{2} has derivative 12\frac{1}{2}⁠, so the integral is 2tan⁡x22\tan\frac{x}{2}⁠.
  3. Forgetting the −1-1 from tan⁡2=sec⁡2−1\tan^2 = \sec^2 - 1⁠, which gives the −x-x in the answer.
What to take away
  1. When dydx\frac{dy}{dx} depends on xx only, the general solution is y=∫g(x) dx+Cy = \int g(x)\,dx + C⁠.
  2. 1−cos⁡x1+cos⁡x=tan⁡2x2\frac{1 - \cos x}{1 + \cos x} = \tan^2\frac{x}{2} is worth remembering.
  3. Check by differentiating back: the answer must give the equation for every CC⁠.

Every fact used, and where it comes from

FactUsed inSource
Variables separable form; ∫dyh(y)=∫g(x) dx\int\frac{dy}{h(y)} = \int g(x)\,dxSteps 1, 2Section 9.4.1 (Lesson)
1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2}⁠, 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}Step 3Class XI trigonometry
tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1Steps 3, 5Class XI trigonometry
∫sec⁡2x dx=tan⁡x+C\int\sec^2x\,dx = \tan x + CStep 4Section 7.2, formula (iv) (Basics)
Substitution u=x2u = \frac{x}{2}Step 4Section 7.3.1
One arbitrary constant for a first order equationStep 4Section 9.3 (Basics)
A solution makes L.H.S. = R.H.S.Step 5Section 9.3 (Lesson)
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 →