Q.Solve the following differential equation: cos(dxdy)=a (a∈R);y=1 when x=0
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Separation Of Variables
Separation of Variables: From Intuition to Precision
Imagine you're baking a cake. The recipe says "mix the dry ingredients separately, then add the wet ones." You keep things that belong together together, and things that don't apart — until the right moment. Separation of Variables does exactly that for certain kinds of equations.
The Core Intuition
Some equations involve two different kinds of change happening at once. Think of a cup of hot coffee cooling down. The rate at which it cools depends on:
- The temperature difference between the coffee and the room (a function of time)
- The surface area of the cup (a function of shape, not time)
These two influences are tangled together in one equation. Separation of Variables is the mathematical trick that untangles them — it lets you handle the time part first, then the space part separately.
The Precise Statement
Separation of Variables applies to ordinary differential equations (ODEs) of the form:
dxdy=f(x)⋅g(y)
where the right-hand side is a product of a function of x alone and a function of y alone. The method works in three clean steps:
dxdy=f(x)⋅g(y)⟹g(y)1dy=f(x)dx
Step 1: Separate. Multiply both sides by dx and divide by g(y) (assuming g(y)=0). This moves all y's to one side and all x's to the other.
Step 2: Integrate. Put an integral sign on both sides:
∫g(y)1dy=∫f(x)dx
Step 3: Solve. Evaluate both integrals and solve for y explicitly if possible.
You cannot separate if the equation is not in product form. For example, dxdy=x+y cannot be separated — the sum x+y is not a product f(x)g(y).
Why This Works
The justification is the chain rule in reverse. From dxdy=f(x)g(y), rewrite it as:
g(y)1dxdy=f(x)
Now integrate both sides with respect to x:
∫g(y)1dxdydx=∫f(x)dx
The left side is a substitution waiting to happen: dxdydx=dy, so you get ∫g(y)1dy. That's the entire trick — the chain rule dressed up.
A Concrete Example
Solve dxdy=2xy, with y(0)=3.
Step 1: Separate. Divide both sides by y (assuming y=0):
y1dy=2xdx
Step 2: Integrate.
∫y1dy=∫2xdx⟹log∣y∣=x2+C
Step 3: Solve for y.
∣y∣=ex2+C=eC⋅ex2
Let A=±eC (absorbing the absolute value): y=Aex2. Now use y(0)=3: 3=Ae0=A, so A=3.
Final answer: y=3ex2 …
The key idea is that the equation is already in the form cos(p)=a, where p=dxdy, so p is constant. This is a special case of Clairaut’s equation (or simply a first-order equation with constant slope).
Since cos(p)=a, we have p=cos−1(a), a constant. Integrating: …
This is a Clairaut-type equation where cos(y′)=a forces y′ to be constant. The general solution is a family of straight lines y=arccos(a)⋅x+C, and the particular solution satisfying y(0)=1 is y=arccos(a)⋅x+1.
The equation cos(y′)=a looks unusual — it’s not a polynomial in y′, but a transcendental one. The key insight: the derivative y′=dy/dx appears only inside the cosine, and the right-hand side is a constant a. This means y′ itself must be constant, because the cosine function is not one-to-one over all reals, but for a given a, the equation cos(t)=a has a fixed set of solutions for t.
Let’s work through it.
-
Recognize the form.
The equation is cos(y′)=a, where a∈R. Since a is a constant, the value of y′ is not free to vary with x or y — it must be one of the angles whose cosine equals a. So y′ is constant.
Write y′=c, where c satisfies cosc=a.
NoteFor a real solution c to exist, we need ∣a∣≤1. If ∣a∣>1, the equation has no real solution. The problem likely assumes a is such that a real solution exists.
-
Solve the trivial ODE.
If y′=c (constant), then integrating gives
y=cx+b,
where b is the constant of integration. This is the general solution — a family of straight lines.
- Apply the initial condition. We are given y=1 when x=0. Substitute:
1=c⋅0+b⇒b=1.
So the particular solution is
y=cx+1,
where c is any real number such that cosc=a.
- Express c explicitly. The equation cosc=a has infinitely many solutions: c=±arccos(a)+2nπ, n∈Z. But note: y′=c is the slope of the line. All these different c values give different slopes, but they all satisfy the original differential equation because cos(c)=a for each. So the general solution is actually a family of families: …
Method: Solving an equation given implicitly in dxdy
Use this when the derivative is wrapped inside a function, as in cos(dxdy)=a — you first unwrap it to get dxdy explicitly, then integrate.
Steps
Step 1: Unwrap the derivative
Apply the inverse function to isolate the slope:
dxdy=cos−1a,
a constant, since a is a fixed real number.
Step 2: Integrate directly
With a constant slope, y=(cos−1a)x+C — a straight line whose gradient is cos−1a. …
Common Mistakes
Mistake 1: Not isolating dxdy from inside the cosine first
Why it's wrong: you must apply cos−1 to both sides to get dxdy=cos−1a before integrating; integrating cos(y′) term-by-term is meaningless. Correct approach: unwrap the derivative, then integrate.
Mistake 2: Treating cos−1a as a variable …
Showing the 12 most recent of 13 on this concept.
- KCET 2025Set A-11 markMCQQ.General solution of the differential equation dxdy+ytanx=secx is (A) ysecx=tanx+c (B) ytanx=secx+c (C) cosxsecx=ytanx+c (D) xsecx=tany+c
›Reveal solutionSolution
Recognise a first-order linear ODE, build the integrating factor secx, and integrate sec2x.
Step 1 — Identify the form.
The equation
dxdy+ytanx=secx
is of the standard linear type dxdy+P(x)y=Q(x) with
P(x)=tanx,Q(x)=secx.
Step 2 — Why an integrating factor works.
Multiplying a linear ODE by μ(x)=e∫Pdx turns the whole left side into an exact derivative dxd(μy), because μ′=μP. That is the entire trick — it converts the ODE into a straight integration.
Step 3 — Compute the integrating factor.
μ=e∫tanxdx=elog∣secx∣=secx
Step 4 — Multiply and collapse the left side.
secxdxdy+ysecxtanx=sec2x …
- COMEDK 2025Set 2025-A1 markMCQQ.Solution of the differential equation ydxdy+x=0 represents a family of (A) Ellipse (B) Parabola (C) Circles (D) Hyperbola
›Reveal solutionSolution
The differential equation ydxdy+x=0 is separable and integrates to x2+y2=C, which is the equation of a circle. The correct option is (C).
The key is to recognize that this is a first-order separable differential equation. The form ydxdy=−x tells us we can move all y terms to one side and all x terms to the other, then integrate. The result will be a relation between x and y that describes a geometric curve. We don't need to solve for y explicitly; the implicit equation reveals the family.
- Separate the variables. Start with ydxdy+x=0. Subtract x from both sides:
ydxdy=−x.
Multiply both sides by dx (treating dy/dx as a ratio for separation):
ydy=−xdx.
- Integrate both sides. The left side is integrated with respect to y, the right with respect to x:
∫ydy=∫−xdx.
This gives:
2y2=−2x2+C1,
where C1 is an arbitrary constant of integration.
- Simplify to a standard form. Multiply through by 2:
y2=−x2+2C1.
Let C=2C1 (still an arbitrary constant). Then:
x2+y2=C.
- Interpret the equation. …
- COMEDK 2025Set 2025-E1 markMCQQ.The solution of the differential equation: xcosydy=(xexlogx+ex)dx is (A) siny−exlogx=c (B) siny=exlogx+c (C) siny=ex+logx+c (D) siny=xex+c
›Reveal solutionSolution
The differential equation is separable after rewriting, leading to siny=exlogx+c, which matches option (B).
We start with the given equation:
xcosydy=(xexlogx+ex)dx
The key idea is to separate variables — get all y terms with dy and all x terms with dx. This works because the equation is already in a form where the left side depends only on y and the right side only on x, once we divide appropriately.
- Divide both sides by x (assuming x=0):
cosydy=xxexlogx+exdx
- Simplify the right-hand side:
xxexlogx+ex=exlogx+xex
So the equation becomes:
cosydy=(exlogx+xex)dx
-
Integrate both sides:
- Left side: ∫cosydy=siny+C1
- Right side: ∫(exlogx+xex)dx
Notice that the right side is the derivative of exlogx with respect to x:
dxd(exlogx)=exlogx+ex⋅x1
This is exactly our integrand.
- Therefore:
- COMEDK 2025Set 2025-M1 markMCQQ.The solution of the differential equation dxdy+ylogycotx=0 is (A) cosxlogy=c (B) logy=csinx (C) sinxlogy=c (D) ysinx=c
›Reveal solutionSolution
This is a first-order separable ODE. By separating variables and integrating, we find that sinxlogy=c, so the correct option is (C).
We start with the differential equation
dxdy+ylogycotx=0.
The key insight is that this equation is separable: we can rearrange it so that all terms involving y (and dy) are on one side, and all terms involving x (and dx) are on the other. The presence of ylogy suggests a substitution or direct separation.
- Rewrite the equation Bring the second term to the right-hand side:
dxdy=−ylogycotx.
Now separate variables by dividing both sides by ylogy and multiplying by dx:
ylogydy=−cotxdx.
- Integrate both sides The left side is a standard logarithmic integral. Let u=logy, then du=ydy, so
∫ylogydy=∫udu=log∣u∣=log∣logy∣.
The right side: recall cotx=sinxcosx, so
∫−cotxdx=−∫sinxcosxdx=−log∣sinx∣+C.
(Here we used the substitution v=sinx, dv=cosxdx.)
- Combine constants Equating the integrals:
log∣logy∣=−log∣sinx∣+C.
Exponentiate both sides:
∣logy∣=e−log∣sinx∣+C=eC⋅elog∣sinx∣−1=∣sinx∣eC.
Let c1=±eC (absorbing the absolute value), we get
logy=sinxc1. …
- COMEDK 2024Set 2024-A1 markMCQQ.
[!FORMULA] The general solution of dxdy=sin−1x is
(A) y=xsin−1x+1−x2+C (B) y=xsin−1x−1−x2+C (C) y=−xsin−1x+1−x2+C (D) y=−xsin−1x−1−x2+C›Reveal solutionSolution
The differential equation is solved by direct integration: y=∫sin−1xdx. Using integration by parts, the result is y=xsin−1x+1−x2+C, which matches option (A).
Concept & Intuition
This is a simple first-order differential equation of the form dxdy=f(x). The general solution is just the indefinite integral of f(x) with respect to x, plus a constant of integration. The only challenge here is integrating sin−1x, which is an inverse trigonometric function. Integration by parts is the natural choice because we know the derivative of sin−1x is 1−x21, and that derivative will simplify the integral.
Step-by-step solution
- Set up the integration Since dxdy=sin−1x, we integrate both sides:
y=∫sin−1xdx+C.
The constant C will be determined by initial conditions (if any), but here we want the general solution.
-
Apply integration by parts
Recall the formula: ∫udv=uv−∫vdu.
Choose u=sin−1x and dv=dx.
Then du=1−x21dx and v=x.
-
Carry out the substitution
∫sin−1xdx=xsin−1x−∫x⋅1−x21dx.
- Simplify the remaining integral The integral ∫1−x2xdx is a standard form. Let t=1−x2, so dt=−2xdx, hence xdx=−21dt. Then:
∫1−x2xdx=∫t1(−21)dt=−21∫t−1/2dt=−21⋅2t1/2=−1−x2.
- Combine results Substituting back: …
- COMEDK 2024Set 2024-E1 markMCQQ.
[!FORMULA] If dxdy=y+3>0 and y(0)=2 then y(log2) is equal to
(A) 5 (B) 13 (C) −2 (D) 7›Reveal solutionSolution
This is a first-order linear ODE solved by separation of variables; using the initial condition gives y=5ex−3, so y(log2)=7, which corresponds to option (D).
We are given dxdy=y+3 with y+3>0 and y(0)=2. The condition y+3>0 ensures we never divide by zero or take logs of a negative number — a helpful safety net.
Concept & Intuition
The equation says: the rate of change of y is proportional to how far y is above −3. This is classic exponential growth (or decay) toward or away from a constant. Here, since y(0)=2>−3, the quantity y+3 will grow exponentially. We can solve by separating variables — put all y terms on one side, x terms on the other, then integrate.
Step-by-step solution
- Separate variables Write dxdy=y+3 as
y+3dy=dx.
This is valid because y+3>0 ensures no division by zero.
- Integrate both sides
∫y+3dy=∫dx⇒log∣y+3∣=x+C.
Since y+3>0, we can drop the absolute value:
log(y+3)=x+C.
- Solve for y Exponentiate:
y+3=ex+C=eCex.
Let A=eC, so y=Aex−3.
- Use the initial condition y(0)=2 Substitute x=0, y=2:
- COMEDK 2024Set 2024-M1 markMCQQ.The particular solution of dxdy+1−x21−y2=0, when x=0,y=21 is (A) sin−1x+sin−1y=6π (B) sin−1x+sin−1y=2π (C) sin−1x−sin−1y=2π (D) sin−1x+sin−1y=3π
›Reveal solutionSolution
The given differential equation is separable and leads to the relation sin−1x+sin−1y=C. Using the initial condition x=0,y=1/2 gives C=π/6, so the particular solution is sin−1x+sin−1y=π/6, which corresponds to option (A).
Concept & Intuition
The equation is of the form y′+1−x21−y2=0. The square root suggests a connection to inverse trigonometric derivatives: recall that dxd(sin−1x)=1−x21, and similarly for y. This hints that separating variables will let us integrate directly to a sum of arcsines. The initial condition then pins down the constant.
Step-by-step solution
- Rewrite the equation
dxdy=−1−x21−y2
The negative sign tells us that as x increases, y decreases (or vice versa), consistent with an inverse sine sum being constant.
- Separate variables Multiply both sides by dx and divide by 1−y2 (valid where ∣y∣<1, which holds near y=1/2):
1−y2dy=−1−x2dx
- Integrate both sides The left side integrates to sin−1y, the right side to −sin−1x:
∫1−y2dy=−∫1−x2dx
sin−1y=−sin−1x+C
Rearranging:
sin−1x+sin−1y=C
- Apply the initial condition At x=0, y=21: sin−1(0)+sin−1(21)=C …
- COMEDK 2023Set 2023-M1 markMCQQ.The general solution of (dxdy)2=1−x2−y2+x2y2 is (A) 2sin−1y=x1−x2+sin−1x+C (B) cos−1y=xcos−1x (C) sin−1y=21sin−1x+C (D) 2sin−1y=x1−y2+C
›Reveal solutionSolution
1−x2−y2+x2y2=(1−x2)(1−y2); separating variables and integrating gives 2sin−1y=x1−x2+sin−1x+C.
Factor the right-hand side:
(dxdy)2=1−x2−y2+x2y2=(1−x2)(1−y2).
Taking the positive root and separating variables:
1−y2dy=1−x2dx.
Integrate. The left side gives sin−1y. For the right side use ∫1−x2dx=2x1−x2+21sin−1x: …
- COMEDK 2023Set 2023-M1 markMCQQ.The solution of the differential equation (dxdy)tany=sin(x+y)+sin(x−y) is (A) secx=−2secy+C (B) secy=2cosy+C (C) secy=−2cosx+C (D) secx=−2cosy+C
›Reveal solutionSolution
sin(x+y)+sin(x−y)=2sinxcosy; separating gives secy=−2cosx+C.
Use sin(x+y)+sin(x−y)=2sinxcosy. The equation becomes
dxdytany=2sinxcosy⇒cosysinydy=2sinxcosydx.
Divide by cosy:
cos2ysinydy=2sinxdx. …
- COMEDK 2022Set 20221 markMCQQ.The solution of the differential equation dxdy+1−x21−y2=0 is (A) cos−1x+cos−1y=c (B) sin−1x+sin−1y=c (C) cosh−1x+cosh−1y=c (D) sinh−1x+sinh−1y=c
›Reveal solutionSolution
Separating the variables gives 1−y2dy=−1−x2dx; integrating yields sin−1x+sin−1y=c. The correct option is (B).
Concept
The equation is variables-separable: all y-terms move to one side and all x-terms to the other. The standard integral ∫1−t2dt=sin−1t (not an inverse-hyperbolic function, which would need 1+t2 or t2−1) then gives the answer directly.
Solution
- Rearrange. dxdy=−1−x21−y2.
- Separate. 1−y2dy=−1−x2dx.
- Integrate. sin−1y=−sin−1x+c. …
- COMEDK 2022Set 20221 markMCQQ.The solution of the differential equation xdxdy=coty is (A) ycosx=c (B) xcosy=c (C) log(xcosy)=c (D) log(ycosx)=c
›Reveal solutionSolution
The differential equation is separable: rewrite as xdy=cotydx, separate variables, integrate, and simplify to xcosy=c, which matches option (B).
We start with the given differential equation:
xdxdy=coty
The key insight is that this is a separable first-order ODE — we can rearrange it so that all y terms (including dy) are on one side and all x terms (including dx) are on the other. Once separated, we integrate both sides and then solve for the relationship between x and y.
- Separate the variables Multiply both sides by dx and divide by x and coty (but it's easier to write coty=sinycosy and treat it directly):
xdy=cotydx⇒cotydy=xdx
Since coty1=tany, this becomes:
tanydy=xdx
- Integrate both sides
∫tanydy=∫xdx
The integral of tany is −log∣cosy∣ (because dyd(−log∣cosy∣)=tany), and the integral of x1 is log∣x∣. So:
−log∣cosy∣=log∣x∣+C
- Combine the logarithms Multiply both sides by −1:
log∣cosy∣=−log∣x∣−C
Write −log∣x∣=log∣x−1∣=logx1, and let C′=−C (a new constant):
log∣cosy∣=logx1+C′
Exponentiate both sides:
∣cosy∣=eC′⋅∣x∣1
Since eC′ is a positive constant, we can rename it as k>0, giving:
∣cosy∣=∣x∣k …
- COMEDK 2021Set 20211 markMCQQ.The solution of the differential equation sec2xtanydx+sec2ytanxdy=0 is (A) tany.tanx=C (B) tanxtany=C (C) tanytan2x=C (D) None of these
›Reveal solutionSolution
log|tan x| + log|tan y| = log C => log|tan x * tan y| = log C => tan x * tan y = C.
Concept: variables separable differential equation.
sec^2(x) tan(y) dx + sec^2(y) tan(x) dy = 0
Divide throughout by tan(x) tan(y):
[sec^2(x)/tan(x)] dx + [sec^2(y)/tan(y)] dy = 0.
Integrate. Note that d(tan x) = sec^2(x) dx, so integral of sec^2(x)/tan(x) dx = log|tan x|. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.