SOLVER7 Study. Nothing Else.
2026 Board Paper Q28(b)

Solve the differential equation :
\(\dfrac{dy}{dx}=e^{x+y}+e^{x-y}\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a seesaw with x on one side and y on the other. The goal is to push all the y stuff to one side and all the x stuff to the other side. Once they are separated, you can add up each side on its own, like counting apples and oranges in different baskets. A clever trick using exponent rules helps us spot a hidden common factor, making separation possible. After adding up both sides, we get the final answer neatly.

Answer: \[\tan^{-1}\left(e^{y}\right) = e^{x} + C\] where \(C\) is an arbitrary constant of integration.

📖 Solving dy/dx = e^(x+y) + e^(x-y) by Variable Separation

Detailed Explanation

A differential equation is solvable by the variables separable method if we can rewrite it so that all terms in \(y\) (with \(dy\)) are on one side and all terms in \(x\) (with \(dx\)) are on the other side. Here the right-hand side has exponential terms that share a common factor. Using the law of exponents \(e^{x+y} = e^x \cdot e^y\) and \(e^{x-y} = e^x \cdot e^{-y}\), we can factor out \(e^x\). This lets us separate the variables and then integrate both sides independently to get the general solution.

Formula Used

Laws of exponents: \(e^{a+b} = e^a e^b\). Standard integrals: \(\int e^{-y} \, dy = -e^{-y} + C\) and \(\int e^{x} \, dx = e^{x} + C\).

Solution

  1. Step 1: Start with the given equation \[\frac{dy}{dx} = e^{x+y} + e^{x-y}.\] Apply the law of exponents to split each term: \[\frac{dy}{dx} = e^x e^y + e^x e^{-y}.\]
  2. Step 2: Factor out the common term \(e^x\) from the right-hand side. This is the key move that makes separation possible. \[\frac{dy}{dx} = e^x \left( e^y + e^{-y} \right).\]
  3. Step 3: Separate the variables by moving all \(y\)-terms to the left and all \(x\)-terms to the right. Divide both sides by \(\left(e^y + e^{-y}\right)\) and multiply by \(dx\). \[\frac{dy}{e^y + e^{-y}} = e^x \, dx.\]
  4. Step 4: Simplify the left side. Multiply numerator and denominator by \(e^y\): \[\frac{e^y \, dy}{e^{2y} + 1} = e^x \, dx.\] This form is ready for integration because the numerator is the derivative of the inner part of the denominator.
  5. Step 5: Integrate both sides. On the left, use the substitution \(t = e^y\) so that \(dt = e^y \, dy\): \[\int \frac{dt}{t^2 + 1} = \int e^x \, dx.\] This gives \[\tan^{-1}(t) = e^x + C.\]
  6. Step 6: Substitute back \(t = e^y\) to write the answer in terms of the original variables. \[\tan^{-1}\left(e^y\right) = e^x + C.\]

Final Answer

\[\tan^{-1}\left(e^{y}\right) = e^{x} + C\] where \(C\) is an arbitrary constant of integration.

Common Mistake

A common mistake is failing to factor out \(e^x\) and instead trying to integrate \(e^{x+y}\) and \(e^{x-y}\) separately without separating variables. Another frequent error is forgetting the standard result \(\int \frac{dt}{t^2+1} = \tan^{-1}(t)\) after simplifying the left side, or omitting the arbitrary constant \(C\).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write the given differential equation: \[\frac{dy}{dx} = e^{x+y} + e^{x-y}.\] Then apply the exponent law \(e^{a+b} = e^{a} \cdot e^{b}\) to expand each term on the right: \[\frac{dy}{dx} = e^{x} \cdot e^{y} + e^{x} \cdot e^{-y}.\] — Reason: Breaking the combined exponents into products of separate exponentials is the first move toward isolating \(x\)-terms from \(y\)-terms.
  2. Step 2: Factor \(e^{x}\) out from both terms on the right-hand side: \[\frac{dy}{dx} = e^{x}\left(e^{y} + e^{-y}\right).\] — Reason: Pulling out the common factor \(e^{x}\) groups all \(x\)-dependence together, which is the key move that makes variable separation possible.
  3. Step 3: Separate the variables by dividing both sides by \(\left(e^{y} + e^{-y}\right)\) and multiplying both sides by \(dx\): \[\frac{dy}{e^{y} + e^{-y}} = e^{x} \\, dx.\] — Reason: After this rearrangement, the left side involves only \(y\) and \(dy\), while the right side involves only \(x\) and \(dx\), so both sides can be integrated independently.
  4. Step 4: Simplify the left-hand side by multiplying the numerator and denominator by \(e^{y}\): \[\frac{e^{y} \\, dy}{e^{2y} + 1} = e^{x} \\, dx.\] — Reason: Multiplying top and bottom by \(e^{y}\) converts the denominator into \(e^{2y} + 1\) and places \(e^{y}\) in the numerator. This is exactly the standard form \(\frac{f'(u)}{1+u^{2}}\\, du\) (with \(u = e^{y}\)), which integrates to an inverse tangent.
  5. Step 5: Integrate both sides: \[\int \frac{e^{y}}{e^{2y}+1} \\, dy = \int e^{x} \\, dx.\] On the left, substitute \(u = e^{y}\) so that \(du = e^{y} \\, dy\), giving \(\int \frac{du}{u^{2}+1} = \tan^{-1}(u) + C_{1} = \tan^{-1}(e^{y}) + C_{1}\). On the right, \(\int e^{x} \\, dx = e^{x} + C_{2}\). — Reason: The substitution \(u = e^{y}\) transforms the left integral into the standard form \(\int \frac{du}{1+u^{2}}\), whose result is \(\tan^{-1}(u)\).
  6. Step 6: Combine the constants of integration (\(C_{2} - C_{1}\)) into a single arbitrary constant \(C\) and write the general solution: \[\tan^{-1}\left(e^{y}\right) = e^{x} + C.\] — Reason: Since both \(C_{1}\) and \(C_{2}\) are arbitrary constants, their difference is also an arbitrary constant, conventionally written as \(C\).

Final Answer

\[\tan^{-1}\left(e^{y}\right) = e^{x} + C\] where \(C\) is an arbitrary constant of integration.

Common Mistake

One common mistake: forgetting to multiply the numerator and denominator of \(\frac{dy}{e^{y}+e^{-y}}\) by \(e^{y}\) before integrating — without this step, the integral does not reduce to the standard \(\tan^{-1}\) form, leading students to either get stuck or attempt an incorrect integration.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given: \[\frac{dy}{dx} = e^{x+y} + e^{x-y} = e^x(e^y + e^{-y})\]
  2. Step 2: Separate variables: \[\frac{dy}{e^y + e^{-y}} = e^x \\, dx \implies \frac{e^y \\, dy}{e^{2y} + 1} = e^x \\, dx\]
  3. Step 3: Integrate both sides: \[\int \frac{e^y}{e^{2y} + 1} \\, dy = \int e^x \\, dx \implies \tan^{-1}(e^y) = e^x + C\]

Answer: \[\tan^{-1}\left(e^{y}\right) = e^{x} + C\] where \(C\) is an arbitrary constant of integration.

➕ More Examples

More Examples

Example 1

Question: Solve the differential equation: \[\frac{dy}{dx} = e^{2x+y} + e^{2x-y}\]

Solution: We rewrite the right-hand side by factoring out \(e^{2x}\): \[\frac{dy}{dx} = e^{2x} \cdot e^{y} + e^{2x} \cdot e^{-y} = e^{2x}\left(e^{y} + e^{-y}\right)\] Separating variables (dividing both sides by \(e^y + e^{-y}\) and multiplying by \(dx\)): \[\frac{dy}{e^{y} + e^{-y}} = e^{2x}\,dx\] Multiply numerator and denominator on the left by \(e^{y}\): \[\frac{e^{y}\,dy}{e^{2y} + 1} = e^{2x}\,dx\] Now integrate both sides: \[\int \frac{e^{y}}{e^{2y} + 1}\,dy = \int e^{2x}\,dx\] For the left side, let \(t = e^{y}\), so \(dt = e^{y}\,dy\): \[\int \frac{dt}{t^{2} + 1} = \tan^{-1}(t) + C_1 = \tan^{-1}(e^{y}) + C_1\] For the right side: \[\int e^{2x}\,dx = \frac{e^{2x}}{2} + C_2\] Combining both results (absorbing constants into one constant \(C\)): \[\tan^{-1}(e^{y}) = \frac{e^{2x}}{2} + C\]

Answer: \(\tan^{-1}(e^{y}) = \dfrac{e^{2x}}{2} + C\)

Example 2

Question: Solve the differential equation: \[\frac{dy}{dx} = e^{x-y} + e^{-x-y}\]

Solution: We rewrite the right-hand side by factoring out \(e^{-y}\): \[\frac{dy}{dx} = e^{-y}\left(e^{x} + e^{-x}\right)\] Separating variables (multiply both sides by \(e^{y}\) and by \(dx\)): \[e^{y}\,dy = \left(e^{x} + e^{-x}\right)dx\] Now integrate both sides: \[\int e^{y}\,dy = \int \left(e^{x} + e^{-x}\right)dx\] Left side: \[\int e^{y}\,dy = e^{y} + C_1\] Right side: \[\int \left(e^{x} + e^{-x}\right)dx = e^{x} - e^{-x} + C_2\] Combining both results (absorbing constants into one constant \(C\)): \[e^{y} = e^{x} - e^{-x} + C\] This can also be written using the hyperbolic sine function, but in standard Class 12 notation the answer is: \[e^{y} = e^{x} - e^{-x} + C\]

Answer: \(e^{y} = e^{x} - e^{-x} + C\)

🎯 Try a Similar Question

Try a Similar Question

Question: Solve the differential equation: \[ \frac{dy}{dx} = e^{2x - y} + e^{x - y} \]

Solution

  1. Step 1: Rewrite using laws of exponents: We use \( e^{a+b} = e^a \cdot e^b \) to rewrite each term on the right-hand side. \[ \frac{dy}{dx} = e^{2x} \cdot e^{-y} + e^{x} \cdot e^{-y} \] Factor out \( e^{-y} \): \[ \frac{dy}{dx} = e^{-y}\left(e^{2x} + e^{x}\right) \]
  2. Step 2: Separate the variables: Bring all y-terms to the left and all x-terms to the right. Multiply both sides by \( e^{y} \): \[ e^{y} \, dy = \left(e^{2x} + e^{x}\right) dx \]
  3. Step 3: Integrate both sides: Integrate the left side with respect to \( y \) and the right side with respect to \( x \): \[ \int e^{y} \, dy = \int \left(e^{2x} + e^{x}\right) dx \] The left side gives \( e^{y} \). The right side: \( \int e^{2x} \, dx = \frac{e^{2x}}{2} \) and \( \int e^{x} \, dx = e^{x} \).
  4. Step 4: Write the general solution: Combining both sides (and absorbing the constants of integration into a single constant \( C \)): \[ e^{y} = \frac{e^{2x}}{2} + e^{x} + C \] where \( C \) is an arbitrary constant of integration.

Answer: \[ e^{y} = \frac{e^{2x}}{2} + e^{x} + C \] where \( C \) is an arbitrary constant of integration.

Everything you get with Solver7

More questions in Differential Equations

Chapter 9 Examples Q1(i) 65/2/1 2022 / Section A Q1 Chapter 9 Examples Q1(ii) 65/2/2 2023 / Section A Q2 Chapter 9 Examples Q1(iii) 65/2/2 2023 / Section A Q3 Chapter 9 Examples Q2 Chapter 9 Examples Q3 Chapter 9 Examples Q4 Chapter 9 Examples Q5 65/1/1 2023 / Section A Q7 65/2/1 2024 / Section A Q7 65/3/1 2024 / Section A Q7 65/4/1 2022 / Section A Q5 Chapter 9 Examples Q6 65/1/1 2024 / Section A Q8 65/3/1 2023 / Section A Q8 Chapter 9 Examples Q7 65/3/1 2023 / Section A Q9 65/4/2 2024 / Section A Q9 Chapter 9 Examples Q8 65(B) 2026 / Section A Q10 65/4/1 2023 / Section A Q10 Chapter 9 Examples Q9 65(B) 2026 / Section A Q11 65/1/1 2026 / Section A Q11 65/2/1 2022 / Section B Q9 65/4/1 2023 / Section A Q11 Chapter 9 Examples Q10 65/1/1 2026 / Section A Q12 65/4/1 2026 / Section A Q12 Chapter 9 Examples Q11 65/3/1 2026 / Section A Q13 65/4/1 2026 / Section A Q13 65/4/2 2024 / Section A Q13 65/5/1 2026 / Section A Q13 Chapter 9 Examples Q12 65/1/1 2024 / Section A Q14 65/2/1 2024 / Section A Q14 65/5/1 2026 / Section A Q14 Chapter 9 Examples Q13 65/1/1 2023 / Section A Q15 65/2/3 2026 / Section A Q15 Chapter 9 Examples Q14 65/2/3 2026 / Section A Q16 65/4/1 2022 / Section C Q12(a) Chapter 9 Examples Q15 65/4/1 2022 / Section C Q12(b) Chapter 9 Examples Q16 Chapter 9 Examples Q17 65/3/1 2026 / Section A Q19 Chapter 9 Examples Q18 Chapter 9 Miscellaneous Examples Q19 Chapter 9 Miscellaneous Examples Q20 Chapter 9 Miscellaneous Examples Q21 Chapter 9 Miscellaneous Examples Q22 Exercise 9.1 Q1 Exercise 9.1 Q2 Exercise 9.1 Q3 Exercise 9.1 Q4