Home
Class 12
MATHS
Solve the differential equation: (dy)/(d...

Solve the differential equation: `(dy)/(dx)-y=cos x`

Text Solution

AI Generated Solution

The correct Answer is:
To solve the differential equation \(\frac{dy}{dx} - y = \cos x\), we will follow these steps: ### Step 1: Identify the form of the differential equation The given equation is in the standard linear form: \[ \frac{dy}{dx} + P(x)y = Q(x) \] where \(P(x) = -1\) and \(Q(x) = \cos x\). ### Step 2: Find the integrating factor The integrating factor \(I(x)\) is given by: \[ I(x) = e^{\int P(x) \, dx} = e^{\int -1 \, dx} = e^{-x} \] ### Step 3: Multiply the entire differential equation by the integrating factor Multiplying the original equation by \(e^{-x}\): \[ e^{-x} \frac{dy}{dx} - e^{-x} y = e^{-x} \cos x \] ### Step 4: Rewrite the left-hand side as a derivative The left-hand side can be expressed as the derivative of a product: \[ \frac{d}{dx}(e^{-x} y) = e^{-x} \cos x \] ### Step 5: Integrate both sides Now, we integrate both sides with respect to \(x\): \[ \int \frac{d}{dx}(e^{-x} y) \, dx = \int e^{-x} \cos x \, dx \] The left-hand side simplifies to: \[ e^{-x} y = \int e^{-x} \cos x \, dx \] ### Step 6: Solve the integral on the right-hand side To solve the integral \(\int e^{-x} \cos x \, dx\), we use integration by parts. Let: - \(u = \cos x\) and \(dv = e^{-x} dx\) Then, \(du = -\sin x \, dx\) and \(v = -e^{-x}\). Using integration by parts: \[ \int e^{-x} \cos x \, dx = -e^{-x} \cos x - \int -e^{-x} (-\sin x) \, dx \] This simplifies to: \[ -e^{-x} \cos x + \int e^{-x} \sin x \, dx \] Now we need to solve \(\int e^{-x} \sin x \, dx\) using integration by parts again: Let: - \(u = \sin x\) and \(dv = e^{-x} dx\) Then, \(du = \cos x \, dx\) and \(v = -e^{-x}\). Thus: \[ \int e^{-x} \sin x \, dx = -e^{-x} \sin x - \int -e^{-x} \cos x \, dx \] This gives: \[ -e^{-x} \sin x + \int e^{-x} \cos x \, dx \] ### Step 7: Combine the results Let \(I = \int e^{-x} \cos x \, dx\). We have: \[ I = -e^{-x} \cos x + (-e^{-x} \sin x + I) \] This leads to: \[ 2I = -e^{-x} (\cos x + \sin x) \] Thus: \[ I = -\frac{1}{2} e^{-x} (\cos x + \sin x) \] ### Step 8: Substitute back into the equation Substituting \(I\) back, we have: \[ e^{-x} y = -\frac{1}{2} e^{-x} (\cos x + \sin x) + C \] Multiplying through by \(e^x\): \[ y = -\frac{1}{2} (\cos x + \sin x) + Ce^x \] ### Final Solution The solution to the differential equation is: \[ y = -\frac{1}{2} (\cos x + \sin x) + Ce^x \]

To solve the differential equation \(\frac{dy}{dx} - y = \cos x\), we will follow these steps: ### Step 1: Identify the form of the differential equation The given equation is in the standard linear form: \[ \frac{dy}{dx} + P(x)y = Q(x) \] where \(P(x) = -1\) and \(Q(x) = \cos x\). ...
Promotional Banner

Topper's Solved these Questions

  • DIFFERENTIABILITY

    RD SHARMA|Exercise Solved Examples And Exercises|136 Videos
  • DIFFERENTIALS, ERRORS AND APPROXIMATIONS

    RD SHARMA|Exercise Solved Examples And Exercises|102 Videos

Similar Questions

Explore conceptually related problems

Solve the differential equation x(dy)/(dx)+y=x cos x+sin x,quad given y((pi)/(2))=1

Solve the differential equation: x((dy)/(dx))-y=x^2

Solve the differential equation x(dy)/(dx)+y=1+x

Solve the differential equation (dy)/(dx)+y cot x=2cos x, given that y=0 when x=(pi)/(2)

Solve the differential equation cos x(dy)/(dx)=cos y

Solve the differential equation (dy)/(dx)=x^2y+y

Solve the differential equation sin x(dy)/(dx)+y cos x=2sin^(2)x cos x

Solve the differential equation sin x(dy)/(dx)+3y=cos x

Solve the differential equation: (dy)/(dx)-(y)/(x)=2x^(2)

Solve the differential equation: (dy)/(dx)+(y)/(x)=x^(2)

RD SHARMA-DIFFERENTIAL EQUATION-Solved Examples And Exercises
  1. Solve the differential equation: (x+3y^2)(dy)/(dx)=y

    Text Solution

    |

  2. Show that the differential equation xcos(y/x)(dy)/(dx)=ycos(y/x)+x ...

    Text Solution

    |

  3. Solve the differential equation: (dy)/(dx)-y=cos x

    Text Solution

    |

  4. Solve the differential equation: (dy)/(dx)+2y=sin x

    Text Solution

    |

  5. Solve the differential equation:(dy)/(dx)+y/x=x^2

    Text Solution

    |

  6. Solve x(dy)/(dx) +2y = x^2logx

    Text Solution

    |

  7. Find the general solution of the differential equations: (1+x^2)dy+...

    Text Solution

    |

  8. Solve the differential equation: y\ dx+(x-y^2)dy=0

    Text Solution

    |

  9. The differential equations, find a particular solution satisfying t...

    Text Solution

    |

  10. Find a particular solution of the differential equation: (x+y)dy+(x-y)...

    Text Solution

    |

  11. Solve the differential equation x^2dy+y(x+y)dx=0, given that y=1\ w h ...

    Text Solution

    |

  12. Find the equation of the curve passing through the point (1,1) whos...

    Text Solution

    |

  13. Find the equation of a curve passing through the point (2," "3) , g...

    Text Solution

    |

  14. Find the equation of a curve passing through the point (0, 0) and wh...

    Text Solution

    |

  15. At any point (x, y) of a curve, the slope of the tangent is twice t...

    Text Solution

    |

  16. Show that the family of curves for which the slope of the tangent a...

    Text Solution

    |

  17. Find the equation of a curve passing through the point (0, 1). If t...

    Text Solution

    |

  18. Find the equation of a curve passing through the origin given that ...

    Text Solution

    |

  19. Find the equation of a curve passing through the point (0, 2) given...

    Text Solution

    |

  20. The slope of the tangent to the curve at any point is reciprocal of tw...

    Text Solution

    |