# Trying to solve y'(2 - e^x) = -3e^x sin(y)cos(y)

• twoflower
In summary: First, there are some singular solutions:If y \equiv k\frac{\pi}{2}Then right side is zeroed and so is the left.To convert it to the separate form, I need to divide the equation with 2-e^{x}. But I can do this only if x \neq \log 2Otherwise I gety' = -\frac{3e^{x}}{2-e^{x}}\ \sin y\cos y
twoflower
Hi,

I'm trying to solve this:

Find all general maximum solutions of this equation

$$y'(2-e^{x}) = -3e^{x}\sin y\cos y$$

First, there are some singular solutions:

If
$$y \equiv k\frac{\pi}{2}$$

Then right side is zeroed and so is the left.

To convert it to the separate form, I need to divide the equation with $2-e^{x}$. But I can do this only if $x \neq \log 2$

Otherwise I get

$$y' = -\frac{3e^{x}}{2-e^{x}}\ \sin y\cos y$$

And leaving out the singular solutions, I can continue this way

$$\frac{y'}{\sin y\cos y}} = -\frac{3e^{x}}{2-e^{x}}$$

$$\int \frac{dy}{\sin y\cos y} = -3\int \frac{e^{x}}{2-e^{x}}\ dx$$

After evaluating the integrals, I got

$$\log \left| \tan y \right| = \log \left|\left(2-e^{x}\right)^3\right| + C$$

Which I wrote in another way so that I could get rid of those logarithms

$$\log \left| \tan y \right| = \log \left|\left(2-e^{x}\right)^3\right| + \log e^{C}$$

$$\log \left| \tan y \right| = \log \left|e^{C}\left(2-e^{x}\right)^3\right|$$

And thus

$$\tan y = e^{C}\left(2-e^{x}\right)^3$$

$$y = \arctan \left[e^{C}\left(2-e^{x}\right)^3\right] + k\pi$$

Proof showed that this result is correct, but what remains to solve is the domain of $x$ for which it applies.

Even for $x = \log 2$ the equivalence holds, so I would say that

$$y = \arctan \left[e^{C}\left(2-e^{x}\right)^3\right] + k\pi\ \ \ \forall x \in \mathbb{R}$$

Anyway, according to the official results, it's not correct...

Can you see the problem?

I got it finally.
You know, in official results there is:

$$y_{a,b,k} = \left\{ \begin{array}{rcl} \arctan(a(e^{x}-2)^3) + k\pi, & x \in (-\infty, \log 2] \\ \arctan(b(e^{x}-2)^3) + k\pi, & x \in [\log 2, \infty)\end{array}\right.$$

$$\mbox{for }a,\ b \in \mathbb{R} \mbox{ and } k \in \mathbb{Z}\mbox{, and }$$

$$y \equiv k\frac{\pi}{2},\ \ \ x \in \mathbb{R}$$

and I was confused why the interval is split around the $\log 2$ point. Now I see it's just expressing all maximal solutions as in this point the function may get different and still satisfy the equation.

One more technical thing which seems quite tricky to me:

In these official results, there are $a, b \in \mathbb{R}$ although the critical place where they come from looks like this:

$$\log \left| \tan y \right| = \log \left|\left(2-e^{x}\right)^3\right| + C$$

$$\log \left| \tan y \right| = \log \left|\left(2-e^{x}\right)^3\right| + \log e^{C}$$

$$\log \left| \tan y \right| = \log \left|e^{C}\left(2-e^{x}\right)^3\right|$$

Well, strictly adjusting the equation with C involved from integrating, I got $e^{C}$. Anyway, putting any real constant there (and not only positive) is also ok. One must be very careful when expressing all maximum solutions

Last edited:
Good job. And beautiful formatting. You should be answering problems here, or are you already?

Carl

## 1. What is the given differential equation?

The given differential equation is y'(2 - e^x) = -3e^x sin(y)cos(y).

## 2. What is the variable in this equation?

The variable in this equation is y, which represents the dependent variable.

## 3. What is the independent variable in this equation?

The independent variable in this equation is x.

## 4. What type of differential equation is this?

This is a first-order, nonlinear differential equation.

## 5. What are the possible methods for solving this equation?

Possible methods for solving this equation include separation of variables, integrating factors, and using a substitution to transform it into a more manageable form.

• Calculus and Beyond Homework Help
Replies
10
Views
591
• Calculus and Beyond Homework Help
Replies
3
Views
439
• Calculus and Beyond Homework Help
Replies
5
Views
391
• Calculus and Beyond Homework Help
Replies
16
Views
682
• Calculus and Beyond Homework Help
Replies
18
Views
1K
• Calculus and Beyond Homework Help
Replies
8
Views
829
• Calculus and Beyond Homework Help
Replies
1
Views
565
• Calculus and Beyond Homework Help
Replies
7
Views
767
• Calculus and Beyond Homework Help
Replies
6
Views
660
• Calculus and Beyond Homework Help
Replies
2
Views
905