All Exams Test series for 1 year @ ₹349 only
Question

The solution of the differential equation \(\frac{{dy}}{{dx}} = \cos \left( {y - x} \right) + 1\) is

This question was previously asked in
NDA II 2019 GAT Previous Year Paper (17-Nov-2019)
The correct answer is

e x[sec (y – x) – tan (y – x)] = c

Understanding the Differential Equation Problem

We are asked to find the solution of the differential equation given by:$$\frac{{dy}}{{dx}} = \cos \left( {y - x} \right) + 1$$

This is a first-order differential equation. Notice the term \(y - x\) inside the cosine function. This structure often suggests using a substitution to simplify the equation.

Solving the Differential Equation using Substitution

Let's introduce a new variable, say \(v\), such that:

$$v = y - x$$

Now, we need to find the derivative of \(v\) with respect to \(x\). Differentiating both sides of the substitution equation with respect to \(x\), we get:

$$\frac{{dv}}{{dx}} = \frac{{d}}{{dx}}(y - x)$$

Using the linearity of differentiation:

$$\frac{{dv}}{{dx}} = \frac{{dy}}{{dx}} - \frac{{dx}}{{dx}}$$

$$\frac{{dv}}{{dx}} = \frac{{dy}}{{dx}} - 1$$

From this, we can express \(\frac{{dy}}{{dx}}\) in terms of \(\frac{{dv}}{{dx}}\):

$$\frac{{dy}}{{dx}} = \frac{{dv}}{{dx}} + 1$$

Now, substitute \(v = y - x\) and \(\frac{{dy}}{{dx}} = \frac{{dv}}{{dx}} + 1\) into the original differential equation:

$$\frac{{dv}}{{dx}} + 1 = \cos(v) + 1$$

Subtracting 1 from both sides simplifies the equation significantly:

$$\frac{{dv}}{{dx}} = \cos(v)$$

This is now a separable differential equation, where we can separate the variables \(v\) and \(x\).

Separating Variables and Integration

To separate the variables, we move all terms involving \(v\) to one side and all terms involving \(x\) (and \(dx\)) to the other side:

$$\frac{{dv}}{{\cos(v)}} = dx$$

Since \(\frac{1}{\cos(v)} = \sec(v)\), the equation becomes:

$$\sec(v) dv = dx$$

Now, we integrate both sides of the equation:

$$\int \sec(v) dv = \int dx$$

We know the standard integral of \(\sec(v)\). One common form is \(\int \sec(v) dv = \ln |\sec(v) + \tan(v)| + C_1\). However, to match the structure of the given options, let's use another form of the integral or manipulate the result.

Recall that \(\sec(v) = \frac{1}{\cos(v)}\) and \(\tan(v) = \frac{\sin(v)}{\cos(v)}\). So, \(\sec(v) + \tan(v) = \frac{1 + \sin(v)}{\cos(v)}\).

Alternatively, we can use the integral form \(\int \sec(v) dv = -\ln |\sec(v) - \tan(v)| + C_1\). Let's use this form:

$$-\ln |\sec(v) - \tan(v)| = x + C_1$$

where \(C_1\) is the constant of integration.

Multiply by -1:

$$\ln |\sec(v) - \tan(v)| = -x - C_1$$

Exponentiate both sides using base \(e\):

$$|\sec(v) - \tan(v)| = e^{-x - C_1}$$

$$|\sec(v) - \tan(v)| = e^{-x} e^{-C_1}$$

Let \(C\) be a new constant that absorbs \(e^{-C_1}\) and the \(\pm\) sign from the absolute value, i.e., \(C = \pm e^{-C_1}\). Then:

$$\sec(v) - \tan(v) = C e^{-x}$$

Substituting Back and Final Solution

Now, substitute back \(v = y - x\) into the equation:

$$\sec(y - x) - \tan(y - x) = C e^{-x}$$

To match the format of the options, multiply both sides by \(e^x\):

$$e^x [\sec(y - x) - \tan(y - x)] = C e^{-x} e^x$$

$$e^x [\sec(y - x) - \tan(y - x)] = C e^0$$

$$e^x [\sec(y - x) - \tan(y - x)] = C$$

This is the general solution to the given differential equation.

Checking Options

Let's compare our derived solution with the given options:

Option 1: \(e^x[\sec (y – x) – \tan (y – x)] = c\)

Option 2: \(e^x[\sec (y – x) + \tan (y – x)] = c\)

Option 3: \(e^x\sec (y – x) \tan (y – x) = c\)

Option 4: \(e^x = c \sec (y – x) \tan (y – x)\)

Our solution matches Option 1.

Step Description
1 Identify substitution \(v = y - x\).
2 Calculate \(\frac{dy}{dx}\) in terms of \(\frac{dv}{dx}\).
3 Substitute into the original equation.
4 Simplify to a separable equation: \(\frac{dv}{dx} = \cos(v)\).
5 Separate variables: \(\sec(v) dv = dx\).
6 Integrate both sides: \(\int \sec(v) dv = \int dx\).
7 Use \(\int \sec(v) dv = -\ln |\sec(v) - \tan(v)|\) and solve for \(v\).
8 Substitute back \(v = y - x\) and rearrange.

