Use sympy to solve the following problems: (a) Solve u'(t) + \frac{1}{t} u(t) = e^tu′(t)+t1u(t)=et subject to u(1) = 3.u(1)=3. (b) Find the family of functions that satisfies P''(s) = 3\, P'(s) - 2\, P(s)P′′(s)=3P′(s)−2P(s). In other words, find the general solution to the differential equation. Hint
Before working on this problem, review the file demo3.pdf on OWL (under the Assignment Info tab). You should also review Week 5 Course Content that discusses sympy.
Your solution to each part below must clearly correspond to the python code you have written. It is your responsibility to make the connection clear to the grader. If it is not clear, then marks will be deducted.
Use sympy to solve the following problems:
(a) Solve u'(t) + \frac{1}{t} u(t) = e^tu′(t)+t1u(t)=et subject to u(1) = 3.u(1)=3.
(b) Find the family of functions that satisfies P''(s) = 3\, P'(s) - 2\, P(s)P′′(s)=3P′(s)−2P(s). In other words, find the general solution to the differential equation. Hint: the number ee is understood by sympy as either sympy.E or sympy.exp(1).
(c) Solve the differential equation in part (b) subject to P(1) = -1P(1)=−1 and P'(e) = 1P′(e)=1.
![Your solution to each part below must clearly correspond to the python code you have written.
It is your responsibility to make the connection clear to the grader. If it is not clear, then marks
will be deducted.
Use sympy to solve the following problems:
(a) Solve u (t) + u(t) = e' subject to u(1) = 3.
(b) Find the family of functions that satisfies P" (s) = 3 P'(s) – 2 P(s). In other words, find
the general solution to the differential equation. Hint: the number e is understood by sympy as
either sympy.E or sympy.exp(1).
(c) Solve the differential equation in part (b) subject to P(1) = -1 and P'(e) = 1.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fce6b922d-a9d5-4170-acac-947c1495a450%2Ff7d6b00b-fddb-495c-b48a-a54b8d03d62a%2Fr83jbjs_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)