Skip to content
Miscellaneous Exercise · Q2

Q.For each of the exercises given below, verify that the given function (implicit or explicit) is a solution of the corresponding differential equation.

(i) xy=aex+be−x+x2xy = a e^x + b e^{-x} + x^2 : xd2ydx2+2dydx−xy+x2−2=0x \frac{d^2 y}{dx^2} + 2 \frac{dy}{dx} - xy + x^2 - 2 = 0
(ii) y=ex(acos⁡x+bsin⁡x)y = e^x (a \cos x + b \sin x) : d2ydx2−2dydx+2y=0\frac{d^2 y}{dx^2} - 2 \frac{dy}{dx} + 2y = 0
(iii) y=xsin⁡3xy = x \sin 3x : d2ydx2+9y−6cos⁡3x=0\frac{d^2 y}{dx^2} + 9y - 6 \cos 3x = 0
(iv) x2=2y2log⁡yx^2 = 2y^2 \log y : (x2+y2)dydx−xy=0(x^2 + y^2) \frac{dy}{dx} - xy = 0
CBSENCERTSubjective· 3mImportance★★★★★est
48% · 107/222 Questions
✓ Free question

For each part, we verify the given function satisfies the differential equation by computing the required derivatives, substituting them into the equation, and simplifying to an identity (0 = 0). The key is careful differentiation — product rule, chain rule, and implicit differentiation where needed.

(i) xy=aex+be−x+x2xy = a e^x + b e^{-x} + x^2 : xd2ydx2+2dydx−xy+x2−2=0x \frac{d^2 y}{dx^2} + 2 \frac{dy}{dx} - xy + x^2 - 2 = 0

Concept: The given relation is implicit in yy. We can either solve for yy explicitly or differentiate the equation as it stands. Since yy appears multiplied by xx, solving explicitly is straightforward: y=aex+be−x+x2xy = \frac{a e^x + b e^{-x} + x^2}{x}. Then we compute y′y' and y′′y'' and substitute.

  1. Write yy explicitly:

y=aexx+be−xx+xy = \frac{a e^x}{x} + \frac{b e^{-x}}{x} + x

  1. First derivative (using quotient rule on the first two terms, or rewrite as aexx−1a e^x x^{-1} and differentiate):

y′=a(exx−exx2)+b(−e−xx−e−xx2)+1y' = a\left(\frac{e^x}{x} - \frac{e^x}{x^2}\right) + b\left(-\frac{e^{-x}}{x} - \frac{e^{-x}}{x^2}\right) + 1

Factor common terms:

y′=aex(x−1)x2−be−x(x+1)x2+1y' = \frac{a e^x (x-1)}{x^2} - \frac{b e^{-x} (x+1)}{x^2} + 1

  1. Second derivative: Differentiate y′y' term by term. For the first term, use quotient rule on aex(x−1)x2\frac{a e^x (x-1)}{x^2}:

    • Let u=aex(x−1)u = a e^x (x-1), v=x2v = x^2. Then u′=aex(x−1)+aex=aexxu' = a e^x (x-1) + a e^x = a e^x x, and v′=2xv' = 2x.
    • So derivative = (aexx)(x2)−(aex(x−1))(2x)x4=aexx3−2aexx(x−1)x4=aex(x2−2x+2)x3\frac{(a e^x x)(x^2) - (a e^x (x-1))(2x)}{x^4} = \frac{a e^x x^3 - 2a e^x x(x-1)}{x^4} = \frac{a e^x (x^2 - 2x + 2)}{x^3}

    For the second term, −be−x(x+1)x2-\frac{b e^{-x} (x+1)}{x^2}:

    • u=−be−x(x+1)u = -b e^{-x}(x+1), v=x2v = x^2. u′=−b[−e−x(x+1)+e−x]=−be−x(−x)=be−xxu' = -b[-e^{-x}(x+1) + e^{-x}] = -b e^{-x}(-x) = b e^{-x} x (careful: derivative of e−x(x+1)e^{-x}(x+1) is −e−x(x+1)+e−x=−xe−x-e^{-x}(x+1) + e^{-x} = -x e^{-x}, so u′=−b(−xe−x)=bxe−xu' = -b(-x e^{-x}) = b x e^{-x}).
    • Derivative = (bxe−x)(x2)−(−be−x(x+1))(2x)x4=be−xx3+2be−xx(x+1)x4=be−x(x2+2x+2)x3\frac{(b x e^{-x})(x^2) - (-b e^{-x}(x+1))(2x)}{x^4} = \frac{b e^{-x} x^3 + 2b e^{-x} x(x+1)}{x^4} = \frac{b e^{-x} (x^2 + 2x + 2)}{x^3}

    The derivative of 11 is 00. So:

