Skip to main content
Back to Differential Equations
JEE Main 2021
Differential Equations
Differential Equations
Hard

Question

Solution of the differential equation cosxdy=y(sinxy)dx,0<x<π2\cos x\,dy = y\left( {\sin x - y} \right)dx,\,\,0 < x <{\pi \over 2} is :

Options

Solution

Key Concepts and Formulas

  • Bernoulli Differential Equation: A differential equation of the form dydx+P(x)y=Q(x)yn\frac{dy}{dx} + P(x)y = Q(x)y^n, where nn is a real number not equal to 0 or 1.
  • Substitution for Bernoulli Equation: To solve a Bernoulli equation, use the substitution v=y1nv = y^{1-n}.
  • Integrating Factor: For a linear first-order differential equation dvdx+P1(x)v=Q1(x)\frac{dv}{dx} + P_1(x)v = Q_1(x), the integrating factor is given by I.F.=eP1(x)dxI.F. = e^{\int P_1(x) dx}.

Step-by-Step Solution

Step 1: Identify and Transform the Bernoulli Equation

The given differential equation is cosxdy=y(sinxy)dx,0<x<π2\cos x\,dy = y\left( {\sin x - y} \right)dx,\,\,0 < x <{\pi \over 2}. We need to rewrite it in the standard Bernoulli form.

  • Divide by cosxdx\cos x \, dx: dydx=y(sinxy)cosx\frac{dy}{dx} = \frac{y(\sin x - y)}{\cos x} This isolates dydx\frac{dy}{dx} on one side.
  • Separate terms and rewrite using trigonometric identities: dydx=ysinxcosxy21cosx=ytanxy2secx\frac{dy}{dx} = y\frac{\sin x}{\cos x} - y^2\frac{1}{\cos x} = y\tan x - y^2\sec x We use sinxcosx=tanx\frac{\sin x}{\cos x} = \tan x and 1cosx=secx\frac{1}{\cos x} = \sec x to simplify.
  • Rearrange to Bernoulli form: dydx(tanx)y=(secx)y2\frac{dy}{dx} - (\tan x)y = -(\sec x)y^2 This matches the form dydx+P(x)y=Q(x)yn\frac{dy}{dx} + P(x)y = Q(x)y^n, where P(x)=tanxP(x) = -\tan x, Q(x)=secxQ(x) = -\sec x, and n=2n = 2.
  • Divide by y2y^2: 1y2dydxtanxy=secx\frac{1}{y^2}\frac{dy}{dx} - \frac{\tan x}{y} = -\sec x This prepares the equation for the substitution.
  • Substitute v=1yv = \frac{1}{y}: Let v=1y=y1v = \frac{1}{y} = y^{-1}. Then, dvdx=1y2dydx\frac{dv}{dx} = -\frac{1}{y^2}\frac{dy}{dx}. So, 1y2dydx=dvdx\frac{1}{y^2}\frac{dy}{dx} = -\frac{dv}{dx}. This substitution will transform the equation into a linear one.
  • Substitute into the equation: dvdx(tanx)v=secx-\frac{dv}{dx} - (\tan x)v = -\sec x We replace 1y2dydx\frac{1}{y^2}\frac{dy}{dx} with dvdx-\frac{dv}{dx} and 1y\frac{1}{y} with vv.
  • Multiply by 1-1 to get the standard linear form: dvdx+(tanx)v=secx\frac{dv}{dx} + (\tan x)v = \sec x Now we have a linear first-order differential equation in the form dvdx+P1(x)v=Q1(x)\frac{dv}{dx} + P_1(x)v = Q_1(x), where P1(x)=tanxP_1(x) = \tan x and Q1(x)=secxQ_1(x) = \sec x.

Step 2: Solve the Linear Differential Equation

  • Find the Integrating Factor (I.F.): I.F.=eP1(x)dx=etanxdxI.F. = e^{\int P_1(x)dx} = e^{\int \tan x dx} The integrating factor helps us solve the linear equation.
  • Evaluate the integral: tanxdx=sinxcosxdx=lncosx=lnsecx\int \tan x dx = \int \frac{\sin x}{\cos x} dx = -\ln|\cos x| = \ln|\sec x| Since 0<x<π20 < x < \frac{\pi}{2}, cosx>0\cos x > 0 and secx>0\sec x > 0, so we can drop the absolute value.
  • Calculate the I.F.: I.F.=eln(secx)=secxI.F. = e^{\ln(\sec x)} = \sec x
  • Multiply the linear equation by the I.F.: (secx)dvdx+(secx)(tanx)v=sec2x(\sec x)\frac{dv}{dx} + (\sec x)(\tan x)v = \sec^2 x This makes the left side a derivative of a product.
  • Recognize the left side as a derivative: ddx(vsecx)=sec2x\frac{d}{dx}(v\sec x) = \sec^2 x
  • Integrate both sides with respect to xx: ddx(vsecx)dx=sec2xdx\int \frac{d}{dx}(v\sec x) dx = \int \sec^2 x dx vsecx=tanx+Cv\sec x = \tan x + C This gives us the general solution in terms of vv and xx.

Step 3: Substitute Back to the Original Variable

  • Substitute v=1yv = \frac{1}{y} back into the equation: 1ysecx=tanx+C\frac{1}{y}\sec x = \tan x + C This expresses the solution in terms of the original variable yy.
  • Rearrange the equation: secx=y(tanx+C)\sec x = y(\tan x + C) y=secxtanx+Cy = \frac{\sec x}{\tan x + C}
  • Rewrite the equation: y=secxtanx+Cy = \frac{\sec x}{\tan x + C} secx=(tanx+C)y\sec x = (\tan x + C)y

Common Mistakes & Tips

  • Sign Errors: Pay close attention to signs when rearranging and substituting in the Bernoulli equation. A simple sign error can throw off the entire solution.
  • Integrating Factor: Remember to integrate P1(x)P_1(x) correctly to find the integrating factor. The integral of tanx\tan x is lnsecx\ln|\sec x|. Don't forget the absolute value, but consider whether it can be dropped based on the given domain.
  • Back Substitution: Always substitute back to the original variable y after solving for v.

Summary

We solved the given Bernoulli differential equation by first transforming it into a linear first-order differential equation using the substitution v=1yv = \frac{1}{y}. We then found the integrating factor, solved for vv, and finally substituted back to express the solution in terms of yy. The final solution is secx=(tanx+C)y\sec x = (\tan x + C)y.

The final answer is \boxed{\sec x = \left( {\tan x + c} \right)y}, which corresponds to option (D).

Practice More Differential Equations Questions

View All Questions