Solve Initial Value Problem: dy/dx = x-4-xy-4y, y(0)=4 | Step-by-Step Guide

In summary, you are missing a "2" in the denominator of the exponential in the equation y=5e^{\frac{x^2}{x}}e^{-4x}.
  • #1
p53ud0 dr34m5
94
0
[tex]\frac{dy}{dx}=x-4-xy-4y[/tex]
you are given that [itex]y(0)=4[/itex].

so, here's what i did:
[tex]\frac{dy}{dx}=(x-4)(y+1)[/tex]

[tex]\frac{dy}{y+1}=(x-4)dx[/tex]

i integrated both sides:
[tex]ln(y+1)=\frac{x^2}{2}-4x+C[/tex]

[tex]y=e^{\frac{x^2}{2}}e^{-4x}e^{C}-1[/tex]

plugged in for x and y:
[tex]4=e^{\frac{0^2}{x}}e^{-4*0}e^{C}-1[/tex]

[tex]5=e^C[/tex]

so:
[tex]y=5e^{\frac{x^2}{x}}e^{-4x}[/tex]

i know that's wrong, and i need help working it out. that's what i have so far though.
 
Physics news on Phys.org
  • #2
The initial formula (when u restrained into a product of quantities in round brackets) is incorrect.

You may want to check again.

Daniel.
 
  • #3
In other words, you factored wrong

x- 4- xy- 4y is not (x- 4)(y+1)= x- 4+ xy- 4y.
 
  • #4
The bad news that the solution to this Cauchy problem,according to my version of Maple,is not pretty,not pretty at all...

Are u sure this is the equation u were supposed to solve...?

Daniel.
 
  • #5
nah, i didnt factor wrong. i just wrote down the equation wrong.
[tex]\frac{dy}{dx}=x-4+xy-4y[/tex]

try that one?
 
  • #6
It's something else.In this case,your initial factoring turns out to be correct (in this case!) and so the solution is obtained the way you did.Unfortunately,after computing that integration constant,when writing the final solution,you made a mistake.Can u "fix" it...?

Daniel.
 
  • #7
[tex]y=5e^{\frac{x^2}{x}}e^{-4x}-1[/tex]
maybe? haha, I am fairly tired and at work. I am missing a lot of things. :frown:
 
  • #8
It's a typo (again!),it's not "x",but "2" in the denominator of the exponential...But the rest is FINALLY correct.

Advice:take a well diserved break...:wink:

Daniel.
 
  • #9
oh my dear! i can't believe i missed that! i still must be fried from the weed. :smile:
 

FAQ: Solve Initial Value Problem: dy/dx = x-4-xy-4y, y(0)=4 | Step-by-Step Guide

What is an initial value problem?

An initial value problem is a type of mathematical problem that involves finding a solution to a differential equation that satisfies certain initial conditions. These initial conditions are typically given as a set of values for the dependent variable and its derivatives at a specific point in time or space.

What are some examples of initial value problems?

Some common examples of initial value problems include population growth models, heat transfer equations, and motion equations in physics. These problems are typically used to model the behavior of a system over time, given certain initial conditions.

What is the difference between an initial value problem and a boundary value problem?

The main difference between an initial value problem and a boundary value problem is the type of conditions that are given. In an initial value problem, the conditions are given at a single point in time or space, while in a boundary value problem, the conditions are given along the boundary of the domain.

How are initial value problems solved?

Initial value problems can be solved using various techniques, depending on the type of equation and the complexity of the problem. Some common methods include separation of variables, Euler's method, and Runge-Kutta methods. Numerical methods are often used to approximate solutions for more complex initial value problems.

Why are initial value problems important in science?

Initial value problems are important in science because they allow us to model and understand the behavior of systems over time. By solving these problems, we can make predictions and gain insights into the behavior of physical, biological, and chemical systems. Initial value problems are also fundamental in many areas of mathematics and engineering.

Back
Top