y′′=aex(x2−2x+2)x3+be−x(x2+2x+2)x3y'' = \frac{a e^x (x^2 - 2x + 2)}{x^3} + \frac{b e^{-x} (x^2 + 2x + 2)}{x^3}

  1. Substitute into the differential equation: xy′′+2y′−xy+x2−2=0x y'' + 2 y' - x y + x^2 - 2 = 0

    Compute xy′′x y'':

xy′′=aex(x2−2x+2)x2+be−x(x2+2x+2)x2x y'' = \frac{a e^x (x^2 - 2x + 2)}{x^2} + \frac{b e^{-x} (x^2 + 2x + 2)}{x^2}

Compute 2y′2 y':

2y′=2aex(x−1)x2−2be−x(x+1)x2+22 y' = \frac{2a e^x (x-1)}{x^2} - \frac{2b e^{-x} (x+1)}{x^2} + 2

Compute −xy-x y:

−xy=−x(aexx+be−xx+x)=−aex−be−x−x2-x y = -x\left(\frac{a e^x}{x} + \frac{b e^{-x}}{x} + x\right) = -a e^x - b e^{-x} - x^2

Now sum everything:

xy′′+2y′−xy+x2−2=[aex(x2−2x+2)x2+be−x(x2+2x+2)x2]+[2aex(x−1)x2−2be−x(x+1)x2+2]+[−aex−be−x−x2]+x2−2x y'' + 2 y' - x y + x^2 - 2 = \left[\frac{a e^x (x^2 - 2x + 2)}{x^2} + \frac{b e^{-x} (x^2 + 2x + 2)}{x^2}\right] + \left[\frac{2a e^x (x-1)}{x^2} - \frac{2b e^{-x} (x+1)}{x^2} + 2\right] + \left[-a e^x - b e^{-x} - x^2\right] + x^2 - 2

Combine the aexa e^x terms: factor aexx2\frac{a e^x}{x^2}:

aexx2[(x2−2x+2)+2(x−1)]−aex=aexx2[x2−2x+2+2x−2]−aex=aexx2[x2]−aex=aex−aex=0\frac{a e^x}{x^2}[(x^2 - 2x + 2) + 2(x-1)] - a e^x = \frac{a e^x}{x^2}[x^2 - 2x + 2 + 2x - 2] - a e^x = \frac{a e^x}{x^2}[x^2] - a e^x = a e^x - a e^x = 0

Combine the be−xb e^{-x} terms: factor be−xx2\frac{b e^{-x}}{x^2}:

be−xx2[(x2+2x+2)−2(x+1)]−be−x=be−xx2[x2+2x+2−2x−2]−be−x=be−xx2[x2]−be−x=be−x−be−x=0\frac{b e^{-x}}{x^2}[(x^2 + 2x + 2) - 2(x+1)] - b e^{-x} = \frac{b e^{-x}}{x^2}[x^2 + 2x + 2 - 2x - 2] - b e^{-x} = \frac{b e^{-x}}{x^2}[x^2] - b e^{-x} = b e^{-x} - b e^{-x} = 0

The constant terms: +2−x2+x2−2=0+2 - x^2 + x^2 - 2 = 0.

Everything cancels. Hence the given function satisfies the differential equation.

Watch out

A common mistake is forgetting the +x+x term when writing yy explicitly from xy=...xy = ... — that xx comes from x2/x=xx^2/x = x, not from the exponential terms. Also, when differentiating be−x/xb e^{-x}/x, the sign of the derivative of e−xe^{-x} is −e−x-e^{-x}, so handle with care.


(ii) y=ex(acos⁡x+bsin⁡x)y = e^x (a \cos x + b \sin x) : d2ydx2−2dydx+2y=0\frac{d^2 y}{dx^2} - 2 \frac{dy}{dx} + 2y = 0

