Skip to main content

`(y-1)sinx dx - dy = 0` Solve the first-order differential equation

`(y-1)sin(x)dx - dy = 0`


To solve, express the equation in the form `N(y)dy = M(x)dx`.


So bringing same variables on one side, the equation becomes:


`(y-1) sin(x) dx = dy`


`sin(x) dx = dy/(y - 1)`


Then, take the integral of both sides.


`int sin(x) dx = int dy/(y-1)`


For the left side, apply the formula `int sin (u) du = -cos(u) + C` .


And for the right side, apply the formula `int (du)/u =ln|u| + C` .


`-cos(x) +C_1 = ln|y-1|+C_2`


From here, isolate the y.


`-cos(x) + C_1 - C_2 = ln|y-1|`


Since C1 and C2 represent any number, express it as a single constant C.


`-cos(x) +C = ln|y-1|`


Then, eliminate the logarithm in the equation.


`e^(-cos(x)+C) = e^(ln|y-1|)`


`e^(-cos(x) + C) = |y-1|`


`+-e^(-cos(x) + C) = y-1`


To simplify the left side, apply the exponent rule `a^m*a^n=a^(m+n)` .


`+-e^(-cos(x))*e^C= y-1`


`+-e^C*e^(-cos(x))=y-1`


Since `+-e^C` is a constant, it can be replaced with C.


`Ce^(-cos(x))=y - 1`


`Ce^(-cos(x))+1=y`


Therefore, the general solution is  `y=Ce^(-cos(x))+1` .

Comments

Popular posts from this blog

Is there a word/phrase for "unperformant"?

As a software engineer, I need to sometimes describe a piece of code as something that lacks performance or was not written with performance in mind. Example: This kind of coding style leads to unmaintainable and unperformant code. Based on my Google searches, this isn't a real word. What is the correct way to describe this? EDIT My usage of "performance" here is in regard to speed and efficiency. For example, the better the performance of code the faster the application runs. My question and example target the negative definition, which is in reference to preventing inefficient coding practices. Answer This kind of coding style leads to unmaintainable and unperformant code. In my opinion, reads more easily as: This coding style leads to unmaintainable and poorly performing code. The key to well-written documentation and reports lies in ease of understanding. Adding poorly understood words such as performant decreases that ease. In addressing the use of such a poorly ...

Is 'efficate' a word in English?

I routinely hear the word "efficate" being used. For example, "The most powerful way to efficate a change in the system is to participate." I do not find entries for this word in common English dictionaries, but I do not have an unabridged dictionary. I have checked the OED (I'm not sure if it is considered unabridged), and it has no entry for "efficate". It does have an entry for "efficiate", which is used in the same way. Wordnik has an entry for "efficate" with over 1800 hits, thus providing some evidence for the frequency of use. I personally like the word and find the meaning very clear and obvious when others use it. If it's not currently an "officially documented" word, perhaps its continued use will result in it being better documented.