Skip to main content

Differential Equations MCQ: The solution of the differential equation (d y)/(d…

JEE · Mathematics · Differential Equations

1 Easy +4 | -1 Application
The solution of the differential equation dydx+y=cos⁡x\frac{d y}{d x}+y=\cos x is
View answer and explanation
Correct option: A
y=12(cos⁡x+sin⁡x)+ce−xy=\frac{1}{2}(\cos x+\sin x)+c e^{-x}
Option A, y=12(cos⁡x+sin⁡x)+ce−xy=\frac{1}{2}(\cos x+\sin x)+c e^{-x}, is the correct solution because it satisfies the given first-order linear differential equation.
Solution approach
  1. Correct Answer + Core Reason: y=12(cos⁡x+sin⁡x)+ce−xy=\frac{1}{2}(\cos x+\sin x)+c e^{-x}. The solution is found by solving the first-order linear differential equation using an integrating factor.

    Step-by-Step Solution:

    Step 1: Identify the differential equation as a first-order linear equation of the form dydx+Py=Q\frac{dy}{dx} + Py = Q, where P=1P = 1 and Q=cos⁡xQ = \cos x.

    Step 2: Calculate the integrating factor (I.F.) using the formula: I.F. = e∫Pdx=e∫1dx=exe^{\int P dx} = e^{\int 1 dx} = e^x.

    Step 3: Multiply both sides of the differential equation by the integrating factor: exdydx+exy=excos⁡xe^x \frac{dy}{dx} + e^x y = e^x \cos x.

    Step 4: Recognize that the left side is the derivative of the product yexy e^x: ddx(yex)=excos⁡x\frac{d}{dx}(y e^x) = e^x \cos x.

    Step 5: Integrate both sides with respect to xx: ∫ddx(yex)dx=∫excos⁡xdx\int \frac{d}{dx}(y e^x) dx = \int e^x \cos x dx.

    Step 6: Evaluate the integrals: yex=∫excos⁡xdx+cy e^x = \int e^x \cos x dx + c.

    Step 7: Evaluate the integral ∫excos⁡xdx\int e^x \cos x dx. We can use integration by parts twice. Let u=cos⁡xu = \cos x and dv=exdxdv = e^x dx. Then du=−sin⁡xdxdu = -\sin x dx and v=exv = e^x. So, ∫excos⁡xdx=excos⁡x−∫ex(−sin⁡x)dx=excos⁡x+∫exsin⁡xdx\int e^x \cos x dx = e^x \cos x - \int e^x(-\sin x) dx = e^x \cos x + \int e^x \sin x dx.

    Step 8: Integrate ∫exsin⁡xdx\int e^x \sin x dx by parts. Let u=sin⁡xu = \sin x and dv=exdxdv = e^x dx. Then du=cos⁡xdxdu = \cos x dx and v=exv = e^x. So, ∫exsin⁡xdx=exsin⁡x−∫excos⁡xdx\int e^x \sin x dx = e^x \sin x - \int e^x \cos x dx.

    Step 9: Substitute back into the previous equation: ∫excos⁡xdx=excos⁡x+exsin⁡x−∫excos⁡xdx\int e^x \cos x dx = e^x \cos x + e^x \sin x - \int e^x \cos x dx.

    Step 10: Solve for ∫excos⁡xdx\int e^x \cos x dx: 2∫excos⁡xdx=excos⁡x+exsin⁡x2 \int e^x \cos x dx = e^x \cos x + e^x \sin x, so ∫excos⁡xdx=12ex(cos⁡x+sin⁡x)\int e^x \cos x dx = \frac{1}{2}e^x(\cos x + \sin x).

    Step 11: Substitute this result back into the equation from Step 6: yex=12ex(cos⁡x+sin⁡x)+cy e^x = \frac{1}{2}e^x(\cos x + \sin x) + c.

    Step 12: Divide by exe^x to solve for yy: y=12(cos⁡x+sin⁡x)+ce−xy = \frac{1}{2}(\cos x + \sin x) + c e^{-x}.

    Why other options are wrong:
    - Option B: This option has a negative sign between cos⁡x\cos x and sin⁡x\sin x, which is incorrect based on the integration by parts.
    - Option C: This option is missing the factor of 12\frac{1}{2} and only has (cos⁡x+sin⁡x)(\cos x + \sin x) without the correct coefficient.
    - Option D: Since option A is correct, this option is incorrect.

    Key Concepts:
    - First-order linear differential equations
    - Integrating factor
    - Integration by parts

    Memory Aids:
    - Remember the formula for the integrating factor: e∫Pdxe^{\int P dx}
    - Integration by parts: ∫udv=uv−∫vdu\int u dv = uv - \int v du

    Quick Tips:
    - Always check your solution by substituting it back into the original differential equation.
    - Remember to include the constant of integration, cc.

More Questions from Differential Equations

Practice all chapter MCQs →
Type at least 2 characters or jump directly:

Save your learning progress

Sign in with a free account to save your practice answers and quiz results, then return to them when you revise.

Scan to install TopAll Pro

Point your Android or iPhone camera at this code to open TopAll Pro. Try 2 chapters and 25 AI credits free first.

Question image

Use + and − to zoom, arrow keys or drag to pan, Escape to close.