>>11177173You should know how to find the support reactions and the tension in the cable. If not, you are not yet ready to draw a shear and moment diagram.
RECALL: and (*)
This implies the area under a distributed load is the shear and the area under the shear is the moment. (**) This is all you need to draw the diagram. Writing piece-wise functions is bullshit, and I assume that discontinuity functions/Maculay's method is beyond the scope of what you need.
PROCEDURE:
Start at the left of the beam to draw the shear diagram. For a point load, draw a vertical line up or down that is the magnitude of the load at that point. For a distributed load, draw a line/curve whose height is the area under the load. (That is, if the distributed load is constant, you will draw a line with a certain amount of slope; if it increases linearly, you will draw a parabola, and so on.)
Now you draw the moment diagram. The procedure is the exact same as before, except now you are drawing the area under the shear and not the load.
If you fully understand (*) and (**) you should be able to draw these things without barely thinking.
>>11177197This has already been answered ITT. When I first learned calc, I really liked Paul's Online Math Notes. If you require that you must have a """real""" text, then just pick up Stewart or Larson or something. It doesn't really matter. If you are ballsy, read Spivak.
>>11177165feel better <3 go to bed early and eat a healthy breakfast
>>11176487I'm pretty sure this is because MATLAB treats x like a vector when it calls the integral function. Here's what it says:
>FUN must be a function handle...>For scalar-valued problems the function Y = FUN(X) must accept a vector argument X and return a vector result Y, the integrand function evaluated at each element of X...