Variable Separable — dy/dx = y/x

easy CBSE JEE-MAIN JEE-ADVANCED CBSE 2024 Board Exam 3 min read

Question

Solve the differential equation:

dydx=yx\frac{dy}{dx} = \frac{y}{x}

Find the general solution.


Solution — Step by Step

The right-hand side has yy and xx in a clean ratio — that’s the signal to use variable separable. We’ll collect all yy terms on the left and all xx terms on the right.

Divide both sides so that yy terms are on the left and xx terms on the right:

dyy=dxx\frac{dy}{y} = \frac{dx}{x}

This is valid as long as y0y \neq 0 and x0x \neq 0 — we’re essentially dividing both sides by xyxy.

Now integrate both sides independently:

dyy=dxx\int \frac{dy}{y} = \int \frac{dx}{x} lny=lnx+C1\ln|y| = \ln|x| + C_1

where C1C_1 is an arbitrary constant of integration.

Rewrite C1=lnCC_1 = \ln|C| for some constant C>0C > 0 (this is a standard trick — replacing an additive log constant with the log of a new constant):

lny=lnx+lnC\ln|y| = \ln|x| + \ln|C| lny=lnCx\ln|y| = \ln|Cx|

Removing the log from both sides:

y=Cxy = Cx

General Solution: y=Cxy = Cx, where CC is an arbitrary constant.


Why This Works

The method works because we literally separated the equation into two independent integrals. Once dy/ydy/y is on one side and dx/xdx/x is on the other, neither side depends on the other variable — so we can integrate freely.

The step of writing C1=lnCC_1 = \ln|C| is not magic — it just keeps the final answer cleaner. Instead of writing eC1xe^{C_1} \cdot x, we absorb that exponential into a single constant CC. This is a technique worth practising because it appears in almost every variable separable problem in CBSE and JEE.

Geometrically, y=Cxy = Cx represents a family of straight lines through the origin. Each value of CC gives a different line — which makes sense, since differential equations have infinitely many solutions unless an initial condition pins one down.


Alternative Method — Using Homogeneous Substitution

This equation is also homogeneous (degree of numerator = degree of denominator = 1). We can substitute y=vxy = vx, giving dy/dx=v+xdv/dxdy/dx = v + x\,dv/dx.

Substituting:

v+xdvdx=vxx=vv + x\frac{dv}{dx} = \frac{vx}{x} = v xdvdx=0x\frac{dv}{dx} = 0 dvdx=0    v=C\frac{dv}{dx} = 0 \implies v = C

Since v=y/xv = y/x, we get y/x=Cy/x = C, so y=Cxy = Cx.

Both methods give the same answer here. For this particular equation, variable separable is faster. But if you see a ratio like dy/dx=(x+y)/(xy)dy/dx = (x + y)/(x - y), the homogeneous substitution becomes necessary.


Common Mistake

Forgetting the constant of integration on both sides.

Many students write:

lny=lnx+C\ln|y| = \ln|x| + C

…which is correct. But then they exponentiate carelessly to get y=x+Cy = x + C. That’s wrong.

When you exponentiate lny=lnx+C\ln|y| = \ln|x| + C, you get y=eCxy = e^C \cdot x, not y=x+Cy = x + C. The +C+C inside a logarithm becomes a multiplicative constant after removing the log — not an additive one.

The safe habit: always rewrite eCe^C as a new constant AA or CC, and state y=Cxy = Cx clearly.

This exact question appeared in the CBSE 2024 Board Exam and is a standard 3-marker. The examiner expects you to show the separation step, the integration, and the log simplification explicitly — don’t skip steps in the interest of speed.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next