Concept: This is a linear combination of excos⁡xe^x \cos x and exsin⁡xe^x \sin x, which are known to satisfy the second-order linear ODE y′′−2y′+2y=0y'' - 2y' + 2y = 0. We verify by direct differentiation.

  1. First derivative: Use product rule. Let u=exu = e^x, v=acos⁡x+bsin⁡xv = a \cos x + b \sin x.

y′=ex(acos⁡x+bsin⁡x)+ex(−asin⁡x+bcos⁡x)=ex[(a+b)cos⁡x+(b−a)sin⁡x]y' = e^x (a \cos x + b \sin x) + e^x (-a \sin x + b \cos x) = e^x[(a+b)\cos x + (b-a)\sin x]

  1. Second derivative: Differentiate y′y' again. Write y′=ex[(a+b)cos⁡x+(b−a)sin⁡x]y' = e^x[(a+b)\cos x + (b-a)\sin x]. Apply product rule:

y′′=ex[(a+b)cos⁡x+(b−a)sin⁡x]+ex[−(a+b)sin⁡x+(b−a)cos⁡x]y'' = e^x[(a+b)\cos x + (b-a)\sin x] + e^x[-(a+b)\sin x + (b-a)\cos x]

Simplify:

y′′=ex[(a+b+b−a)cos⁡x+(b−a−a−b)sin⁡x]=ex[2bcos⁡x−2asin⁡x]y'' = e^x[(a+b + b-a)\cos x + (b-a - a - b)\sin x] = e^x[2b \cos x - 2a \sin x]

  1. Substitute into y′′−2y′+2yy'' - 2y' + 2y:

y′′−2y′+2y=ex[2bcos⁡x−2asin⁡x]−2ex[(a+b)cos⁡x+(b−a)sin⁡x]+2ex[acos⁡x+bsin⁡x]y'' - 2y' + 2y = e^x[2b \cos x - 2a \sin x] - 2e^x[(a+b)\cos x + (b-a)\sin x] + 2e^x[a \cos x + b \sin x]

Factor exe^x and collect cos⁡x\cos x and sin⁡x\sin x terms:

For cos⁡x\cos x: 2b−2(a+b)+2a=2b−2a−2b+2a=02b - 2(a+b) + 2a = 2b - 2a - 2b + 2a = 0

For sin⁡x\sin x: −2a−2(b−a)+2b=−2a−2b+2a+2b=0-2a - 2(b-a) + 2b = -2a - 2b + 2a + 2b = 0

Hence the expression is identically zero.

Tip

Notice that y=ex(acos⁡x+bsin⁡x)y = e^x (a \cos x + b \sin x) is the general solution of y′′−2y′+2y=0y'' - 2y' + 2y = 0. The characteristic equation is r2−2r+2=0r^2 - 2r + 2 = 0, with roots r=1±ir = 1 \pm i, giving exactly this form. So verification is essentially checking that the function matches the known solution form.


(iii) y=xsin⁡3xy = x \sin 3x : d2ydx2+9y−6cos⁡3x=0\frac{d^2 y}{dx^2} + 9y - 6 \cos 3x = 0

Concept: Here yy is a product of xx and sin⁡3x\sin 3x. We compute two derivatives and substitute. The presence of −6cos⁡3x-6\cos 3x in the equation suggests that after substitution, the sin⁡\sin terms will cancel and leave a cos⁡\cos term that matches.

  1. First derivative: Using product rule:

y′=sin⁡3x+x⋅3cos⁡3x=sin⁡3x+3xcos⁡3xy' = \sin 3x + x \cdot 3 \cos 3x = \sin 3x + 3x \cos 3x

  1. Second derivative: Differentiate y′y':

y′′=3cos⁡3x+3cos⁡3x+3x⋅(−3sin⁡3x)=6cos⁡3x−9xsin⁡3xy'' = 3 \cos 3x + 3 \cos 3x + 3x \cdot (-3 \sin 3x) = 6 \cos 3x - 9x \sin 3x

  1. Substitute into y′′+9y−6cos⁡3xy'' + 9y - 6 \cos 3x:

y′′+9y−6cos⁡3x=(6cos⁡3x−9xsin⁡3x)+9(xsin⁡3x)−6cos⁡3xy'' + 9y - 6 \cos 3x = (6 \cos 3x - 9x \sin 3x) + 9(x \sin 3x) - 6 \cos 3x

