Question

In: Advanced Math

This is a Matlab Question Create MATLAB PROGRAM that can solve First Order Linear Differential Equation...

This is a Matlab Question

Create MATLAB PROGRAM that can solve First Order Linear Differential Equation ( 1 example contains condition and the other does not have condition).

1. ty′ + 2y = t^2 − t + 1, y(1)=12

The correct answer is y(t) = 1/4 t^2 − 1/3 t + 1/2 + 1/12t^2

2. (x-1) dy/dx + 2y = (x+1)^2

The correct answer is y = (x(x+1) / x-1 ) + C(x+1) / x-1

The correct answer is

Solutions

Expert Solution

code 1:

syms y(t)
ode = diff(y,t) == t-1 + 1/t - (2/t)*y
ode = (sym)
cond = y(1) == 12;
ySol(t) = dsolve(ode,cond)

code 2:

syms y(t)
ode = diff(y,t) == ((t+1)^2)/(t-1) - (2*y)/(t-1)
ode = (sym)
ySol(t) = dsolve(ode)


Related Solutions

Write the second order differential equation as a system of two linear differential equations then solve...
Write the second order differential equation as a system of two linear differential equations then solve it. y" + y' - 6y = e^-3t y(0) =0   y'(0)=0
Find the particular solution of the first-order linear differential equation for x > 0 that satisfies...
Find the particular solution of the first-order linear differential equation for x > 0 that satisfies the initial condition. (Remember to use absolute values where appropriate.) Differential Equation Initial Condition x dy = (x + y + 7) dx y(1) = 6 y =
Create a java application that can solve the following differential equation and boundary condition with the...
Create a java application that can solve the following differential equation and boundary condition with the Runge Kutta method and the secant method. x' = f(t,x) = x + 0.09x2 + cos(10*t) differential equation x(0) + x(1) - 3.0 = 0            boundary condition Starting with the initial guesses 0.7 and 1.0 for the (unknown) initial value, x(0), obtain an approximation to x(0) {for the final solution, x(t)} such that the boundary condition is satisfied to within a tolerance of 10-4 ....
Solve the following problems. a) What is the order of the differential equation ? ′ =...
Solve the following problems. a) What is the order of the differential equation ? ′ = ? 2 − 3? − 10? Is it linear ? b) Determine whether the differential equation ? ′ = ? 2 − 3? − 10 possesses constant solutions. If yes find these constant solutions. c) Find the value(s) of ? so that the function ? = ? ?? is a solution of ? ′′ − 3? ′ − 10? = 0. Do you think...
1) Use MATLAB to solve this differential equation. ??/?? = .25? (1 − ?/4 ) -...
1) Use MATLAB to solve this differential equation. ??/?? = .25? (1 − ?/4 ) - a 2) Use MATLAB to graph solution curves to this system with several different initial values. Be sure to show at least one solution curve for each of the scenarios found in ??/?? = .25? (1 − ?/4 ) - a ( let a = 0.16)
Writing Prompt(s) One method for solving a system of first order linear differential equation such as...
Writing Prompt(s) One method for solving a system of first order linear differential equation such as x ′ = a x + b y y ′ = c x + d y is to take the derivative of the first equation and use the second equation to ``decouple'' the system and create a second order equation, which we can solve using our previous techniques. Does this always work? If not, what conditions on the constants a, b, c, and d...
Question 4: Homogeneous Second Order Differential equation Solve the following equation for the particular solution. i....
Question 4: Homogeneous Second Order Differential equation Solve the following equation for the particular solution. i. 2?′′ + 5?′ + 3? = 0; ?(0)=3, ?′(0)=−4 ii. 4 (?2?/??2) + 8 (??/??) + 3y = 0 ?(0)=1, ?′(0)=2 iii. ?′′ + 6?′ + 13? = 0; ?(0)=2, ?′(0)=1
convert differential equation to a matrix differential equation? can put an example and solve it.
convert differential equation to a matrix differential equation? can put an example and solve it.
Solve two different first order differential equations (one linear and one non-linear) both analytically and numerically...
Solve two different first order differential equations (one linear and one non-linear) both analytically and numerically and compare the results in tabular and graphical forms. Include at least two different numerical solution techniques for each differential equation analyzed.
I need the matlab codes for following question (1) (a). Solve the following second-order differential equations...
I need the matlab codes for following question (1) (a). Solve the following second-order differential equations by a pair of first-order equations, xyʹʹ − yʹ − 8x3y3 = 0; with initial conditions y = 0.5 and yʹ = −0.5 at x = 1. (b). Solve the problem in part (a) above using MATLAB built-in functions ode23 and ode45, within the range of 1 to 4, and compare with the exact solution of y = 1/(1 + x2) [Hint: ode23 à...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT