# ODE and Placing slopes

**URL:** <https://community.wolfram.com/t/ode-and-placing-slopes/4556>\
**Category:** Questions\
**Tags:** mathematica, calculus\
**Created:** [January 17, 2015, 10:05am UTC](https://community.wolfram.com/t/ode-and-placing-slopes/4556 "2015-01-17T10:05:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![altinguberi](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/altinguberi/32/10935_2.png) [@altinguberi](https://community.wolfram.com/u/altinguberi)\
**Post date:** [January 17, 2015, 10:05am UTC](https://community.wolfram.com/t/ode-and-placing-slopes/4556/1 "2015-01-17T10:05:45Z")

</div>

Hello  
Well, it sounds like I am a Mathematica beginner  
So I would like some help  
Can anyone tell me how to solve ode of 1st order and second one.  
I would like to know the code for these  
y’‘+10y’+4y=e^xsinx  
y’‘+8y’+4y=3xcosxsinx  
and how do i plot the slopes for these?  
Thank you)))

---

<div class="post-metadata">

**Author:** ![sblinder](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sblinder/32/17861_2.png) [@sblinder](https://community.wolfram.com/u/sblinder)\
**Post date:** [January 17, 2015, 8:16pm UTC](https://community.wolfram.com/t/ode-and-placing-slopes/4556/2 "2015-01-17T20:16:02Z")

</div>

The two equal signs imply that you have 3 separate 2nd order DEs. It is unlikely that a solution satisfying all 3 does exists.  
Assuming just the first and third quantities you can get

```
In[11]:= DSolve[y''[x] + 10 y'[x] + 4 y[x] == 3 x Cos[x] Sin[x] , 
 y[x], x]

Out[11]= {{y[x] -> 
   E^((-5 - Sqrt[21]) x) C[1] + E^((-5 + Sqrt[21]) x) C[2] - (
    3 (-2 Cos[2 x] + 10 x Cos[2 x] - 5 Sin[2 x]))/(
    50 (-5 + Sqrt[21])^2 (23 + 5 Sqrt[21]))}}

```

---

<div class="post-metadata">

**Author:** ![altinguberi](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/altinguberi/32/10935_2.png) [@altinguberi](https://community.wolfram.com/u/altinguberi)\
**Post date:** [January 17, 2015, 8:37pm UTC](https://community.wolfram.com/t/ode-and-placing-slopes/4556/3 "2015-01-17T20:37:19Z")

</div>

Thank you)))  
Now can you please also make the phase portrait of it?