The 6cos⁡3x6 \cos 3x and −6cos⁡3x-6 \cos 3x cancel. The −9xsin⁡3x+9xsin⁡3x-9x \sin 3x + 9x \sin 3x also cancel. Result is 00.

Watch out

A common error: forgetting the factor of 3 when differentiating sin⁡3x\sin 3x (chain rule). Also, when differentiating 3xcos⁡3x3x \cos 3x, the derivative of cos⁡3x\cos 3x is −3sin⁡3x-3 \sin 3x, giving −9xsin⁡3x-9x \sin 3x, not −3xsin⁡3x-3x \sin 3x.


(iv) x2=2y2log⁡yx^2 = 2y^2 \log y : (x2+y2)dydx−xy=0(x^2 + y^2) \frac{dy}{dx} - xy = 0

Concept: This relation is implicit. We differentiate both sides with respect to xx, treating yy as a function of xx, then solve for dydx\frac{dy}{dx} and substitute into the given equation.

  1. Differentiate the given relation implicitly:

ddx(x2)=ddx(2y2log⁡y)\frac{d}{dx}(x^2) = \frac{d}{dx}(2y^2 \log y)

Left side: 2x2x.

Right side: 2⋅ddx(y2log⁡y)2 \cdot \frac{d}{dx}(y^2 \log y). Use product rule: derivative of y2y^2 is 2ydydx2y \frac{dy}{dx}, derivative of log⁡y\log y is 1ydydx\frac{1}{y} \frac{dy}{dx}.

So:

ddx(y2log⁡y)=2ydydx⋅log⁡y+y2⋅1ydydx=2ylog⁡ydydx+ydydx=y(2log⁡y+1)dydx\frac{d}{dx}(y^2 \log y) = 2y \frac{dy}{dx} \cdot \log y + y^2 \cdot \frac{1}{y} \frac{dy}{dx} = 2y \log y \frac{dy}{dx} + y \frac{dy}{dx} = y(2 \log y + 1) \frac{dy}{dx}

Hence:

2x=2⋅y(2log⁡y+1)dydx⇒2x=2y(2log⁡y+1)dydx2x = 2 \cdot y(2 \log y + 1) \frac{dy}{dx} \quad \Rightarrow \quad 2x = 2y(2 \log y + 1) \frac{dy}{dx}

  1. Solve for dydx\frac{dy}{dx}:

dydx=xy(2log⁡y+1)\frac{dy}{dx} = \frac{x}{y(2 \log y + 1)}

  1. Substitute into (x2+y2)dydx−xy(x^2 + y^2) \frac{dy}{dx} - xy:

(x2+y2)⋅xy(2log⁡y+1)−xy(x^2 + y^2) \cdot \frac{x}{y(2 \log y + 1)} - xy

Factor xx:

=x[x2+y2y(2log⁡y+1)−y]= x \left[ \frac{x^2 + y^2}{y(2 \log y + 1)} - y \right]

Combine inside the bracket over a common denominator:

=x[x2+y2−y2(2log⁡y+1)y(2log⁡y+1)]=x[x2+y2−2y2log⁡y−y2y(2log⁡y+1)]=x[x2−2y2log⁡yy(2log⁡y+1)]= x \left[ \frac{x^2 + y^2 - y^2(2 \log y + 1)}{y(2 \log y + 1)} \right] = x \left[ \frac{x^2 + y^2 - 2y^2 \log y - y^2}{y(2 \log y + 1)} \right] = x \left[ \frac{x^2 - 2y^2 \log y}{y(2 \log y + 1)} \right]

  1. Use the original relation: x2=2y2log⁡yx^2 = 2y^2 \log y. Substitute x2x^2:

x2−2y2log⁡y=2y2log⁡y−2y2log⁡y=0x^2 - 2y^2 \log y = 2y^2 \log y - 2y^2 \log y = 0

Hence the numerator is zero, so the entire expression is zero.

Tip

The key insight: the differential equation is designed so that after substituting dydx\frac{dy}{dx} from the implicit relation, the numerator simplifies to x2−2y2log⁡yx^2 - 2y^2 \log y, which is exactly zero by the given relation. So the verification reduces to recognizing that the given equation is used to eliminate the numerator.


✓Final answer

All four given functions are verified to be solutions of their respective differential equations.

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.