Skip to content
🚨 This site is a work in progress. Exciting updates are coming soon!

3.8 Q-18

Question Statement

Solve the differential equation:

(ex+eβˆ’x)dydx=exβˆ’eβˆ’x\left( e^x + e^{-x} \right) \frac{d y}{d x} = e^x - e^{-x}

Background and Explanation

This is a first-order linear differential equation. We can solve it using the separation of variables method. The goal is to separate the terms involving yy on one side and the terms involving xx on the other, and then integrate both sides.


Solution

  1. Start with the given equation:

    The equation is:

(ex+eβˆ’x)dydx=exβˆ’eβˆ’x \left( e^x + e^{-x} \right) \frac{d y}{d x} = e^x - e^{-x}
  1. Separate the variables:

    To separate the variables, divide both sides of the equation by ex+eβˆ’xe^x + e^{-x}:

dydx=exβˆ’eβˆ’xex+eβˆ’x \frac{d y}{d x} = \frac{e^x - e^{-x}}{e^x + e^{-x}}
  1. Integrate both sides:

    Now, integrate both sides with respect to xx:

y=∫exβˆ’eβˆ’xex+eβˆ’x,dx y = \int \frac{e^x - e^{-x}}{e^x + e^{-x}} , dx

This can be simplified as:

y=ln⁑(ex+eβˆ’x)+C y = \ln(e^x + e^{-x}) + C
  1. Final solution:

    The general solution to the differential equation is:

y=ln⁑(ex+eβˆ’x)+C y = \ln \left( e^x + e^{-x} \right) + C

Key Formulas or Methods Used

  • Separation of Variables: Rearranging the equation to isolate the terms involving yy on one side and the terms involving xx on the other.
  • Integration of Rational Functions: Using logarithmic properties to integrate and simplify.

Summary of Steps

  1. Start with the equation: (ex+eβˆ’x)dydx=exβˆ’eβˆ’x\left( e^x + e^{-x} \right) \frac{d y}{d x} = e^x - e^{-x}.
  2. Separate the variables: dydx=exβˆ’eβˆ’xex+eβˆ’x\frac{d y}{d x} = \frac{e^x - e^{-x}}{e^x + e^{-x}}.
  3. Integrate both sides: y=∫exβˆ’eβˆ’xex+eβˆ’x,dxy = \int \frac{e^x - e^{-x}}{e^x + e^{-x}} , dx.
  4. Simplify the result: y=ln⁑(ex+eβˆ’x)+Cy = \ln \left( e^x + e^{-x} \right) + C.