Revision Table: Key Concepts in Differential Equations

Concept Description Relevance to Problem
First-Order DE An equation involving the first derivative of the dependent variable. The given equation \(\frac{dy}{dx} = f(x, y)\) is a first-order DE.
Substitution Method Replacing one variable or expression with another to simplify the equation. Used \(v = y - x\) to transform the equation into a simpler form.
Separable DE A first-order DE that can be written as \(g(v) dv = h(x) dx\). The substituted equation \(\frac{dv}{dx} = \cos(v)\) became separable as \(\sec(v) dv = dx\).
Integration Finding the antiderivative. Essential for solving separable DEs. Required to integrate \(\int \sec(v) dv\) and \(\int dx\).
General Solution A solution containing an arbitrary constant, representing a family of solutions. The final expression \(e^x[\sec(y-x) - \tan(y-x)] = C\) is the general solution.

Additional Information: Integrating Secant Function

The integral of the secant function, \(\int \sec(u) du\), is a common integral in calculus. There are multiple ways to derive or express its result.

One standard formula is:

$$\int \sec(u) du = \ln |\sec(u) + \tan(u)| + C$$

Another valid form, which was useful in this problem, is related:

$$\int \sec(u) du = -\ln |\sec(u) - \tan(u)| + C$$

These forms are related because \(\sec(u) - \tan(u) = \frac{1}{\sec(u) + \tan(u)}\). So, \(-\ln |\sec(u) - \tan(u)| = -\ln \left| \frac{1}{\sec(u) + \tan(u)} \right| = -(\ln(1) - \ln |\sec(u) + \tan(u)|) = 0 - (-\ln |\sec(u) + \tan(u)|) = \ln |\sec(u) + \tan(u)|\). The difference is absorbed into the constant of integration \(C\).

Knowing different forms of standard integrals can sometimes make it easier to match a derived solution to given options in multiple-choice questions.

Was this answer helpful?

Similar Questions

  1. What is the general solution of the differential equation ydx – (x + 2y 2) dy = 0?

  2. If xdy = y(dx + ydy) ; y(1) = 1 and y(x) > 0, then what is y(-3) equal to?

  3. A particle starts from origin with a velocity (in m/s) given by the equation \(\rm \frac{dx}{dt}=x+1\) . The time (in seconds) taken by the particle to traverse a distance of 24 m is:

  4. If \(\frac{d}{d x}\left(\frac{1+x^4+x^8}{1−x^2+x^4}\right)\)  = ax + bx 3 , then which one of the following is correct?
  5. What is the solution of the differential equation (dy − dx) + cos x(dy + dx) = 0 ?

  6. What is the solution of the following differential equation?

    \(\rm \ln\left(\frac{dy}{dx}\right)+y = x\)

  7. What is the solution of the differential equation x dy – y dx = 0?

  8. What is the general solution of the differential equation \(\frac{{dy}}{{dx}} + \frac{x}{y} = 0\) ?

  9. What is the solution of the differential equation \(\ln \left( {\frac{{{\rm{dy}}}}{{{\rm{dx}}}}} \right) - {\rm{a}} = 0?\)

  10. What is the solution of the differential equation.

    \(\frac{{ydx - xdy}}{{{y^2}}} = 0\) ?

    Where c is an arbitrary constant.


Important Questions from Solution of Differential Equations

  1. The solution of the differential equation \(\rm\left(\frac{dy}{dx}\right)^2−\frac{d^2y}{dx^2}\)  = e y , with the boundary conditions y(0) = 0 and y'(0) = −1, is
  2. The equation of motion of a one-dimensional forced harmonic oscillator in the presence of a dissipative force is described by \(\frac{{{{\rm{d}}^{\rm{2}}}{\rm{x}}}}{{{\rm{d}}{{\rm{t}}^{\rm{2}}}}}\,{\rm{ + }}\,{\rm{10}}\frac{{{\rm{dx}}}}{{{\rm{dt}}}}\,{\rm{ + }}\,{\rm{16x}}\,{\rm{ = }}\,{\rm{6t}}{{\rm{e}}^{{\rm{ - 8t}}}}{\rm{ + }}\,{\rm{4}}{{\rm{t}}^{\rm{2}}}{{\rm{e}}^{{\rm{ - 2t}}}}\) The general form of the particular solution, in terms of constants A, B etc., is

  3. What is the general solution of the differential equation ydx – (x + 2y 2) dy = 0?

  4. If xdy = y(dx + ydy) ; y(1) = 1 and y(x) > 0, then what is y(-3) equal to?

  5. If y(x) is a solution of the differential equation \(\frac{{dy}}{{dx}} + 4xy = {x^3},y(0) = 0\) then \(\mathop {\lim }\limits_{x \to 0} y(x)\) is

Need Expert Advice?
Test Series
NDA img
Defence
NDA 2026 Mock Test Series (Latest Pattern)
503 Tests 1 Tests Free
1066 Attempts
4.6(137)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App